:root {
  --bg: #0E0E10;
  --card: #17171A;
  --hairline: #2A2A2F;
  --accent: #2E96FF;
  --text: #F4F2EE;
  --muted: #84817B;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.mark {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 28px;
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 24px;
}

.copy {
  margin: 0;
  max-width: 34ch;
}

.copy p {
  margin: 0 0 0.9em;
}

.copy p:last-child { margin-bottom: 0; }

.copy .beta {
  color: var(--muted);
}

.links {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em 0;
  max-width: 100%;
}

.links li { display: inline; white-space: nowrap; }

.links li:not(:last-child)::after {
  content: "\00b7";
  color: var(--muted);
  padding: 0 0.7em;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  overflow-wrap: anywhere;
}

a:hover, a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

footer a { color: var(--muted); border-bottom-color: var(--hairline); }
footer a:hover, footer a:focus-visible { color: var(--accent); }

/* Sub-pages */
.page main {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding-top: 24px;
}

.page .mark {
  width: 40px;
  height: 40px;
  margin: 0 0 32px;
}

.page h1 {
  font-size: 1.75rem;
}

.page .copy {
  max-width: 60ch;
}

.back {
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-top: 32px;
}

@media (min-width: 640px) {
  body { padding: 48px 24px; }
  h1 { font-size: 2.75rem; }
  .page h1 { font-size: 2rem; }
}

.home { border: 0; display: inline-block; }
