/* Formwork marketing site. Same paper / ink / ember tokens as the app (app.css); this file only adds layout and page furniture. */

.site {
  --wrap: 1200px; --pad: clamp(16px, 4vw, 40px); --y: clamp(64px, 9vw, 120px);
  --foot-bg: #14130f; --foot-fg: #f3efe6; --foot-dim: #a39d8f; --foot-line: #2f2c24;
  --head-h: 64px;
}
.site :target { scroll-margin-top: calc(var(--head-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:where(.site) img { height: auto; }
.s-wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.s-narrow { width: min(100% - 2 * var(--pad), 760px); margin-inline: auto; }
.skip:focus { position: fixed; inset: 8px auto auto 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r-md); z-index: 100; }
main:focus { outline: none; }

/* Type */
.s-h1 { font: 400 clamp(46px, 7.2vw, 100px)/.96 var(--font-display); letter-spacing: -.03em; }
.s-h2 { font: 400 clamp(34px, 4.6vw, 60px)/1.02 var(--font-display); letter-spacing: -.025em; }
.s-h3 { font: 400 clamp(24px, 2.4vw, 30px)/1.1 var(--font-display); letter-spacing: -.015em; }
.s-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.s-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.s-eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.s-prose { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.s-prose p + p { margin-top: 1em; }
.s-prose a, .faq .faq-a a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.site .pc-chip { background: var(--accent); color: var(--accent-ink); }
.s-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }

/* Announcement banner */
.s-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 44px 8px var(--pad); background: var(--ink); color: var(--paper); font-size: 14px; position: relative; text-align: center; }
.s-banner-success { background: var(--ok); color: #fff; } .s-banner-warning { background: var(--warn-soft); color: var(--warn); }
.s-banner a { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 8px; font-weight: 600; text-underline-offset: 3px; }
.s-banner .icon { width: 14px; height: 14px; }
.s-banner-x { position: absolute; inset-inline-end: 8px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: inherit; border-radius: var(--r-sm); opacity: .8; }
.s-banner[hidden] { display: none; }

/* Header */
.s-head { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--line); }
.s-head-in { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.s-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.s-brand .brand-mark { width: 28px; height: 28px; }
.s-brand .brand-name { font: 400 24px/1 var(--font-display); letter-spacing: -.01em; }
.s-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 8px; }
.s-nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border: 0; background: none; border-radius: var(--r-sm); color: var(--ink-2); font: 500 14px var(--font-ui); text-decoration: none; transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out); }
.s-nav-link .icon { width: 14px; height: 14px; transition: transform 160ms var(--ease-out); }
.s-nav-link[aria-current='page'], .s-nav-link[data-active] { color: var(--ink); }
.s-nav-link[aria-current='page']::after, .s-nav-link[data-active]::after { content: ''; position: absolute; inset: auto 12px 4px; height: 2px; background: var(--accent); border-radius: 2px; }
.s-nav-link[aria-expanded='true'] .icon, .s-nav-link:has(+ *):popover-open .icon { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .s-nav-link:hover { color: var(--ink); background: var(--surface-2); } }
.s-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.s-burger { display: none; }
.s-product { width: 320px; padding: 8px; }
.s-product-item { align-items: flex-start; gap: 12px; padding: 10px; }
.s-product-item .icon { margin-top: 2px; color: var(--accent); }
.s-product-item span { display: grid; gap: 2px; }
.s-product-item small { color: var(--ink-3); font-size: 13px; line-height: 1.35; }

.s-sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 12px var(--pad) 28px; border: 0; background: var(--paper); color: var(--ink); overflow: auto; display: none; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(-8px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
.s-sheet:popover-open { display: flex; opacity: 1; transform: none; }
@starting-style { .s-sheet:popover-open { opacity: 0; transform: translateY(-8px); } }
.s-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.s-sheet nav { display: grid; margin-block: 8px; }
.s-sheet nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 34px/1.1 var(--font-display); text-decoration: none; letter-spacing: -.015em; }
.s-sheet-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
@media (max-width: 900px) {
  .s-nav, .s-login { display: none; }
  .s-burger { display: inline-flex; }
}

