/* ==========================================================================
   Remaker Labs — site styles
   One file, no build step. Mobile first. Light and dark via tokens.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Colour: warm paper, near-black ink, one brick-red accent used sparingly. */
  --bg: #F2EDE4;          /* paper: page ground */
  --fg: #1B1813;          /* ink: text, rules, buttons */
  --muted: #5E574C;       /* secondary text (7:1 on paper) */
  --soft: #3A352D;        /* quiet headings on the trail */
  --border: #CFC6B5;      /* shared structural rule: matches the home hero */
  --rule: var(--border);
  --line: var(--border);
  --panel: #E8E1D3;       /* the tinted section panel */
  --panel-rule: var(--border);
  --card: #F8F5EF;        /* cards and inputs */
  --photo: #E2D9C6;       /* image placeholder / duotone ground */
  --dot: rgba(27, 24, 19, 0.45); /* halftone dots */
  --accent: #B8352A;      /* brick red */
  --accent-line: #B8352A; /* accent as used for text, nodes and the thread */
  --olive: #4B5B3B;       /* quiet second mark (reserved) */
  --header-fg: #1B1813;
  --header-muted: #514A40;
  --header-rule: var(--border);

  /* Type */
  --font-display: "Source Serif 4", Charter, "Bitstream Charter", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Layout */
  --max: 1312px;
  --gutter: clamp(16px, 4.45vw, 64px);
  --band-y: clamp(56px, 7vw, 104px);
  --radius-pill: 999px;

  color-scheme: light;
}

/* Dark theme values, used by the OS setting or the footer toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120F; --fg: #EFE9DE; --muted: #A9A193; --soft: #D6CEBF;
    --border: #3A342C; --panel: #1D1A16;
    --card: #1A1713; --photo: #2A251F; --dot: rgba(239, 233, 222, 0.4);
    --accent-line: #DFA49F;
    --header-fg: #FFF9EF; --header-muted: #D8D0C3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14120F; --fg: #EFE9DE; --muted: #A9A193; --soft: #D6CEBF;
  --border: #3A342C; --panel: #1D1A16;
  --card: #1A1713; --photo: #2A251F; --dot: rgba(239, 233, 222, 0.4);
  --accent-line: #DFA49F;
  --header-fg: #FFF9EF; --header-muted: #D8D0C3;
  color-scheme: dark;
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; }
::selection { background: var(--accent); color: #F8F5EF; }

.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; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-pill); }
.skip-link:focus { top: 12px; }

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); }
.band--intro { padding-block: clamp(32px, 4vw, 56px) clamp(28px, 3.6vw, 52px); }
.band--panel { background: var(--panel); }
.band--ruled { border-top: 1px solid var(--panel-rule); border-bottom: 1px solid var(--panel-rule); }
.band:not(.band--panel).band--ruled { border-color: var(--rule); }
.band--trail { padding-top: clamp(24px, 3vw, 40px); }
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: clamp(24px, 3vw, 44px); }
.stack-xl > * + * { margin-top: clamp(40px, 5vw, 72px); }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Type -------------------------------------------------------------- */
.display { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500; line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance; }
.display em, .display--em em { font-style: italic; color: var(--accent-line); }
.display a { text-decoration: none; }
.display a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.display--hero { font-size: clamp(3rem, 0.55rem + 7.3vw, 7.75rem); letter-spacing: -0.035em; max-width: 20ch; }
.display--xl { font-size: clamp(2.75rem, 1rem + 5vw, 5.5rem); max-width: 16ch; }
.display--entry { font-size: clamp(2.75rem, 0.6rem + 6.6vw, 7rem); letter-spacing: -0.035em; }
.display--lg { font-size: clamp(2.25rem, 0.9rem + 4vw, 5.25rem); line-height: 1; }
.display--md { font-size: clamp(2rem, 1.25rem + 2.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.02em; }
.display--card { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -0.02em; }
.display--section { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.1; letter-spacing: -0.01em; }
.display--step { font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.75rem); line-height: 1.06; font-weight: 400; letter-spacing: -0.015em; }
.display--sm { font-size: 1.75rem; line-height: 1.1; }

