/* User Is Human: shared look. Keep the tokens in sync with systembasics/src/styles/tokens.css. */
:root {
  /* Dark only, by choice: the home page does not follow the system light/dark setting. */
  color-scheme: dark;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #101216;
  --surface: #171a1f;
  --ink: #e6e8eb;
  --muted: #98a1ac;
  --rule: #2a2f36;
  --accent: #7aaeff;
  --code-bg: #1c2026;
  /* Masthead only: the title, the dimmer "is", and the pulse line. */
  --title: #c9cdd3;
  --title-dim: #7d8590;
  --pulse: #4a515b;
  /* Footer text: dimmer than --muted. Keep in sync with systembasics/src/styles/tokens.css. */
  --faint: #5d6570;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.page {
  max-width: 44rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* The name, centered, with a pulse line drawn once under it. */
.mast { padding: clamp(3rem, 12vh, 7rem) 0 2.5rem; text-align: center; }
.mast h1 {
  margin: 0;
  color: var(--title);
  font-size: clamp(1.375rem, 5.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.mast h1 .is { color: var(--title-dim); }
/* Shrinks to the title's width, so the pulse line below it is exactly as wide as the text. */
.mast .name { display: inline-block; }
.pulse { display: block; width: 100%; height: 40px; margin: 0.75rem 0 0; color: var(--pulse); }
.pulse path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .pulse path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.2s ease-out 0.2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

.apps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.apps li { border-bottom: 1px solid var(--rule); }
.apps a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0 1rem;
  align-items: center;
  padding: 1.25rem 0.5rem;
  color: inherit;
  text-decoration: none;
}
.apps a:hover .name { color: var(--accent); }
.apps img { width: 56px; height: 56px; grid-row: span 2; }
.apps .name { font-weight: 600; font-size: 1.125rem; }
/* Platform glyph: ⌘ for Mac, globe for web. Generic symbols on purpose: Apple's trademark rules don't allow its logo here. */
.apps .kind { display: flex; color: var(--faint); }
.apps .what { grid-column: 2 / 4; color: var(--muted); font-size: 0.9375rem; }

.lost { padding: clamp(3rem, 12vh, 7rem) 0 2rem; }
.lost h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -0.035em; }
.lost p { color: var(--muted); }

footer { margin-top: auto; padding: 3rem 0 2rem; color: var(--faint); font-size: 0.875rem; text-align: center; }
