/* cjoconnell.uk — brand tokens and layout. Source: V.3 CJ O'Connell Brand Identity (MK600MK). */

/* ------------------------------------------------------------------
   FONTS
   All fonts licensed (29 Oct 2026): Cy Grotesk Wide Demi (MyFonts), Cartograph CF Regular (Connary Fagen), Poppins (OFL)
------------------------------------------------------------------ */
@font-face { font-family: "Cy Grotesk Wide"; src: url("fonts/cy-grotesk-wide-demi.woff2") format("woff2"); font-weight: 600; font-display: swap; } /* Licensed: Cy Grotesk Wide Demi, MyFonts webfont, CJ O'Connell Ltd, 29 Oct 2026 */
@font-face { font-family: "Cartograph Mono"; src: url("fonts/cartograph-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; } /* Licensed: Cartograph CF Regular, web, CJ O'Connell Ltd, 29 Oct 2026 */
@font-face { font-family: "Poppins"; src: url("fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Palette (V.3) */
  --charcoal: #1F1D1E;
  --taupe: #635E58;
  --sand: #B0A090;
  --stone: #D6D3CB;
  --ivory: #F5F5EE;
  --white: #FFFFFF;

  /* Type (V.3: headlines 0.95 line, body 1.4 line, letter spacing 0) */
  --font-head: "Cy Grotesk Wide", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cartograph Mono", ui-monospace, Menlo, monospace;

  /* Spacing */
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 12vw, 176px);
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  color: var(--taupe);
}
.dark .label { color: var(--sand); }

/* ---------- Header ---------- */
.top { padding: 28px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.top .mark { width: 30px; color: var(--charcoal); }
.top a { text-decoration: none; }

/* ---------- Hero: name → title → line ---------- */
.hero { padding: clamp(24px, 6vw, 72px) 0 var(--section); }
.hero .wrap { display: grid; gap: clamp(40px, 6vw, 96px); align-items: end; }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(38px, 7.2vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}
.hero .title { margin-top: 28px; }
.hero .line {
  margin-top: 12px;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 300;
}
.portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  background: var(--stone);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .hero .text { padding-bottom: 8px; }
}

/* ---------- The code (dark band) ---------- */
.dark { background: var(--charcoal); color: var(--ivory); }
.code { padding: var(--section) 0; }
.code p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 58px);
  line-height: 1.02;
  max-width: 17ch;
}

/* ---------- Selected work ---------- */
.work { padding: var(--section) 0 0; }
.work h2, .books h2 { margin-bottom: 40px; }
.exits { list-style: none; border-top: 1px solid var(--stone); }
.exits li { border-bottom: 1px solid var(--stone); }
.exits a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 32px 0;
  text-decoration: none;
}
.exits .verb { order: -1; }
.exits .name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.95;
}
.exits .what { color: var(--taupe); max-width: 46ch; }
.exits .go { font-family: var(--font-mono); font-size: 13px; color: var(--charcoal); white-space: nowrap; }
.exits a:hover .go, .exits a:focus-visible .go { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .exits a { grid-template-columns: 160px 1fr 1.1fr auto; align-items: baseline; gap: 32px; }
  .exits .verb { order: 0; }
  .exits .go { text-align: right; }
}

