:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --text: #1d1b19;
  --muted: #6b655e;
  --line: #ddd6cc;
  --accent: #8a3b2e;
  --accent-text: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1d1b19;
    --text: #ece7e0;
    --muted: #a39c93;
    --line: #34302c;
    --accent: #e08a72;
    --accent-text: #141312;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--text); text-decoration: none; font-size: 18px; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; padding: 4px 0; transition: color 0.18s ease; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 56px 0 72px; }

.hero { padding: 40px 0 24px; }
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
.lede { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0 0 28px; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.button:hover { transform: translateY(-1px); opacity: 0.92; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; margin: 20px 0;
}
.card h3 { margin-top: 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
}

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form textarea { resize: vertical; min-height: 140px; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; transition: color 0.18s ease; }
.form-status.ok { color: #2f7d4f; }
.form-status.error { color: #b3261e; }
@media (prefers-color-scheme: dark) {
  .form-status.ok { color: #7fcf9b; }
  .form-status.error { color: #f2a59e; }
}

.post-date { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.small { color: var(--muted); font-size: 14px; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 24px; padding-bottom: 32px; }
footer.site a { color: var(--muted); }
