/* openlfcp.org — tokens from the OpenLFCP Design System (deep taiga). Light first; dark follows the visitor's system setting. */

@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light;
  --surface: #fbfcfb;
  --surface-raised: #ffffff;
  --surface-sunken: #f1f5f2;
  --grid: #f0f4f1;
  --line: #e1e7e3;
  --line-strong: #c3cdc7;
  --ink: #17201b;
  --ink-muted: #56625b;
  --brand: #14432f;
  --brand-hover: #0f3624;
  --on-brand: #ffffff;
  --accent-text: #14432f;
  --accent-soft: #eef5f1;
  --shared: #d6eadf;
  --accent-line: #9cc9b2;
  --focus: #14432f;
  --band: #14432f;
  --band-text: #d6eadf;
  --band-label: #b9dcc9;
  --band-line: #5f9b7e;
  --shadow-note: 0 12px 32px rgba(15, 40, 28, 0.08);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #0b0f0d;
    --surface-raised: #121916;
    --surface-sunken: #0f1512;
    --grid: #141c18;
    --line: #22302a;
    --line-strong: #34463d;
    --ink: #e6ece8;
    --ink-muted: #9ba8a1;
    --brand: #2e7552;
    --brand-hover: #28684a;
    --accent-text: #6fc09a;
    --accent-soft: #14241c;
    --shared: #173326;
    --accent-line: #2f5c47;
    --focus: #6fc09a;
    --band: #173326;
    --band-text: #c7ddd1;
    --band-label: #6fc09a;
    --band-line: #3f7a5f;
    --shadow-note: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/26px var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
a:hover { color: var(--brand-hover); }
@media (prefers-color-scheme: dark) { a:hover { color: #9ad6b8; } }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.label { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.label.accent { color: var(--accent-text); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.display-xl { margin: 0; font-size: clamp(40px, 6.2vw, 64px); line-height: 1.03; font-weight: 600; letter-spacing: -0.035em; }
.display-l { margin: 0; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.lead { margin: 0; font-size: 19px; line-height: 30px; color: var(--ink-muted); }
@media (max-width: 600px) { .lead { font-size: 17px; line-height: 27px; } }
.mark-word { color: var(--accent-text); border-bottom: 3px solid var(--accent-line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border-radius: var(--radius-md); font: 600 15px/20px var(--font-sans); text-decoration: none; border: 1px solid transparent; transition: background .15s ease-out, border-color .15s ease-out; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand .open { color: var(--accent-text); }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-header .btn { min-height: 40px; padding: 9px 16px; }
@media (max-width: 760px) { .site-nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Sections */
.section { border-bottom: 1px solid var(--line); }
.section > .wrap { padding-block: 96px; }
@media (max-width: 600px) { .section > .wrap { padding-block: 64px; } }
.section.raised { background: var(--surface-raised); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 40px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; }
.hero .wrap { padding-block: 88px 96px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.hero .display-xl { max-width: 920px; }
.hero .lead { max-width: 620px; }
.hero .actions { justify-content: center; }
.hero-note { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
@media (max-width: 600px) { .hero .wrap { padding-block: 48px 56px; } .hero .actions { flex-direction: column; align-self: stretch; } }

/* Markdown files */
.files { margin-top: 18px; width: 100%; max-width: 1072px; text-align: left; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunken); box-shadow: var(--shadow-note); }
.file { min-width: 0; }
.file + .file { border-left: 1px solid var(--line); }
@media (max-width: 680px) { .file + .file { border-left: 0; border-top: 1px solid var(--line); } }
.file-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-raised); font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.file pre, .code pre { margin: 0; padding: 16px; font: 400 14px/26px var(--font-mono); color: var(--ink-muted); white-space: pre; overflow-x: auto; }
.file pre .shared-line { display: block; margin: 0 -16px; padding: 0 16px; background: var(--shared); color: var(--ink); box-shadow: inset 0 1px 0 var(--accent-line), inset 0 -1px 0 var(--accent-line); }
.files-caption { margin: 10px 0 0; text-align: center; font: 400 12px/16px var(--font-mono); letter-spacing: .04em; color: var(--ink-muted); }
@media (max-width: 600px) { .file pre { font-size: 12px; line-height: 22px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 0; padding: 0; list-style: none; }
.steps li { background: var(--surface-raised); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps .num { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; color: var(--accent-text); }
.steps h3, .cards h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--ink-muted); }

/* Split */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split-text { display: flex; flex-direction: column; gap: 16px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 3px; color: var(--accent-text); }
.split.top { align-items: flex-start; }
.path h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.notfound { min-height: 100vh; display: grid; place-items: center; }
.code { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.code pre { color: var(--ink); line-height: 24px; padding: 18px 16px; }
.code .ref { color: var(--accent-text); background: var(--shared); border-radius: 4px; padding: 1px 4px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--surface-raised); display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; }
.card.highlight { border-color: var(--accent-line); background: var(--accent-soft); }

/* Open grid */
.open-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.open-grid a { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.open-grid a:hover { background: var(--accent-soft); color: var(--ink); }
.open-grid .k { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; color: var(--accent-text); }
.open-grid .t { font-weight: 600; font-size: 18px; }
.open-grid .d { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; font: 400 14px/22px var(--font-mono); overflow-x: auto; white-space: nowrap; }
.cmd .p { color: var(--ink-muted); }

/* Get started */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.path { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--surface-raised); display: flex; flex-direction: column; gap: 10px; }
.path p { margin: 0; color: var(--ink-muted); }
.path .go { margin-top: auto; padding-top: 6px; font-weight: 600; }
.badge { align-self: flex-start; font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--ink-muted); }

/* Status band: the one big taiga surface */
.band-wrap { padding: 96px 24px; }
@media (max-width: 600px) { .band-wrap { padding: 56px 16px; } }
.band { max-width: 1072px; margin: 0 auto; padding: 56px; border-radius: var(--radius-lg); background: var(--band); color: #ffffff; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
@media (max-width: 600px) { .band { padding: 28px; } }
.band-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.band .label { color: var(--band-label); }
.band h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.band p { margin: 0; font-size: 17px; line-height: 27px; color: var(--band-text); max-width: 560px; }
.band .btn-light { background: #ffffff; color: #14432f; }
.band .btn-light:hover { background: #eef5f1; color: #14432f; }
.band .btn-outline { border-color: var(--band-line); color: #ffffff; }
.band .btn-outline:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.band :focus-visible { outline-color: #ffffff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 40px 56px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .right { margin-left: auto; }
.select-all { user-select: all; }

/* Demo video (hero). Reduced motion shows the static Markdown files instead. */
.demo { margin: 18px 0 0; width: 100%; max-width: 1072px; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 1072 / 430; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-note); }
.files-static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .demo { display: none; }
  .files-static { display: block; }
}

/* The name */
.name-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.name-parts > div { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.name-parts dt { font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.name-parts dt::first-letter { color: var(--accent-text); }
.name-parts dd { margin: 0; color: var(--ink-muted); }
.fineprint { margin: 24px 0 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.site-footer .right { text-align: right; }
@media (max-width: 760px) { .site-footer .right { text-align: left; margin-left: 0; } }