/* ---------- Books ---------- */
.books { padding: clamp(64px, 8vw, 112px) 0 var(--section); }
.shelf { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.shelf a { text-decoration: none; display: block; }
.cover {
  aspect-ratio: 2 / 3;
  background: var(--charcoal);
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 0.95;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.has-img { padding: 0; }
.shelf .label { margin-top: 12px; }
@media (min-width: 700px) { .shelf { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Current focus ---------- */
.focus { padding: var(--section) 0; background: var(--stone); }
.focus p { margin-top: 20px; font-size: clamp(20px, 2.2vw, 28px); max-width: 30ch; }

/* ---------- Contact / footer ---------- */
.contact { padding: var(--section) 0 48px; }
.contact .email {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 46px);
  line-height: 0.95;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact .email:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.social { margin-top: 28px; display: flex; gap: 24px; flex-wrap: wrap; }
.social a { text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 2px; }
.foot { margin-top: clamp(88px, 10vw, 140px); }
.foot .wordmark { width: min(100%, 760px); color: var(--charcoal); }
.foot .small { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .small a { text-decoration: none; }

/* ---------- Simple page (privacy) ---------- */
.page { padding: 40px 0 var(--section); }
.page h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 4vw, 52px); line-height: 0.95; margin-bottom: 40px; }
.page h2 { font-family: var(--font-body); font-weight: 500; font-size: 18px; margin: 36px 0 10px; }
.page p, .page li { max-width: 62ch; margin-bottom: 12px; }
.page ul { padding-left: 20px; }

/* ---------- From the journal ---------- */
.focus .journal-link { text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 3vw, 40px); line-height: 0.95; }
.focus .journal-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.focus .journal-line { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: var(--taupe); max-width: 46ch; }
.focus .journal-go { display: inline-block; margin-top: 28px; color: var(--charcoal); }

/* =================================================================
   v2 (28 Oct 2026): larger labels, context section, gallery
================================================================= */

/* Section labels — larger, readable */
.kicker {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.2;
  color: var(--taupe);
  letter-spacing: 0;
}
.work h2.kicker, .books h2.kicker, .about h2.kicker { margin-bottom: 32px; }

/* Hero */
.hero .title { margin-top: 28px; }
.hero .line {
  margin-top: 16px;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.25;
  font-weight: 300;
}

/* What I do */
.about { padding: 0 0 var(--section); }
.about .wrap { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about .lead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.02;
}
.about .lead + p { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); max-width: 40ch; }
.points { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 28px; border-top: 1px solid var(--stone); padding-top: 32px; }
.points h3 { font-family: var(--font-body); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.points p { color: var(--taupe); max-width: 48ch; }
@media (min-width: 900px) {
  .about .wrap { grid-template-columns: 0.85fr 1.15fr; }
  .about-text { padding-top: 12px; }
}

/* Exits — larger verbs */
.exits .verb {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.15vw, 16px);
  color: var(--taupe);
}
.exits .what { font-size: 17px; }
.exits .go { font-size: 14px; }
@media (min-width: 900px) {
  .exits a { grid-template-columns: 190px 1fr 1.1fr auto; }
}

/* Gallery — three equal images, no captions */
.gallery { padding: var(--section) 0 0; }
.gallery .wrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .gallery .wrap { grid-template-columns: repeat(3, 1fr); } }

/* Books labels */
.shelf-label { margin-top: 12px; font-family: var(--font-mono); font-size: 14px; color: var(--taupe); }

/* Journal link */
.focus .journal-go { font-family: var(--font-mono); font-size: 15px; text-underline-offset: 4px; }

