/* =========================================================
   Mac Ling: shared stylesheet
   Design system: petrol-ink + warm bone + aged brass
   Display: Fraunces · Reading: Newsreader · Utility: Libre Franklin
   Signature: the brass through-line
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --ink:        #14191b;   /* deepest near-black, cool undertone */
  --petrol:     #1c3a3a;   /* deep teal-petrol, structural dark */
  --petrol-2:   #17302f;   /* darker petrol for gradients */
  --stone:      #eae5db;   /* warm bone, the light base (cooler than cream) */
  --paper:      #f1ede4;   /* lighter stone for cards / lift */
  --brass:      #b0894a;   /* aged brass accent */
  --brass-lit:  #cba15c;   /* brass, brighter for dark grounds */
  --ink-soft:   #565a52;   /* muted warm grey text on light */
  --stone-soft: #a7a89d;   /* muted text on dark */
  --line-light: #d4cfc2;   /* hairlines on light */
  --line-dark:  #33474324; /* hairlines on dark (unused fallback) */

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --sans:    "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* scale (fluid) */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.5rem + 1vw, 2.3rem);
  --step-3:  clamp(2.2rem, 1.85rem + 1.8vw, 3.4rem);
  --step-4:  clamp(2.9rem, 2.2rem + 3.4vw, 5.2rem);

  /* space */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --rail: clamp(1.25rem, 5vw, 5.5rem);   /* left rail where the through-line lives */
  --measure: 40rem;                       /* reading width */
  --section-y: clamp(4rem, 9vw, 8.5rem);

  --radius: 2px;
  --ease: cubic-bezier(0.4, 0, 0.1, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--brass); color: var(--stone); }

/* ---------- Utility voice ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow--onDark { color: var(--brass-lit); }

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Display / headings ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }
em, .i { font-style: italic; }

p { max-width: var(--measure); }
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 380;
}

/* ---------- Layout shell + the through-line ---------- */
.page { position: relative; }

/* the brass through-line lives in the left rail on wide screens */
.thread {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--rail);
  width: 1px;
  background: linear-gradient(var(--brass), var(--brass));
  opacity: 0.55;
  transform: scaleY(0);
  transform-origin: top;
  animation: draw 1.4s var(--ease) 0.15s forwards;
  z-index: 0;
  pointer-events: none;
}
@keyframes draw { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .thread { animation: none; transform: scaleY(1); }
}

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
/* reading blocks sit to the right of the rail on wide screens */
.section { padding-block: var(--section-y); position: relative; }
.section > .wrap { padding-left: max(var(--gutter), calc(var(--rail) + 2.5rem)); }

/* node marker on the thread at each anchored section */
.section[data-node] > .wrap::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) - var(--gutter) - 4px);
  top: calc(var(--section-y) + 0.35em);
  width: 9px; height: 9px;
  background: var(--brass);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--stone);
}
.section--dark[data-node] > .wrap::before { box-shadow: 0 0 0 4px var(--petrol); background: var(--brass-lit); }

/* dark section treatment */
.section--dark {
  background: var(--petrol);
  color: var(--stone);
}
.section--ink { background: var(--ink); color: var(--stone); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--stone); }
.section--dark .lede, .section--ink .lede { color: var(--stone); }
.section--paper { background: var(--paper); }

