/* ofcompute: one screen, three sentences, one action.
   Palette comes from the media kit (black and white), softened to off-black / off-white.
   Light or dark follows the system setting. Radius rule: sharp everywhere except the
   button, which echoes the mark (small radius left, full round right). */

@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;
}

:root {
  --bg: #f4f4f5;
  --fg: #0a0a0a;
  --muted: #52525b;
  --line: rgb(10 10 10 / 0.14);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1400px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f4f4f5;
    --muted: #a1a1aa;
    --line: rgb(244 244 245 / 0.16);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, p { margin: 0; }
svg { display: block; fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  translate: 0 -120%;
  padding: 0.6rem 1rem;
  background: var(--fg);
  color: var(--bg);
}
.skip:focus { translate: 0 0.5rem; }

/* ---------- layout: wordmark top-left, text on the same left edge, footer under it ---------- */

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.75rem var(--gutter) 1.75rem;
}

.top__brand { display: inline-block; line-height: 0; }
.wordmark { height: 1.5rem; width: auto; aspect-ratio: 1049 / 285; }

.copy {
  align-self: center;
  justify-self: start;
  width: min(100%, 36rem);
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding-block: 4rem;
}

.copy h1 {
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.copy p {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.95rem 1.8rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px 999px 999px 6px;
  transition: transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.copy a:not(.btn) { text-decoration: underline; text-underline-offset: 0.2em; }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; }
.foot__mark { margin-left: auto; height: 1.1rem; width: auto; aspect-ratio: 2650.862 / 1822.468; color: var(--fg); }

@media (max-width: 767px) {
  .copy { padding-block: 3rem; }
}

/* ---------- document pages: legal, privacy notice, media kit ---------- */

.doc { align-self: start; width: min(100%, 44rem); padding-block: 3.5rem 5rem; }
.crumbs { font-size: 0.9375rem; color: var(--muted); }
.crumbs a { color: inherit; text-underline-offset: 0.2em; }
.doc h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.doc .meta { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.doc h2 {
  margin-top: 2.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.doc p { margin-top: 0.75rem; max-width: 65ch; line-height: 1.6; }
.doc p a { text-decoration: underline; text-underline-offset: 0.2em; }

.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin-top: 1.25rem; }
.kit__item { margin: 0; }
.kit__panel { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 12%; border: 1px solid var(--line); }
.kit__panel--light { background: #f4f4f5; }
.kit__panel--dark { background: #0a0a0a; }
.kit__panel img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.kit figcaption { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted); }
.kit__dl { display: flex; gap: 1rem; flex: none; }
.kit__dl a { color: var(--fg); text-underline-offset: 0.2em; }

@media (max-width: 599px) {
  .kit { grid-template-columns: 1fr; }
}

/* ---------- motion ---------- */
/* One load-in, in reading order (headline, then the two lines, then the action).
   Off under prefers-reduced-motion. */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms + 80ms);
  }
  .copy > :nth-child(2) { --i: 1; }
  .copy > :nth-child(3) { --i: 2; }
  .copy > :nth-child(4) { --i: 3; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}
