@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF7F2;
  --bg-elevated: #F3EFE8;
  --text: #2B2825;
  --text-muted: #8C857B;
  --text-faint: #B8B1A6;
  --accent: #4E7D67;
  --accent-strong: #416A57;
  --accent-soft: rgba(78, 125, 103, 0.10);
  --warn: #B6653F;
  --variable: #7A6650;
  --rule: #E6E0D6;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 120ms;
  --t-base: 160ms;
  --measure: 680px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1A18;
    --bg-elevated: #242120;
    --text: #ECE7DF;
    --text-muted: #8F887E;
    --text-faint: #5E5851;
    --accent: #8FBDA6;
    --accent-strong: #A5CDB8;
    --accent-soft: rgba(143, 189, 166, 0.12);
    --warn: #D9946F;
    --variable: #C4AE94;
    --rule: #2F2B28;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.top, main, footer {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  font-size: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  color: var(--text);
}
.brand img { display: block; border-radius: 5px; }
.top nav { display: flex; gap: 22px; color: var(--text-muted); }
.top nav a { transition: color var(--t-fast) var(--ease); }

/* hero */
.hero { padding: 72px 0 40px; }
h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.sub {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* demo document */
.demo { padding: 8px 0 44px; }
.doc {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 12px 18px 20px;
  font-size: 15px;
  line-height: 1.65;
}
.line {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.src { flex: 1 1 auto; min-width: 0; white-space: pre-wrap; }
.res {
  flex: 0 0 auto;
  color: var(--accent);
  text-align: right;
  padding: 0 8px;
  border-radius: var(--radius);
  transition: background-color var(--t-fast) var(--ease);
}
.res:hover { background: var(--accent-soft); }
.res.soft { opacity: 0.8; }
.hd { font-weight: 500; }
.hash, .op, .kw, .unit, .lbl { color: var(--text-muted); }
.var { color: var(--variable); }

/* download */
.cta { padding: 0 0 56px; }
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { border-color: var(--text-faint); color: var(--text); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--bg); }
.btn.soon {
  color: var(--text-faint);
  cursor: default;
  border-style: dashed;
}
.btn.soon em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.5;
}
.note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* features */
.features { padding: 0 0 40px; }
.features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.ex {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  line-height: 1.65;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.features p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* quiet line */
.quiet { padding: 0 0 72px; }
.quiet p {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  color: var(--text-muted);
}

/* footer */
footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 64px;
  font-size: 13px;
  color: var(--text-muted);
}
footer::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  border-top: 1px solid var(--rule);
}

/* Prose pages (privacy). One column, same measure as the rest of the site. */
.prose { padding: 40px 0 8px; }
.prose h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 10px; }
.prose .updated { margin: 0 0 32px; font-size: 14px; color: var(--text-muted); }
.prose h2 {
  margin: 36px 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.prose p { margin: 0 0 14px; }
.prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--rule);
}
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 0 0 8px; }
.prose code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-elevated);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.prose .lede {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}

@media (max-width: 600px) {
  .prose h1 { font-size: 28px; }
  .prose h2 { font-size: 17px; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 32px; }
  h1 { font-size: 32px; }
  .sub { font-size: 16px; }
  .doc { padding: 14px 4px 14px 12px; font-size: 14px; }
  .line { gap: 12px; }
  .buttons { flex-direction: column; }
  .btn { width: 100%; }
  .features ul { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