.muted { color: var(--ink-soft); }
.section--dark .muted, .section--ink .muted { color: var(--stone-soft); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--stone) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.site-head__in {
  max-width: 78rem; margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brandmark { display: inline-flex; align-items: center; text-decoration: none; }
.brandmark img { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.3rem 0;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 3px; background: var(--brass); transition: right 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--brass); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--stone); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--bd); border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-light); }
.btn--ghost:hover { --bd: var(--brass); }
.btn--brass { --bg: var(--brass); --fg: #fff; --bd: var(--brass); }
.section--dark .btn--ghost, .section--ink .btn--ghost { --fg: var(--stone); --bd: #ffffff33; }
.section--dark .btn--ghost:hover, .section--ink .btn--ghost:hover { --bd: var(--brass-lit); }
.section--dark .btn--solid, .section--ink .btn--solid { --bg: var(--stone); --fg: var(--ink); --bd: var(--stone); }

/* ---------- Hero ---------- */
.hero { background: #fff; color: var(--ink); position: relative; overflow: hidden; border-bottom: 3px solid var(--petrol); }
.hero .wrap { padding-block: clamp(4.5rem, 11vw, 9rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: end; }
.hero h1 { max-width: 15ch; margin-top: 1.1rem; }
.hero h1 .i { color: var(--brass); }
.hero .standfirst { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 34rem; margin-top: 1.6rem; font-weight: 360; }
.hero .standfirst b { font-weight: 600; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero__meta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.3rem 2.2rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.hero__meta b { color: var(--ink); font-weight: 600; }
.hero .portrait { background: linear-gradient(145deg, var(--stone), var(--paper)); border-color: var(--line-light); color: var(--ink-soft); }

/* portrait slot */
.portrait {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(45deg, #ffffff0a 0 12px, transparent 12px 24px),
    var(--petrol-2);
  border: 1px solid #ffffff1f;
  border-radius: var(--radius);
  display: grid; place-content: center; text-align: center;
  color: var(--stone-soft); font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1rem;
}
.portrait--wide { aspect-ratio: 3 / 2; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; margin-top: 2.8rem; }
.pillar { border-top: 1px solid var(--line-light); padding-top: 1.2rem; }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--ink-soft); font-size: var(--step-0); }
.section--dark .pillar { border-color: #ffffff26; }
.section--dark .pillar p { color: var(--stone-soft); }

/* ---------- Generic prose + list ---------- */
.stack > * + * { margin-top: 1.15rem; }
.stack--wide > * + * { margin-top: 1.6rem; }
.list-clean { list-style: none; padding: 0; }
.list-clean li { padding-left: 1.4rem; position: relative; max-width: var(--measure); }
.list-clean li + li { margin-top: 0.7rem; }
.list-clean li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }

/* numbered sequence (real sequences only) */
.seq { list-style: none; padding: 0; counter-reset: seq; display: grid; gap: 0.2rem; }
.seq li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: baseline; padding: 0.9rem 0; border-top: 1px solid var(--line-light); }
.seq li::before { counter-increment: seq; content: counter(seq, decimal-leading-zero); font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--brass); }
.seq b { font-family: var(--display); font-weight: 500; font-size: var(--step-1); }
.section--dark .seq li { border-color: #ffffff26; }

/* ---------- Cards / previews ---------- */
.cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 2.4rem; }
.card {
  background: var(--paper); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem);
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.card:hover { transform: translateY(-3px); border-color: var(--brass); }
.card h3 { margin-bottom: 0.1rem; }
.card p { color: var(--ink-soft); font-size: var(--step-0); }
.card__more { font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-top: auto; }

/* ---------- Testimonial ---------- */
.quote { border-left: 2px solid var(--brass); padding-left: clamp(1.2rem, 3vw, 2rem); max-width: 46rem; }
.quote p { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.28; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: 1.1rem; font-style: normal; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.03em; color: var(--ink-soft); }
.quote cite b { color: var(--ink); font-weight: 600; }
.section--dark .quote cite b { color: var(--stone); }
.section--dark .quote cite { color: var(--stone-soft); }

.quote-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; margin-top: 2.4rem; }
.quote-sm { border-top: 1px solid var(--line-light); padding-top: 1.2rem; }
.quote-sm p { font-family: var(--serif); font-size: var(--step-0); line-height: 1.55; color: var(--ink); }
.quote-sm cite { display: block; margin-top: 0.9rem; font-style: normal; font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); }
.quote-sm cite b { color: var(--ink); font-weight: 600; }

/* ---------- Credential strip ---------- */
.creds { display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem; margin-top: 2rem; }
.cred {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem; border: 1px solid var(--line-light); border-radius: 100px; color: var(--ink-soft);
}
.section--dark .cred { border-color: #ffffff2e; color: var(--stone-soft); }

/* ---------- Media logos grid ---------- */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 2.4rem; background: var(--line-light); border: 1px solid var(--line-light); }
.logos .cell { background: var(--stone); aspect-ratio: 16/9; display: grid; place-content: center; text-align:center; padding: 1rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.logos .cell--photo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; overflow: hidden; text-align: left; }
.logos .cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); transition: transform 0.4s var(--ease); }
.logos .cell--photo:hover img { transform: scale(1.04); }
.logos .cell--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #14191be0, #14191b30 60%, transparent); }
.logos .cell--photo .cell__label { position: relative; z-index: 1; display: block; padding: 0.9rem 1rem; color: var(--stone); font-weight: 600; }
.logos .cell--photo .cell__sub { display: block; font-weight: 400; font-size: 0.72rem; margin-top: 0.2rem; color: var(--stone-soft); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.4rem; max-width: 52rem; }
.faq details { border-top: 1px solid var(--line-light); padding: 1.1rem 0; }
.faq details[open] summary { color: var(--brass); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: var(--step-1); line-height: 1.25; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--brass); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.8rem; color: var(--ink-soft); }

