:root {
  /* Brand palette: warm paper, near-black ink, red accent */
  --bg: #faf8f6;
  --ink: #231f20;
  --muted: #6b6367;
  --line: #ece3da;
  --accent: #e63946;
  --maxw: 42rem;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* dark palette — applied on explicit choice (data-theme), or by the OS when the
   visitor hasn't made an explicit choice. Explicit light just uses :root defaults. */
:root[data-theme="dark"] {
  --bg: #171314;
  --ink: #f6efe8;
  --muted: #a49da1;
  --line: #322b2c;
  --accent: #ef7079;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #171314;
    --ink: #f6efe8;
    --muted: #a49da1;
    --line: #322b2c;
    --accent: #ef7079;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-underline-offset: 3px; }
.site-head { padding: 1.75rem clamp(1.25rem, 5vw, 3rem); }
/* logo mark */
.brand-logo-link { display: inline-block; line-height: 0; }
.brand-logo-sm { display: block; height: 2rem; width: auto; }
main.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 5vw, 3rem);
  width: 100%;
}
.brand-logo {
  display: block;
  width: min(540px, 84vw);
  height: auto;
  margin: 0 auto;
}
.lede {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.about { color: var(--muted); margin: 0.25rem 0 0; font-size: 1.05rem; }
.contact { margin: 0.75rem 0 0; }
.site-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }
/* legal pages */
.legal { max-width: var(--maxw); margin: 0 auto; padding: 1rem clamp(1.25rem, 5vw, 3rem) 3rem; flex: 1; }
.legal h1 { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.2rem); }
.legal p { color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 0.85rem; }
/* light/dark toggle — injected by theme.js into the footer nav, next to Contact
   (absent when JS is off) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 1.8rem;
  height: 1.8rem;
  margin-left: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { display: block; }
