/* garoslabs.com: every token and rule, from the design "Garos Labs v4" Theofanis made in Claude Design on
   2026-10-06 (docs/brief.md). DESIGN.md says which token does which job; a page never carries a raw value.
   Fonts: Schibsted Grotesk (the variable font) and IBM Plex Mono, SIL Open Font License (fonts/OFL-*.txt), the latin
   woff2 files fetched through the Google Fonts CSS API on 2026-10-06 and self-hosted here. */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }

:root {
  --bg: #f6f3ec;
  --ink: #1c1a17;
  --ink-hover: #33302b;
  --text: #4a463f;
  --mute: #625d56;
  --nav: #625d56;
  --accent: #d8321f;
  --accent-text: #c02c1b;
  --accent-hover: #c02c1b;
  --accent-soft: rgba(224, 58, 43, 0.08);
  --accent-soft-2: rgba(224, 58, 43, 0.10);
  --accent-line: rgba(224, 58, 43, 0.5);
  --on-accent: #ffffff;
  --line: rgba(28, 26, 23, 0.12);
  --line-soft: rgba(28, 26, 23, 0.08);
  --line-faint: rgba(28, 26, 23, 0.1);
  --wire: rgba(28, 26, 23, 0.2);
  --fill: rgba(28, 26, 23, 0.03);
  --fill-2: rgba(28, 26, 23, 0.04);
  --ghost: rgba(28, 26, 23, 0.22);
  --ghost-hover: rgba(28, 26, 23, 0.6);
  --veil: rgba(246, 243, 236, 0.85);
  --veil-mid: rgba(246, 243, 236, 0.6);
  --inv-bg: #1c1a17;
  --inv-ink: #f6f3ec;
  --inv-text: #b8b2a8;
  --inv-accent: #ff6a5c;
  --inv-line: rgba(246, 243, 236, 0.16);
  --field-globe: #1c1a17;
  --field-blend: normal;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --col: 1240px;
  --gutter: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent-text); }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul { margin: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.inverse :focus-visible { outline-color: var(--inv-accent); }
.w { width: 100%; max-width: var(--col); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--accent); color: var(--on-accent); text-decoration: none; z-index: 30; }
.skip:focus { left: 8px; }

/* ---- type ---- */
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--accent-text); }
.inverse .kicker { color: var(--inv-accent); }
.display { font-family: var(--sans); font-weight: 800; font-size: clamp(48px, 7.6vw, 124px); line-height: 0.94; letter-spacing: -0.04em; max-width: 12ch; }
.display-2 { font-family: var(--sans); font-weight: 800; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.035em; }
.display-3 { font-family: var(--sans); font-weight: 800; font-size: clamp(44px, 6.4vw, 104px); line-height: 0.96; letter-spacing: -0.025em; max-width: 14ch; }
.display-page { font-family: var(--sans); font-weight: 800; font-size: clamp(44px, 5.6vw, 88px); line-height: 0.96; letter-spacing: -0.025em; }
.display em, .display-3 em { font-style: normal; color: var(--accent); }
.big { font-size: 19px; color: var(--text); }
.big.narrow { max-width: 44ch; }
.h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }

/* ---- buttons ---- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; text-decoration: none; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background 0.2s, border-color 0.2s; }
.btn:hover { text-decoration: none; }
.btn-light { color: var(--bg); background: var(--ink); }
.btn-light:hover { background: var(--ink-hover); }
.btn-accent { color: var(--on-accent); background: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); font-weight: 500; border: 1px solid var(--ghost); }
.btn-ghost:hover { border-color: var(--ghost-hover); }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ---- header: fixed, a gradient fading into the page ---- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(var(--veil), transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent);
}
.top .w { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { color: var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.mark:hover { text-decoration: none; }
.mark img { flex: none; width: 32px; height: 32px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.top nav a { color: var(--nav); text-decoration: none; transition: color 0.2s; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav .cta { color: var(--on-accent); background: var(--accent); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.top nav .cta:hover { color: var(--on-accent); background: var(--accent-hover); }

/* ---- home: the hero, full screen, the field behind the copy ---- */
.hero { position: relative; height: 100vh; min-height: 720px; overflow: hidden; background: radial-gradient(60% 50% at 70% 40%, var(--accent-soft-2), transparent 70%), var(--bg); }
.hero garos-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, var(--veil-mid) 28%, transparent 60%); pointer-events: none; }
.hero .copy { position: absolute; left: 0; right: 0; bottom: 0; padding-top: 110px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; animation: garosFade 1.2s var(--ease) both; }
.hero .row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.hero .lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; max-width: 52ch; color: var(--text); }
@keyframes garosFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- home: the strip of five ---- */
.strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.strip .w { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 12px 40px; font-family: var(--mono); font-size: 13px; color: var(--mute); }

