/* unknown.ac shared styles: "Lamplight on white" (2026-11-20).
   White paper, warm-black bands, one amber signal; Rethink Sans for type, Newsreader for document text.
   Every page links this file; the home page adds its own sections on top. */

:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem;
  --text-hero: clamp(3.5rem, 8.4vw, 8.25rem); --text-section: clamp(2.5rem, 3.6vw + 0.5rem, 4.25rem);
  --text-page: clamp(2.25rem, 3vw + 1rem, 3.5rem); --text-lead: clamp(1.125rem, 0.4vw + 1rem, 1.375rem); --text-read: clamp(1.375rem, 1.2vw + 1rem, 2.125rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1360px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 160px;
  --z-base: 1; --z-raised: 10; --z-sticky-nav: 300; --z-modal: 400;
  --color-paper: oklch(99% 0.003 75); --color-paper-2: oklch(96.5% 0.006 75); --color-paper-3: oklch(93% 0.009 75);
  --color-ink: oklch(19% 0.014 65); --color-ink-2: oklch(33% 0.013 65); --color-muted: oklch(46% 0.012 65);
  --color-rule: oklch(88% 0.008 70);
  --color-rule-strong: oklch(63% 0.01 70);  /* control outlines: 3:1 on paper (WCAG 1.4.11) */
  --color-accent: oklch(77% 0.145 70); --color-accent-ink: oklch(19% 0.014 65); --color-accent-text: oklch(49% 0.105 66); --color-focus: oklch(52% 0.16 62);
  --color-wash: oklch(91% 0.075 82);
  --color-night: oklch(15% 0.01 70); --color-night-2: oklch(21% 0.012 70); --color-night-ink: oklch(93% 0.008 85); --color-night-muted: oklch(72% 0.012 80); --color-night-rule: oklch(31% 0.012 70);
  --color-card-ink: oklch(12% 0.01 70 / 0.88); --color-pill-glass: oklch(98% 0.004 75 / 0.18);
  --font-display: "Rethink Sans", ui-sans-serif, system-ui, sans-serif; --font-body: "Rethink Sans", ui-sans-serif, system-ui, sans-serif; --font-outlier: "Newsreader", ui-serif, Georgia, serif;
  /* controls match Apple's App Store badge: one height, its corner radius (8.4/40 of the height) */
  --control-h: 48px; --control-h-sm: 40px; --radius-control: 10px; --radius-control-sm: 8px;
  --radius-shot: 22px; --radius-tile: 14px; --radius-card: 18px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-shot: 0 24px 48px oklch(20% 0.02 70 / 0.16);
  --tracking-display: -0.035em;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-wash); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow, .narrow { max-width: 860px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); height: var(--control-h); padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-control); background: var(--color-ink); color: var(--color-paper); font: 600 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.lg { padding: 0 var(--space-xl); font-size: var(--text-md); }
.btn.sm, header .btn { height: var(--control-h-sm); padding: 0 var(--space-md); border-radius: var(--radius-control-sm); font-size: var(--text-sm); }
.btn.ghost, .btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule-strong); }
.btn.ghost:hover, .btn--quiet:hover { background: var(--color-paper-2); }
.btn .arw { display: none; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; transition: color var(--dur-micro) var(--ease-out); }
.link:hover { color: var(--color-accent-text); }
.appstore { display: inline-flex; flex: none; border-radius: var(--radius-control); transition: opacity var(--dur-micro) var(--ease-out); }
.appstore:hover { opacity: 0.85; }
.appstore:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.appstore img { height: var(--control-h) !important; width: auto !important; }  /* !important: articles carry old inline sizes */
.appstore.sm, header .appstore { border-radius: var(--radius-control-sm); }
.appstore.sm img, header .appstore img { height: var(--control-h-sm) !important; }

/* ---- header ---- */
header { position: relative; z-index: var(--z-sticky-nav); }
header nav { display: flex; align-items: center; gap: var(--space-xl); min-height: 76px; }
.brand { display: inline-flex; align-items: baseline; font: 700 1.3125rem/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; color: var(--color-ink); margin-right: auto; }
/* the wordmark: "Un" in an element tile sharing one baseline with "known" (em-based, same proportions as the app and the web reader) */
.brand .mark { position: relative; display: inline-block; line-height: 1; border: 0.09em solid currentColor; border-radius: 0.24em; padding: 0.6em 0.26em 0.3em 0.3em; margin-right: 0.2em; }
.brand .mark::before { content: "119"; position: absolute; top: 0.5em; left: 0.72em; font-size: 0.42em; font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); font-size: var(--text-sm); }
.nav-links .nl { text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-micro) var(--ease-out); }
.nav-links .nl:hover { color: var(--color-ink); }
.nav-links .nl:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* ---- small labels: sentence case, never tracked capitals ---- */
.rule-label, .label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); letter-spacing: 0; text-transform: none; margin-bottom: var(--space-sm); }
.rule-label.amber, .label.amber { color: var(--color-accent-text); }

