/* WP Freighter theme. Fonts, then tokens, then landing, then interior. */

/* Self-hosted variable fonts (latin subset from Google Fonts, OFL). Preloaded from functions.php. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}
/* Metric-matched fallbacks: if a swap ever happens, the text keeps its width and line height. */
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 100.54%;
  ascent-override: 99.47%;
  descent-override: 30.14%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Fallback";
  src: local("Menlo"), local("DejaVu Sans Mono"), local("Consolas");
  size-adjust: 99.66%;
  ascent-override: 102.35%;
  descent-override: 30.1%;
  line-gap-override: 0%;
}

:root {
  --bg: #F6F8FB;
  --bg-2: #FFFFFF;
  --ink: #12203A;
  --ink-2: #4A5A75;
  --ink-3: #7C8AA3;
  --rule: #C9D4E3;
  --rule-2: #E3EAF3;
  --accent: #0C56A6;
  --accent-ink: #FFFFFF;
  --accent-soft: #E1EBF8;
  --term-bg: #0E1B33;
  --term-ink: #DCE6F5;
  --term-dim: #7E93B6;
  --term-acc: #7FB3F5;
  --hull: #262324;
  --cabin: #FFFFFF;
  --cabin-line: #CBD5E3;
  --water: #C9D4E3;
  --crane: #262324;
  --shadow-sm: 0 1px 2px rgba(18, 32, 58, .06), 0 1px 0 rgba(255, 255, 255, .6) inset;
  --shadow: 0 1px 2px rgba(18, 32, 58, .05), 0 10px 30px -14px rgba(18, 32, 58, .22);
  --shadow-panel: 0 1px 2px rgba(6, 16, 31, .25), 0 18px 40px -18px rgba(6, 16, 31, .55), 0 1px 0 rgba(255, 255, 255, .07) inset;
  --edge: #E3EAF3;
  --term-edge: #22345A;
  --term-dot: #33507F;
  --glow: rgba(12, 86, 166, .10);
  --sans: "Hanken Grotesk", "Hanken Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "JetBrains Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
  --w: 1040px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F18;
    --bg-2: #101827;
    --ink: #E4EAF3;
    --ink-2: #A9B6CB;
    --ink-3: #6F7E98;
    --rule: #263248;
    --rule-2: #1B2536;
    --accent: #4A8FE0;
    --accent-ink: #06101F;
    --accent-soft: #14294A;
    --term-bg: #060B14;
    --term-ink: #DCE6F5;
    --term-dim: #6F84A8;
    --term-acc: #7FB3F5;
    --hull: #3A4256;
    --cabin: #E6ECF5;
    --cabin-line: transparent;
    --water: #263248;
    --crane: #8A98B3;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .04) inset;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(0, 0, 0, .7);
    --shadow-panel: 0 0 0 1px rgba(255, 255, 255, .03), 0 20px 44px -20px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .06) inset;
    --edge: #1F2B3F;
    --term-edge: #1A2740;
    --term-dot: #2A3B5C;
    --glow: rgba(74, 143, 224, .12);
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F18; --bg-2: #101827; --ink: #E4EAF3; --ink-2: #A9B6CB; --ink-3: #6F7E98;
  --rule: #263248; --rule-2: #1B2536; --accent: #4A8FE0; --accent-ink: #06101F; --accent-soft: #14294A;
  --term-bg: #060B14; --term-ink: #DCE6F5; --term-dim: #6F84A8; --term-acc: #7FB3F5; --hull: #3A4256; --cabin: #E6ECF5; --cabin-line: transparent; --water: #263248; --crane: #8A98B3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .04) inset;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(0, 0, 0, .7);
  --shadow-panel: 0 0 0 1px rgba(255, 255, 255, .03), 0 20px 44px -20px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .06) inset;
  --edge: #1F2B3F; --term-edge: #1A2740; --term-dot: #2A3B5C; --glow: rgba(74, 143, 224, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code, pre, kbd, .mono { font-family: var(--mono); font-variant-ligatures: none; }
