@font-face {
  font-family: Geist;
  src: url("/assets/fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("/assets/fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #0f1720;
  --body: #39424d;
  --muted: #6b7480;
  --line: rgba(15, 23, 32, 0.09);
  --deep: #0f1720;
  --accent: #1f5f8b;
  --smallfry: #2f5d9a;
  --tusk: #8a6532;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1080px;
  --sans: Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand img { width: 38px; height: auto; }
.nav { display: flex; gap: clamp(18px, 3vw, 32px); font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */

.hero { padding: clamp(72px, 13vh, 144px) 0 clamp(56px, 9vh, 96px); }
.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.hero h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.lede {
  max-width: 52ch;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--body);
}

/* Sections */

.section { padding: clamp(48px, 8vh, 88px) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }

/* Products */

.products { display: grid; gap: 20px; }
@media (min-width: 820px) {
  .products { grid-template-columns: 1fr 1fr; }
}
.product {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04);
}
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.domain { font-size: 14px; font-weight: 500; color: var(--muted); }
.domain::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: 1px;
}
.smallfry .domain::before { background: var(--smallfry); }
.tusk .domain::before { background: var(--tusk); }
.tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.product h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.product .tagline {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}
.product p { margin: 0 0 28px; color: var(--body); line-height: 1.6; }
.go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.go::after { content: "→"; transition: transform 0.15s; }
.go:hover::after { transform: translateX(3px); }
.smallfry .go { color: var(--smallfry); }
.tusk .go { color: var(--tusk); }

/* Company */

.company {
  display: grid;
  gap: 32px;
}
@media (min-width: 820px) {
  .company { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.company p {
  margin: 16px 0 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  max-width: 46ch;
}
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts a { color: var(--accent); text-decoration: none; }
.facts a:hover { text-decoration: underline; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 40px;
}
.site-footer p { margin: 0; }
.site-footer .fine { flex-basis: 100%; color: #8a929c; font-size: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Document pages */

.doc { padding: 0 0 96px; }
.doc article { max-width: 720px; }
.doc .page-head {
  padding: clamp(48px, 9vh, 88px) 0 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.doc .sub { margin: 0; color: var(--muted); font-size: 16px; }
.doc h2 {
  margin: 40px 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.doc h3 {
  margin: 24px 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.doc p, .doc li { color: var(--body); line-height: 1.65; font-size: 16px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); }
.doc strong { color: var(--ink); font-weight: 500; }
.callout {
  margin: 32px 0 8px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }
.callout .big { font-size: 20px; font-weight: 500; color: var(--ink); }
.callout .big a { text-decoration: none; }

@media (max-width: 600px) {
  .brand span { font-size: 15px; }
  .nav { gap: 16px; font-size: 13px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .go::after, .nav a { transition: none; }
}
.doc code {
  padding: 1px 6px;
  background: rgba(15, 23, 32, 0.05);
  border-radius: 6px;
  font-size: 0.9em;
}