.lede { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); line-height: 1.55; max-width: 40em; }
.subtitle { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem); color: var(--muted); }
.subtitle--lg { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.accent { color: var(--accent-line); }
.link-strong { font-weight: 600; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

.prose { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem); line-height: 1.65; max-width: 41em; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6em; line-height: 1.1; margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose img { margin-block: 1.4em; }

/* ---- Buttons & chips --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid var(--fg); white-space: nowrap; transition: opacity .15s ease, transform .15s ease; }
.btn:hover { text-decoration: none; opacity: .86; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--outline { background: transparent; color: var(--fg); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }

.chip { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; line-height: 1.4; white-space: nowrap; }
.chip--in-progress { color: var(--accent-line); }
.chip--published { background: var(--accent-line); border-color: var(--accent-line); color: var(--bg); }
.chip--up-next { color: var(--fg); font-weight: 500; }
.chip--placeholder { color: var(--muted); border-style: dashed; font-weight: 500; font-size: 0.625rem; }

/* ---- Header ------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--header-rule); position: relative; z-index: 5; background: var(--bg); color: var(--header-fg); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark { display: block; width: clamp(180px, 25vw, 280px); flex: 0 1 auto; text-decoration: none; }
.wordmark__logo { width: 100%; height: auto; }
.wordmark__logo--dark { display: none; }
:root[data-theme="dark"] .wordmark__logo--light { display: none; }
:root[data-theme="dark"] .wordmark__logo--dark { display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-primary { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.nav-primary a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; border-bottom: 3px solid transparent; padding-top: 3px; }
.nav-primary a[aria-current="page"] { border-bottom-color: var(--accent-line); }
.nav-primary a:hover { border-bottom-color: var(--fg); }
.nav-secondary { display: none; }
.nav-secondary a:not(.btn) { color: var(--header-muted); text-decoration: none; font-size: 1rem; font-weight: 600; }
.nav-secondary a:not(.btn):hover { color: var(--header-fg); }
.nav-secondary a[aria-current="page"]:not(.btn) { color: var(--header-fg); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent-line); }

.theme-switch { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--header-muted); border-radius: 50%; background: transparent; color: var(--header-muted); cursor: pointer; }
.theme-switch:hover { border-color: var(--header-fg); color: var(--header-fg); }
.theme-switch__icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch__icon--sun { display: none; }
:root[data-theme="dark"] .theme-switch__icon--moon { display: none; }
:root[data-theme="dark"] .theme-switch__icon--sun { display: block; }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: var(--fg); cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.menu-toggle__bars::before { content: ""; position: absolute; top: -7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(-3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(-90deg); }

/* Phone menu: the secondary list drops below the bar. */
.nav-open .nav-secondary { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--header-rule); padding: 12px var(--gutter) 20px; }
.nav-open .nav-secondary a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; color: var(--header-fg); }
.nav-open .nav-secondary__cta { margin-top: 8px; }
.no-js .nav-secondary { display: flex; gap: 16px; }
.no-js .menu-toggle { display: none; }

