/* Hoot Hatch — brand stylesheet
   Tokens first, then components. No framework, no build step. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'InterVar';
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* Core palette */
  --ink:        #10131C;
  --ink-2:      #191E2B;
  --ink-3:      #29304354;
  --cream:      #FFF6E9;
  --cream-2:    #F7EAD7;
  --line:       #E3D5C0;

  /* Accents — one per vertical */
  --gold:       #FFC53D;   /* brand / facts   */
  --gold-deep:  #C98A00;
  --coral:      #FF6B5B;   /* party & games   */
  --violet:     #8B6DF0;   /* mystery & crime */

  --text:       #171A22;
  --text-mute:  #5C5A55;
  --text-inv:   #FFF6E9;
  --text-inv-mute: #B9B4AB;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 1px 2px rgba(16,19,28,.06), 0 8px 24px rgba(16,19,28,.08);
  --shadow-lift:0 2px 6px rgba(16,19,28,.10), 0 18px 48px rgba(16,19,28,.16);

  --maxw:       1120px;
  --gap:        clamp(1rem, 2.5vw, 2rem);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 1.35rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); color: var(--text-mute); max-width: 62ch; }
.dark .lead, .hero .lead { color: var(--text-inv-mute); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- eyebrow / tags ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 .9rem;
}
.dark .eyebrow { color: var(--gold); }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
  background: rgba(16,19,28,.06); color: var(--text-mute);
}
.tag::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.tag-party   { color: #B23A2E; background: rgba(255,107,91,.14); }
.tag-mystery { color: #5B3FBF; background: rgba(139,109,240,.14); }
.tag-facts   { color: #8A5C00; background: rgba(255,197,61,.20); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 var(--gold-deep); }
.btn-primary:hover { box-shadow: 0 8px 0 var(--gold-deep); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--gold-deep); }
.btn-ghost { border-color: currentColor; background: transparent; }
.dark .btn-ghost { color: var(--text-inv); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-note { font-size: .85rem; color: var(--text-mute); }
.dark .btn-note { color: var(--text-inv-mute); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink); color: var(--text-inv);
  border-bottom: 1px solid rgba(255,246,233,.10);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text-inv); }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; }
.nav { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text-inv-mute); }
.nav a:hover { color: var(--gold); }
@media (max-width: 560px) { .nav a.nav-hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero::after {
  content: ''; position: absolute; inset: auto -10% -60% 40%;
  height: 120%; background: radial-gradient(ellipse at center, rgba(255,197,61,.16), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero h1 .hl { color: var(--gold); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* ---------- vertical cards ---------- */
.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 1.9rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .35rem;
}
.card .card-icon { width: 42px; height: 42px; margin-bottom: .6rem; }
.card p { color: var(--text-mute); margin-bottom: 0; }
.card-party   { border-top: 5px solid var(--coral); }
.card-mystery { border-top: 5px solid var(--violet); }
.card-facts   { border-top: 5px solid var(--gold); }

/* ---------- featured ---------- */
.featured {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}
.featured-grid { display: grid; gap: clamp(1.6rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .featured-grid { grid-template-columns: minmax(220px, 320px) 1fr; } }
.cover {
  border-radius: 6px; box-shadow: var(--shadow-lift);
  aspect-ratio: 2 / 3; object-fit: cover; width: 100%;
  background: var(--ink-2);
}
.cover-tilt { transform: rotate(-2deg); }

/* ---------- shelf ---------- */
.shelf { display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.book { text-decoration: none; display: flex; flex-direction: column; gap: .6rem; }
.book img { border-radius: 5px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.book:hover img { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow-lift); }
.book-title { font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.25; }
.book-meta { font-size: .82rem; color: var(--text-mute); }

/* ---------- signup strip ---------- */
.strip { background: var(--ink); color: var(--text-inv); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3rem); }
.strip h2 { color: var(--text-inv); }
/* ---------- signup form (posts to Brevo, styled by us) ---------- */
.signup { display: flex; flex-wrap: wrap; gap: .7rem; align-items: stretch; max-width: 34rem; }
.signup-input {
  flex: 1 1 15rem; min-width: 0;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: #fff; border: 2px solid transparent; border-radius: 999px;
  padding: .9rem 1.25rem; line-height: 1.2;
}
.signup-input::placeholder { color: #9AA0A6; }
.signup-input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.signup .btn { flex: 0 0 auto; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hh-sink { display: none; }
.signup-note { font-size: .85rem; color: var(--text-inv-mute); margin: .9rem 0 0; max-width: 44ch; }
.signup-note a { color: var(--gold); }
.signup-done {
  display: none; gap: .7rem; align-items: flex-start;
  border: 2px solid var(--gold); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: 0; color: var(--text-inv); font-weight: 600; max-width: 34rem;
}
.signup-done.is-visible { display: flex; }
.signup-done::before { content: '✓'; color: var(--gold); font-weight: 800; }
.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;
}

/* ---------- landing extras ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before {
  content: '✓'; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 800; font-size: .85rem;
  display: grid; place-items: center; margin-top: .12rem;
}
.dark .checklist li::before { background: var(--gold); }

.rounds { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.round {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--coral);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.round h3 { margin-bottom: .25rem; font-size: 1.08rem; }
.round p { margin: 0; color: var(--text-mute); font-size: .94rem; }

.faq { max-width: 70ch; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 1rem 0;
}
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-deep); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: .7rem 0 0; color: var(--text-mute); }

.dark { background: var(--ink); color: var(--text-inv); }
.dark h1, .dark h2, .dark h3 { color: var(--text-inv); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-mute); padding-block: clamp(2.5rem, 5vw, 4rem); font-size: .92rem; }
.site-footer a { color: var(--text-inv-mute); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-grid h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.socials { display: flex; gap: .8rem; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(255,246,233,.2); border-radius: 999px; padding: .45rem .9rem; font-weight: 600;
}
.socials a:hover { border-color: var(--gold); }
.fineprint { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,246,233,.12); font-size: .84rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }
