/* mooning.com — site styles
   Warm paper ground, ink type. Red is kept for the logo dot, focus rings and errors only. The moon section keeps a dark .theme-dark scope.
   Archivo for display, IBM Plex for everything else.
   The mooning. wordmark is the only place Bricolage Grotesque appears. */

:root {
	--bg: #f6f3eb;
	--surface: #ece8dd;
	--fg: #121211;
	--soft: #3b3934;
	--muted: #57544d;
	--dim: #6b675f;
	--line: rgba(18, 18, 17, 0.12);
	--line-strong: rgba(18, 18, 17, 0.2);
	--red: #d70000;
	--red-hover: #a80000;
	--ok: #2d7a45;

	--font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--font-logo: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;

	--gutter: 72px;
	--max: 1440px;
	--section: 150px;
	color-scheme: light;
}

/* charcoal scope for the home hero (and the header that sits over it) */
.theme-charcoal, body[data-page="/"] .site-header {
	--bg: #1f1e1c;
	--surface: #292826;
	--fg: #efeae0;
	--soft: #d2cdc2;
	--muted: #aba79c;
	--dim: #9a968c;
	--line: rgba(239, 234, 224, 0.12);
	--line-strong: rgba(239, 234, 224, 0.2);
	color-scheme: dark;
	color: var(--fg);
}
.theme-charcoal { background: var(--bg); }

/* dark scope for the night-sky moon sections */
.theme-dark {
	--bg: #0b0b0c;
	--surface: #121214;
	--fg: #ede8dc;
	--soft: #c4bfb3;
	--muted: #a29e93;
	--dim: #8a867c;
	--line: rgba(237, 232, 220, 0.1);
	--line-strong: rgba(237, 232, 220, 0.16);
	--red: #e0241b;
	--red-hover: #ff4a3d;
	color-scheme: dark;
	background: var(--bg);
	color: var(--fg);
}

@media (max-width: 1100px) { :root { --gutter: 40px; --section: 110px; } }
@media (max-width: 720px) { :root { --gutter: 20px; --section: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--fg); color: var(--bg); font-family: var(--font-mono); font-size: 13px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; color: var(--fg); }
.display-xl { font-size: clamp(46px, 7vw, 100px); }
.display-l { font-size: clamp(40px, 5.6vw, 76px); }
.display-m { font-size: clamp(34px, 4.4vw, 60px); }
.display-s { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.025em; line-height: 1.05; }
.eyebrow { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5; color: var(--dim); }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.01em; color: var(--dim); }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; font-weight: 300; color: var(--soft); }
.statement { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.22; font-weight: 300; letter-spacing: -0.015em; color: var(--fg); }
.statement strong { font-weight: 500; }
.muted { color: var(--muted); }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 28px; background: var(--fg); color: var(--bg); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; border: 0; cursor: pointer; transition: background 160ms ease; }
.btn:hover { background: var(--soft); color: var(--bg); }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: transparent; border-color: var(--fg); color: var(--fg); }
.link { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; color: var(--fg); border-bottom: 1px solid var(--fg); padding-bottom: 4px; }
.link:hover { color: var(--muted); border-bottom-color: var(--muted); }
.arrow-link { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 30; }
.site-header .wrap { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--font-logo); font-weight: 800; font-size: 30px; letter-spacing: -0.05em; line-height: 1; color: var(--fg); }
.logo:hover { color: var(--fg); }
.logo span { color: var(--red); }
.site-nav { display: flex; align-items: center; gap: 34px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav .btn { padding: 12px 18px; color: var(--bg); }
.site-nav .btn:hover { color: var(--bg); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); padding: 10px 14px; font-family: var(--font-mono); font-size: 13px; cursor: pointer; }
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { position: fixed; inset: 0; z-index: 40; background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 96px var(--gutter) 48px; font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 200ms; }
	.site-nav a { color: var(--fg); }
	.site-nav .btn { font-family: var(--font-mono); font-size: 14px; font-weight: 400; letter-spacing: 0.01em; margin-top: 12px; }
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open .nav-toggle { position: relative; z-index: 50; }
}