@media (min-width: 860px) {
  .site-header__inner { min-height: 88px; }
  .site-nav { gap: clamp(28px, 3.4vw, 48px); }
  .menu-toggle { display: none; }
  .nav-secondary, .nav-open .nav-secondary { display: flex; flex-direction: row; align-items: center; gap: 28px; position: static; padding: 0; border: 0; background: none; }
  .nav-open .nav-secondary a:not(.btn) { font-size: 1rem; color: var(--header-muted); min-height: 0; }
  .nav-open .nav-secondary__cta { margin-top: 0; }
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(40px, 5vw, 56px); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-footer__wordmark { display: block; width: clamp(190px, 22vw, 260px); text-decoration: none; }
.site-footer__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--soft); margin-top: 6px; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 4px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
/* ---- Photos ------------------------------------------------------------ */
.figure { display: flex; flex-direction: column; gap: 12px; }
.figure figcaption { font-size: 0.875rem; color: var(--muted); }
.photo { position: relative; background-color: var(--photo); aspect-ratio: 16 / 9; overflow: hidden; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--banner { aspect-ratio: 16 / 9; }
.photo--placeholder { background-image: radial-gradient(var(--dot) 1.2px, transparent 1.7px); background-size: 7px 7px; display: flex; align-items: flex-end; padding: clamp(12px, 1.6vw, 24px); }
.photo__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--fg); color: var(--bg); padding: 6px 10px; }
/* The shared duotone treatment for real photography: ink over the paper tint. */
.duotone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .duotone img { mix-blend-mode: luminosity; opacity: .9; } }
:root[data-theme="dark"] .duotone img { mix-blend-mode: luminosity; opacity: .9; }
@media (min-width: 960px) { .photo--banner { aspect-ratio: 21 / 9; } }

/* ---- Home: big question feature ---------------------------------------- */
.feature { display: grid; gap: 28px; }
.feature__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.feature__status { padding-top: 12px; border-top: 1px solid var(--panel-rule); align-self: stretch; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 4.5vw, 64px); align-items: center; }
  .feature__text { padding-bottom: 32px; } /* centres on the image, not image + caption */
}

/* ---- The trail: shared nodes and rails --------------------------------- */
.node { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; font-family: var(--font-display); font-size: 15px; color: var(--muted); line-height: 1; --node-fill: var(--bg); }
.node--lg { width: 32px; height: 32px; font-size: 18px; }
.node--sm { width: 18px; height: 18px; }
.node--published { background: var(--accent-line); border: 3px solid var(--fg); }
.node--in-progress { border: 4px solid var(--accent-line); background: linear-gradient(90deg, var(--accent-line) 50%, var(--node-fill) 50%); }
.node--sm.node--in-progress { border-width: 3px; }
.node--up-next { border: 3px dashed var(--muted); }
.node--sm.node--up-next { border-width: 2px; }
.node--open { border: 2px dotted var(--muted); }

/* Thread drawing itself as you scroll (JS adds .is-drawn; no JS = drawn). */
.thread { display: block; width: 4px; height: 100%; background: var(--accent-line); transform-origin: top; }
.js [data-draw] .thread { transform: scaleY(0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.js [data-draw].is-drawn .thread { transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-draw] .thread { transform: none; transition: none; } }

/* ---- Home: the two questions immediately ahead -------------------------- */
.home-next { padding-block: clamp(48px, 6vw, 80px); }
.home-next__head { padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.next-questions { display: grid; }
.next-question { display: flex; flex-direction: column; gap: 14px; padding-block: clamp(28px, 3vw, 40px); }
.next-question + .next-question { border-top: 1px solid var(--line); }
.next-question .display { max-width: 22ch; }

@media (min-width: 760px) {
  .next-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-question { padding-right: clamp(32px, 5vw, 72px); }
  .next-question + .next-question { border-top: 0; border-left: 1px solid var(--line); padding-left: clamp(32px, 5vw, 72px); }
}

.step__open { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.3; color: var(--muted); }
.step__open--lg { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); }

/* ---- Research: vertical trail ------------------------------------------ */
.vstep { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }

.vstep__rail { grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; }
.rail { display: block; }
.rail--in { height: 30px; }
.rail--out { flex: 1; min-height: 24px; }
.rail--solid { width: 4px; background: var(--accent-line); }
.rail--dashed { border-left: 4px dashed var(--muted); opacity: .7; }
.rail--dotted { border-left: 4px dotted var(--muted); opacity: .5; }
.vstep--open .rail--in { height: 22px; }
.vstep__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 34px; }
.vstep--in-progress .vstep__meta, .vstep--published .vstep__meta { padding-top: 36px; }
.vstep__body { grid-column: 2; padding: 16px 0 clamp(48px, 5vw, 72px); }
.vstep--up-next .vstep__body { max-width: 880px; padding-bottom: clamp(40px, 4vw, 56px); }
.vstep--open .vstep__body { grid-row: 1; padding: 22px 0 0; }