.mono, p code { white-space: nowrap; }
code { font-size: .92em; background: var(--accent-soft); color: var(--ink); padding: .08em .35em; border-radius: 3px; }
pre { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--w); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 600; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 64px; height: 53px; }
.nav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav ul li { display: flex; align-items: center; }
.nav ul a { color: var(--ink-2); }
.nav ul a:hover { color: var(--ink); }
.gh { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border: 1px solid var(--rule); border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 600; background: var(--bg-2); box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.gh > svg { width: 15px; height: 15px; }
.gh .stars { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.gh .star { width: 13px; height: 13px; color: #E0A458; }
.gh:hover { text-decoration: none; color: var(--ink); border-color: var(--ink-3); box-shadow: var(--shadow); }
.theme { margin-left: -4px; background: var(--bg-2); border: 1px solid var(--rule); color: var(--ink-2); width: 36px; height: 36px; border-radius: 9px; cursor: pointer; display: inline-grid; place-items: center; padding: 0; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.theme:hover { color: var(--ink); border-color: var(--ink-3); box-shadow: var(--shadow); }
.theme svg { width: 15px; height: 15px; }
.theme-wrap { position: relative; margin-left: -4px; }
.theme-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 132px; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 8px; padding: 6px; box-shadow: var(--shadow); z-index: 10; }
.theme-menu button { display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 5px; cursor: pointer; text-align: left; }
.theme-menu button:hover { background: var(--accent-soft); }
.theme-menu button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink-3); flex: none; }
.theme-menu button[aria-checked="true"]::before { background: var(--accent); border-color: var(--accent); }
.brand span { white-space: nowrap; }
@media (max-width: 640px) { .nav { gap: 16px; } .nav ul { gap: 12px; } .nav ul li:nth-child(2) { display: none; } .brand { gap: 10px; font-size: 18px; } .brand svg { width: 48px; height: 40px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 64px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero::before { content: ""; position: absolute; inset: -80px 0 -40px; z-index: -1; pointer-events: none; background: radial-gradient(52% 60% at 76% 42%, var(--glow), transparent 72%); }
.hero h1 { font-size: clamp(38px, 5.2vw, 56px); max-width: 15ch; }
.hero .lede { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 7px; font-weight: 600; font-size: 16px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 86%, white), var(--accent)); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 80%, black); box-shadow: 0 1px 2px rgba(12, 86, 166, .25), 0 6px 16px -8px rgba(12, 86, 166, .55), 0 1px 0 rgba(255, 255, 255, .22) inset; }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 2px 4px rgba(12, 86, 166, .25), 0 10px 24px -10px rgba(12, 86, 166, .6), 0 1px 0 rgba(255, 255, 255, .22) inset; }
.btn-quiet { border-color: var(--rule); color: var(--ink); background: var(--bg-2); box-shadow: var(--shadow-sm); }
.btn-quiet:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.btn svg { width: 16px; height: 16px; }
.meta { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }

.term { background: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-edge); border-radius: 10px; padding: 16px 20px 16px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; overflow-x: auto; box-shadow: var(--shadow-panel); }
.term::before { content: ""; display: block; width: 44px; height: 10px; margin-bottom: 14px; background: radial-gradient(circle at 5px 5px, var(--term-dot) 4.5px, transparent 5px) 0 0 / 17px 10px repeat-x; }
.term .p { color: var(--term-acc); }
.term .d { color: var(--term-dim); }
.term .h { color: var(--term-dim); }
.term .me { color: var(--term-acc); font-weight: 600; }
.term table { border-collapse: collapse; margin-top: 6px; }
.term td, .term th { text-align: left; padding: 1px 22px 1px 0; font-weight: 400; white-space: nowrap; }
.term th { color: var(--term-dim); }
.term td:first-child { color: var(--term-dim); }
.term-cap { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.term-cap b { color: var(--ink-2); font-weight: 500; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px 56px; }
  .hero h1 { max-width: none; }
  .hero::before { display: none; }
}

/* ---------- sections ---------- */
section { padding-block: 64px; border-top: 1px solid var(--rule-2); }
.band { background: var(--bg-2); border-bottom: 1px solid var(--rule-2); }
.band + section { border-top: 0; }
section h2 { font-size: clamp(28px, 3.4vw, 36px); max-width: 22ch; }
section .intro { margin-top: 14px; color: var(--ink-2); max-width: 60ch; font-size: 18px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); gap: 32px; } section { padding-block: 48px; } }

