:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5f6b76;
  --line: #dfe5ea;
  --paper: #ffffff;
  --wash: #f5f7f9;
  --accent: #b54320;
  --accent-dark: #7d2c15;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.68;
}

a { color: var(--accent-dark); text-underline-offset: 0.16em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.site-header__inner,
main,
.site-footer__inner {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; }

main {
  margin-block: 44px;
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(23, 32, 42, 0.06);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -0.045em; }
h2 { margin: 2.6rem 0 0.75rem; font-size: 1.45rem; letter-spacing: -0.02em; }
h3 { margin: 1.5rem 0 0.5rem; font-size: 1.08rem; }
p, ul, ol { margin-block: 0.75rem; }
li + li { margin-top: 0.35rem; }

.lede { color: var(--muted); font-size: 1.08rem; }
.meta, .note { color: var(--muted); font-size: 0.94rem; }
.note {
  margin-block: 1.4rem;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: #fff8f5;
}

.toc {
  margin-block: 2rem;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { columns: 2; column-gap: 32px; padding-left: 1.3rem; }
.toc li { break-inside: avoid; }

.contact-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
}

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 660px) {
  body { font-size: 16px; }
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  main { width: min(100% - 20px, 880px); margin-block: 18px; border-radius: 16px; }
  .toc ol { columns: 1; }
  .site-footer__inner { flex-direction: column; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .site-header, .site-footer, .toc { display: none; }
  main { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
  h2 { break-after: avoid; }
}
