@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #10264a;
  --navy-deep: #0a1a33;
  --ink: #1a2436;
  --cream: #f7f1e4;
  --paper: #fffbf3;
  --sand: #f4ebd8;
  --gold: #c9922a;
  --gold-bright: #e0b25a;
  --gold-ink: #2a1c06;
  --pine: #2f5d43;
  --sky: #cfe6f2;
  --ocean: #2e6a8a;
  --text: #1c2a3a;
  --text-soft: #3a4a5c;
  --muted: #5a6878;
  --line: rgba(16, 38, 74, 0.12);
  --line-strong: rgba(16, 38, 74, 0.28);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 4.35rem;
  --radius: 16px;
  --ease: 200ms ease;
  --shadow: 0 18px 40px rgba(16, 38, 74, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ocean);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(46, 106, 138, 0.4);
}

a:hover {
  color: var(--navy);
  text-decoration-color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

h1 { font-size: clamp(2.05rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover { text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--gold-ink);
  border-color: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(16, 38, 74, 0.04);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 251, 243, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand:hover { color: var(--navy); text-decoration: none; }

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
}

.nav-links a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  position: absolute;
  left: 12px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 400px);
  gap: 3.5rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.25rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 70% at 85% -10%, rgba(207, 230, 242, 0.95), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 0%, rgba(224, 178, 90, 0.12), transparent 55%);
}

.hero-copy h1 { max-width: 18ch; }

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 36ch;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.hero-location svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
}

.hero-location svg circle { fill: var(--gold); stroke: none; }

.hero-art { justify-self: end; }

.cover-frame {
  margin: 0;
  position: relative;
  width: min(100%, 400px);
  filter: drop-shadow(var(--shadow));
}

.cover-frame img {
  width: 100%;
  border-radius: 6px;
  border: 3px solid var(--navy);
}

.coming-soon-badge {
  position: absolute;
  left: 50%;
  bottom: -0.85rem;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-series {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--pine);
  font-weight: 500;
  margin: 0.25rem 0 0;
}

.series-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.series-lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin: 0;
}

.series-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.series-points li {
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.point-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.series-points li span:last-child {
  color: var(--text-soft);
  font-size: 1rem;
}

/* Book */
.section-book {
  background:
    radial-gradient(ellipse 70% 60% at 0% 50%, rgba(207, 230, 242, 0.55), transparent 60%),
    var(--cream);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(200px, 340px) 1fr;
  gap: 3rem;
  align-items: center;
}

.book-cover img {
  width: 100%;
  border-radius: 6px;
  border: 3px solid var(--navy);
  box-shadow: var(--shadow);
}

.coming-soon-inline {
  margin: 0 0 1.1rem;
}

.coming-soon-inline span {
  display: inline-block;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.25rem 0 1rem;
  padding: 0;
}

.book-meta li {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.book-note {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* Meet Rogue */
.section-rogue {
  background: var(--navy);
  color: #e8eef4;
}

.section-rogue h2,
.section-rogue .eyebrow { color: var(--gold-bright); }
.section-rogue h2 { color: #fffbf3; }

.rogue-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.rogue-copy {
  grid-column: 1 / -1;
  max-width: 46rem;
  font-size: 1.15rem;
}

.rogue-copy p { color: #d5deE8; }
.rogue-copy p:last-child { margin-bottom: 0; }

.rogue-art {
  margin: 0;
}

.rogue-art img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.rogue-art figcaption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: #b8c4d2;
}

/* Contact */
.section-contact {
  background: var(--sand);
}

.contact-card {
  text-align: center;
  max-width: 40rem;
  padding: 3rem 1.5rem;
}

.contact-card h2 { margin-bottom: 0.7rem; }

.contact-card p {
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}

.contact-card cite { font-style: italic; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c5d0dc;
  padding: 2.4rem 0 2.6rem;
  font-size: 0.95rem;
}

.footer-inner p { margin: 0 0 0.6rem; }
.footer-inner p:last-child { margin-bottom: 0; }

.site-footer a {
  color: var(--gold-bright);
  text-decoration-color: rgba(224, 178, 90, 0.4);
}

.site-footer a:hover { color: #fff; }

.footer-note {
  max-width: 42rem;
  color: #8e9aab;
  font-size: 0.88rem;
}

.footer-copy {
  margin-top: 1rem;
  color: #8e9aab;
  font-size: 0.88rem;
}

/* 404 */
.page-404 { background: var(--cream); }
.missing { max-width: 34rem; padding: 4rem 0 6rem; }
.missing p { color: var(--text-soft); margin-bottom: 1.5rem; }

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 12px 24px rgba(16, 38, 74, 0.08);
  }

  .nav.is-open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn { margin-top: 0.85rem; width: 100%; }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 2.6rem 0 3.4rem;
    text-align: left;
  }

  .hero-art { justify-self: center; width: min(100%, 320px); }

  .series-grid,
  .book-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .book-cover { width: min(100%, 280px); margin-inline: auto; }

  .rogue-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap,
  .hero { width: min(100% - 1.75rem, var(--max)); }

  .hero { padding: 2.1rem 0 3rem; }
  .section { padding: 3.25rem 0; }
  .hero-lead { font-size: 1.08rem; }
  .rogue-layout { grid-template-columns: 1fr; }
  .contact-card { padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
