/* Anacrusis — one page.
   Palette, type scale and grain follow source.shop's design language. */

:root {
  --bg:        #fafafa;
  --ink:       #09090b;
  --ink-50:    rgba(9, 9, 11, 0.50);
  --ink-45:    rgba(9, 9, 11, 0.45);
  --ink-35:    rgba(9, 9, 11, 0.35);
  --rule:      rgba(9, 9, 11, 0.10);

  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --pad-x: clamp(1.5rem, 5vw, 4rem);
  --pad-y: clamp(2rem, 5vh, 3.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Grain ─────────────────────────────────────────────── */

.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%,  100% { transform: translate(0, 0); }
  10%       { transform: translate(-5%, -10%); }
  20%       { transform: translate(-15%, 5%); }
  30%       { transform: translate(7%, -25%); }
  40%       { transform: translate(-5%, 25%); }
  50%       { transform: translate(-15%, 10%); }
  60%       { transform: translate(15%, 0%); }
  70%       { transform: translate(0%, 15%); }
  80%       { transform: translate(3%, 35%); }
  90%       { transform: translate(-10%, 10%); }
}

/* ── Shell ─────────────────────────────────────────────── */

.shell {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--pad-y) var(--pad-x);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ── Masthead ──────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.navlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink-50);
  text-decoration: none;
  transition: color 0.2s ease;
}

.navlink:hover { color: var(--ink); }

.arrow {
  width: 0.72em;
  height: 0.72em;
  flex: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover > .arrow { transform: translate(1.5px, -1.5px); }

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 12vh, 9rem) 0;
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.75rem, 8.5vw, 7rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lede {
  margin: clamp(1.25rem, 2.5vh, 2rem) 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-45);
  text-wrap: balance;
}

/* ── Meta grid ─────────────────────────────────────────── */

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), auto));
  justify-content: start;
  gap: clamp(1.75rem, 4vw, 4rem);
  max-width: 54rem;
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-35);
}

.value {
  margin: 0.7rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 var(--rule);
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.quiet:hover { box-shadow: inset 0 -1px 0 0 currentColor; }

/* ── Colophon ──────────────────────────────────────────── */

.colophon {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: clamp(1.25rem, 3vh, 2rem);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-35);
}

.colophon p { margin: 0; }

@media (max-width: 34rem) {
  .registered { display: none; }
}

/* ── Focus & motion ────────────────────────────────────── */

a:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .shell { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
