/* Doro — the same tokens the app uses, so the site and the product read as
   one thing. Nothing here is loaded from a third party; a site for an app
   that makes no network calls shouldn't make any either. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2212;
}

:root {
  --bg: #08090c;
  --ink: #f4f1ec;
  --ink-dim: rgb(244 241 236 / 0.54);
  --ink-faint: rgb(244 241 236 / 0.30);
  --hairline: rgb(244 241 236 / 0.12);
  --accent: #ff9d5c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 34rem;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── shared chrome ──────────────────────────────────────────────── */

.wordmark {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
}

.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.25rem 1.75rem 5rem;
}

/* ── hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

#orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__inner {
  position: relative;
  padding: 0 1.5rem;
  /* Clear of the orb, which the shader centres at 40% of the viewport height
     with a radius of at most 0.20 of it. */
  transform: translateY(19vh);
}

.hero h1 {
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 460;
  letter-spacing: -0.055em;
  margin: 0;
  line-height: 1;
}

.hero p {
  margin: 1rem auto 0;
  max-width: 24rem;
  color: var(--ink-dim);
  font-size: 1rem;
}

.badge {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: border-color 400ms var(--ease), color 400ms var(--ease);
}

.badge:hover { border-color: var(--ink-faint); color: var(--ink); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── prose ──────────────────────────────────────────────────────── */

.notes { border-top: 1px solid var(--hairline); }

.note + .note { margin-top: 3.5rem; }

.note h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.note p { margin: 0; color: var(--ink-dim); }

h1.page-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 460;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.updated { color: var(--ink-faint); font-size: 0.8125rem; margin: 0 0 3rem; }

.prose h2 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 2.75rem 0 0.5rem;
  letter-spacing: -0.005em;
}

.prose p, .prose li { color: var(--ink-dim); margin: 0 0 0.75rem; }
.prose ul { padding-left: 1.1rem; margin: 0 0 0.75rem; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgb(255 157 92 / 0.3); }
.prose a:hover { border-bottom-color: var(--accent); }

/* ── footer ─────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--hairline);
  padding: 2rem 1.75rem 3rem;
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.8125rem;
}

.foot a { color: var(--ink-dim); text-decoration: none; transition: color 300ms var(--ease); }
.foot a:hover { color: var(--ink); }
.foot .spacer { flex: 1; }
.foot small { color: var(--ink-faint); }

.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}
.back:hover { color: var(--ink-dim); }
