/* Legalized — promo site styles */
:root {
  --ink: #0f1a14;
  --ink-2: #16241c;
  --ink-3: #1f3127;
  --paper: #f4efe4;
  --paper-2: #ebe3d2;
  --gold: #d4a94a;
  --gold-2: #b88c2f;
  --green: #2f6b49;
  --green-2: #3f8f5f;
  --red: #a8322b;
  --text: #1c1a17;
  --muted: #5d5a52;
  --light: #efe9dc;
  --light-muted: #a9b3ab;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --maxw: 1140px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 700; }

.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;
}

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

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.6rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e2ba5e; }
.btn--ghost { border-color: rgba(239,233,220,.4); color: var(--light); background: transparent; }
.btn--ghost:hover { border-color: var(--light); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(15,26,20,.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(212,169,74,.18);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--light); text-decoration: none;
}
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--light-muted); text-decoration: none;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--light); }
.nav__links .nav__cta {
  color: var(--ink); background: var(--gold); padding: .55rem 1rem; border-radius: var(--radius);
}
.nav__links .nav__cta:hover { color: var(--ink); background: #e2ba5e; }
.nav__toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--light); transition: transform .25s ease, opacity .25s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 3rem) 1.25rem 5rem;
  color: var(--light); overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(63,143,95,.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(212,169,74,.12), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0b140f 100%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 4px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: min(88%, 900px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,74,.5), transparent);
}
.hero::before { top: calc(var(--nav-h) + 1.5rem); }
.hero::after { bottom: 3rem; }
.hero__inner { position: relative; max-width: 900px; animation: rise 1s ease both; }
.hero__title {
  font-family: var(--display); font-weight: 700; margin: 0;
  font-size: clamp(3.6rem, 14vw, 10rem); line-height: .95;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero__word { display: inline-block; }
.accent { color: var(--gold); font-style: italic; text-transform: lowercase; letter-spacing: 0; }
.hero__lede {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.6;
  max-width: 640px; margin: 1.8rem auto 2.4rem; color: #d9d3c4;
}
.hero__lede strong { color: var(--light); font-weight: 600; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  margin: 3.5rem auto 0; padding: 0;
  font-family: var(--sans);
}
.hero__meta div { padding: 0 1.75rem; border-left: 1px solid rgba(239,233,220,.18); }
.hero__meta div:first-child { border-left: 0; }
.hero__meta dt { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--light-muted); }
.hero__meta dd { margin: .25rem 0 0; font-size: .95rem; color: var(--light); }
.hero__scroll {
  position: absolute; bottom: 4.2rem; left: 50%; transform: translateX(-50%);
  color: var(--gold); text-decoration: none; font-family: var(--sans); font-size: 1.2rem;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--paper {
  background:
    radial-gradient(ellipse at top left, rgba(255,255,255,.6), transparent 50%),
    var(--paper);
}
.section--dark { background: var(--ink-2); color: var(--light); }
.section--green {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(212,169,74,.12), transparent 60%),
    linear-gradient(160deg, #1d4631, #14301f);
  color: var(--light);
}
.section__head { max-width: 720px; margin-bottom: 3.5rem; }
.section__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1;
  margin: 0 0 1.5rem; color: var(--ink); letter-spacing: -.005em;
}
.section__title--light { color: var(--light); }
.section__sub { color: var(--light-muted); font-size: 1.15rem; margin: 0; }

/* ---------- Premise ---------- */
.premise {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.premise__text p { margin: 0 0 1.3rem; color: #2b2925; }
.drop::first-letter {
  float: left; font-family: var(--display); font-size: 4.4rem; line-height: .8;
  padding: .35rem .6rem 0 0; color: var(--green); font-weight: 700;
}

.docket {
  position: relative; background: #fbf8f1; border: 1px solid #d8cdb5;
  padding: 2.5rem 2rem 2rem; border-radius: 2px;
  box-shadow: 0 1px 0 #d8cdb5, 0 20px 40px -24px rgba(15,26,20,.4);
  transform: rotate(.6deg);
}
.docket::before {
  content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(47,107,73,.25); pointer-events: none;
}
.docket__stamp {
  position: absolute; top: -14px; right: 18px; margin: 0;
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--red); border: 2px solid var(--red); padding: .2rem .65rem; background: #fbf8f1;
  transform: rotate(-4deg);
}
.docket__title {
  font-family: var(--display); font-size: 1.45rem; margin: 0 0 1.25rem; color: var(--ink);
  padding-bottom: .9rem; border-bottom: 2px solid var(--ink);
}
.docket__list { list-style: none; margin: 0; padding: 0; }
.docket__list li {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .5rem;
  padding: .8rem 0; border-bottom: 1px solid #e3d9c4; font-size: 1.02rem; line-height: 1.45;
}
.docket__list span { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--gold-2); padding-top: .2rem; }
.docket__foot { margin: 1.1rem 0 0; font-family: var(--sans); font-size: .78rem; color: var(--muted); font-style: italic; }

.themes { margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: 2.5rem; border-top: 1px solid #d8cdb5; }
.themes__title {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1.2rem;
}
.themes__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.themes__list li {
  font-family: var(--sans); font-size: .9rem; padding: .55rem 1rem;
  border: 1px solid rgba(47,107,73,.35); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.45);
}

/* ---------- Band ---------- */
.band {
  background: var(--ink); padding: clamp(3.5rem, 8vw, 6rem) 1.25rem; text-align: center;
  border-top: 1px solid rgba(212,169,74,.2); border-bottom: 1px solid rgba(212,169,74,.2);
}
.band__text {
  margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.2; color: var(--light);
}
.band__text span { color: var(--gold); font-style: italic; }

/* ---------- Characters ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.card {
  position: relative; background: linear-gradient(180deg, var(--ink-3), #1a2a21);
  border: 1px solid rgba(239,233,220,.08); border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.7rem; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-2));
  transform: scaleX(.25); transform-origin: left; transition: transform .4s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212,169,74,.3); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.card:hover::before { transform: scaleX(1); }
.card__tag {
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem;
}
.card__name { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; margin: 0 0 .8rem; color: var(--light); }
.card__body { margin: 0; font-size: .98rem; line-height: 1.6; color: #c4c9c0; }
.cards__note {
  margin: 2.5rem 0 0; text-align: center; font-family: var(--sans); font-size: .85rem;
  letter-spacing: .08em; color: var(--light-muted);
}

/* ---------- Author ---------- */
.author { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.author__mark {
  aspect-ratio: 4 / 5; border-radius: 2px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(239,233,220,.07) 34px 40px),
    linear-gradient(160deg, var(--ink-3), var(--ink));
  box-shadow: 0 24px 50px -28px rgba(15,26,20,.7);
}
.author__initials { font-family: var(--display); font-size: 5rem; color: var(--gold); line-height: 1; letter-spacing: .05em; }
.author__caption {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--light-muted);
}
.author__text p { margin: 0 0 1.2rem; color: #2b2925; }
.author__text a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.author__text a:hover { color: var(--ink); }
.author__note {
  font-family: var(--sans); font-size: .85rem; color: var(--muted) !important;
  padding-top: 1rem; border-top: 1px solid #d8cdb5; margin-top: 1.6rem !important;
}

/* ---------- Waitlist ---------- */
.waitlist { max-width: 680px; text-align: center; }
.waitlist .section__sub { margin-bottom: 2.2rem; }
.waitlist__form { display: flex; gap: .75rem; max-width: 520px; margin: 0 auto; }
.waitlist__form input {
  flex: 1; min-width: 0; font: inherit; font-family: var(--sans); font-size: 1rem;
  padding: .95rem 1.1rem; border-radius: var(--radius);
  border: 1.5px solid rgba(239,233,220,.25); background: rgba(15,26,20,.45); color: var(--light);
  transition: border-color .2s ease;
}
.waitlist__form input::placeholder { color: rgba(239,233,220,.45); }
.waitlist__form input:focus { outline: none; border-color: var(--gold); }
.waitlist__msg { min-height: 1.6em; margin: 1rem 0 0; font-family: var(--sans); font-size: .92rem; }
.waitlist__msg.is-ok { color: #bfe3c9; }
.waitlist__msg.is-error { color: #f2b8a8; }
.waitlist__isbn { margin: 2rem 0 0; font-family: var(--sans); font-size: .75rem; letter-spacing: .18em; color: rgba(239,233,220,.5); }

/* ---------- Footer ---------- */
.footer { background: #0a120d; color: var(--light-muted); padding: 3.5rem 0 2rem; font-family: var(--sans); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.75rem; }
.footer__brand {
  margin: 0; font-family: var(--display); font-size: 1.4rem; letter-spacing: .18em; text-transform: uppercase; color: var(--light);
}
.footer__by { margin: .2rem 0 0; font-size: .85rem; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { text-decoration: none; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer__links a:hover { color: var(--light); }
.footer__domain { margin: 0; }
.footer__domain a { color: var(--gold); text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.footer__domain a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(239,233,220,.08);
  font-size: .78rem; color: rgba(169,179,171,.7);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .card.reveal:nth-child(2) { transition-delay: .06s; }
.cards .card.reveal:nth-child(3) { transition-delay: .12s; }
.cards .card.reveal:nth-child(4) { transition-delay: .18s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .premise { grid-template-columns: 1fr; }
  .docket { transform: none; }
  .author { grid-template-columns: 1fr; }
  .author__mark { max-width: 240px; aspect-ratio: 1 / 1; }
}

@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(15,26,20,.97); padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(212,169,74,.2);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: .95rem 0; border-bottom: 1px solid rgba(239,233,220,.08); }
  .nav__links .nav__cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
  .nav { background: rgba(15,26,20,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .hero__meta div { padding: .5rem 1rem; }
  .hero__scroll { display: none; }
  .waitlist__form { flex-direction: column; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero__meta { flex-direction: column; gap: .6rem; }
  .hero__meta div { border-left: 0; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