@media (min-width: 900px) {
  .vstep { grid-template-columns: 64px 160px minmax(0, 1fr); column-gap: 0; }
  .vstep__rail { grid-row: auto; }
  .vstep__meta { flex-direction: column; align-items: flex-start; padding-top: 38px; }
  .vstep__body { grid-column: 3; padding-top: 24px; }
  .vstep--open .vstep__body { grid-column: 3; }
}

/* The live entry's card on the trail */
.entry-card { display: grid; border: 1px solid var(--fg); background: var(--card); }
.entry-card__text { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.entry-card__figure { display: flex; flex-direction: column; border-top: 1px solid var(--fg); }
.entry-card__figure .photo { flex: 1; aspect-ratio: 4 / 3; }
.entry-card__figure figcaption { padding: 14px 18px; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--fg); }
.entry-parts { align-self: stretch; border-top: 1px solid var(--line); }
.entry-parts li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.entry-parts .eyebrow { width: 28px; flex-shrink: 0; }
@media (min-width: 1100px) {
  .entry-card { grid-template-columns: minmax(0, 1fr) 440px; }
  .entry-card__figure { border-top: 0; border-left: 1px solid var(--fg); }
  .entry-card__figure .photo { aspect-ratio: auto; }
}

/* ---- Call-out & sign-up ------------------------------------------------ */
.callout { display: grid; gap: 28px; align-items: end; }
.callout__text { font-weight: 400; line-height: 1.04; max-width: 22ch; }
.callout__action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (min-width: 960px) {
  .callout { grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; }
  .callout__action { align-items: stretch; text-align: center; }
}

.signup { display: grid; gap: 32px; align-items: center; }
.signup__form { display: flex; flex-direction: column; gap: 12px; }
.signup__form label { font-weight: 600; }
.signup__row { display: flex; flex-direction: column; gap: 10px; }
.signup__row input { flex: 1; min-height: 56px; padding: 0 20px; font: inherit; font-size: 1.0625rem; background: var(--card); color: var(--fg); border: 1px solid var(--fg); border-radius: var(--radius-pill); min-width: 0; }
.signup__row input::placeholder { color: var(--muted); }
.signup__note { font-size: 0.9375rem; }
@media (min-width: 600px) { .signup__row { flex-direction: row; } }
@media (min-width: 960px) { .signup { grid-template-columns: minmax(0, 1fr) 560px; gap: 80px; } }

/* ---- Entry page -------------------------------------------------------- */
.part-of { display: grid; gap: 6px 20px; padding: 16px var(--gutter); border-bottom: 1px solid var(--rule); text-decoration: none; }
.part-of:hover .part-of__title { text-decoration: underline; }
.part-of__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.625rem); line-height: 1.2; }
.part-of__title em { font-style: italic; color: var(--accent-line); }
.part-of__step { font-size: 0.6875rem; }
@media (min-width: 960px) {
  .part-of { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; padding-block: 20px; }
  .part-of { padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }
}
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.entry__sections > * + * { margin-top: clamp(48px, 5vw, 72px); }
.entry-section { display: grid; gap: 20px; padding-top: 28px; border-top: 1px solid var(--rule); }
.entry-section__head { display: flex; flex-direction: column; gap: 10px; }
.entry-section__body { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 960px) { .entry-section { grid-template-columns: 340px minmax(0, 1fr); gap: 64px; } }

