:root {
  color-scheme: light;
  --paper: #f7f0df;
  --paper-deep: #eee2c9;
  --ink: #21201d;
  --muted: #625e54;
  --accent: #b83b2f;
  --line: rgba(54, 77, 116, 0.14);
  --shadow: 0 18px 50px rgba(59, 45, 25, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 52px, rgba(184, 59, 47, 0.16) 52px 54px, transparent 54px),
    repeating-linear-gradient(0deg, var(--paper) 0 31px, var(--line) 31px 32px);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(184, 59, 47, 0.38); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-180%);
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { padding: 26px 0 20px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-header nav a[aria-current="page"] { color: var(--accent); }

.wordmark {
  color: var(--ink);
  font-family: ui-rounded, "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: rotate(-2deg);
}

.home-shell,
.article-shell {
  width: min(980px, calc(100% - 40px));
  margin: 5vh auto 9vh;
}

.hero,
.article-header {
  max-width: 820px;
  padding: clamp(34px, 7vw, 80px) clamp(24px, 6vw, 64px);
  background: rgba(255, 253, 246, 0.84);
  border: 1px solid rgba(33, 32, 29, 0.16);
  border-radius: 5px 16px 8px 12px;
  box-shadow: var(--shadow);
  transform: rotate(-0.25deg);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: ui-rounded, "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; }
h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 5.7rem); letter-spacing: -0.055em; }
h1 span { color: var(--accent); font-style: italic; }
h2 { margin: 2.6em 0 0.65em; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -0.02em; }

.lede { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.effective { margin: 12px 0 0; color: var(--muted); font-size: 0.96rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-block;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 11px 8px 13px 9px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 4px 0 rgba(33, 32, 29, 0.16);
}
.button.primary { color: #fffdf6; background: var(--ink); }
.button.secondary { color: var(--ink); background: transparent; }
.button:hover { transform: translateY(-2px) rotate(-0.4deg); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.paper-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.78);
  border: 1px solid rgba(33, 32, 29, 0.18);
  border-radius: 13px 6px 11px 7px;
  box-shadow: 7px 9px 0 rgba(71, 60, 42, 0.07);
  text-decoration: none;
}
.paper-card:nth-child(2) { transform: rotate(0.5deg); }
.paper-card:hover { border-color: var(--accent); }
.paper-card strong { font-size: 1.65rem; line-height: 1.2; }
.card-kicker, .card-link { color: var(--accent); font-weight: 800; }
.card-link { margin-top: auto; }

.article-shell { max-width: 820px; }
.article-header { margin-bottom: 42px; }
.article-header h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); }
.article-header .button { margin-top: 28px; }

.policy-content,
.quick-start,
.faq,
.contact-panel {
  padding-inline: clamp(4px, 4vw, 34px);
}

.policy-content p,
.quick-start li,
.faq p,
.contact-panel p { font-size: 1.06rem; }

.policy-content section { padding-top: 1px; }
.policy-content section + section { border-top: 1px dashed rgba(33, 32, 29, 0.22); }

.quick-start {
  margin-bottom: 52px;
  padding-block: 4px 24px;
  background: rgba(255, 253, 246, 0.54);
  border-radius: 8px 13px 7px 10px;
}
.quick-start h2 { margin-top: 1.2em; }
.quick-start li { margin-bottom: 12px; padding-left: 8px; }

.faq details {
  margin: 0 0 14px;
  padding: 0 20px;
  background: rgba(255, 253, 246, 0.76);
  border: 1px solid rgba(33, 32, 29, 0.16);
  border-radius: 8px 14px 7px 11px;
}
.faq summary { padding: 18px 0; cursor: pointer; font-size: 1.1rem; font-weight: 800; }
.faq details[open] summary { color: var(--accent); }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--muted); }

.contact-panel {
  margin-top: 52px;
  padding-block: 1px 26px;
  background: rgba(238, 226, 201, 0.82);
  border-left: 4px solid var(--accent);
}
.contact-panel h2 { margin-top: 1.2em; }

.site-footer {
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid rgba(33, 32, 29, 0.14);
}

@media (max-width: 700px) {
  body { background: repeating-linear-gradient(0deg, var(--paper) 0 31px, var(--line) 31px 32px); }
  .site-header, .site-footer { width: min(100% - 28px, 1080px); }
  .site-header { align-items: flex-start; }
  .site-header nav { gap: 14px; }
  .home-shell, .article-shell { width: min(100% - 28px, 980px); margin-top: 2vh; }
  .hero, .article-header { padding: 32px 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  body { background: white; }
  .site-header nav, .hero-actions, .site-footer { display: none; }
  .article-shell { width: 100%; margin: 0; }
  .article-header { padding: 0 0 24px; border: 0; box-shadow: none; }
  .policy-content, .quick-start, .faq, .contact-panel { padding-inline: 0; }
}
