:root {
  --paper: #f3f5f1; --card: #ffffff; --ink: #17231f; --muted: #4a5651; --rule: #c9d3ce;
  --patina: #0e5e57; --copper: #e8a33d; --copper-text: #a8690f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1a17; --card: #16231f; --ink: #e3ece8; --muted: #b5c4be; --rule: #3a4943;
          --patina: #7fcbbe; --copper-text: #f2bd6b; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.6 "Atkinson Hyperlegible Next", system-ui, sans-serif; }
main, header, footer { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
header { padding-top: 2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
header a { color: var(--muted); text-decoration: none; font-weight: 600; }
header a.home { color: var(--ink); font-size: 1.125rem; }
a { color: var(--patina); text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
h1 { font-size: clamp(2.5rem, 9vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 3rem 0 1rem; font-weight: 800; }
h1 .torch { color: var(--copper); }
h2 { font-size: 1.375rem; line-height: 1.3; margin: 2.75rem 0 0.5rem; }
h3 { font-size: 1.125rem; margin: 1.5rem 0 0.25rem; }
p, li { max-width: 34em; }
p.lede { font-size: 1.3rem; color: var(--muted); margin-top: 0; }
ul { padding-left: 1.2em; }
li + li { margin-top: 0.35rem; }
.mail { display: inline-block; margin-top: 0.25rem; padding: 0.7rem 1.1rem; border-radius: 12px;
  background: var(--copper); color: #17231f; font-weight: 700; text-decoration: none; }
.app { display: block; margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--card);
  border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.app strong { font-size: 1.375rem; display: block; }
.app span { color: var(--muted); }
.app:hover { border-color: var(--patina); }
.note { border-left: 4px solid var(--copper); padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); }
.updated { color: var(--muted); font-size: 1rem; }
footer { margin-top: 4rem; padding-bottom: 2.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; color: var(--muted); font-size: 1rem; }
footer a { color: var(--muted); }