/* Contact */
.social a { font-size: 17px; }
.exits .name { white-space: nowrap; }
.points p { font-size: 17px; }
@media (min-width: 900px) {
  .exits a { grid-template-columns: 170px minmax(0, 34%) 1fr 190px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .exits .name { white-space: normal; }
}
@media (max-width: 699px) {
  .gallery .wrap { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery figure:nth-child(3) { display: none; }
}

/* Brand logos in the exits — one colour, matched optical size */
.exits .name { display: flex; align-items: center; min-height: 64px; }
.exits .name img { display: block; width: auto; }
.exits .logo-h { height: clamp(24px, 2.4vw, 34px); }
.exits .logo-s { height: clamp(64px, 6vw, 88px); }
@media (min-width: 900px) { .exits a { align-items: center; } }

/* =================================================================
   v3 hero (28 Oct 2026): wide editorial portrait, text in ivory
================================================================= */
.hero { padding: 0; background: #262626; color: var(--ivory); position: relative; }
.hero .wrap { display: block; }
.hero-img img { display: block; width: 100%; height: auto; filter: none; }
.hero-text { padding: 40px 0 64px; }
.hero h1 { color: var(--ivory); }
.hero .kicker { color: var(--sand); margin-top: 24px; }
.hero .line { color: var(--ivory); }
@media (min-width: 900px) {
  .hero-text { position: absolute; inset: 0; display: flex; align-items: center; padding: 0; }
  .hero-text .wrap { width: 100%; }
  .hero-text .wrap > * { max-width: 36%; }
  .hero h1 { font-size: clamp(40px, 4.6vw, 72px); }
  .hero .line { font-size: clamp(18px, 1.7vw, 26px); }
}
.about { padding-top: var(--section); }

/* =================================================================
   v4 (28 Oct 2026): one space per business, book tree, in person
================================================================= */
.features { padding: var(--section) 0 0; }
.features > .wrap .kicker { margin-bottom: 8px; }
.feature { padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--stone); }
.feature:last-child { border-bottom: 0; }
.feature .wrap { display: grid; gap: clamp(28px, 5vw, 88px); align-items: center; }
.feature-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-logo { display: block; margin: 18px 0 28px; width: auto; }
.feature-logo.logo-h { height: clamp(30px, 3vw, 44px); }
.feature-logo.logo-s { height: clamp(72px, 7vw, 104px); }
.feature-lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.05; max-width: 22ch; }
.feature-body { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); color: var(--taupe); max-width: 40ch; }
.feature-go { display: inline-block; margin-top: 28px; font-family: var(--font-mono); font-size: 15px; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .feature .wrap { grid-template-columns: 0.9fr 1.1fr; }
  .feature.flip .feature-img { order: 2; }
  .feature-img { max-width: 520px; }
  .feature.flip .feature-img { justify-self: end; }
}

