:root {
  color-scheme: light dark;
  --bg: #faf8f3;
  --panel: #fffdf8;
  --text: #24221e;
  --muted: #615a50;
  --line: #d8cfc0;
  --accent: #9a421f;
  --button-text: #fff;
  font-family: system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191714;
    --panel: #23201b;
    --text: #f5efe5;
    --muted: #c7bfb1;
    --line: #4a4135;
    --accent: #f2a374;
    --button-text: #1d140d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); line-height: 1.65; }
main { flex: 1; padding-block: clamp(2.5rem, 7vw, 6rem); }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-200%); padding: .5rem; background: var(--panel); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem 2rem; padding-block: 1rem; }
.brand, nav a { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; }
nav, .footer-inner div, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin-block: 0 .6em; }
h1 { font: 600 clamp(2.7rem, 7vw, 5.1rem)/.98 Georgia, serif; letter-spacing: -.045em; max-width: 16ch; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { max-width: 68ch; margin-block: 0 1rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 58ch; }
.hero, .grid { display: grid; gap: 1.25rem; }
.hero { align-items: center; gap: clamp(1.5rem, 6vw, 4rem); }
section + section { margin-top: 3rem; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 1.25rem; }
.card > :last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; }
.hero img { width: 100%; display: block; }
.meta { color: var(--muted); font-size: .9rem; }
.button { display: inline-block; background: var(--accent); color: var(--button-text); padding: .55rem 1rem; text-decoration: none; font-weight: 650; }
.button:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (min-width: 45rem) {
  .hero { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
