:root {
  /* The gateway and the 404 page share the hub's evening palette (assets/hub.css). */
  color-scheme: dark;
  --bg: #10121a;
  --text: #e9e4d8;
  --muted: #aaa79f;
  --accent: #e8bd72;
  --line: #2d2f3a;
  --card: #1a1c25;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Avenir Next", system-ui, sans-serif;
  line-height: 1.6;
}

main {
  max-width: 36rem;
  min-height: 100svh;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.centered { justify-content: center; text-align: center; }

h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: .02em; }
h2 { margin: 0 0 .75rem; font-size: 1rem; color: var(--muted); font-weight: 600; }
p { margin: 0; }
.note { color: var(--accent); font-size: 2.5rem; line-height: 1; }
.lead { color: var(--muted); }

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.links a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}
.links a:hover { border-color: var(--accent); }
.links strong { display: block; color: var(--accent); }
.links span { color: var(--muted); font-size: .95rem; }

.languages { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; }
.centered .languages { justify-content: center; }
.languages a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }
