/* =============================================================================
   NOOR PUBLISHING — HOMEPAGE STYLESHEET
   -----------------------------------------------------------------------------
   • Mobile-first: base styles target small screens, media queries scale up.
   • Layout is built with CSS Grid (audiobook cards, about) + Flexbox (bars,
     card internals).
   • Every colour, radius, shadow and type step lives in :root, so the whole
     theme can be re-skinned by editing the custom properties below.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* ── Palette: warm parchment neutrals + gold / bronze / terracotta accents ── */
  --color-bg: #FBF7F1;
  /* page background — warm off-white */
  --color-surface: #FFFDFA;
  /* card surface */
  --color-surface-alt: #F3EBDD;
  /* tinted panel */
  --color-ink: #1E1A16;
  /* primary text — near-black espresso */
  --color-ink-soft: #4C433A;
  /* secondary text */
  --color-muted: #6E6154;
  /* tertiary text / captions */
  --color-gold: #B08D57;
  /* primary accent — decorative rules, icons, borders */
  --color-bronze: #856437;
  /* accent used for small text (AA-contrast on every surface) */
  --color-gold-soft: #DCC9A4;
  /* light gold hairlines */
  --color-terracotta: #A65B42;
  /* secondary accent */
  --color-espresso: #221C17;
  /* dark blocks (footer, buttons) */
  --color-line: rgba(30, 26, 22, 0.12);
  --color-line-strong: rgba(30, 26, 22, 0.22);

  /* Translucent layers used by the sticky header and overlays */
  --color-header: rgba(251, 247, 241, 0.86);
  --color-scrim: rgba(24, 19, 15, 0.34);

  /* ── Typography ── */
  --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: clamp(1.25rem, 1.6vw, 1.5rem);
  --step-3: clamp(1.75rem, 3.2vw, 2.5rem);
  --step-4: clamp(2.25rem, 6vw, 4rem);

  /* ── Spacing / structure ── */
  --container: 1180px;
  --gutter: clamp(1.15rem, 5vw, 3rem);
  --section-y: clamp(3.75rem, 9vw, 7rem);
  --header-h: 4.25rem;

  /* ── Radii, shadows, motion ── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(30, 26, 22, 0.05);
  --shadow-sm: 0 6px 16px -8px rgba(45, 33, 20, 0.24);
  --shadow-md: 0 16px 32px -18px rgba(45, 33, 20, 0.32);
  --shadow-lg: 0 28px 55px -22px rgba(45, 33, 20, 0.42);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.3s;
}

/* -----------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  /* Very soft warm light pools — keeps the flat background from feeling dead */
  background-image:
    radial-gradient(60rem 40rem at 12% -10%, rgba(176, 141, 87, 0.16), transparent 60%),
    radial-gradient(48rem 34rem at 92% 6%, rgba(166, 91, 66, 0.1), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--color-gold-soft);
  color: var(--color-espresso);
}

/* Global visible-focus ring (keyboard users only) */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -----------------------------------------------------------------------------
   3. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sticky header offset for in-page anchors */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 0.7rem 1.2rem;
  font-size: var(--step--1);
  font-weight: 500;
  background: var(--color-espresso);
  color: var(--color-bg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}

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

/* -----------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad-y: 0.8rem;
  --btn-pad-x: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn--primary {
  background: var(--color-espresso);
  color: #FBF7F1;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  color: var(--color-ink);
  border-color: var(--color-line-strong);
}

.btn--ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Secondary (card) button — quiet outline that fills in on hover */
.btn--secondary {
  width: 100%;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  color: var(--color-ink);
  background: transparent;
  border-color: var(--color-line-strong);
  font-size: var(--step--1);
}

.btn--secondary:hover {
  color: #FBF7F1;
  background: var(--color-espresso);
  border-color: var(--color-espresso);
}

.btn__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform var(--dur) var(--ease);
}

.btn--secondary:hover .btn__icon,
.btn--secondary:focus-visible .btn__icon {
  transform: translateX(4px);
}