/* Books: root + four */
.books { padding: var(--section) 0; border-top: 1px solid var(--stone); }
.books-lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 3.4vw, 48px); line-height: 1; }
.books-sub { margin-top: 16px; font-size: clamp(17px, 1.4vw, 20px); color: var(--taupe); max-width: 46ch; }
.tree { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 24px; }
.root-book { text-decoration: none; display: block; max-width: 420px; }
.shelf.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .tree { grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
  .shelf.four { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .shelf.four .cover { max-width: none; }
}

/* In person */
.inperson { padding: 0 0 var(--section); }
.inperson-lead { margin-top: 12px; font-size: clamp(19px, 1.7vw, 24px); max-width: 40ch; }
.domains { list-style: none; margin-top: 32px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--stone); }
.domains li { border-bottom: 1px solid var(--stone); }
.domains a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; text-decoration: none; }
.d-name { font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 2vw, 28px); line-height: 1; }
.d-what { font-family: var(--font-mono); font-size: 15px; color: var(--taupe); }
.domains a:hover .d-name { text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 900px) {
  .domains { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 24px; }
  .domains li { border-bottom: 0; border-top: 1px solid var(--charcoal); }
  .domains a { flex-direction: column; gap: 10px; padding: 20px 0 0; }
}
/* Books: the root above, the four domains below */
@media (min-width: 0px) {
  .tree { display: block; }
  .root-book { max-width: 340px; }
  .shelf.four { margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--stone); grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
@media (min-width: 900px) {
  .shelf.four { grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1000px; }
}
.tree-top { display: grid; gap: 28px; }
.root-text .books-sub { margin-top: 16px; }
@media (min-width: 900px) {
  .tree-top { grid-template-columns: 340px 1fr; gap: clamp(40px, 5vw, 88px); align-items: center; }
}

/* =================================================================
   v5 (29 Oct 2026): Hero_1, stacked title, tagline, domain logos
================================================================= */
.hero { background: #2a2a29; }
.hero .title { line-height: 1.6; }
.hero .tagline {
  margin-top: 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.15;
  color: var(--sand);
}
@media (min-width: 900px) {
  .hero-img img { max-height: 88vh; object-fit: cover; object-position: 50% 20%; }
  .hero-text .wrap > * { max-width: 30%; }
}
.d-logo { display: flex; align-items: center; height: 64px; }
.d-logo img { display: block; width: auto; height: auto; max-height: 40px; max-width: 170px; }
.d-logo img[alt="STANDARDS"] { max-width: 200px; }
.d-logo img[alt="From Alignment"] { max-height: 60px; }
@media (min-width: 900px) {
  .domains a { gap: 14px; }
}
@media (min-width: 900px) { .hero-text .wrap > * { max-width: 34%; } }
.d-logo img { height: 30px; max-height: none; max-width: none; width: auto; }
.d-logo img[alt="SELF"] { height: 34px; }
.d-logo img[alt="STANDARDS"] { height: 15px; }
.d-logo img[alt="From Alignment"] { height: 60px; }

/* =================================================================
   v6 (29 Oct 2026): story page, skip link, back link
================================================================= */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--charcoal); color: var(--ivory); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.top .back { text-decoration: none; font-size: 14px; }
.story { padding: clamp(24px, 5vw, 64px) 0 var(--section); }
.story-head h1 { margin-top: 20px; font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 5.4vw, 80px); line-height: 0.95; }
.story-body { margin-top: clamp(48px, 7vw, 104px); display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.story-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.fragments { list-style: none; border-top: 1px solid var(--stone); }
.fragments li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--stone); }
.fragments .f-mark { font-family: var(--font-mono); font-size: 15px; color: var(--taupe); }
.fragments li p:last-child { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; max-width: 34ch; }
.story-foot { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 16px 40px; }
@media (min-width: 900px) {
  .story-body { grid-template-columns: 0.8fr 1.2fr; }
  .story-img { position: sticky; top: 32px; }
  .fragments li { grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline; }
}
.page h1 { margin-top: 16px; }
.focus .journal-line { color: var(--charcoal); }
/* story: balance photo with the fragments (no empty column) */
@media (min-width: 900px) {
  .story-body { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .story-img { position: static; aspect-ratio: auto; height: 100%; min-height: 560px; }
}
.story-img img { object-position: 50% 25%; }

/* v7 polish (29 Oct 2026) */
.d-logo img[alt="From Alignment"] { height: 30px; }
.about .lead { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.08; }
.features { padding-top: clamp(72px, 9vw, 128px); }
.features > .wrap .kicker { margin-bottom: 0; }
.features .feature:first-of-type { padding-top: clamp(20px, 3vw, 36px); }
.d-logo img[alt="From Alignment"] { height: 38px; }
/* hero: nudge the portrait right so the text has clear space */
.hero-img { display: block; overflow: hidden; background: #2a2a29; }

/* From Alignment feature logo: larger, sits on the text's left edge */
.feature-logo.logo-s { height: clamp(110px, 10.5vw, 150px); margin: 14px 0 22px -2px; }
.feature-logo.logo-s { margin-top: 22px; margin-bottom: 26px; }
/* phone polish */
@media (max-width: 899px) {
  .root-book { max-width: 62%; }
  .d-logo { height: 48px; }
  .d-logo img { height: 24px; }
  .d-logo img[alt="SELF"] { height: 27px; }
  .d-logo img[alt="STANDARDS"] { height: 12px; }
  .d-logo img[alt="From Alignment"] { height: 30px; }
  .domains a { align-items: center; padding: 16px 0; }
}

/* v8 (29 Oct 2026): For example block; In person as brand marks */
.example { margin-top: 32px; padding: 24px 0 0; border-top: 1px solid var(--stone); }
.example .kicker { margin-bottom: 10px; }
.example p:not(.kicker) { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; max-width: 44ch; }
.example .bdh { margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); }
.domains.marks a { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 24px; }
.d-mark { height: 64px; display: flex; align-items: center; }
.d-mark img { height: 52px; width: auto; display: block; }
.domains.marks .d-name { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); }
.domains.marks .d-what { margin-top: 6px; }
@media (max-width: 899px) {
  .domains.marks { grid-template-columns: repeat(2, 1fr); gap: 0 16px; border-top: 0; }
  .domains.marks li { border-bottom: 0; border-top: 1px solid var(--charcoal); }
  .domains.marks a { padding: 18px 0 24px; }
  .d-mark { height: 52px; } .d-mark img { height: 42px; }
}
.example .gave { margin-top: 24px; }

