:root {
  color-scheme: light;
  --canvas: #f8f4ee;
  --canvas-warm: #f2e9df;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --ink: #211e1b;
  --muted: #6e6760;
  --ember: #c75f3e;
  --gold: #bd873b;
  --sage: #687a6a;
  --line: rgba(63, 48, 39, 0.12);
  --shadow: 0 22px 60px rgba(68, 45, 32, 0.1);
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(199, 95, 62, 0.14), transparent 28rem),
    radial-gradient(circle at 8% 44%, rgba(189, 135, 59, 0.12), transparent 30rem),
    linear-gradient(145deg, #fbf8f3 0%, var(--canvas) 52%, var(--canvas-warm) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a { color: var(--ember); text-underline-offset: 0.18em; }
a:hover { color: #a7432a; }

.shell {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 22px 0 76px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 34px rgba(67, 45, 33, 0.08);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(189, 135, 59, 0.42);
  border-radius: 50%;
  color: #fffaf2;
  background: linear-gradient(145deg, #302822, #171411);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05), 0 5px 14px rgba(44, 32, 24, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.nav a {
  padding: 7px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.76); }

.hero, .document {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
}

.hero { padding: clamp(34px, 7vw, 72px); }
.document { padding: clamp(26px, 5vw, 54px); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--ember);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 { margin: 0; font-size: clamp(38px, 7vw, 66px); line-height: 1.03; letter-spacing: -0.035em; }
.document h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { margin: 42px 0 10px; font-size: clamp(24px, 3.5vw, 30px); line-height: 1.22; }
h3 { margin: 24px 0 8px; font-size: 20px; }

.lede {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.5;
}

.meta { margin: 10px 0 26px; color: var(--muted); font-size: 14px; }
.muted, .fine { color: var(--muted); }
.fine { font-size: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.card {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper-strong);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(67, 45, 33, 0.1); }
.card strong { font-family: Georgia, "Times New Roman", serif; font-size: 23px; }
.card span { color: var(--muted); font-size: 15px; }
.card b { color: var(--ember); font-size: 22px; }

.notice {
  padding: 18px 20px;
  margin: 24px 0;
  border: 1px solid rgba(189, 135, 59, 0.23);
  border-radius: 18px;
  background: rgba(255, 248, 232, 0.74);
}
.notice strong { color: #84551f; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; background: rgba(255, 255, 255, 0.42); }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #755022; background: rgba(189, 135, 59, 0.08); font-size: 14px; }
tr:last-child td { border-bottom: 0; }

ul, ol { padding-left: 24px; }
li { margin: 7px 0; }

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.contact-box > div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.55); }
.contact-box strong { display: block; margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; }

footer { padding: 28px 4px 0; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: var(--muted); }

@media (max-width: 720px) {
  .topbar { position: static; align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .nav a { padding-left: 0; padding-right: 12px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 140px; }
  .contact-box { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .shell { width: 100%; padding: 0; }
  .topbar, footer { display: none; }
  .document { border: 0; box-shadow: none; padding: 0; background: #fff; }
  a { color: inherit; }
}
