:root {
  --bg: #18191b;
  --surface: #222326;
  --ink: #f4f5f6;
  --muted: #b3b7bc;
  --line: #3b3d42;
  --code-bg: #2c2d31;
  --accent: #e0a458;
  --accent-ink: #1a1203;
  --accent-soft: #2f2a20;
  --shot-bg: #101113;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1120px;
  --gutter: clamp(28px, 8vw, 112px);
  color-scheme: dark;
}
body.drey { --accent: #e8875c; --accent-ink: #1b0f08; --accent-soft: #33241c; }
body.dricket { --accent: #3ccbb0; --accent-ink: #06201b; --accent-soft: #1b2f2b; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font-body); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

header.site { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5; }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; }
nav.main { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.hero { padding-block: 72px 40px; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn:hover { background: var(--accent-soft); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.note { font-size: 14px; color: var(--muted); margin: 0; }

.shot { background: var(--shot-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.card .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }
.product .card { display: flex; flex-direction: column; gap: 14px; padding: 0; overflow: hidden; }
.product .card .body { padding: 6px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product .card .body p { color: var(--muted); }
.product .card .body .btn { align-self: flex-start; margin-top: auto; }
.product .thumb { background: var(--shot-bg); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.product .thumb.term { padding: 22px; align-items: flex-start; justify-content: flex-start; background: #101113; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.flip > :first-child { order: 2; }
  .hero .grid.two { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
}
ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
ul.ticks li { padding-left: 28px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

pre, code { font-family: var(--font-mono); }
code { background: var(--code-bg); padding: .12em .4em; border-radius: 5px; font-size: .9em; }
pre.term { background: #101113; color: #d8dee6; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 0; overflow-x: auto; font-size: 14.5px; line-height: 1.7; }
pre.term .p { color: #8794a4; }
pre.term .ok { color: var(--accent); }
pre.term .c { color: #8794a4; font-style: italic; }
.thumb.term pre.term { border: 0; padding: 0; background: transparent; font-size: 13px; line-height: 1.6; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); margin-top: 28px; }
.facts div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -1px 0 0 -1px; }
.facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 18px; }
dl { margin: 0; }
table.dl { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 16px; }
table.dl th, table.dl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.dl th { font-weight: 600; white-space: nowrap; }
table.dl tr:last-child th, table.dl tr:last-child td { border-bottom: 0; }
table.dl td { color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }

footer.site { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
footer.site h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; font-family: var(--font-mono); }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }
footer.site .legal { margin-top: 32px; font-size: 13px; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding-block: 44px 24px; }
  section { padding: 40px 0; }
  nav.main { margin-left: 0; gap: 16px; width: 100%; }
  header.site .wrap { padding-top: 8px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
code { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  table.dl, table.dl tbody, table.dl tr, table.dl th, table.dl td { display: block; width: 100%; }
  table.dl th { padding-bottom: 0; border-bottom: 0; }
  table.dl td { padding-top: 4px; }
}