/* mechanism: a real sequence, so it is numbered */
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: s; max-width: 62ch; }
.steps li { position: relative; padding: 16px 0 16px 56px; border-top: 1px solid var(--rule-2); counter-increment: s; }
.steps li:last-child { border-bottom: 1px solid var(--rule-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 14px; color: var(--accent); font-weight: 600; width: 36px; height: 26px; line-height: 26px; text-align: center; background: var(--accent-soft); border-radius: 5px; }
.steps li strong { display: block; font-weight: 600; margin-bottom: 2px; }
.steps li p { color: var(--ink-2); font-size: 16px; }

.prefix-demo { margin-top: 36px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink-2); border: 1px solid var(--edge); border-radius: 10px; padding: 0 20px 18px; background: var(--bg-2); overflow-x: auto; box-shadow: var(--shadow); }
.prefix-demo::before { content: "wp-content/freighter.php"; display: block; margin: 0 -20px 14px; padding: 10px 20px; font-size: 12px; color: var(--ink-3); background: var(--bg); border-bottom: 1px solid var(--edge); }
.prefix-demo .k { color: var(--ink-3); }
.prefix-demo .v { color: var(--ink); }
.prefix-demo .a { color: var(--accent); font-weight: 600; }
.prefix-demo .row { display: grid; grid-template-columns: 22ch 1fr; gap: 0 12px; white-space: nowrap; }
.prefix-demo hr { border: 0; border-top: 1px dashed var(--rule); margin: 10px 0; }


