@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Dark is the base, so the page still has a theme without JavaScript. */
:root {
  color-scheme: dark;
  --bg: #08090b;
  --ink: #f1f3f4;
  --muted: #aab1b6;
  --body: #d5dadd;
  --label: #858d93;
  --line: rgba(255, 255, 255, .13);
  --accent: #aec4a3;
  --chip: rgba(255, 255, 255, .09);
  --chip-hover: rgba(255, 255, 255, .16);
  --card: rgba(255, 255, 255, .07);
  --card-hover: rgba(255, 255, 255, .13);
  --card-line: rgba(255, 255, 255, .12);
  --glow-main: radial-gradient(circle, rgb(150, 178, 140) 0%, rgba(150, 178, 140, .3) 38%, transparent 68%);
  --glow-second: radial-gradient(circle, rgba(60, 120, 255, .5) 0%, transparent 66%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f6f3;
    --ink: #17181a;
    --muted: #5c6063;
    --body: #34373a;
    --label: #6b6f72;
    --line: rgba(0, 0, 0, .14);
    --accent: #557150;
    --chip: rgba(0, 0, 0, .06);
    --chip-hover: rgba(0, 0, 0, .11);
    --card: rgba(255, 255, 255, .62);
    --card-hover: rgba(255, 255, 255, .9);
    --card-line: rgba(0, 0, 0, .09);
    --glow-main: radial-gradient(circle, rgb(185, 203, 174) 0%, rgba(185, 203, 174, .3) 38%, transparent 68%);
    --glow-second: radial-gradient(circle, rgba(150, 185, 240, .65) 0%, transparent 66%);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f3;
  --ink: #17181a;
  --muted: #5c6063;
  --body: #34373a;
  --label: #6b6f72;
  --line: rgba(0, 0, 0, .14);
  --accent: #557150;
  --chip: rgba(0, 0, 0, .06);
  --chip-hover: rgba(0, 0, 0, .11);
  --card: rgba(255, 255, 255, .62);
  --card-hover: rgba(255, 255, 255, .9);
  --card-line: rgba(0, 0, 0, .09);
  --glow-main: radial-gradient(circle, rgb(185, 203, 174) 0%, rgba(185, 203, 174, .3) 38%, transparent 68%);
  --glow-second: radial-gradient(circle, rgba(150, 185, 240, .65) 0%, transparent 66%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  transition: background-color .25s, color .25s;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page {
  --size-main: clamp(420px, 53vw, 760px);
  --size-second: clamp(380px, 49vw, 700px);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 32px clamp(16px, 5vw, 72px) 36px;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page::before {
  width: var(--size-main);
  height: var(--size-main);
  right: calc(var(--size-main) * -.21);
  top: calc(var(--size-main) * -.34);
  background: var(--glow-main);
  filter: blur(30px);
}

.page::after {
  width: var(--size-second);
  height: var(--size-second);
  right: calc(var(--size-main) * .316);
  top: calc(var(--size-second) * -.17);
  background: var(--glow-second);
  filter: blur(40px);
}

.page > * { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}

.wordmark {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.wordmark .dot { color: var(--accent); }

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  padding: 9px 16px;
  border-radius: 99px;
  background: var(--chip);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s;
}

.chip:hover { background: var(--chip-hover); }

/* The toggle needs JavaScript, so it only appears when JavaScript runs. */
.toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  place-items: center;
  cursor: pointer;
  transition: background-color .2s;
}

.js .toggle { display: grid; }
.toggle:hover { background: var(--chip-hover); }

.toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .moon,
[data-theme="light"] .sun { display: none; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
}

h1 {
  max-width: 11em;
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  max-width: 32em;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.5;
}

.card {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 18px;
  max-width: 100%;
  margin-top: 36px;
  padding: 14px 22px 14px 14px;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  text-decoration: none;
  transition: background-color .2s;
}

.card:hover { background: var(--card-hover); }

.card img {
  flex: none;
  display: block;
  border-radius: 12px;
}

.card strong {
  font-size: 16px;
  font-weight: 500;
}

.card small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.legal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

.legal dt {
  margin-bottom: 5px;
  color: var(--label);
  font-size: 12.5px;
}

.legal dd { overflow-wrap: anywhere; }
.legal a:hover { color: var(--accent); }

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