/* Fonts are served beside the page, so a visit calls no other site. Both are under the SIL Open Font License. */
@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url("fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #0a1711; --fg: #f1f3ec; --soft: rgb(241 243 236 / .62); --faint: rgb(241 243 236 / .16);
  --gold: #d6b981; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { margin: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  min-height: 100vh; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 24px 16px;
  background: var(--bg); color: var(--fg); overflow-x: hidden; overflow-y: auto; -webkit-font-smoothing: antialiased;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Slow-moving light: two greens and one champagne, heavily blurred. */
.light { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(90px) saturate(115%); }
.light i { position: absolute; border-radius: 50%; opacity: .75; }
.light i:nth-child(1) { width: 52vmax; height: 52vmax; left: 8%; top: 12%; background: #2f6b4b; animation: drift-a 26s ease-in-out infinite alternate; }
.light i:nth-child(2) { width: 44vmax; height: 44vmax; right: 6%; bottom: 4%; background: #1d4a36; animation: drift-b 32s ease-in-out infinite alternate; }
.light i:nth-child(3) { width: 26vmax; height: 26vmax; left: 46%; top: 30%; background: #a8915f; opacity: .38; animation: drift-c 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vmax, 8vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-12vmax, -10vmax) scale(.92); } }
@keyframes drift-c { to { transform: translate(-16vmax, 10vmax) scale(1.2); } }

/* Fine grain over everything so the gradients feel like material, not screen. */
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.card {
  position: relative; z-index: 2; width: min(480px, 100%); text-align: center;
  opacity: 0; transform: translateY(10px); animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) .1s forwards;
}
.name { font-weight: 300; font-size: clamp(2.25rem, 8vw, 3.1rem); letter-spacing: -.01em; line-height: 1; }
.name span { display: block; margin-top: 12px; font-weight: 400; font-size: clamp(.7rem, 2.4vw, .8rem);
  letter-spacing: .46em; text-indent: .46em; text-transform: uppercase; color: var(--soft); }
.rule { width: 36px; height: 1px; margin: 32px auto 22px; background: var(--gold); }
.soon { font-family: var(--mono); font-size: 11px; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--gold); }
.name, .rule, .soon { opacity: 0; animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) forwards; }
.name { animation-delay: .4s; } .rule { animation-delay: .7s; } .soon { animation-delay: .9s; }

footer { position: relative; z-index: 2; width: 100%; max-width: 1100px; padding-top: 16px; border-top: 1px solid var(--faint);
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; line-height: 1.7; color: var(--soft);
  opacity: 0; animation: settle 1.2s ease 1.2s forwards; }

@keyframes settle { to { opacity: 1; transform: none; } }

@media (max-width: 600px) { footer { justify-content: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .card, .name, .rule, .soon, footer { opacity: 1; transform: none; }
}
