/* ============================================================
   Eugenia Little — Hexbay Mysteries
   Palette drawn from the Book One cover art: deep forest/teal,
   warm parchment, antique gold, dusk-sky blue.
   ============================================================ */

:root {
  --forest-900: #16332b;
  --forest-800: #1e4438;
  --forest-700: #275546;
  --teal-500: #3f7d6c;
  --gold-500: #c99a44;
  --gold-600: #b1832f;
  --gold-100: #f4e6c4;
  --sky-400: #8fb4c9;
  --cream-100: #faf5e9;
  --cream-050: #fffdf7;
  --ink-900: #241f18;
  --ink-700: #4a4238;
  --ink-500: #6e6455;
  --line: rgba(36, 31, 24, 0.12);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  --radius: 10px;
  --shadow-soft: 0 12px 32px rgba(22, 51, 43, 0.14);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream-050);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

p { margin: 0 0 1em; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--gold-600);
  font-size: 1.05rem;
  margin: 0 0 0.4em;
}
.eyebrow-light { color: var(--gold-100); }

.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: -9999px;
  top: 0;
  background: var(--forest-900);
  color: var(--cream-050);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--forest-900);
  box-shadow: 0 6px 18px rgba(201, 154, 68, 0.35);
}
.btn-primary:hover { background: var(--gold-600); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--forest-800);
  color: var(--forest-800);
}
.btn-ghost:hover { background: var(--forest-800); color: var(--cream-050); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 233, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--forest-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark { color: var(--gold-500); }

.primary-nav {
  display: flex;
  gap: 32px;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  letter-spacing: 0.01em;
}
.primary-nav a:hover { color: var(--forest-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--forest-900);
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 64px 0 76px;
  background:
    radial-gradient(ellipse at top right, rgba(143, 180, 201, 0.25), transparent 55%),
    var(--cream-100);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 56px;
  align-items: center;
}
.hero-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.hero-desc {
  font-size: 1.12rem;
  color: var(--ink-700);
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* ---------------- Thank you (post-subscribe landing) ---------------- */
.thanks {
  padding: 110px 0 130px;
  text-align: center;
  background:
    radial-gradient(ellipse at top right, rgba(143, 180, 201, 0.25), transparent 55%),
    var(--cream-100);
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.thanks-inner { max-width: 620px; margin: 0 auto; }
.thanks-desc {
  font-size: 1.12rem;
  color: var(--ink-700);
}
.thanks-note {
  color: var(--ink-500);
  font-size: 0.98rem;
}
.thanks-actions { margin-top: 24px; }

/* ---------------- Subscribe ---------------- */
.subscribe {
  background: var(--forest-800);
  color: var(--cream-050);
  padding: 52px 0;
}
.subscribe-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.subscribe-copy h2 { color: var(--cream-050); margin-bottom: 0.25em; }
.subscribe-copy p { color: rgba(250, 245, 233, 0.78); margin: 0; max-width: 42ch; }

.subscribe-form,
.loop-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.subscribe-form input,
.loop-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  min-width: 240px;
  background: var(--cream-050);
  color: var(--ink-900);
}
.subscribe-form input:focus,
.loop-form input:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}
.form-note {
  margin-top: 12px;
  color: var(--gold-100);
  font-weight: 600;
}

/* ---------------- About ---------------- */
.about { padding: 84px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.about-portrait img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--cream-100);
}
.about-copy p { color: var(--ink-700); }

/* ---------------- ARC team ---------------- */
.arc-team {
  background:
    linear-gradient(180deg, rgba(22,51,43,0.85), rgba(22,51,43,0.92)),
    var(--forest-900);
  color: var(--cream-050);
  padding: 84px 0;
  text-align: center;
}
.arc-inner { max-width: 700px; margin: 0 auto; }
.arc-team h2 { color: var(--cream-050); }
.arc-copy { color: rgba(250, 245, 233, 0.82); font-size: 1.08rem; }

/* ---------------- Loop / social ---------------- */
.loop {
  background: var(--cream-100);
  padding: 76px 0;
  text-align: center;
}
.loop h2 { margin-bottom: 0.3em; }
.loop p { color: var(--ink-700); max-width: 48ch; margin-left: auto; margin-right: auto; }
.loop-form {
  justify-content: center;
  margin: 28px 0 32px;
}
.loop-form input { background: var(--cream-050); }
.loop .form-note { color: var(--ink-700); margin: -16px auto 24px; }

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.social-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--forest-800);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.social-links a:hover { border-color: var(--gold-500); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--forest-900);
  color: rgba(250, 245, 233, 0.75);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream-050);
  margin: 0;
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 0.92rem; color: rgba(250, 245, 233, 0.75); }
.footer-nav a:hover { color: var(--gold-100); }
.copyright { margin: 0; font-size: 0.85rem; width: 100%; text-align: center; color: rgba(250, 245, 233, 0.5); }

@media (min-width: 640px) {
  .copyright { width: auto; text-align: right; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-portrait { justify-self: center; width: 220px; }
}

@media (max-width: 760px) {
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream-050);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 18px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-cover { max-width: 280px; margin: 0 auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .subscribe-inner { flex-direction: column; text-align: center; }
  .subscribe-form { justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 420px) {
  .subscribe-form input,
  .loop-form input { min-width: 0; width: 100%; }
  .subscribe-form, .loop-form { flex-direction: column; }
  .subscribe-form .btn, .loop-form .btn { width: 100%; text-align: center; }
}
