/* The personal site's own styles. Deliberately separate from the gallery's:
   this page is served from its own bucket by the distribution's default
   cache behaviour, and nothing here is shared with site/ — a change to one
   can never break the other. */

:root {
  color-scheme: light dark;
  --bg: #fdfdfc;
  --fg: #1a1a18;
  --muted: #6b6b66;
  --rule: #e2e2dd;
  --accent: #1a1a18;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --fg: #ececea;
    --muted: #8f8f88;
    --rule: #2a2a27;
    --accent: #ececea;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.intro {
  margin: 1rem 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

nav {
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}

nav a:hover .label,
nav a:focus-visible .label {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.label {
  display: block;
  font-weight: 600;
}

.note {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-wrap: pretty;
}

footer {
  max-width: 34rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  main {
    padding-top: 3.5rem;
  }
  h1 {
    font-size: 1.65rem;
  }
}
