:root {
  color-scheme: light;
  --bg: #f7f2e8;
  --paper: #fffdf8;
  --ink: #19140f;
  --muted: #71685d;
  --line: #ded2bf;
  --accent: #8b3f22;
  --accent-ink: #fff8ef;
  --soft: #efe3d0;
  --shadow: 0 24px 80px rgba(69, 45, 22, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(139, 63, 34, 0.16), transparent 34rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(239, 227, 208, 0.42));
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.nav-link {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  margin-bottom: 28px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.intro {
  padding: clamp(28px, 5vw, 58px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.16;
}

h1 {
  max-width: 12ch;
  margin: 0 0 22px;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.07em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h3 {
  margin: 28px 0 10px;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
}

.fact {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.label {
  display: block;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.value {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
}

.notice {
  margin: 28px 0;
  border: 1px solid rgba(139, 63, 34, 0.24);
  border-radius: 20px;
  padding: 20px 22px;
  background: rgba(139, 63, 34, 0.08);
}

.notice strong {
  color: var(--accent);
}

.content {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.toc h2 {
  margin-bottom: 12px;
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.policy {
  padding: clamp(28px, 4vw, 52px);
}

.policy section {
  border-top: 1px solid var(--line);
  padding: 34px 0 8px;
}

.policy section:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy p {
  margin: 0 0 16px;
}

.policy ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.policy li + li {
  margin-top: 6px;
}

.data-table {
  width: 100%;
  margin: 18px 0 22px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.footer {
  margin-top: 30px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  text-align: center;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: stretch;
}

.home-card {
  padding: clamp(28px, 5vw, 58px);
}

.cta {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--accent-ink);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 24px, 720px);
    padding-top: 26px;
  }

  .masthead,
  .hero,
  .content,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .masthead {
    align-items: flex-start;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 560px) {
  html {
    font-size: 15px;
  }

  .brand {
    letter-spacing: 0.1em;
  }

  .nav-link {
    display: none;
  }

  .intro,
  .policy,
  .summary,
  .toc,
  .home-card {
    border-radius: 22px;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    border-bottom: 0;
  }
}

@media print {
  body {
    background: #fff;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .masthead,
  .toc,
  .footer {
    display: none;
  }

  .card {
    border: 0;
    box-shadow: none;
  }

  a {
    color: #000;
  }
}