/* ---- long-form pages: articles, guides, legal ---- */
main { display: block; }
.art { max-width: 760px; margin: 0 auto; padding: var(--space-2xl) 0 var(--space-3xl); }
.art h1 { font-size: var(--text-page); font-weight: 800; line-height: 1.04; letter-spacing: var(--tracking-display); margin-bottom: var(--space-md); }
.art h2 { font-size: var(--text-2xl); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: var(--space-2xl) 0 var(--space-md); }
.art h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; margin: var(--space-xl) 0 var(--space-xs); }
.art p, .art li { font-size: 1.125rem; line-height: 1.7; color: var(--color-ink-2); }
.art p + p { margin-top: var(--space-md); }
.art ul, .art ol { margin: var(--space-md) 0; padding-left: 1.3em; display: grid; gap: var(--space-xs); }
.art li::marker { color: var(--color-accent-text); }
.art strong { color: var(--color-ink); font-weight: 600; }
.art a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.art a:hover { color: var(--color-accent-text); }
.art .btn, .art .btn:hover { color: var(--color-paper); }
.art .btn.ghost, .art .btn.ghost:hover { color: var(--color-ink); }
.art figure { margin: var(--space-xl) 0; }
.art figure img, .art figure video { border-radius: var(--radius-tile); border: 1px solid var(--color-rule); }
.art figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.art code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--color-paper-2); padding: 0.1em 0.35em; border-radius: 5px; }
.art blockquote { margin: var(--space-lg) 0; padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-tile); }
.meta, .seo-meta, .updated { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-lg); }
.lead { font-size: var(--text-lead) !important; line-height: 1.55 !important; color: var(--color-ink) !important; margin-bottom: var(--space-lg); }
.seo-crumbs { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-lg); }
.seo-crumbs a { color: var(--color-muted); text-decoration: none; }
.seo-crumbs a:hover { color: var(--color-ink); text-decoration: underline; }
.seo-answer, .note, .summary { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg) var(--space-xl); margin: var(--space-lg) 0; }
.art .seo-answer { font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink); }
.note p, .summary p { margin: 0; }
.verdict { font-weight: 600; color: var(--color-accent-text) !important; }
.tblwrap { overflow-x: auto; margin: var(--space-xl) 0; }
.art table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.art th { text-align: left; font-weight: 600; color: var(--color-muted); padding: 0 var(--space-md) var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); white-space: nowrap; }
.art td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); vertical-align: top; color: var(--color-ink-2); }
.faq { margin-top: var(--space-2xl); }
.faq details { border-top: 1px solid var(--color-rule); padding: var(--space-md) 0; }
.faq details:last-child { border-bottom: 1px solid var(--color-rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--text-lg); }
.related, .seo-related { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: 0; }
.related { margin-top: var(--space-2xl); }
.related a, .seo-related li a { display: block; padding: var(--space-md) 0; border-top: 1px solid var(--color-rule); text-decoration: none; font-weight: 600; color: var(--color-ink); }
.related a:hover, .seo-related li a:hover { color: var(--color-accent-text); }
.seo-related li { list-style: none; }
.art .seo-related { padding: 0; }
.back { display: inline-block; margin-top: var(--space-xl); font-weight: 600; color: var(--color-accent-text); }

/* the call to action inside articles and guides: a warm-black card */
.cta { background: var(--color-night); color: var(--color-night-ink); border-radius: var(--radius-card); padding: var(--space-xl); margin: var(--space-2xl) 0; display: grid; gap: var(--space-md); justify-items: start; }
.seo-cta .cta { margin: 0; }
.seo-cta { margin: var(--space-2xl) 0; }
.cta .rule-label, .cta .label { color: var(--color-accent); margin: 0; }
.art .cta p, .cta p { color: var(--color-night-muted); margin: 0; }
.art .cta h2, .art .cta h3, .cta h2, .cta h3 { color: var(--color-night-ink); margin: 0; }
.art .cta a:not(.btn) { color: var(--color-night-ink); }
.cta .btn { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink) !important; }
.cta .btn:hover { background: var(--color-wash); }
.cta .btn.ghost { background: transparent; color: var(--color-night-ink) !important; border-color: var(--color-night-rule); }
.cta .fine, .fine { font-size: var(--text-sm); color: var(--color-muted); }
.cta .fine { color: var(--color-night-muted); }

/* the FAQ page */
.faq-list { margin-top: var(--space-xl); }
.faq-item { border-top: 1px solid var(--color-rule); }
.faq-item:last-child { border-bottom: 1px solid var(--color-rule); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); padding: var(--space-lg) 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--dur-short) var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.art .faq-item h3, .faq-item h3 { margin: 0; font-size: var(--text-lg); font-weight: 600; line-height: 1.35; color: var(--color-ink); }
.art .faq-item p, .faq-item p { margin: 0; padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 70ch; }
.faq-item a { color: var(--color-ink); text-decoration-color: var(--color-accent); }

