:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --surface-strong: #f0ebe2;
  --line: #d9d0c2;
  --line-strong: #b9aa95;
  --text: #2f2923;
  --muted: #6b6257;
  --accent: #9a5a14;
  --accent-soft: #efe4d5;
  --success: #3f6a51;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(154, 90, 20, 0.08), rgba(154, 90, 20, 0) 180px),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

code {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4efe7;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.92em;
}

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

.document-kicker,
.document-stamp,
.document-summary,
.policy-section h2,
.policy-section p,
.policy-section li {
  margin: 0;
}

.document-kicker,
.document-stamp {
  color: var(--muted);
}

.document-kicker,
.document-stamp,
.document-links a {
  font-size: 0.92rem;
}

.document-header {
  padding: 8px 6px 24px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.document-kicker {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.82rem;
}

.document-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.document-summary {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.document-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease;
}

.document-links a:hover,
.contact-link:hover {
  color: var(--accent);
}

.document-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.policy-section {
  padding: 28px 30px;
}

.policy-section + .policy-section {
  border-top: 1px solid var(--surface-strong);
}

.policy-section h2 {
  margin-bottom: 14px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.policy-section p + p,
.policy-section p + ul,
.policy-section ul + p,
.policy-section ul + ul {
  margin-top: 12px;
}

.policy-section ul {
  margin: 0;
  padding-left: 20px;
}

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

.contact-link {
  color: var(--success);
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 28px, 760px);
    padding-top: 18px;
  }
}

@media (max-width: 640px) {
  .document-header {
    padding: 4px 2px 16px;
  }

  .document-meta,
  .document-links {
    gap: 8px 12px;
  }

  .policy-section {
    padding: 22px 18px;
  }
}
