/* 2010s Apple feel: centered, white space, light large type. Greyscale; Altair in the mark is the only color. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #86868b;
  --line: #d2d2d7;
  /* the star and the email link share this blue; deeper in light mode so the link stays readable */
  --accent: #0071e3;
  --max: 60rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --muted: #86868b;
    --line: #333336;
    --accent: #2997ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

.site-footer {
  width: 100%;
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
  padding: 1.25rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.25rem 5rem;
  text-align: center;
}

h1 { margin: 0 0 3rem; width: 100%; }

/* Logo lockup: Jost wordmark with the constellation Aquila, drawn inline so it follows light and dark mode */
.logo { display: block; width: min(44rem, 100%); height: auto; margin: 0 auto; }
.logo-text { fill: var(--text); }
.logo-lines { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: 0.45; }
.logo-stars { fill: var(--muted); }
.logo-altair { fill: var(--accent); }

/* the story: a narrow, left-aligned column centered under the logo, easier to read than centered lines */
.story {
  max-width: 31rem;
  text-align: left;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.7;
}

.story p { margin: 0 0 1rem; }
.story p:last-child { margin-bottom: 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* 404 page */
.not-found {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.015em;
}

.story a { color: var(--accent); text-decoration: none; }
.story a:hover { text-decoration: underline; }
