/* ============================================================================
   author.css — page-scoped layout for the T. Teller author homepage.
   The shared design system (palette, type, texture, components: buttons, cards,
   string-lights, torn-edge, the dog walker, snow canvas, scroll-reveal) lives in
   the shared /assets/css/theme.css. This file only adds page layout on top and
   never redefines a theme token or a shared component class.

   Register: an AUTHOR site, not the book experience. Lighter density, more air,
   the same cold night palette. Restraint is the brand.
   ========================================================================== */

/* ---------------------------------------------------------------- header --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: clamp(0.8rem, 2vw, 1.3rem) var(--space-5);
  transition: background-color var(--dur-2) var(--ease-drift),
              border-color var(--dur-2), backdrop-filter var(--dur-2);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--navy-deep) 82%, transparent);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--font-display); font-weight: 300;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  font-size: var(--fs-400); color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.brand b { font-weight: 600; color: var(--gold); }
.brand .dot { color: var(--crimson); }
.site-nav { display: flex; gap: clamp(0.9rem, 2vw, 1.8rem); align-items: center; }
.site-nav a {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: var(--tracking-mid); font-size: var(--fs-200);
  color: var(--ink-soft); text-decoration: none; transition: color var(--dur-1);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold); }
@media (max-width: 680px) { .site-nav { display: none; } }

/* ------------------------------------------------------------------ hero --- */
/* Quiet and confident: the wordmark, one line of identity, and air. Shorter
   than a full viewport so the page reads as a calm document, not an experience. */
.hero {
  position: relative;
  min-height: clamp(30rem, 82svh, 46rem);
  display: flex; align-items: center;
  padding-block: clamp(6rem, 16vh, 10rem) var(--space-7);
}
.hero__inner { max-width: 44ch; }
.hero__eyebrow { margin-bottom: var(--space-4); }
.hero__name {
  margin: 0;
  font-size: clamp(3rem, 1.4rem + 8vw, 8.5rem);
  line-height: 0.98;
}
.hero__name .dot { color: var(--crimson); }
.hero__identity {
  margin-top: var(--space-5);
  font-size: var(--fs-700);
  line-height: var(--lh-snug);
  color: var(--ink-soft);
  max-width: 26ch;
  font-family: var(--font-body);
  font-style: italic;
}

/* ------------------------------------------------------------- featured --- */
.featured__grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 820px) {
  .featured__grid { grid-template-columns: 0.8fr 1.2fr; }
}
.featured__stage { perspective: 1200px; display: flex; justify-content: center; }
.featured__cover {
  position: relative; width: min(320px, 74vw);
}
.featured__cover img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(0,0,0,0.5);
}
/* the cream moon-glow lifted from the landing hero, softened */
.featured__moon {
  position: absolute; z-index: -1; left: 50%; top: 46%;
  width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,221,196,0.16) 0%, rgba(232,221,196,0.05) 34%, transparent 62%);
  pointer-events: none;
}
.featured__title { margin: 0.1em 0 var(--space-2); }
.featured__title .dot { color: var(--crimson); }
.featured__kicker { color: var(--ink-faint); font-style: italic; }
.featured .prose { margin-top: var(--space-4); }
.featured .prose p { font-size: var(--fs-500); }
.featured__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------------------------------------------------------- free story --- */
/* The conversion core. A single warm panel: the pitch, one stat line, and the
   capture. Given a touch more presence than the rest, still cold and quiet. */
.magnet { padding-top: var(--space-7); }
.magnet__card { text-align: center; padding-block: clamp(2rem, 5vw, 3.25rem); }
.magnet__eyebrow { margin-bottom: var(--space-3); }
.magnet__pitch {
  margin: var(--space-4) auto 0;
  max-width: 46ch; color: var(--ink-soft); font-size: var(--fs-500);
}
.magnet__stat {
  margin: var(--space-5) auto 0;
  display: inline-flex; align-items: center; gap: 0.9em;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: var(--tracking-mid); font-size: var(--fs-200);
  color: var(--gold);
}
.magnet__stat span { color: var(--ink-faint); }
.magnet__stat i { width: 4px; height: 4px; border-radius: 50%; background: var(--crimson); }

.magnet__form { max-width: 30rem; margin: var(--space-6) auto 0; }
/* The form carries the shared .field class (display:flex), which would override
   the UA [hidden]{display:none}. This rule (class + attribute) outranks .field so
   author.js can swap the form out for the success state on a 200. */
.magnet__form[hidden] { display: none; }
.magnet__note {
  margin: var(--space-4) auto 0;
  font-size: var(--fs-200); color: var(--ink-faint); max-width: 40ch;
}
.magnet__status {
  margin: var(--space-4) auto 0; font-style: italic;
  font-size: var(--fs-300); max-width: 40ch;
}

/* the instant-value success state (revealed by author.js after a 200) */
.magnet__success { margin: var(--space-5) auto 0; max-width: 42ch; }
.magnet__success h3 {
  color: var(--gold); text-transform: uppercase;
  font-size: var(--fs-700); letter-spacing: var(--tracking-wide);
}
.magnet__success p { margin: var(--space-4) auto 0; color: var(--ink-soft); }
.magnet__success .btn { margin-top: var(--space-5); }

/* ----------------------------------------------------------------- about --- */
.about__grid { max-width: var(--container-narrow); margin-inline: auto; }
.about .prose p { font-size: var(--fs-500); }
.about__sig {
  margin-top: var(--space-6);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: var(--tracking-wide); font-size: var(--fs-200);
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------- footer --- */
.site-footer {
  position: relative; border-top: 1px solid var(--line-soft);
  background: var(--navy-black); padding: var(--space-8) var(--space-5) var(--space-6);
  min-height: 200px; overflow: hidden;
}
.footer__row {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center;
  justify-content: space-between; position: relative; z-index: var(--z-content);
}
.footer__meta {
  font-size: var(--fs-200); color: var(--ink-faint);
  display: flex; align-items: center; gap: 0.6em;
}
.footer__links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer__links a {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: var(--tracking-mid); font-size: var(--fs-100); color: var(--ink-soft);
  text-decoration: none;
}
.footer__links a:hover { color: var(--gold); }
.footer__ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-soft), transparent);
}