/* v9 (29 Oct 2026): tagline moment after the hero */
.motto { padding: clamp(72px, 9vw, 128px) 0; text-align: center; }
.motto .wrap { display: flex; flex-direction: column; align-items: center; }
.motto .m-line { font-family: var(--font-head); font-weight: 600; color: var(--taupe); font-size: clamp(34px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.01em; }
.motto-img { width: min(420px, 72vw); aspect-ratio: 4 / 5; margin: clamp(28px, 3.5vw, 48px) 0; overflow: hidden; background: var(--stone); }
.motto-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.motto .m-name { margin-top: 28px; }
.motto .m-name::after { content: ""; display: block; width: 120px; height: 1px; background: var(--sand); margin: 32px auto 0; }
.motto + .about { padding-top: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .about-img { position: sticky; top: 48px; } }

/* v10: Collapse-Proof feature and the book tree merged into one space */
.features .books { border-top: 1px solid var(--stone); padding: var(--section) 0; }
.features .books .cp-head { margin: 14px 0 0; line-height: 0; }
.features .books .feature-lead { max-width: 24ch; }
.features .books + .feature { border-top: 1px solid var(--stone); }
.feature-name { font-family: var(--font-head); font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; margin: 12px 0 22px; }

/* v11: For example in its own band */
.example-band { background: var(--stone); padding: var(--section) 0; }
.ex-grid { margin-top: clamp(28px, 4vw, 56px); display: grid; gap: 28px; }
.ex-text { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 40ch; color: var(--charcoal); }
.ex-big { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.01em; color: var(--charcoal); max-width: 16ch; }
.ex-big + .ex-text { margin-top: 24px; }
@media (min-width: 900px) {
  .ex-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 7vw, 120px); row-gap: clamp(56px, 6vw, 96px); align-items: center; }
  .ex-big + .ex-text { margin-top: 0; }
  .ex-grid .ex-text:nth-of-type(3) { order: 4; } .ex-grid .ex-big:nth-of-type(4) { order: 3; }
}

/* v12: the code band carries a photo, to break up the text */
.code-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.code-img { aspect-ratio: 4 / 5; overflow: hidden; max-width: 460px; width: 100%; }
.code-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .code-grid { grid-template-columns: 1.2fr 0.8fr; } .code-img { justify-self: end; } }
@media (max-width: 899px) { .code-img { max-width: 78%; } }

/* v13: review fixes */
.feature-h { margin: 0; line-height: 0; }
.inperson { border-top: 1px solid var(--stone); padding-top: var(--section) !important; margin-top: 0; }
@media (min-width: 900px) { .about-img { position: static; } .about .wrap { align-items: center; } }