/* Reveal on scroll. Hidden only after JS has run and only while off-screen, so no-JS and reduced-motion always see everything. */
.rv-on [data-rv='pending'] { opacity: 0; transform: translateY(10px); }
[data-rv] { transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
@media (prefers-reduced-motion: reduce) { .rv-on [data-rv='pending'] { opacity: 1; transform: none; } [data-rv] { transition: none; } }

/* Sections */
.s-sec { padding-block: var(--y); }
.s-band { background: var(--surface-2); border-block: 1px solid var(--line); }
.s-sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.s-sec-head .s-h2 { max-width: 18ch; }
.s-cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.s-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration-thickness: 1px; }
.s-link .icon { width: 15px; height: 15px; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .s-link:hover .icon { transform: translateX(3px); } }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px) 0; overflow-x: clip; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; }
.hero .s-h1 { max-width: 12ch; animation: hero-in 520ms var(--ease-out) both; }
.hero-side { display: grid; gap: 22px; padding-bottom: 8px; animation: hero-in 520ms 90ms var(--ease-out) both; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-note span + span::before { content: '·'; margin-inline-end: 14px; }
@media (max-width: 520px) { .hero-note { display: grid; gap: 4px; } .hero-note span + span::before { content: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(8px); } }
.hero-stage { position: relative; margin-top: clamp(32px, 5vw, 60px); border-radius: 20px; overflow: clip; aspect-ratio: 16 / 9.6; background: #f3efe6; outline: 1px solid var(--line); outline-offset: -1px; animation: hero-in 620ms 160ms var(--ease-out) both; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shot { position: absolute; inset-inline-start: 4.5%; top: 8%; width: 67%; height: auto; border-radius: 12px; box-shadow: var(--shadow-3); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.hero-phone { position: absolute; inset-inline-end: 6%; bottom: 7%; width: 19%; height: auto; border-radius: 16px; box-shadow: var(--shadow-3); outline: 1px solid oklch(0 0 0 / .12); outline-offset: -1px; }
.hero-cap { position: absolute; inset-inline-start: 18px; bottom: 14px; padding: 5px 9px; border-radius: 6px; background: color-mix(in oklab, #f3efe6 86%, transparent); color: #5b564b; font: 500 11px var(--font-mono); letter-spacing: .04em; }
@media (max-width: 820px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: auto; padding: 18px 18px 0; }
  .hero-art { display: none; }
  .hero-shot { position: static; width: 100%; border-radius: 10px 10px 0 0; box-shadow: none; }
  .hero-phone, .hero-cap { display: none; }
}

/* Promise: a big statement and a ruled list, not a card row */
.promise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.promise-list { display: grid; }
.promise-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding-block: 24px; border-top: 1px solid var(--line-strong); }
.promise-list > div:last-child { border-bottom: 1px solid var(--line-strong); }
.promise-list b { font: 500 12px var(--font-mono); color: var(--accent); padding-top: 6px; }
.promise-list h3 { font: 600 17px/1.3 var(--font-ui); }
.promise-list p { grid-column: 2; color: var(--ink-2); }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }

/* How it works */
.steps { display: grid; }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(24px, 3.4vw, 40px); border-top: 1px solid var(--line-strong); }
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step-n { font: 400 clamp(56px, 6vw, 84px)/1 var(--font-display); color: var(--accent); letter-spacing: -.03em; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); max-width: 44ch; }
.step-media { border-radius: var(--r-lg); overflow: clip; aspect-ratio: 16 / 9; background: var(--surface-3); outline: 1px solid var(--line-strong); outline-offset: -1px; }
.step-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, top left); }
.step-media.is-art { background: #f3efe6; } .step-media.is-art img { object-fit: contain; }
@media (max-width: 820px) { .step { grid-template-columns: 1fr; gap: 12px; } .step-n { font-size: 48px; } }

/* Differentiators: a bento with uneven spans, each tile carries something real */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile { grid-column: span var(--span, 4); display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); min-width: 0; overflow: clip; }
.tile-k { display: flex; align-items: center; gap: 8px; }
.tile-k .icon { color: var(--accent); }
.tile h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.08 var(--font-display); letter-spacing: -.015em; }
.tile p { color: var(--ink-2); font-size: 15px; }
.tile-media { margin-top: auto; padding-top: 12px; }
.tile-media img { width: 100%; border-radius: 10px; }
.tile-media.is-art img { aspect-ratio: 16 / 10; object-fit: cover; background: #f3efe6; }
.tile-media.is-shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--pos, top left); outline: 1px solid var(--line-strong); outline-offset: -1px; }
.tile-code { margin: auto 0 0; padding: 14px; border-radius: 10px; background: var(--surface-2); font: 400 12.5px/1.6 var(--font-mono); color: var(--ink-2); overflow-x: auto; white-space: pre; }
.tile-code i { font-style: normal; color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.swatches span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 99px; background: var(--surface-2); font-size: 13px; }
.swatches i { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px oklch(0 0 0 / .12); position: relative; }
.swatches i::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--dot); }
.tile-more { margin-top: auto; }
.tile-kc img { width: 44px; height: 44px; border-radius: 12px; }
.tile-list { margin: auto 0 0; padding: 12px 0 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tile-list li { display: flex; gap: 8px; } .tile-list .icon { color: var(--ok); margin-top: 3px; flex: none; }
@media (max-width: 900px) { .tile { grid-column: span 6; } .tile.wide { grid-column: span 12; } }
@media (max-width: 620px) { .tile { grid-column: span 12; } }

/* Showcase rows (real screenshots) */
.rows { display: grid; gap: clamp(56px, 8vw, 104px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row:nth-child(even) .row-text { order: 2; }
.row-text { display: grid; gap: 14px; justify-items: start; }
.row-text p { color: var(--ink-2); }
.checks { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--ok); margin-top: 3px; flex: none; }
.row-media { margin: 0; display: grid; gap: 8px; }
.row-media img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-2); outline: 1px solid oklch(0 0 0 / .08); outline-offset: -1px; }
.row-media figcaption { font: 500 11px var(--font-mono); letter-spacing: .04em; color: var(--ink-3); }
@media (max-width: 860px) { .row, .row:nth-child(even) { grid-template-columns: 1fr; } .row:nth-child(even) .row-text { order: 0; } }

