/* secretadopters.com. Paper file "secretadopters.com" is the source of truth; docs/design/constraints.md holds the rules.
   Colour lives in the tokens below so a colourway swap is one block (decision 16, 22 Oct 2026: colourway 5 Cadmium, gallery white and cadmium red). */
@font-face { font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-regular.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4-regular.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4-italic.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-regular.woff2) format('woff2'); }

:root {
  --paper: #FFFFFF; --surface: #F5F5F7; --hairline: #E5E5E8; --ink: #1C1B1F; --ink-muted: #5B5962;
  --accent: #A80D26; --accent-deep: #850A1E; --tint: #FBE7EA; --inverse: #FFFFFF;
  --teal: #2E7D72; --chev-1: #A80D26; --chev-2: #8A2939; --chev-3: #6B454C; --chev-4: #4C615F; --chev-5: #2E7D72; --chev-text: #FFFFFF;
  --display: Fraunces, Georgia, serif; --body: 'Source Serif 4', Georgia, serif; --ui: Inter, system-ui, sans-serif;
  --prose: 680px; --content: 1160px; --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #16131D; --surface: #1F1B29; --hairline: #322C41; --ink: #F1EFF7; --ink-muted: #ABA4BD; --accent: #FF8A95; --accent-deep: #FFA8B0; --tint: #2E1A1E; --inverse: #16131D; --teal: #4FB3A5; --chev-1: #FF8A95; --chev-2: #D39499; --chev-3: #A79E9D; --chev-4: #7BA9A1; --chev-5: #4FB3A5; --chev-text: #16131D; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 28px; font-variation-settings: 'opsz' 17; }
::selection { background: var(--tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease); }
a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: 40px; line-height: 46px; font-variation-settings: 'opsz' 96; }
h2 { font-size: 26px; line-height: 32px; }
h3 { font-size: 22px; line-height: 28px; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-prose { width: 100%; max-width: calc(var(--prose) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-art { width: 100%; max-width: calc(960px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--ui); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.label a { color: var(--ink-muted); }
.label a:hover { color: var(--accent); }
.muted { color: var(--ink-muted); }
.small { font-family: var(--ui); font-size: 14px; line-height: 20px; }
.lead { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: var(--prose); }
.dek { font-size: 19px; line-height: 30px; color: var(--ink-muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; font-family: var(--ui); }
.skip:focus { left: 8px; z-index: 10; }

/* Buttons: 44px tall, one filled button per page. */
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--inverse); font-family: var(--ui); font-size: 15px; font-weight: 500; text-decoration: none; transition: background 150ms var(--ease); }
.button:hover { background: var(--accent-deep); color: var(--inverse); }
.button-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-head { border-bottom: 1px solid var(--hairline); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent); }
.mark .s { fill: var(--paper); }
/* The bubble's tail sits below its circle, so the wordmark lifts a little to centre on the circle, not the box. */
.brand-name { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 24px; color: var(--ink); white-space: nowrap; margin-top: -4px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 24px; list-style: none; }
.nav-list a { font-family: var(--ui); font-size: 15px; line-height: 22px; color: var(--ink); text-decoration: none; padding: 11px 0; display: inline-block; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--ui); font-size: 15px; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 12px; padding: 8px; list-style: none; z-index: 20; box-shadow: 0 12px 32px -12px rgba(20, 16, 30, .25); }
.menu-list a { display: block; padding: 11px 12px; font-family: var(--ui); font-size: 15px; line-height: 22px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.menu-list a:hover, .menu-list a[aria-current] { background: var(--surface); color: var(--accent); }

/* Home: the masthead intro, the front-page grid, the chevron run and the latest list (decision 22, Paper page 03). */
.intro { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px var(--gutter) 24px; text-align: center; }
.intro::after { content: ''; display: block; width: 100%; height: 0; border-bottom: 3px double var(--ink); margin-top: 12px; }
.intro-brand { display: flex; align-items: center; gap: 16px; }
.intro-brand .mark { width: 60px; height: 60px; }
.intro h1 { font-size: 52px; line-height: 56px; font-variation-settings: 'opsz' 144; white-space: nowrap; margin-top: -7px; }
.slogan { font-family: var(--display); font-style: italic; font-size: 28px; line-height: 30px; color: var(--ink); }
.intro-line { font-size: 17px; line-height: 26px; color: var(--ink-muted); max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 19fr) minmax(0, 9fr); gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 48px; }
.featured { position: relative; }
.featured-art { display: block; }
.featured .post-art { aspect-ratio: 760 / 560; }
.featured-cut { position: absolute; left: 0; bottom: 0; width: 71%; background: var(--paper); padding: 24px 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.featured-cut h2 { font-size: 40px; line-height: 46px; font-variation-settings: 'opsz' 96; }
.featured-cut h2 a, .side-post h3 a, .post-row h3 a, .read-next a { color: var(--ink); text-decoration: none; }
.featured-cut h2 a:hover, .side-post h3 a:hover, .post-row h3 a:hover, .read-next a:hover { color: var(--accent); text-decoration: underline; }
.side { display: flex; flex-direction: column; gap: 32px; }
.side-post { display: flex; flex-direction: column; gap: 10px; }
.side-art { display: block; }
.side-post h3 { font-size: 24px; line-height: 30px; }
.post-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.art-card { display: flex; align-items: flex-end; padding: 24px; background: var(--tint); color: var(--accent); font-family: var(--display); font-weight: 500; font-style: italic; font-size: 40px; line-height: 44px; letter-spacing: -0.01em; }
.thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.thumb.art-card { padding: 12px; font-size: 20px; line-height: 22px; }
.side .art-card { font-size: 28px; line-height: 32px; }
/* Stages as chevrons. The polygon stretches to fill its slot; the current stage gets an ink outline. */
.stages { padding-top: 8px; padding-bottom: 48px; }
.chev-list { list-style: none; display: flex; margin-top: 16px; }
.chev { flex: 1; position: relative; height: 60px; margin-left: -8px; }
.chev:first-child { margin-left: 0; }
.chev a { position: absolute; inset: 0; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-left: 16px; color: var(--chev-text); text-decoration: none; }
.chev:first-child a { padding-left: 0; }
.chev svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.chev polygon { transition: opacity 150ms var(--ease); }
.chev a:hover polygon { opacity: .88; }
.chev a[aria-current] polygon { stroke: var(--ink); stroke-width: 3; }
.chev-1 polygon { fill: var(--chev-1); } .chev-2 polygon { fill: var(--chev-2); } .chev-3 polygon { fill: var(--chev-3); } .chev-4 polygon { fill: var(--chev-4); } .chev-5 polygon { fill: var(--chev-5); }
.chev-name { font-family: var(--ui); font-size: 15px; line-height: 20px; }
.chev-count { font-family: var(--ui); font-size: 12px; line-height: 16px; opacity: .8; }
.latest { padding-bottom: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.section-head a { font-family: var(--ui); font-size: 14px; }
.list-label { margin-bottom: 16px; }

/* Post lists */
.post-list { list-style: none; }
.post-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 120px; gap: 40px; align-items: start; padding: 32px 0; border-top: 1px solid var(--hairline); }
.post-row:last-child { border-bottom: 1px solid var(--hairline); }
.post-row-text { display: flex; flex-direction: column; gap: 10px; }
.post-row h3 { font-size: 28px; line-height: 34px; }
.post-row .dek { font-size: 17px; line-height: 26px; }
.post-row-art { display: block; }
.post-row-date { text-align: right; }
.empty { padding: 40px 0; border-top: 1px solid var(--hairline); }
.empty p { color: var(--ink-muted); font-size: 17px; line-height: 26px; }
.list-head { padding: 0 var(--gutter) 40px; display: flex; flex-direction: column; gap: 12px; }
.list-head h1 { display: flex; align-items: center; gap: 16px; font-size: 48px; line-height: 54px; font-variation-settings: 'opsz' 144; }
.list-head .stage-num { font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 46px; color: var(--accent); width: auto; align-self: baseline; }
.list-head .lead { font-size: 21px; line-height: 32px; max-width: 760px; }
.person { width: 48px; height: 48px; flex-shrink: 0; fill: var(--accent); }
.person .p { fill: var(--paper); }

/* Post */
.post-head { padding: 40px var(--gutter) 32px; display: flex; flex-direction: column; gap: 16px; }
.post-head h1 { font-size: 48px; line-height: 54px; font-variation-settings: 'opsz' 144; }
.post-head .dek { font-size: 21px; line-height: 32px; }
.byline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-date { font-size: 13px; line-height: 18px; margin-top: -4px; }
.post-art-wrap { padding-bottom: 8px; }
.post-art-wrap .art-card { aspect-ratio: 1160 / 520; }
.review-of { font-family: var(--ui); font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.post-body { padding-top: 32px; padding-bottom: 40px; font-size: 19px; line-height: 30px; font-variation-settings: 'opsz' 19; }
.post-body > * + * { margin-top: 24px; }
.post-body h2 { margin-top: 48px; font-size: 26px; line-height: 32px; }
.post-body h3 { margin-top: 40px; font-size: 22px; line-height: 28px; }
.post-body h4 { margin-top: 32px; font-size: 19px; line-height: 28px; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: 12px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 8px; }
.post-body blockquote { margin: 32px 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); font-style: italic; font-size: 21px; line-height: 32px; color: var(--ink); }
.post-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }
.post-body figure { margin: 32px 0; }
.post-body figure img { border-radius: 6px; }
.post-body a { color: var(--accent); }
.post-body strong { font-weight: 600; }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; background: var(--surface); padding: 2px 6px; border-radius: 4px; }
.table-wrap { overflow-x: auto; margin: 32px 0; padding: 20px 24px; background: var(--surface); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 17px; line-height: 26px; }
th, td { text-align: left; vertical-align: top; padding: 4px 16px 4px 0; }
th { font-weight: 400; font-family: var(--ui); font-size: 13px; line-height: 18px; color: var(--ink-muted); padding-bottom: 8px; }
th strong { font-weight: 400; }
.post-foot { padding-top: 8px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.like { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hairline); background: transparent; color: var(--ink); font-family: var(--ui); font-size: 14px; cursor: pointer; transition: border-color 150ms var(--ease), background 150ms var(--ease); }
.like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.like:hover { border-color: var(--accent); }
.like[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.like[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.share { display: flex; flex-direction: column; gap: 12px; }
.share ul { display: flex; gap: 10px; list-style: none; flex-wrap: wrap; }
.share a, .share .copy { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 999px; background: transparent; font-family: var(--ui); font-size: 14px; line-height: 18px; color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color 150ms var(--ease); }
.share .copy:hover, .share a:hover { border-color: var(--accent); color: var(--ink); }
.author-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.author-name { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 26px; }
.author-name a { color: var(--ink); text-decoration: none; }
.read-next h2 { font-size: 26px; line-height: 32px; margin-bottom: 8px; }
.read-next ul { list-style: none; }
.read-next li { padding: 16px 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; }
.read-next li a { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 26px; }
.read-next .label { font-size: 13px; line-height: 18px; }

/* Static pages */
.page { padding: 40px var(--gutter) 80px; display: flex; flex-direction: column; gap: 16px; }
.page h1 { font-size: 48px; line-height: 54px; font-variation-settings: 'opsz' 144; }
.page .post-body { padding-top: 8px; }
.page .post-body > p:first-child { font-size: 21px; line-height: 32px; }
.page .post-body ol { list-style: none; counter-reset: step; padding-left: 0; }
.page .post-body ol li { counter-increment: step; display: flex; gap: 14px; }
.page .post-body ol li::before { content: counter(step); font-family: var(--display); font-weight: 500; color: var(--accent); width: 20px; flex-shrink: 0; }
.page .post-body .button { margin-top: 8px; }
.notfound { padding-bottom: 40px; }
.notfound h1 { font-size: 48px; line-height: 54px; }
.notfound .dek { font-size: 21px; line-height: 32px; }

/* Footer */
.site-foot { border-top: 1px solid var(--hairline); padding: 40px 0 32px; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.slogan-small { font-family: var(--display); font-style: italic; font-size: 17px; line-height: 24px; color: var(--ink); }
.foot-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.foot-nav a { font-family: var(--ui); font-size: 14px; line-height: 20px; color: var(--ink); text-decoration: none; display: inline-block; padding: 3px 0; }
.foot-nav a:hover { color: var(--accent); text-decoration: underline; }

/* Motion: rows fade up 8px over 250ms once they are a third of the way up the screen. Only once the script class is on. */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 250ms var(--ease), transform 250ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* Phones and tablets */
@media (max-width: 1023px) {
  .nav-list, .site-nav > .button { display: none; }
  .menu { display: block; }
}
@media (max-width: 767px) {
  body { font-size: 17px; }
  .intro { padding: 24px var(--gutter) 20px; gap: 8px; }
  .intro-brand { gap: 10px; }
  .intro-brand .mark { width: 40px; height: 40px; }
  .intro h1 { font-size: 34px; line-height: 38px; margin-top: -5px; }
  .slogan { font-size: 22px; line-height: 28px; }
  .intro-line { font-size: 16px; line-height: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; padding-bottom: 32px; }
  .featured .post-art { aspect-ratio: 16 / 9; }
  .featured-cut { position: static; width: auto; padding: 10px 0 0; }
  .featured-cut h2 { font-size: 28px; line-height: 34px; }
  .side { gap: 20px; }
  .side-post { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .side-post .side-art { grid-row: 1 / 3; }
  .side-post h3 { font-size: 18px; line-height: 24px; }
  .side-post .label { font-size: 13px; line-height: 18px; }
  .art-card { font-size: 28px; line-height: 32px; }
  .chev-list { flex-direction: column; }
  .chev { flex: none; height: 48px; margin-left: 0; margin-top: -6px; }
  .chev:first-child { margin-top: 0; }
  .chev a, .chev:first-child a { flex-direction: row; justify-content: space-between; padding: 0 36px 0 24px; }
  .stages { padding-bottom: 32px; }
  .post-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .post-row-text { gap: 8px; }
  .post-row h3 { font-size: 22px; line-height: 28px; }
  .post-row .dek { font-size: 16px; line-height: 24px; }
  .post-row-date { text-align: left; font-size: 12px; line-height: 16px; }
  .list-head h1, .post-head h1, .page h1, .notfound h1 { font-size: 32px; line-height: 38px; }
  .list-head .stage-num { font-size: 28px; line-height: 32px; }
  .list-head .lead, .post-head .dek, .notfound .dek, .page .post-body > p:first-child { font-size: 17px; line-height: 26px; }
  .post-head { padding-top: 24px; gap: 12px; }
  .post-body { font-size: 17px; line-height: 28px; font-variation-settings: 'opsz' 17; }
  .post-body blockquote { font-size: 19px; line-height: 28px; }
  .table-wrap { padding: 16px; }
  .site-foot .wrap { flex-direction: column; gap: 24px; }
  .foot-nav ul { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
}
@media (max-width: 399px) {
  .intro h1 { font-size: 30px; line-height: 34px; }
}