/* -----------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

/* Toggled by script.js once the page is scrolled */
.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 10px 24px -20px rgba(45, 33, 20, 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  /* Anchors the mobile dropdown panel */
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-block: 0.35rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-soft);
  border-radius: 50%;
  background: var(--color-surface);
  flex: none;
}

.brand__mark svg {
  width: 1.35rem;
  height: 1.35rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__tagline {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ── Hamburger ── */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  /* 44px tap target */
  height: 2.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--color-gold);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.05rem;
  height: 0.7rem;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity 0.15s var(--ease);
}

/* Morph the bars into an "×" when the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(0.29rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-0.29rem) rotate(-45deg);
}

/* ── Mobile dropdown panel ── */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem calc(var(--gutter) - 0.75rem) 1rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__link {
  display: block;
  padding: 0.7rem 0.75rem;
  font-size: var(--step-1);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__link:hover {
  background: var(--color-surface-alt);
}

/* "Current section" state set by script.js */
.nav__link.is-active {
  color: var(--color-terracotta);
}

/* -----------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

/* Decorative hairline arch behind the hero copy */
.hero__decor {
  position: absolute;
  inset: auto 50% 0 auto;
  width: min(112%, 46rem);
  aspect-ratio: 1 / 1;
  translate: 50% 42%;
  z-index: -1;
  border-radius: 50% 50% 0 0 / 62% 62% 0 0;
  background:
    radial-gradient(closest-side, rgba(176, 141, 87, 0.14), transparent 72%);
  border-top: 1px solid rgba(176, 141, 87, 0.28);
  border-inline: 1px solid rgba(176, 141, 87, 0.18);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}

.hero__title {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-terracotta);
}

.hero__subtitle {
  max-width: 56ch;
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--color-ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero__meta {
  margin-top: 0.35rem;
  font-size: var(--step--1);
  color: var(--color-muted);
}

.hero__meta-count {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-bronze);
}

/* -----------------------------------------------------------------------------
   7. SECTION HEADINGS
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: clamp(1.9rem, 4vw, 3rem);
}

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-bronze);
}

.section-title {
  font-size: var(--step-3);
}

.section-subtitle {
  font-size: var(--step-0);
  color: var(--color-muted);
  max-width: 46ch;
}

/* Hairline under the section head, drawn with a gradient so it fades out */
.section-head::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.85rem;
  background: linear-gradient(to right, var(--color-gold-soft), transparent);
}

/* -----------------------------------------------------------------------------
   8. AUDIOBOOKS GRID
   -------------------------------------------------------------------------- */
.books {
  padding-block: var(--section-y);
}

.books__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* ── Card ── */
.book-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 0.85rem 0.85rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

/* Lift + shadow bloom on hover / keyboard focus inside the card */
.book-card:hover,
.book-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--color-gold-soft);
  box-shadow: var(--shadow-lg);
}

/* ── Cover ── */
.book-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-alt);
  box-shadow: var(--shadow-sm);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.35s var(--ease);
}

/* Subtle zoom on the cover art */
.book-card:hover .book-card__cover img,
.book-card:focus-within .book-card__cover img {
  transform: scale(1.055);
}

/* Gradient scrim + play affordance, revealed on hover */
.book-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-scrim), rgba(24, 19, 15, 0) 58%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.book-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  translate: -50% -50%;
  color: var(--color-espresso);
  background: rgba(251, 247, 241, 0.94);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  scale: 0.85;
  transition: opacity var(--dur) var(--ease), scale var(--dur) var(--ease);
}

.book-card__play svg {
  width: 1.35rem;
  height: 1.35rem;
  margin-left: 2px;
  /* optical centring of the triangle */
}

.book-card:hover .book-card__cover::after,
.book-card:focus-within .book-card__cover::after,
.book-card:hover .book-card__play,
.book-card:focus-within .book-card__play {
  opacity: 1;
}

.book-card:hover .book-card__play,
.book-card:focus-within .book-card__play {
  scale: 1;
}

