/* techbunnies.nl — shared shell
   Design tokens and page chrome used by every page. Page-specific styles live
   next to the page that needs them (assets/home.css, gallery/gallery.css).

   There is no JavaScript anywhere on this site by design — see
   docs/gallery-design-notes.md, decision 4. */

:root {
  --bg: #fafaf8;
  --surface: #f0efec;
  --text: #2c2b28;
  --muted: #6c6a64;
  --line: #dedbd4;
  --gap: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --surface: #212126;
    --text: #ececef;
    --muted: #9b9aa3;
    --line: #32323a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.page {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

/* --- header --- */

.site-header { border-bottom: 1px solid var(--line); }

.site-header .page {
  padding: 1.25rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { text-decoration: underline; }

.site-nav { display: flex; gap: 1rem; font-size: .95rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav [aria-current="page"] { color: var(--text); text-decoration: none; }

/* --- headings --- */

h1 {
  margin: 0 0 2rem;
  font-size: 1.6rem;
}

/* --- footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

.site-footer .page {
  padding: 1.25rem 0;
  text-align: center;
}

.site-footer a { color: inherit; }

/* --- utility ---
   Present in the accessibility tree, absent from the page. Used for long
   image descriptions referenced with aria-describedby. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