/* ---------- 3D stages ---------- */
.stage { position: relative; overflow: hidden; background: var(--bg); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .wrap { position: relative; z-index: 2; }
.no-pointer { pointer-events: none; }
.no-pointer a, .no-pointer button { pointer-events: auto; }

/* hero */
.hero { height: max(760px, min(100svh, 940px)); }
.hero .wrap { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 80px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero-side { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; padding-bottom: 8px; }
.hero-meta { position: absolute; right: var(--gutter); top: 128px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero-forms { display: flex; gap: 18px; }
.hero-forms span { transition: color 300ms ease; }
.hero-forms .is-on { color: var(--fg); }
@media (max-width: 1100px) {
	.hero-row { flex-direction: column; align-items: flex-start; gap: 28px; }
	.hero-side { width: min(100%, 520px); }
}
@media (max-width: 720px) {
	.hero { height: max(640px, 100svh); }
	.hero .wrap { padding-bottom: 48px; }
	.hero-meta { display: none; }
}

/* moon + blob sections: canvas behind, copy on the left */
.feature { height: 820px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature .wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.feature-copy { max-width: 640px; display: flex; flex-direction: column; gap: 28px; }
.feature-copy .lede { max-width: 520px; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.contact-band { height: 800px; border-top: 1px solid var(--line); }
.contact-band .wrap { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: 130px 80px; }
.contact-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding-top: 36px; border-top: 1px solid var(--line-strong); }
.contact-row .email { grid-column: 1 / span 6; font-size: clamp(28px, 3vw, 40px); font-weight: 300; letter-spacing: -0.01em; }
.contact-row .details { grid-column: 7 / span 3; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--muted); }
.contact-row .details strong { color: var(--fg); font-weight: 400; }
.contact-row .cta { grid-column: 10 / span 3; display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
	.feature, .contact-band { height: auto; }
	.feature canvas, .contact-band canvas { position: relative; height: 380px; }
	.feature .wrap { padding-block: 8px 72px; }
	.contact-band .wrap { padding-block: 0 64px; gap: 48px; }
	.contact-band .contact-head { margin-top: -80px; }
	.contact-row { grid-template-columns: 1fr; row-gap: 24px; }
	.contact-row .email, .contact-row .details, .contact-row .cta { grid-column: auto; justify-content: flex-start; }
}

.lost { height: max(760px, 100svh); border-top: 0; }
.lost .wrap { padding-top: 104px; }
@media (max-width: 900px) { .lost { height: auto; } .lost .wrap { padding-top: 0; } }

/* contact page: form on the left, blob on the right */
.contact-page { min-height: max(900px, 100svh); border-bottom: 1px solid var(--line); }
.contact-page .wrap { padding-top: 200px; padding-bottom: 110px; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.contact-grid .col { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 28px; }
.contact-grid .form { margin-top: 20px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 8px; }
@media (max-width: 1100px) { .contact-grid .col { grid-column: 1 / span 8; } }
@media (max-width: 900px) {
	.contact-page { min-height: 0; }
	.contact-page canvas { position: relative; height: 360px; }
	.contact-page .wrap { padding-top: 0; padding-bottom: 80px; margin-top: -40px; }
	.contact-grid .col { grid-column: 1 / -1; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.rule-top { border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 72px; }
.split .aside { grid-column: 1 / span 2; padding-top: 14px; }
.split .main { grid-column: 3 / span 10; }
@media (max-width: 900px) { .split .aside, .split .main { grid-column: 1 / -1; } .split { row-gap: 28px; } }

/* bordered grids (spec-sheet cells) */
.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.cells > * { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.cell { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.cell-title { font-family: var(--font-mono); font-size: 12px; color: var(--fg); }
.cell p { font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) { .cells { --cols: 1 !important; } }

.service-card { padding: 40px 36px 44px; display: flex; flex-direction: column; gap: 22px; }
.service-card p { font-size: 16px; line-height: 1.55; color: var(--muted); min-height: 50px; }
.service-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--soft); }
.service-card .arrow-link { margin-top: auto; }

.clients { --cols: 5; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.clients li { padding: 30px 24px; list-style: none; }
.clients { margin: 0; padding: 0; }
@media (max-width: 900px) { .clients { --cols: 2 !important; } .clients li { padding: 22px 18px; } }

.feature-case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; }
.feature-case .title { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 22px; }
.feature-case .body { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 22px; }
.feature-case .body p { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) { .feature-case .title, .feature-case .body { grid-column: 1 / -1; } }

/* rows list (insights) */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 160px 150px minmax(0, 1fr) 40px; align-items: center; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line-strong); }
.row .when { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.row .kind { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.row .title { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; color: var(--fg); }
.row .go { font-size: 22px; color: var(--muted); text-align: right; }
.row:hover .title { color: var(--muted); }
@media (max-width: 900px) { .row { grid-template-columns: 1fr auto; gap: 8px 16px; } .row .when { grid-column: 1; } .row .kind { grid-column: 2; text-align: right; } .row .title { grid-column: 1 / -1; } .row .go { display: none; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 0 30px; max-width: 760px; color: var(--muted); }

/* page hero (inner pages) */
.page-hero { padding-top: 220px; padding-bottom: 96px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 28px; }
.page-hero .lede { max-width: 640px; }
@media (max-width: 720px) { .page-hero { padding-top: 160px; padding-bottom: 64px; } }

/* services page */
.service-block { padding-block: 110px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.service-block .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; margin-bottom: 56px; align-items: end; }
.service-block .head .display { grid-column: 1 / span 6; }
.service-block .head .lede { grid-column: 8 / span 5; }
.service-items { --cols: 3; }
.service-item { padding: 32px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.service-item h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.service-item p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.service-item h3 a:hover { color: var(--muted); }
.service-item .arrow-link { margin-top: auto; padding-top: 6px; }
@media (max-width: 900px) { .service-block .head .display, .service-block .head .lede { grid-column: 1 / -1; } }

/* case study */
.case-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.05; margin: 64px 0 20px; }
.prose h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--soft); font-size: 18px; line-height: 1.7; }
.prose p + p { margin-top: 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 16px 0; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--fg); border-bottom: 1px solid var(--muted); }
.prose a:hover { color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line-strong); margin: 56px 0; }
.prose blockquote { margin: 32px 0; padding-left: 22px; border-left: 2px solid var(--fg); }
.prose blockquote p { font-size: 22px; color: var(--fg); font-weight: 300; }
.prose pre { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; overflow-x: auto; margin: 24px 0; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; }
.prose :not(pre) > code { background: var(--surface); padding: 1px 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line-strong); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose sup a { border: 0; color: var(--muted); font-size: 0.72em; }
.refs { list-style: none; padding: 0; margin: 12px 0 0; }
.refs li { font-family: var(--font-mono); font-size: 12px !important; line-height: 1.6 !important; color: var(--dim) !important; margin-bottom: 10px; word-break: break-word; }
.refs a { color: var(--muted); border-bottom-color: var(--line-strong); }

/* team */
.team { --cols: 5; }
.person { padding: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.person img { width: 100%; aspect-ratio: 538 / 800; object-fit: cover; background: radial-gradient(ellipse at 50% 30%, var(--surface) 0%, var(--bg) 70%); }
.person .who { padding: 0 20px; display: flex; flex-direction: column; gap: 4px; }
.person h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.person p { padding: 0 20px; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1100px) { .team { --cols: 3 !important; } }
@media (max-width: 720px) {
	.team { --cols: 1 !important; }
	.person { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px; row-gap: 10px; padding: 20px 20px 22px 0; align-items: start; }
	.person img { grid-row: 1 / span 2; width: 112px; }
	.person .who, .person p { padding: 0; }
	.person p { font-size: 14px; }
}

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--fg); font: inherit; font-size: 19px; padding: 10px 0 12px; border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--font-mono); font-size: 13px; min-height: 20px; }
.form-status.is-error { color: var(--red-hover); }
.form-status.is-ok { color: var(--ok); }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

/* blog index */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { background: transparent; border: 1px solid var(--line-strong); padding: 9px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); cursor: pointer; }
.filter:hover { color: var(--fg); border-color: var(--fg); }
.filter.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-strong); padding: 8px 0; max-width: 360px; }
.search input { background: transparent; border: 0; color: var(--fg); font: inherit; font-size: 16px; width: 100%; }
.search input:focus { outline: none; }
.post-grid { --cols: 3; }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .inner { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-card .meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; }
.post-card .meta .kind { color: var(--muted); }
.post-card .meta .time { color: var(--dim); }
.post-card h2, .post-card h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.1; letter-spacing: -0.025em; }
.post-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.post-card .arrow-link { margin-top: auto; padding-top: 8px; }
/* text-only cards: the headline is the cover */
.post-card.is-text .inner { padding: 34px 30px 32px; gap: 18px; }
.post-card.is-text h2, .post-card.is-text h3 { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.06; }
.post-card:hover h2, .post-card:hover h3 { color: var(--muted); }
.empty { font-family: var(--font-mono); font-size: 14px; color: var(--muted); padding-top: 32px; }
@media (max-width: 1100px) { .post-grid { --cols: 2 !important; } }
@media (max-width: 720px) { .post-grid { --cols: 1 !important; } }