/* ── Card body ── */
.book-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-inline: 0.35rem;
  flex: 1;
  /* pushes the CTA to the card bottom */
}

.book-card__title {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}

.book-card__author {
  font-size: var(--step--1);
  color: var(--color-muted);
  /* Guarantees breathing room before the CTA in the tallest card of a row */
  margin-bottom: 0.6rem;
}

.book-card__cta {
  /* Pushed to the bottom so every "Listen" button aligns across the row */
  margin-top: auto;
  margin-bottom: 0.15rem;
}

/* -----------------------------------------------------------------------------
   9. ABOUT
   -------------------------------------------------------------------------- */
.about {
  padding-block: var(--section-y);
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.about__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.about__copy .section-title {
  margin-bottom: 1rem;
}

.about__text {
  color: var(--color-ink-soft);
  max-width: 58ch;
}

.about__text+.about__text {
  margin-top: 0.85rem;
}

.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.about__facts li {
  padding: 0.45rem 0.9rem;
  font-size: var(--step--1);
  color: var(--color-ink-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
}

/* Pull-quote panel */
.about__quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.about__quote blockquote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.4;
  color: var(--color-ink);
}

.about__quote figcaption {
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

/* -----------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  background: var(--color-espresso);
  color: #EFE4D4;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(239, 228, 212, 0.16);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-footer__note {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: rgba(239, 228, 212, 0.66);
  max-width: 34ch;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 228, 212, 0.55);
}

.social {
  display: flex;
  gap: 0.5rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #EFE4D4;
  border: 1px solid rgba(239, 228, 212, 0.22);
  border-radius: 50%;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.social a:hover {
  color: var(--color-espresso);
  background: var(--color-gold-soft);
  border-color: var(--color-gold-soft);
  transform: translateY(-2px);
}

.social svg {
  width: 1.1rem;
  height: 1.1rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.35rem;
  font-size: var(--step--1);
  color: rgba(239, 228, 212, 0.6);
}

.site-footer__top {
  color: rgba(239, 228, 212, 0.82);
  transition: color var(--dur) var(--ease);
}

.site-footer__top:hover {
  color: var(--color-gold-soft);
}

/* -----------------------------------------------------------------------------
   11. SCROLL REVEAL (progressive enhancement — only when JS is present)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* -----------------------------------------------------------------------------
   12. NO-JS FALLBACK
   Without JavaScript the hamburger cannot work, so the mobile panel is rendered
   as a plain, always-visible row of links instead.
   -------------------------------------------------------------------------- */
.no-js .nav-toggle {
  display: none;
}

.no-js .nav {
  position: static;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.no-js .nav__list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

/* -----------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* ── ≥ 640px: two-up grid, side-by-side footer ── */
@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .site-footer__bottom {
    align-items: center;
  }
}

/* ── ≥ 900px: real desktop navigation, two-column about ── */
@media (min-width: 900px) {
  :root {
    --header-h: 4.75rem;
  }

  .nav-toggle {
    display: none;
  }

  /* Reset the mobile dropdown back into a normal inline nav */
  .nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .nav__link {
    position: relative;
    padding: 0.55rem 0.9rem;
    font-size: var(--step--1);
    letter-spacing: 0.02em;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    height: 1px;
    background: var(--color-gold);
    scale: 0 1;
    transform-origin: left;
    transition: scale var(--dur) var(--ease);
  }

  .nav__link:hover::after,
  .nav__link:focus-visible::after,
  .nav__link.is-active::after {
    scale: 1 1;
  }

  .hero__inner {
    gap: 1.35rem;
  }

  .about__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

/* ── ≥ 1200px: fine-tune the hero rhythm ── */
@media (min-width: 1200px) {
  .hero {
    padding-block: 5.5rem 6rem;
  }
}

/* -----------------------------------------------------------------------------
   14. MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .book-card:hover,
  .book-card:focus-within,
  .btn:hover,
  .social a:hover {
    transform: none;
  }

  .book-card:hover .book-card__cover img,
  .book-card:focus-within .book-card__cover img {
    transform: none;
  }
}