/* v14: In person as its own dark band */
.inperson.dark { background: var(--charcoal); color: var(--ivory); border-top: 0; padding: var(--section) 0 !important; }
.inperson.dark .kicker { color: var(--sand); }
.inperson-big { margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.01em; max-width: 22ch; }
.inperson.dark .inperson-lead { color: var(--soft-stone, #D6D3CB); margin-top: 18px; }
.inperson.dark .domains.marks li { border-top-color: rgba(245,245,238,.35); }
.inperson.dark .domains.marks { margin-top: clamp(40px, 5vw, 64px); }
.inperson.dark .d-name { color: var(--ivory); }
.inperson.dark .d-what { color: var(--sand); }
.inperson.dark .d-mark img { filter: invert(1) brightness(1.05); }
.inperson.dark .d-mark img[src*="mark-fa"] { filter: none; }

/* v15: breathing room in the In person line; The work text fills the photo's height exactly */
.inperson-big span { display: block; }
.inperson-big span + span { margin-top: 0.5em; }
@media (min-width: 900px) {
  .about .wrap { align-items: stretch; }
  .about-img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .about-img img { height: 100%; object-position: 40% 30%; }
  .about-text { padding-top: 0; display: flex; flex-direction: column; }
  .about .points { margin-top: 36px; padding-top: 28px; gap: 22px; }
  .about .feature-go { margin-top: 28px; align-self: flex-start; }
}

/* v16: the four domain books span the full width */
@media (min-width: 900px) {
  .shelf.four { max-width: none; gap: clamp(20px, 2.4vw, 36px); }
  .tree-top { grid-template-columns: minmax(300px, 0.9fr) 1.1fr; }
  .root-book { max-width: 400px; }
}

/* v17: the story page is easy to find */
.top-nav { display: flex; align-items: center; gap: 20px; }
.story-btn { font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em; color: var(--charcoal); text-decoration: none; border: 1px solid var(--charcoal); padding: 9px 16px; line-height: 1; transition: background .2s, color .2s; }
.story-btn:hover, .story-btn:focus-visible { background: var(--charcoal); color: var(--ivory); }
.motto .m-story { margin-top: 32px; }
.motto .m-story::after { content: none; }
@media (max-width: 599px) { .top-nav .where { display: none; } }

/* v18: a line from the front of each domain book */
.shelf-quote { margin-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.25; color: var(--charcoal); max-width: 26ch; }
.shelf.four a:hover .shelf-quote { text-decoration: underline; text-underline-offset: 3px; }
.shelf-quote { font-family: var(--font-body); font-weight: 400; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.4; }
@media (max-width: 599px) { .shelf-quote { font-size: 14px; } }

/* v19: the four book lines share one form — centred, same size, same height */
.shelf.four a { display: flex; flex-direction: column; height: 100%; }
.shelf.four .shelf-label { text-align: center; }
.shelf-quote { margin: 8px auto 0; text-align: center; max-width: 24ch; min-height: 5.6em; display: flex; align-items: center; justify-content: center; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.4; }
@media (max-width: 599px) { .shelf-quote { font-size: 14px; min-height: 8.4em; max-width: none; } }
.shelf-quote { min-height: 7em; }
@media (max-width: 599px) { .shelf-quote { min-height: 9.8em; } }
/* the root book's line: same form as the four, a touch larger */
.root-book .shelf-label { text-align: center; margin-top: 14px; }
.root-quote { min-height: 0; max-width: 30ch; font-size: clamp(16px, 1.3vw, 19px); }
@media (max-width: 599px) { .root-quote { min-height: 0; font-size: 15px; } }
/* root quote moved beside the book, in the text column */
.root-text .root-quote { display: block; min-height: 0; margin: 28px 0 0; padding-left: 20px; border-left: 2px solid var(--sand); text-align: left; max-width: 40ch; font-family: var(--font-body); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--charcoal); }
.root-text .feature-go { margin-top: 28px; display: inline-block; }
.root-text .root-quote { border-left: 0; padding-left: 0; }

/* v20: story page — pull quote and the two places */
.story-quote { margin: clamp(72px, 9vw, 128px) auto 0; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.01em; max-width: 18ch; }
.places { margin-top: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); }
.places figure { margin: 0; }
.places img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--stone); }
.places figcaption { margin-top: 12px; }
.story-foot { margin-top: clamp(48px, 6vw, 80px); }
.story-quote { max-width: 22ch; }