/* article */
.article-hero { padding-top: 200px; padding-bottom: 56px; }
.article-hero .wrap { max-width: 1040px; display: flex; flex-direction: column; gap: 26px; }
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.article-meta .kind { color: var(--muted); }
.article-sub { max-width: 760px; font-size: clamp(19px, 1.8vw, 23px); }
.article-cover { max-width: 1040px; margin: 0 auto; padding-inline: var(--gutter); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-body { max-width: 1040px; margin: 0 auto; padding: 72px var(--gutter) var(--section); }
.article-body .prose { margin: 0 auto; max-width: 720px; }
.article-body .prose > p:first-child { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.6; color: var(--fg); font-weight: 300; }
@media (max-width: 720px) { .article-hero { padding-top: 150px; } .article-cover img { aspect-ratio: 4 / 3; } }
.prose h2, .prose h3 { scroll-margin-top: 32px; }
.legal .prose p, .legal .prose li { font-size: 16px; line-height: 1.7; }
.legal .prose > p:first-child { font-size: 16px; }
.legal .prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 56px; }
.legal .prose h3 { font-size: 18px; margin-top: 28px; }
.toc { border: 1px solid var(--line-strong); padding: 24px 28px; margin-bottom: 40px; }
.toc ol { list-style: none; padding: 0; margin: 14px 0 0; columns: 2; column-gap: 32px; }
.toc li { font-size: 14px !important; line-height: 1.5 !important; margin: 0 0 8px !important; break-inside: avoid; }
.toc a { border: 0 !important; color: var(--soft) !important; }
.toc a:hover { color: var(--fg) !important; }
@media (max-width: 720px) { .toc ol { columns: 1; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding-block: 72px 56px; }
.footer-brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; }
.footer-brand p { font-size: 15px; color: var(--muted); max-width: 320px; }
.footer-col { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col .footer-title { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.footer-col a { color: var(--soft); }
.footer-col.wide { grid-column: span 4; }
.footer-col address { font-style: normal; color: var(--muted); line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: var(--muted); }
@media (max-width: 1100px) { .footer-brand { grid-column: 1 / -1; } .footer-col, .footer-col.wide { grid-column: span 4; } }
@media (max-width: 720px) { .footer-col, .footer-col.wide { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