/* what it buys you: definition list, no cards */
.buys { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.buys > div { border-top: 1px solid var(--rule-2); padding: 20px 0 22px; }
.buys dt { font-weight: 600; font-size: 18px; }
.buys dd { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; max-width: 40ch; }
.buys dd code { font-size: .88em; }
@media (max-width: 720px) { .buys { grid-template-columns: minmax(0, 1fr); } }

/* code columns */
.code { margin-top: 32px; }
.code h3 { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--term-dim); background: var(--term-bg); border: 1px solid var(--term-edge); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 8px 14px 9px; margin: 0 0 -1px 12px; position: relative; z-index: 1; }
.code pre { background: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-edge); border-radius: 10px; padding: 18px 20px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; box-shadow: var(--shadow-panel); }
.code .c { color: var(--term-dim); }
.code .s { color: #B7D8FF; }
.code .f { color: var(--term-acc); }
.code .n { color: #F3D77C; }

/* limits */
.limits { margin: 32px 0 0; padding: 0; list-style: none; max-width: 62ch; }
.limits li { padding: 14px 0; border-top: 1px solid var(--rule-2); color: var(--ink-2); font-size: 16px; }
.limits li:last-child { border-bottom: 1px solid var(--rule-2); }
.limits li strong { color: var(--ink); font-weight: 600; }

/* proof */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.proof .ship { width: 100%; aspect-ratio: 620 / 510; height: auto; display: block; }
.proof p { color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.proof p + p { margin-top: 14px; }
@media (max-width: 860px) { .proof { grid-template-columns: minmax(0, 1fr); } }

.dg-l { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); }
.dg-t { font-family: var(--mono); font-size: 10.5px; font-weight: 500; fill: #FFFFFF; }
.dg-dark { fill: #2A2000; }
.dg-h { font-family: var(--mono); font-size: 8.5px; fill: var(--cabin); letter-spacing: .02em; }
.modes-fig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.modes-fig figure { margin: 0; }
.modes-fig .mode-ship { padding: 22px 22px 18px; border: 1px solid var(--edge); border-radius: 10px; background: var(--bg-2); box-shadow: var(--shadow); }
.modes-fig .mode-ship > svg { display: block; width: 100%; height: auto; aspect-ratio: 240 / 152; }
.modes-fig figcaption { margin-top: 18px; color: var(--ink-2); font-size: 16px; max-width: 38ch; }
.modes-fig figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.modes-fig .mono { font-size: .92em; }
@media (max-width: 860px) { .modes-fig { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 420px; } }
.ship-wrap { position: relative; max-width: 340px; order: 2; justify-self: end; }
@media (max-width: 860px) { .ship-wrap { order: 0; justify-self: start; max-width: 260px; } }
.ship-wrap .water { display: block; width: 100%; height: auto; margin-top: -6px; color: var(--water); }
.install .crane { width: 240px; max-width: 100%; height: auto; display: block; margin-bottom: 22px; }
/* install / footer */
.install { padding-block: 64px; }
.install .two { align-items: start; }
.req { margin: 20px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.req span { color: var(--ink-3); display: inline-block; width: 12ch; }
.install pre { background: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-edge); border-radius: 10px; box-shadow: var(--shadow-panel); padding: 16px 18px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; margin-top: 14px; }
.install .c { color: var(--term-dim); }


@media (prefers-reduced-motion: no-preference) {
  .term tbody tr { animation: rowin .5s ease both; }
  .term tbody tr:nth-child(2) { animation-delay: .06s } .term tbody tr:nth-child(3) { animation-delay: .12s }
  .term tbody tr:nth-child(4) { animation-delay: .18s } .term tbody tr:nth-child(5) { animation-delay: .24s }
  .term tbody tr:nth-child(6) { animation-delay: .30s } .term tbody tr:nth-child(7) { animation-delay: .36s }
  @keyframes rowin { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- skip link ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- interior pages ---------- */
.entry { padding-block: 40px 80px; }
.entry-head h1 { font-size: clamp(32px, 4.2vw, 44px); max-width: 20ch; }
.entry-date { display: block; font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.entry-lede { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 60ch; }
.entry-body { margin-top: 36px; font-size: 17px; line-height: 1.65; }
.entry-body > * { max-width: 72ch; margin-block: 0 1.2em; }
.entry-body > .alignwide, .entry-body > .alignfull, .entry-body > .wp-block-columns, .entry-body > .wp-block-coblocks-row, .entry-body > .wp-block-embed { max-width: none; }
.entry-body h2 { font-size: 26px; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--rule-2); }
.entry-body h3 { font-size: 20px; margin-top: 1.6em; }
.entry-body h4 { font-size: 17px; margin-top: 1.4em; }
.entry-body h2 + *, .entry-body h3 + *, .entry-body h4 + * { margin-top: 0; }
.entry-body hr + h2, .entry-body .wp-block-separator + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.entry-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.entry-body a:hover { text-decoration-color: currentColor; }
.entry-body ul, .entry-body ol { padding-left: 1.4em; }
.entry-body li { margin-block: .3em; }
.entry-body li::marker { color: var(--ink-3); }
.entry-body img { max-width: 100%; height: auto; border-radius: 6px; }
.entry-body figure { margin-inline: 0; }
.entry-body figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.entry-body hr, .entry-body .wp-block-separator { border: 0; border-top: 1px solid var(--rule-2); margin: 2.4em 0; width: auto; max-width: 72ch; opacity: 1; }
.entry-body .wp-block-spacer { max-width: none; }
.entry-body blockquote { border-left: 3px solid var(--accent); margin-inline: 0; padding-left: 20px; color: var(--ink-2); }
.entry-body pre, .entry-body .wp-block-code { background: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-edge); border-radius: 10px; box-shadow: var(--shadow); padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; overflow-x: auto; white-space: pre; max-width: none; }
.entry-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; white-space: pre; }
.entry-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.entry-body th, .entry-body td { text-align: left; padding: 10px 14px 10px 0; border-top: 1px solid var(--rule-2); vertical-align: top; }
.entry-body th { color: var(--ink-3); font-weight: 500; }
.entry-body .wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; }
.entry-body .wp-block-column { flex: 1 1 260px; min-width: 0; }
.entry-body .wp-block-embed { margin-block: 2em; }
.entry-body .wp-block-embed iframe { max-width: 100%; }
.entry-body .wp-block-embed__wrapper { position: relative; }
.entry-body .wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.entry-body .wp-embed-responsive .wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-body .wp-block-image.aligncenter { text-align: center; }
.entry-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-body .wp-block-button__link { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.entry-body .wp-block-button.is-style-outline .wp-block-button__link { background: var(--bg-2); color: var(--ink); border: 1px solid var(--rule); }

/* Gravity Forms, kept quiet */
.entry-body .gform_wrapper { max-width: 48ch; }
.entry-body .gform_wrapper label, .entry-body .gfield_label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.entry-body .gform_wrapper input[type="text"], .entry-body .gform_wrapper input[type="email"], .entry-body .gform_wrapper textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg-2); color: var(--ink); }
.entry-body .gform_wrapper input:focus, .entry-body .gform_wrapper textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.entry-body .gform_wrapper .gfield { margin-bottom: 18px; }
.entry-body .gform_wrapper input[type="submit"], .entry-body .gform_wrapper button[type="submit"] { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0; padding: 12px 18px; border-radius: 6px; cursor: pointer; }
.entry-body .gform_wrapper .gfield_required { color: var(--accent); }
.entry-body .gform_validation_errors, .entry-body .validation_message { color: #B3261E; font-size: 14px; }

/* News listing */
.news { list-style: none; margin: 36px 0 0; padding: 0; }
.news li { display: grid; grid-template-columns: 12ch minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule-2); }
.news li:last-child { border-bottom: 1px solid var(--rule-2); }
.news time { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 5px; }
.news h2 { font-size: 20px; }
.news h2 a { color: var(--ink); }
.news p { margin-top: 6px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
@media (max-width: 560px) { .news li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.pagination { margin-top: 32px; font-size: 15px; }
.pagination .nav-links { display: flex; gap: 16px; }
.entry-nav { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 15px; }

/* admin bar */
.admin-bar .theme-menu { top: calc(100% + 8px); }

/* ---------- changelog ---------- */
.changelog .entry-lede a { color: var(--accent); }
.cl-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.cl-key { margin-top: 22px; display: flex; gap: 18px; font-size: 13px; color: var(--ink-3); }
.cl-key span::before, .cl-section h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 0; background: var(--kind, var(--ink-3)); }
.k-added { --kind: #6AB221; }
.k-changed { --kind: #FFB900; }
.k-fixed { --kind: #FE4E00; }
.k-other { --kind: var(--ink-3); }
.cl { list-style: none; margin: 48px 0 0; padding: 0; }
.cl-release { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 32px 0 36px; border-top: 1px solid var(--rule-2); }
.cl-release.is-latest { background: linear-gradient(to right, var(--accent-soft), transparent 55%); margin-inline: -24px; padding-inline: 24px; border-radius: 10px; border-top-color: transparent; }
.cl-release.is-latest + .cl-release { border-top-color: transparent; }
.cl-release:last-child { border-bottom: 1px solid var(--rule-2); }
.cl-rail { font-family: var(--mono); font-size: 13px; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cl-version { font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -.01em; }
.cl-version::before { content: "v"; color: var(--ink-3); font-weight: 400; }
.cl-version:hover { text-decoration: none; color: var(--accent); }
.cl-latest { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 1px 2px rgba(12, 86, 166, .3); }
.cl-gh { margin-top: 4px; color: var(--ink-3); }
.cl-gh:hover { color: var(--accent); }
.cl-body { display: flex; flex-direction: column; gap: 22px; max-width: 68ch; }
.cl-section h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
.cl-section ul { list-style: none; margin: 0; padding: 0; }
.cl-section li { position: relative; padding: 7px 0 7px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.cl-section li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 5px; height: 5px; background: var(--kind); }
.cl-section li strong { color: var(--ink); font-weight: 600; }
.cl-section li code { font-size: .88em; }
.cl-release:target .cl-version { color: var(--accent); }
@media (max-width: 480px) { .cl-release.is-latest { margin-inline: -16px; padding-inline: 16px; } }
@media (max-width: 720px) {
  .cl-release { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 26px 30px; }
  .cl-rail { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .cl-latest, .cl-gh { margin-top: 0; }
}

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs .entry { padding-block: 40px 80px; }
.docs-nav { position: sticky; top: 28px; padding-top: 48px; }
.docs-nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule-2); }
.docs-nav a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-3); font-size: 14px; }
.docs-nav a:hover { color: var(--ink); text-decoration: none; }
.docs-nav a.is-current { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-nav { position: static; padding-top: 32px; }
  .docs-nav ol { border: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .docs-nav a { padding: 0; border: 0; margin: 0; }
  .docs-nav a.is-current { color: var(--ink-3); }
  .docs .entry { padding-top: 24px; }
}
.doc { padding: 0; border: 0; margin-top: 56px; scroll-margin-top: 24px; }
.doc h2 { font-size: 26px; max-width: none; padding-bottom: 12px; border-bottom: 1px solid var(--rule-2); }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 28px; }
.doc p, .doc li, .doc dd { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 66ch; }
.doc p { margin-top: 14px; }
.doc p strong, .doc li strong { color: var(--ink); font-weight: 600; }
.doc pre { margin-top: 14px; background: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-edge); border-radius: 10px; box-shadow: var(--shadow); padding: 16px 18px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; }
.doc-steps pre, .doc-steps pre code { white-space: pre-wrap; word-break: break-all; }
.doc-steps code, .doc-limits code, .doc-modes code, .faq code, .doc p code { white-space: nowrap; }
@media (max-width: 560px) { .doc-steps code, .doc-limits code, .doc-modes code, .faq code, .doc p code, .mono, p code { white-space: normal; overflow-wrap: anywhere; } }
.doc pre code { background: none; color: inherit; padding: 0; font-size: inherit; white-space: pre; }
.doc-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.doc-steps li { position: relative; padding: 12px 0 12px 44px; counter-increment: s; }
.doc-steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 28px; height: 24px; line-height: 24px; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 5px; }
.doc-steps pre { margin-top: 10px; }
.doc-modes { margin: 22px 0 0; display: grid; gap: 0; }
.doc-modes > div { padding: 14px 0; border-top: 1px solid var(--rule-2); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.doc-modes > div:last-child { border-bottom: 1px solid var(--rule-2); }
.doc-modes dt { font-weight: 600; color: var(--ink); }
.doc-modes dd { margin: 0; }
@media (max-width: 560px) { .doc-modes > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.doc-cmds { border-collapse: collapse; width: 100%; margin-top: 18px; font-size: 15px; }
.doc-cmds td { padding: 10px 18px 10px 0; border-top: 1px solid var(--rule-2); vertical-align: top; color: var(--ink-2); }
.doc-cmds tr:last-child td { border-bottom: 1px solid var(--rule-2); }
.doc-cmds td:first-child { width: 48%; }
.doc-cmds code { font-size: 12.5px; }
.doc-cmds td:first-child code { background: none; padding: 0; color: var(--ink); }
@media (max-width: 720px) { .doc-cmds td { display: block; padding: 4px 0; border: 0; width: auto; } .doc-cmds td:first-child { padding-top: 12px; border-top: 1px solid var(--rule-2); } .doc-cmds td:last-child { padding-bottom: 12px; } }
.doc-limits { margin: 18px 0 0; padding: 0; list-style: none; }
.doc-limits li { padding: 12px 0; border-top: 1px solid var(--rule-2); }
.doc-limits li:last-child { border-bottom: 1px solid var(--rule-2); }
.doc-figure { margin: 22px 0 0; max-width: 66ch; }
.doc-figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--edge); border-radius: 8px; box-shadow: var(--shadow); }
.doc-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.doc-videos { margin: 16px 0 0; padding: 0; list-style: none; }
.doc-videos li { padding: 8px 0; border-top: 1px solid var(--rule-2); }
.doc-videos li:last-child { border-bottom: 1px solid var(--rule-2); }

/* FAQ disclosures */
.faq { margin-top: 18px; border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 16px 0; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 18px; font-family: var(--mono); font-weight: 500; color: var(--accent); transition: transform .18s ease; transform-origin: 45% 55%; }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.faq details > div { padding: 0 0 20px 32px; }
.faq details > div p:first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::before { transition: none; } }

/* ---------- footer ---------- */
.foot { position: relative; margin-top: 32px; color: var(--ink-2); font-size: 15px; background: var(--bg-2); border-top: 1px solid var(--rule-2); }
.foot-wave { display: block; position: absolute; left: 0; right: 0; top: -8px; color: var(--water); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 52px 40px; }
.foot-brand .brand { font-size: 18px; }
.foot-brand .brand svg { width: 52px; height: 43px; }
.foot-brand p { margin-top: 14px; max-width: 30ch; color: var(--ink-2); }
.foot-col h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { padding: 4px 0; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 44px; border-top: 1px solid var(--rule-2); font-size: 13px; color: var(--ink-3); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