.placeholder { border: 1.5px dashed var(--muted); padding: 24px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.placeholder p { font-size: 1.1875rem; line-height: 1.6; }

.people { display: grid; gap: 16px; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); }
.person--placeholder { border: 1.5px dashed var(--muted); }
.person__photo { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background-color: var(--photo); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.7px); background-size: 7px 7px; }
.duotone-img { filter: grayscale(1) contrast(1.08); }
.person__text { display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
.person__name { font-size: 1.125rem; font-weight: 700; }

.pull-quote { margin-top: 8px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.pull-quote cite { display: block; margin-top: 14px; font-style: normal; }

.next-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding: clamp(24px, 3vw, 32px); background: var(--panel); text-decoration: none; }
.next-card:hover .display { text-decoration: underline; text-decoration-thickness: 2px; }
.next-card__rail { display: flex; flex-direction: column; align-items: center; }
.next-card__rail .rail--in { height: 20px; }
.next-card__rail .node { --node-fill: var(--panel); }
.next-card__text { display: flex; flex-direction: column; gap: 12px; }

/* ---- About ------------------------------------------------------------- */
.about { padding: 0; }
.about__grid { display: grid; }
.about__main { width: 100%; max-width: 1120px; margin-inline: auto; padding: clamp(48px, 7vw, 112px) var(--gutter) clamp(48px, 6vw, 96px); }
.about__main .lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.6; }
.about__panel { background: var(--panel); border-top: 1px solid var(--panel-rule); padding: clamp(40px, 7vw, 112px) clamp(24px, 4vw, 56px); }
.about__panel .eyebrow { display: block; padding-bottom: 28px; }
@media (min-width: 1200px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); }
  .about__main { max-width: none; margin-inline: 0; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: clamp(48px, 5vw, 80px); }
  .about__panel { border-top: 0; border-left: 1px solid var(--panel-rule); }
}
.how__item { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 20px; }
.how__mark { display: flex; flex-direction: column; align-items: center; }
.how__square { width: 32px; height: 32px; background: var(--fg); flex-shrink: 0; }
.how__ring { width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--fg); flex-shrink: 0; }
.how__ring--dashed { border: 3px dashed var(--fg); }
.how__line { width: 4px; flex: 1; background: var(--fg); min-height: 24px; }
.how__line--dashed { width: 0; background: none; border-left: 4px dashed var(--fg); }
.how__text { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; padding-bottom: 32px; }
.how__item--big .how__text { font-size: 1.875rem; font-weight: 600; padding-bottom: 40px; }
.how__item:last-child .how__text { padding-bottom: 0; }

/* ---- Contact ----------------------------------------------------------- */
.contact__layout { display: grid; gap: clamp(40px, 7vw, 96px); }
.contact__intro { align-content: start; }
.contact__intro .lede { max-width: 32em; }
.contact__form-panel { display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--rule); background: var(--card); }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact-form__grid { display: grid; gap: 22px; }
.contact-form__field { display: flex; flex-direction: column; gap: 8px; }
.contact-form__label { font-weight: 700; }
.contact-form input:not([type="hidden"]), .contact-form select, .contact-form textarea { width: 100%; min-height: 54px; padding: 13px 16px; border: 1px solid var(--fg); border-radius: 0; background: var(--bg); color: var(--fg); font: inherit; }
.contact-form textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.contact-form select { cursor: pointer; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.contact-form__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (min-width: 720px) { .contact-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .contact__layout { grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr); align-items: start; } }

/* ---- Research: more big questions -------------------------------------- */
.card-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-link { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--fg); background: var(--card); text-decoration: none; height: 100%; }
.card-link:hover .display { text-decoration: underline; }

/* ---- Crumbs ------------------------------------------------------------ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.crumbs__dash { width: 40px; border-top: 1px solid var(--fg); }

/* ---- Print ------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, #follow, .menu-toggle { display: none; }
  .band--panel { background: none; }
}