/* Compare teaser and the shared sentence table */
.cmp-wrap { position: relative; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { text-align: start; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line-strong); }
.cmp thead th { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-top: 0; padding-bottom: 10px; }
.cmp th[scope='row'] { font-weight: 600; width: 18%; }
.cmp .us { background: color-mix(in oklab, var(--accent-soft) 60%, transparent); padding-inline: 14px; color: var(--ink); }
.cmp thead .us { color: var(--accent); }
.cmp td { color: var(--ink-2); }
.cmp td.us { color: var(--ink); }
/* Narrow screens: each feature becomes a small stack (feature, then one labelled answer per product) instead of a sideways-scrolling table. */
@media (max-width: 760px) {
  .cmp-wrap { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .cmp-wrap .cmp { display: block; min-width: 0; width: 100%; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp tr { padding-block: 18px; border-top: 1px solid var(--line-strong); }
  .cmp-wrap .cmp th[scope='row'] { width: auto; padding: 0 0 8px; border: 0; font-size: 16px; }
  .cmp td { padding: 10px 0; border: 0; }
  .cmp td.us { padding: 10px 12px; margin-block: 2px; border-radius: 8px; }
  .cmp td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .cmp td.us[data-label]::before { color: var(--accent); }
  .cmp tbody { border-top: 0; }
  .cmp-group { display: block; }
  .cmp-group th { padding: 24px 0 4px; }
}
.cmp-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }

/* Templates strip */
.tpl-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 72px); }
.tpl-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line-strong); text-decoration: none; color: inherit; }
.tpl-item h3 { font: 400 28px/1.1 var(--font-display); letter-spacing: -.01em; }
.tpl-item p { grid-column: 1; color: var(--ink-2); font-size: 15px; }
.tpl-meta { grid-column: 2; grid-row: 1; font: 500 12px var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.tpl-item .icon { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .tpl-item:hover h3 { color: var(--accent); } .tpl-item:hover .icon { color: var(--accent); } }
@media (max-width: 760px) { .tpl-list { grid-template-columns: 1fr; } }

/* Pricing teaser / page */
.price-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.site .pc { box-shadow: inset 0 0 0 1px var(--line-strong); }
.site .pc-featured { box-shadow: inset 0 0 0 1.5px var(--accent); }
.site .pc-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Changelog strip */
.log-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; }
.log-item { display: grid; align-content: start; gap: 8px; padding: 22px 24px 22px 0; border-top: 1px solid var(--line-strong); text-decoration: none; color: inherit; }
.log-item + .log-item { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.log-item h3 { font: 400 26px/1.1 var(--font-display); }
.log-item p { color: var(--ink-2); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .log-item:hover h3 { color: var(--accent); } }
@media (max-width: 820px) { .log-strip { grid-template-columns: 1fr; } .log-item, .log-item + .log-item { padding-inline: 0; border-inline-start: 0; } }

/* Proof quotes (rendered only when the CMS has published, consented testimonials) */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.quote { margin: 0; display: grid; gap: 14px; }
.quote blockquote { margin: 0; font: 400 26px/1.25 var(--font-display); letter-spacing: -.01em; }
.quote figcaption { color: var(--ink-3); font-size: 14px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { display: grid; max-width: 820px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font: 400 clamp(21px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; color: var(--ink-3); transition: transform 200ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq .faq-a { padding: 0 0 22px; max-width: 64ch; color: var(--ink-2); }
.faq .faq-a p + p { margin-top: .8em; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent); } }

/* Closing call to action */
.s-cta { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 104px); }
.s-cta-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.s-cta .s-h2 { max-width: 14ch; }
.s-cta p { color: color-mix(in oklab, var(--paper) 72%, var(--ink)); max-width: 46ch; }
.s-cta .btn-accent { --btn-bg: var(--accent); }
.s-cta .btn:not(.btn-accent) { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: color-mix(in oklab, var(--paper) 40%, var(--ink)); }
@media (hover: hover) and (pointer: fine) { .s-cta .btn:not(.btn-accent):hover { --btn-bg: color-mix(in oklab, var(--paper) 12%, var(--ink)); } }
@media (max-width: 820px) { .s-cta-in { grid-template-columns: 1fr; } }

/* Footer: always dark, in both themes */
.s-foot { background: var(--foot-bg); color: var(--foot-fg); padding-block: clamp(40px, 6vw, 72px) 28px; border-top: 1px solid var(--foot-line); }
.s-foot a { text-decoration: none; }
.s-foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px clamp(32px, 6vw, 96px); }
.s-foot-tag { margin: 14px 0 22px; color: var(--foot-dim); max-width: 34ch; }
.s-news { display: grid; gap: 8px; max-width: 380px; }
.s-news-l { font: 500 13px var(--font-ui); }
.s-news-row { display: flex; gap: 8px; }
.s-news .input { background: #1c1a15; border-color: #453f33; color: var(--foot-fg); min-width: 0; }
.s-news .input::placeholder { color: #6e685b; }
.s-news-msg { color: var(--foot-dim); font-size: 13px; }
.s-news-msg[data-state='error'] { color: #ff8f84; } .s-news-msg[data-state='ok'] { color: #6fce93; }
.s-foot .eyebrow { color: var(--foot-dim); }
.s-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.s-foot-cols ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.s-foot-cols a { display: inline-block; padding-block: 6px; color: var(--foot-fg); font-size: 14.5px; opacity: .88; }
@media (hover: hover) and (pointer: fine) { .s-foot-cols a:hover { opacity: 1; text-decoration: underline; } }
.s-foot-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--foot-line); color: var(--foot-dim); font-size: 13px; }
.s-foot-social { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.s-foot-social a { color: var(--foot-fg); }
.s-foot .segmented { background: #26241d; } .s-foot .segmented button { color: var(--foot-dim); }
.s-foot .segmented [aria-pressed='true'] { background: #14130f; color: var(--foot-fg); box-shadow: none; }
@media (max-width: 820px) { .s-foot-top { grid-template-columns: 1fr; } .s-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* app.css hides the segmented labels on narrow screens; the footer has room, and icon-only buttons would have no name. */
.s-foot .theme-switch span { display: inline; }

/* Sticky footer: short pages (404, status, contact) keep the footer at the bottom of the viewport. */
body.site { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.site > main { flex: 1 0 auto; }
body.site > footer { flex-shrink: 0; }
.s-foot-credit { margin: 18px 0 0; font-size: 13px; color: var(--foot-dim); }
.s-foot-credit a { color: color-mix(in oklab, var(--accent) 62%, #fff); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .s-foot-credit a:hover { text-decoration-color: currentColor; } }
.s-foot-credit a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
