/* Fonts: self-hosted, SIL Open Font License 1.1 — see /assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F5F6F8;
  --ink: #15171A;
  --muted: #5A5F68;
  --accent: #B83F12;
  --seed: #D9481C;
  --sans: "Schibsted Grotesk", "Adwaita Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101C3A;
    --ink: #E8ECF5;
    --muted: #AAB6CF;
    --accent: #FF9A70;
    --seed: #FF9A70;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  width: 100%;
  max-width: 44rem;
  text-align: center;
}

main > * { margin: 0; }

/* Lockup: mark + name, gap ~0.22em, centred vertically */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}
.mark {
  display: block;
  width: 1.5em;
  height: 1.5em;
  flex: none;
}
.mark .seed { fill: var(--seed); }
.name {
  letter-spacing: -0.04em;
  /* optical centring: the mark's mass sits slightly above its box centre */
  transform: translateY(-0.04em);
}
.seed-half { font-weight: 500; }
.yard-half { font-weight: 800; }

h1 {
  margin-top: clamp(3rem, 9vh, 5.5rem);
  font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.sub {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  color: var(--muted);
  text-wrap: balance;
}

.status {
  margin-top: clamp(2.5rem, 7vh, 4rem);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.link { margin-top: 0.75rem; }

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  body { padding: 2.5rem 1rem; }
  .lockup { font-size: 1.75rem; }
}
