/* assets/css/styles.css */

/* ========== Base & Reset ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #F4F4F2;                   /* light neutral text */
  background: #02055A;              /* deep navy base */
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
  margin: 0 0 0.6em 0;
  line-height: 1.25;
}
p { margin: 0 0 1em 0; }

/* Containers & Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: -999px;
  background: #092475; color: #F4F4F2; padding: 8px 12px; z-index: 10000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ========== Header/Nav ========== */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: #341C3A;              /* deep eggplant */
  border-bottom: 1px solid rgba(244,244,242,0.08);
  backdrop-filter: saturate(120%) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700; letter-spacing: 0.5px;
  color: #F4F4F2; text-decoration: none; font-size: 1.25rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.site-nav a {
  color: #F4F4F2; text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 8px 10px; border-radius: 6px;
}
.site-nav a:hover, .site-nav a:focus { background: rgba(244,244,242,0.08); }
.site-nav .cta a {
  background: #092475; border: 1px solid #092475;
}
.site-nav .cta a:hover { background: transparent; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px;
  border-radius: 6px;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: #F4F4F2; margin: 5px 0; }

/* ========== Sections ========== */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head .lede { opacity: 0.85; }

/* HERO */
.hero {
  position: relative; padding: 120px 0 100px;
  background: linear-gradient(180deg, #02055A 0%, #4B2A57 60%, #341C3A 100%);
  overflow: hidden;
}
.hero-inner { display: grid; align-items: center; min-height: 52vh; }
.hero-copy h1 { font-size: 3rem; }
.tagline { font-size: 1.1rem; opacity: 0.95; }
.subtag { opacity: 0.8; }
.hero-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 20%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%);
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  padding: 12px 16px; border-radius: 10px; font-weight: 600; transition: transform 0.06s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: #092475; color: #F4F4F2; border: 1px solid #092475; }
.btn-primary:hover { background: transparent; }

.btn-ghost { background: transparent; color: #F4F4F2; border: 1px solid rgba(244,244,242,0.25); }
.btn-ghost:hover { background: rgba(244,244,242,0.08); }

.btn-outline { background: transparent; color: #F4F4F2; border: 1px solid #092475; }
.btn-outline:hover { background: #092475; }

.center { text-align: center; }

/* FEATURED */
.featured { background: #02055A; }
.featured-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.featured-card {
  background: #341C3A; border: 1px solid rgba(244,244,242,0.08);
  border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 0;
}
.featured-card .cover { background: #02055A; aspect-ratio: 2/3; }
.featured-card .cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.featured-card .content { padding: 20px; }
.featured-card h3 { color: #F4F4F2; }
.featured-card p { color: #F4F4F2; opacity: 0.9; }
.featured-card .actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* WORKS (future-proof) */
.works-grid {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.work {
  background: #341C3A; border: 1px solid rgba(244,244,242,0.08);
  border-radius: 12px; padding: 16px;
}

/* ABOUT */
.about { background: #4B2A57; }
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
}
.about-copy p { opacity: 0.95; }
.avatar {
  width: 100%; aspect-ratio: 1/1; border-radius: 16px;
  background: linear-gradient(135deg, #092475 0%, #341C3A 100%);
  border: 1px solid rgba(244,244,242,0.12);
}

/* NEWS */
.news { background: #02055A; }
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.news-card {
  background: #341C3A; border: 1px solid rgba(244,244,242,0.08);
  border-radius: 12px; padding: 16px;
}
.news-date { font-size: 0.88rem; opacity: 0.75; display: block; margin-bottom: 6px; }
.news-title { margin-bottom: 8px; }

/* CONTACT */
.contact {
  background: linear-gradient(180deg, #4B2A57 0%, #341C3A 60%, #02055A 100%);
}
.contact-inner { max-width: 720px; }
.contact-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* FOOTER */
.site-footer {
  background: #341C3A; border-top: 1px solid rgba(244,244,242,0.08);
  padding: 28px 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
}
.footer-brand { font-weight: 700; }
.footer-nav a {
  color: #F4F4F2; text-decoration: none; margin-right: 14px; font-size: 0.95rem;
}
.footer-meta { opacity: 0.85; }

/* Visibility helpers */
.hidden { display: none; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 60px; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 60px; background: #341C3A; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px; gap: 6px; }
  .site-nav .cta a { display: inline-block; width: 100%; text-align: center; }
  .hero { padding: 96px 0 80px; }
  .hero-copy h1 { font-size: 2.4rem; }
  .featured-card { grid-template-columns: 1fr; }
}

/* Focus styles */
a:focus, button:focus {
  outline: 2px solid #092475; outline-offset: 2px;
}/* Book title styling */
.book-title {
  font-style: italic;
  font-weight: 600;
  color: #F4F4F2;
}

