/* Inter, self-hosted (OFL 1.1, see assets/fonts/OFL.txt). Weights per brandbook section 14. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Layout tokens. Color tokens live in tokens.css, loaded before this file. */
:root {
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; hyphens: auto; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--color-link); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--color-accent); color: var(--color-accent-text); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--color-link); outline-offset: 2px; border-radius: 6px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.top__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; }
.logo__mark { width: 30px; height: 30px; flex: none; }
/* Brand sign (section 14): ring with a dot on a graphite rounded square. */
.logo__bg { fill: var(--sign-bg); stroke: var(--color-border); }
.logo__ring { fill: none; stroke: var(--color-accent); stroke-width: 4; }
.logo__dot { fill: var(--color-accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--color-text-muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--color-text); }
@media (max-width: 900px) { .nav { display: none; } .top__inner > .lang { margin-left: auto; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius);
  background: var(--color-accent); color: var(--color-accent-text);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  border: 1px solid var(--color-accent); cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-accent); filter: none; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: .92rem; }

/* hero: heading across the full width, lead and actions below */
.hero { padding: clamp(56px, 11vw, 128px) 0 clamp(56px, 9vw, 104px); }
.hero h1 { max-width: 22ch; }
.eyebrow { color: var(--color-link); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.lead { color: var(--color-text-muted); font-size: 1.15rem; margin-top: 28px; max-width: 40em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* sections: numbered grid, heading on the left, content on the right */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--color-border); }
.section--alt { background: var(--color-surface); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.section__num { color: var(--color-link); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; margin-bottom: 12px; }
.section__lead { color: var(--color-text-muted); font-size: 1.05rem; margin-top: 14px; }

/* vertical amber line instead of cards */
.rail { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--color-accent); }
.rail > li { padding: 0 0 36px 28px; }
.rail > li:last-child { padding-bottom: 4px; }
.rail > li > p { color: var(--color-text-muted); margin-top: 6px; }
.rail h3 { font-size: 1.25rem; }
.rail--steps { counter-reset: step; }
.rail--steps > li { counter-increment: step; }
.rail--steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--color-link); margin-bottom: 6px;
}

.ticks { margin: 14px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 20px; margin-top: 6px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .66em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--color-accent);
}

.rows { display: grid; }
.row { padding: 24px 0; border-top: 1px solid var(--color-border); }
.row:first-child { padding-top: 0; border-top: 0; }
.row p { color: var(--color-text-muted); margin-top: 8px; }

.projects { display: grid; gap: 48px; }
.project { border-top: 2px solid var(--color-accent); padding-top: 22px; }
.project__tag { font-weight: 600; font-size: .85rem; color: var(--color-link); margin-bottom: 10px; }
.project h3 { font-size: 1.25rem; }
.project > p:not(.project__tag) { color: var(--color-text-muted); margin-top: 10px; }

.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 560px) { .stack { grid-template-columns: minmax(0, 1fr); } }
.stack__group h3 { font-size: 1rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: .88rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--color-border); color: var(--color-text); }

.faq { display: grid; border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--color-link); border-bottom: 2px solid var(--color-link);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--color-text-muted); padding-bottom: 20px; }

.contact__box { border-left: 2px solid var(--color-accent); padding: 4px 0 4px 28px; }
.contact__mail { font-weight: 800; font-size: clamp(1.2rem, 3.6vw, 2rem); letter-spacing: -.01em; color: var(--color-text); text-decoration: none; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--color-link); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact__note { min-height: 1.6em; margin-top: 14px; color: var(--color-text-muted); font-size: .95rem; }

.foot { border-top: 1px solid var(--color-border); padding: 28px 0; color: var(--color-text-muted); font-size: .92rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--color-text-muted); }

/* 404 */
.nf { min-height: calc(100vh - 64px - 90px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf__code { font-weight: 800; font-size: clamp(4rem, 14vw, 7rem); letter-spacing: -.02em; color: var(--color-link); line-height: 1; }
.nf p { color: var(--color-text-muted); margin: 16px 0 28px; }

/* language switcher */
.lang { display: flex; gap: 2px; font-size: .88rem; font-weight: 600; }
.lang a { color: var(--color-text-muted); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.lang a:hover { color: var(--color-text); }
.lang a[aria-current="page"] { color: var(--color-text); background: var(--color-border); }
@media (max-width: 480px) { .top__inner { gap: 8px; } .top__inner > .btn { padding: 0 10px; font-size: .88rem; } .logo { font-size: 1rem; gap: 8px; } .lang a { padding: 6px 5px; } }