/* ---- home: two-column sections with a sticky side ---- */
.section { padding-top: 160px; }
.section.first { padding-top: 140px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 80px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 20px; }
.side.sticky { position: sticky; top: 120px; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; margin-bottom: 56px; }

/* the three properties */
.props { display: flex; flex-direction: column; gap: 56px; }
.prop { display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: start; }
.prop svg { width: 96px; height: 96px; }
.prop .i-accent { stroke: var(--accent); fill: none; }
.prop .i-accent-fill { fill: var(--accent); }
.prop .i-ink { fill: var(--ink); }
.prop .i-faint { stroke: var(--wire); fill: none; }
.prop .i-line { stroke: var(--ghost-hover); fill: none; }
.prop h3 { margin-bottom: 10px; }
.prop p { color: var(--mute); }

/* the architecture: three layers and the diagram, a hovered layer lights its box */
.arch { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: center; }
.layers { display: flex; flex-direction: column; gap: 12px; }
.layer { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; padding: 28px; border-radius: 16px; background: var(--fill); border: 1px solid var(--line-faint); transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease; cursor: default; }
.layer h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); transition: color 0.35s ease; }
.layer .owner { font-family: var(--mono); font-size: 13px; color: var(--mute); padding-top: 7px; white-space: nowrap; transition: color 0.35s ease; }
.layer p { grid-column: 1 / -1; color: var(--mute); max-width: 56ch; }
.arch[data-layer] .layer:not(.on) h3 { color: var(--mute); }
.layer.on { background: var(--accent-soft); border-color: var(--accent-line); transform: translateX(6px); }
.layer.on .owner { color: var(--accent-text); }
.diagram { width: 100%; max-width: 560px; height: auto; display: block; justify-self: center; font-family: var(--mono); font-size: 13px; }
.diagram .box { fill: var(--fill); stroke: var(--ghost); stroke-width: 1.5; transition: fill 0.35s ease, stroke 0.35s ease; }
.diagram .own { fill: var(--mute); transition: fill 0.35s ease; }
.diagram .label { fill: var(--ink); font-family: var(--sans); font-size: 18px; font-weight: 600; }
.diagram .sub { fill: var(--mute); }
.diagram .wire { stroke: var(--wire); stroke-width: 1.5; }
.diagram .node { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.diagram .dot { fill: var(--accent); }
.diagram .path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 5; }
.diagram .gold { fill: var(--accent-text); }
.arch[data-layer="venue"] .box-venue, .arch[data-layer="engine"] .box-engine, .arch[data-layer="contracts"] .box-contracts { fill: var(--accent-soft-2); stroke: var(--accent); }
.arch[data-layer="venue"] .own-venue, .arch[data-layer="engine"] .own-engine, .arch[data-layer="contracts"] .own-contracts { fill: var(--accent-text); }

/* the security model, on the inverse ground */
.security { margin-top: 160px; background: var(--inv-bg); color: var(--inv-ink); }
.security .w { padding-top: 120px; padding-bottom: 120px; }
.security .big { color: var(--inv-text); }
.cannot { list-style: none; display: flex; flex-direction: column; }
.cannot li { padding: 22px 0; border-top: 1px solid var(--inv-line); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; }
.cannot li:last-child { border-bottom: 1px solid var(--inv-line); }
.cannot .num { font-family: var(--mono); font-size: 13px; color: var(--inv-accent); }
.cannot strong { font-weight: 600; font-size: 19px; }
.cannot p { margin-top: 6px; color: var(--inv-text); }

