:root {
  --paper: #FFFFFF; --ink: #1D1D1F; --grey: #6E6E73; --line: #D2D2D7; --wash: #F5F5F7; --accent: #0066CC;
  --head: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #000000; --ink: #F5F5F7; --grey: #A1A1A6; --line: #424245; --wash: #1D1D1F; --accent: #2997FF; color-scheme: dark; }
  :root:not([data-theme="light"]) .logo { filter: invert(1); }
}
:root[data-theme="dark"] { --paper: #000000; --ink: #F5F5F7; --grey: #A1A1A6; --line: #424245; --wash: #1D1D1F; --accent: #2997FF; color-scheme: dark; }
:root[data-theme="dark"] .logo { filter: invert(1); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 16px;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.47; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 56rem; margin: 0 auto; }

header { padding-top: 40px; }
.logo { display: block; width: 12rem; height: auto; }

main { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
.eyebrow { margin: 0 0 20px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--grey); }
.eyebrow .tag { color: var(--accent); }
h1 {
  margin: 0; max-width: 14ch;
  font-family: var(--head); font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.05; letter-spacing: -0.025em;
}
.lede { margin: 28px 0 0; max-width: 34rem; font-size: 21px; line-height: 1.38; letter-spacing: -0.015em; color: var(--grey); }

a { color: var(--accent); }
.home { font-weight: 600; text-decoration: none; }
.home:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.cta { margin: 32px 0 0; }

footer {
  border-top: 1px solid var(--line); padding: 20px 0 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 13px; color: var(--grey);
}
footer p { margin: 0; }
.status { font-family: var(--mono); letter-spacing: 0; }

/* The quirk: sparks rise from the logo cube on hover. */
.mark { position: relative; display: inline-block; }
.spark {
  position: absolute; left: 14%; top: 30%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: 0; pointer-events: none;
}
.s1 { --dx: -14px; } .s2 { --dx: 6px; } .s3 { --dx: 18px; } .s4 { --dx: -4px; }
.mark:hover .spark { animation: rise .9s ease-out forwards; }
.mark:hover .s2 { animation-delay: .08s; }
.mark:hover .s3 { animation-delay: .16s; }
.mark:hover .s4 { animation-delay: .05s; }
@keyframes rise {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -44px) scale(.4); }
}
@media (prefers-reduced-motion: reduce) { .mark:hover .spark { animation: none; } }

@media (max-width: 720px) {
  header { padding-top: 24px; }
  .logo { width: 9rem; }
  .lede { font-size: 19px; }
}
