:root {
  --bg: #fff8ee;
  --panel: #fffdf9;
  --raised: #fff0e0;
  --line: #f0dec8;
  --ink: #3b2a20;
  --mute: #6f5848;
  --accent: #b84a24;
  --accent-dark: #9a3c1a;
  --peach: #ffdec4;
  --ok: #277448;
  --bad: #b93428;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--line); background: var(--panel); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
nav.main a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
nav.main a:not(.btn):hover, nav.main a:not(.btn)[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; }
nav.main a.btn { padding: 9px 18px; font-size: .95rem; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 24px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); padding: 10px 22px; }
.btn.ghost:hover { background: var(--raised); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.hero { background: var(--peach); padding: 72px 0 64px; }
.hero .eyebrow { font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.hero p.lead { font-size: 1.2rem; max-width: 40em; color: var(--ink); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero small { display: block; margin-top: 16px; color: var(--mute); }

section { padding: 56px 0; }
section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { max-width: 40em; color: var(--mute); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--mute); }

ol.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
ol.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 22px 70px; position: relative; margin: 0; }
ol.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
ol.steps strong { display: block; margin-bottom: 4px; }
ol.steps span { color: var(--mute); }

.notice { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; color: var(--ink); }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; background: var(--raised); border: 1px solid var(--line); color: var(--mute); padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.cta { background: var(--ink); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #f0dec8; max-width: 36em; margin-left: auto; margin-right: auto; }
.cta .btn { background: var(--peach); color: var(--ink); }
.cta .btn:hover { background: #fff; color: var(--ink); }

.page { padding: 48px 0 24px; }
.page h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.updated { color: var(--mute); font-size: .95rem; }

form.lead { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 640px; }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--mute); }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid #d9c3a8; border-radius: 8px; background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.msg.ok { display: block; background: #e8f4ec; color: var(--ok); border: 1px solid #b9dcc6; }
.msg.err { display: block; background: #fbeae8; color: var(--bad); border: 1px solid #efc2bd; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 40px; background: var(--panel); color: var(--mute); font-size: .92rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--mute); }
footer.site p { margin: 0 0 .4em; }

table.facts { border-collapse: collapse; width: 100%; margin: 12px 0 24px; font-size: .97rem; }
table.facts th, table.facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { width: 34%; color: var(--ink); font-weight: 600; }
table.facts td { color: var(--mute); }

@media (max-width: 640px) {
  .hero { padding: 48px 0 44px; }
  section { padding: 40px 0; }
  table.facts th { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