/* for operators: three columns of lists */
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.three .col { padding: 36px 28px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.three .col:first-child { padding-left: 0; }
.three .col:last-child { padding-right: 0; }
.three .kicker { letter-spacing: 0; }
.three ul { list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text); }

/* proof: four facts in mono */
.cards { display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: 14px; }
.card { padding: 22px 24px; border-radius: 14px; background: var(--fill-2); border: 1px solid var(--line-faint); display: flex; flex-direction: column; gap: 8px; }
.card .k { color: var(--mute); }
.card .v { color: var(--ink); }
.card a { color: var(--accent-text); text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* questions: an accordion, one open at a time (js/home.js) */
.qa { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.q { border-bottom: 1px solid var(--line); }
.q button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; font-size: 19px; font-weight: 500; color: var(--ink); font-family: inherit; }
.q button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.q .mark2 { font-family: var(--mono); color: var(--accent-text); font-size: 20px; flex: none; width: 20px; text-align: center; }
.q .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.q .a > div { overflow: hidden; }
.q .a p { padding-bottom: 24px; color: var(--mute); max-width: 60ch; }
.q.open .a { grid-template-rows: 1fr; }

/* the close */
.cta .w { padding-top: 180px; padding-bottom: 160px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta .big { max-width: 48ch; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line-faint); }
.foot .w { padding-top: 48px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 48px; font-size: 14px; color: var(--mute); }
.foot .col { display: flex; flex-direction: column; gap: 10px; }
.foot .fmark { color: var(--ink); font-family: var(--sans); font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.foot .fmark img { flex: none; width: 26px; height: 26px; }
.foot a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--ink); text-decoration: none; }
.foot .heart { color: var(--accent); }

/* ---- document pages: a sticky side and an article of rows ---- */
.doc main > .w { padding-top: 180px; padding-bottom: 160px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px 80px; align-items: start; }
.doc .side p { color: var(--mute); font-size: 17px; max-width: 40ch; }
.doc article { font-size: 19px; line-height: 1.6; display: flex; flex-direction: column; }
.doc .row { padding: 28px 0; border-top: 1px solid var(--line); }
.doc .row.last { border-bottom: 1px solid var(--line); }
.doc .row h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.doc .row p, .doc .open p { color: var(--text); }
.doc .row.tagged { display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.doc .tag { font-family: var(--mono); font-size: 13px; color: var(--accent-text); padding-top: 8px; white-space: nowrap; }
.doc .open { margin-bottom: 40px; }
.doc .sub { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 56px 0 14px; }
.doc ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.doc strong { font-weight: 600; color: var(--ink); }
.doc article a { color: var(--accent-text); text-decoration: none; }
.doc article a:hover { text-decoration: underline; }
.doc404 main > .w { padding-top: 180px; padding-bottom: 160px; display: flex; flex-direction: column; gap: 28px; min-height: 70vh; }
.doc404 p { font-size: 19px; color: var(--text); display: flex; gap: 28px; flex-wrap: wrap; }
.doc404 a { color: var(--accent-text); text-decoration: none; }

/* ---- phone ---- */
@media (max-width: 760px) {
  .top .w { padding-top: 16px; padding-bottom: 16px; }
  .top nav { gap: 16px; font-size: 14px; }
  .top nav a:not(.cta) { display: none; }
  .hero .copy { padding-bottom: 40px; }
  .section { padding-top: 96px; }
  .section.first { padding-top: 80px; }
  .side.sticky { position: static; }
  .prop { grid-template-columns: 64px 1fr; gap: 18px; }
  .prop svg { width: 64px; height: 64px; }
  .layer { padding: 22px; }
  .security { margin-top: 96px; }
  .security .w { padding-top: 72px; padding-bottom: 72px; }
  .three .col { padding-left: 0; padding-right: 0; }
  .cta .w { padding-top: 110px; padding-bottom: 96px; }
  .doc main > .w, .doc404 main > .w { padding-top: 130px; padding-bottom: 96px; }
  .doc .row.tagged { grid-template-columns: 1fr; gap: 8px; }
  .doc .tag { padding-top: 0; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .copy { animation: none; }
  .layer, .layer h3, .layer .owner, .diagram .box, .diagram .own, .q .a, .btn, .top nav a, .foot a { transition: none; }
}