.faq-more { margin-top: var(--space-xl) !important; }

/* blog and guide indexes */
div.hero { max-width: 860px; padding: var(--space-2xl) 0 0; }
div.hero h1 { font-size: var(--text-section); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-display); margin-bottom: var(--space-lg); }
div.hero h1 em { font-style: normal; }
div.hero p { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 60ch; }
main > .wrap > .list { max-width: 860px; padding-bottom: var(--space-3xl); }
.list { display: grid; margin-top: var(--space-xl); }
.item { display: grid; gap: var(--space-xs); padding: var(--space-lg) 0; border-top: 1px solid var(--color-rule); text-decoration: none; color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.item:last-child { border-bottom: 1px solid var(--color-rule); }
.item .k { font-size: var(--text-sm); color: var(--color-muted); }
.item h2 { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.015em; margin: 0; }
.item p { color: var(--color-ink-2); }
.item .go { font-weight: 600; color: var(--color-accent-text); }
.item:hover h2 { color: var(--color-accent-text); }
.item:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.shot img, .shot video { border-radius: var(--radius-shot); }

/* ---- newsletter ---- */
.newsletter { background: var(--color-paper-2); padding: var(--space-2xl) 0; }
.newsletter .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); align-items: center; }
.news-copy h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
.news-copy p { color: var(--color-ink-2); }
.news-offer { margin-top: var(--space-xs); font-weight: 600; color: var(--color-accent-text) !important; }
.news-form { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.news-form input { flex: 1 1 220px; height: var(--control-h); padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-control); background: var(--color-paper); color: var(--color-ink); font-size: 16px; }
.news-form input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
.field-label { flex-basis: 100%; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
.news-form input[aria-invalid="true"], .nl-pop-card input[aria-invalid="true"] { border-color: var(--color-focus); border-width: 2px; }
.news-msg { flex-basis: 100%; min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---- footer: a warm-black band ---- */
footer { background: var(--color-night); color: var(--color-night-muted); padding: var(--space-xl) 0 var(--space-2xl); font-size: var(--text-sm); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-xl); }
.foot-row > span:first-child { margin-right: auto; }
footer .links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
footer a { color: var(--color-night-muted); text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
footer a:hover { color: var(--color-night-ink); }
footer a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
footer .brand { color: var(--color-night-ink); font-size: 1.125rem; margin-right: 0; }

/* language picker (markup injected by scripts/build-i18n.py) */
.lang-pick-row { display: flex; justify-content: center; margin-top: var(--space-lg); }
.lang-pick { display: inline-flex; align-items: center; gap: var(--space-xs); border: 1px solid var(--color-night-rule); border-radius: var(--radius-control-sm); padding: var(--space-2xs) var(--space-md); }
.lang-pick select { background: transparent; border: 0; color: var(--color-night-muted); font: inherit; cursor: pointer; }
.lang-pick select option { background: var(--color-night-2); color: var(--color-night-ink); }

/* "this page is in your language" bar (markup injected by scripts/build-i18n.py) */
.lang-bar { position: fixed; left: var(--space-sm); right: var(--space-sm); bottom: var(--space-sm); z-index: var(--z-modal); display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); background: var(--color-night-2); color: var(--color-night-ink); border-radius: var(--radius-tile); box-shadow: var(--shadow-shot); }
.lang-bar-msg { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); }
.lang-bar a { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.lang-bar a:hover { text-decoration: underline; }
.lang-bar a:focus-visible, .lang-bar button:focus-visible, .lang-pick select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.lang-bar button { width: 44px; height: 44px; margin: calc(var(--space-sm) * -1) calc(var(--space-sm) * -1) calc(var(--space-sm) * -1) 0; background: none; border: 0; color: var(--color-night-muted); font-size: 1.375rem; line-height: 1; cursor: pointer; transition: color var(--dur-micro) var(--ease-out); }
.lang-bar button:hover { color: var(--color-night-ink); }
@media (min-width: 40rem) { .lang-bar { left: auto; right: var(--space-md); max-width: 460px; } }
.lang-pick-icon { display: block; flex: none; opacity: 0.7; }

@media (max-width: 60rem) {
  :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 104px; }
  .nav-links .nl { display: none; }
  .newsletter .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 80px; --gap-columns: 16px; }
  header nav { gap: var(--space-sm); }
  .nav-links { gap: var(--space-xs); }
  .nav-links .appstore { display: none; }
  .btn.lg { padding: 0 var(--space-lg); }
  .art p, .art li { font-size: 1.0625rem; }
  .cta { padding: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