/* ---------- Book feature ---------- */
.book { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.book__cover {
  aspect-ratio: 5 / 7.6; max-width: 320px;
  background: linear-gradient(155deg, #10201f, #223f3d);
  border: 1px solid #ffffff26; border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px #000000a6;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.7rem 1.5rem;
}
.book__cover .bk-title { font-family: var(--display); font-size: 1.7rem; line-height: 1.08; color: var(--stone); }
.book__cover .bk-sub { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-lit); }
.book__cover .bk-au { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-soft); }
.book-cover-photo { aspect-ratio: 5 / 7.6; max-width: 320px; border: 1px solid #ffffff26; border-radius: var(--radius); box-shadow: 0 30px 60px -30px #000000a6; overflow: hidden; }
.book-cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Essays ---------- */
.essay-list { margin-top: 2.4rem; border-top: 1px solid var(--line-light); }
.essay-row { display: grid; grid-template-columns: 7rem 1fr; gap: 1.6rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line-light); }
.essay-row__date { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.35rem; }
.essay-row h3 { font-size: var(--step-1); margin-bottom: 0.7rem; }
.essay-row p { color: var(--ink-soft); }
.essay-row__link { display: inline-block; margin-top: 0.9rem; font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 640px) { .essay-row { grid-template-columns: 1fr; gap: 0.5rem; } }

.essay-body { max-width: var(--measure); }
.essay-body > * + * { margin-top: 1.5rem; }
.essay-body h2 { font-size: var(--step-2); margin-top: 2.4rem; }
.essay-meta { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Contact form ---------- */
.form { max-width: 40rem; margin-top: 2.4rem; display: grid; gap: 1.4rem; }
.form-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--sans); font-size: var(--step-0); color: var(--ink);
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 0.85rem 1rem; transition: border-color 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field textarea { resize: vertical; min-height: 9rem; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.tagline { font-family: var(--display); font-style: italic; font-size: var(--step-2); line-height: 1.3; color: var(--stone); max-width: 24ch; }

/* ---------- Real photography ---------- */
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-light); background: var(--paper); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.94) contrast(1.02); }
.photo-frame--tall { aspect-ratio: 4 / 5; }
.photo-frame--wide { aspect-ratio: 3 / 2; }
.photo-frame--video { aspect-ratio: 16 / 9; }
.photo-frame--square { aspect-ratio: 1 / 1; }
.section--dark .photo-frame, .section--ink .photo-frame { border-color: #ffffff26; }

/* asymmetric image / text split */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (max-width: 899px) {
  .split__media--lead { order: -1; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > .split__media { order: 2; }
}

/* full-bleed photo band with overlay text */
.band { position: relative; min-height: clamp(20rem, 50vw, 30rem); display: flex; align-items: flex-end; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.05); object-position: center 20%; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #14191bf2 40%, #14191bb3 65%, #14191b40 100%); }
.band__content { position: relative; z-index: 1; padding: clamp(2rem, 5vw, 3.2rem) var(--gutter); color: var(--stone); max-width: 42rem; }
.band__content .eyebrow { color: var(--brass-lit); text-shadow: 0 1px 6px #000000a6; }
.band__content p { color: var(--stone); text-shadow: 0 1px 6px #000000a6; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--stone); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }
.foot-grid h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-soft); margin-bottom: 1rem; }
.foot-nav a, .foot-contact a { display: block; text-decoration: none; color: var(--stone); font-family: var(--sans); font-size: 0.9rem; padding: 0.28rem 0; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--brass-lit); }
.foot-brand .brandmark img { height: 48px; }
.foot-brand p { color: var(--stone-soft); font-size: 0.92rem; margin-top: 0.9rem; max-width: 30ch; font-family: var(--serif); }
.foot-base { max-width: 78rem; margin: 2.5rem auto 0; padding: 1.5rem var(--gutter) 0; border-top: 1px solid #ffffff1f; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; font-family: var(--sans); font-size: 0.76rem; color: var(--stone-soft); letter-spacing: 0.03em; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 1px; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.5fr 1fr; }
  .book { grid-template-columns: auto 1fr; }
  .book__cover { max-width: 340px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- mobile nav ---------- */
@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    background: none; border: 1px solid var(--line-light); border-radius: var(--radius);
    padding: 0.5rem 0.8rem; color: var(--ink); cursor: pointer;
  }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--ink); color: var(--stone);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem;
    padding: 2rem var(--gutter); transform: translateX(100%);
    transition: transform 0.4s var(--ease); box-shadow: -20px 0 60px -20px #0009;
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--stone); font-size: 1rem; }
  .nav a::after { background: var(--brass-lit); }
  body.nav-open { overflow: hidden; }
}
