:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #1f2937;
  --muted: #475467;
  --border: #d9e1e8;
  --accent: #0f766e;
  --accent-strong: #0b5e58;
  --tint: #f0fdfa;
  --focus: #0f172a;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --content: 70ch;
  --shell: 70rem;
}

html[data-site="parole"] {
  --accent: #1d4ed8;
  --accent-strong: #173ea9;
  --tint: #eff6ff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  overflow-wrap: anywhere;
}

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

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

p,
li {
  max-width: var(--content);
}

h1,
h2,
h3 {
  color: #111827;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  max-width: 18ch;
  margin: 0.35rem 0 1.1rem;
  font-size: clamp(2.25rem, 6vw, 4.2rem);
  font-weight: 760;
}

h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.16rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.skip-link:focus {
  top: 1rem;
}

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

.header-inner,
.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
}

.brand {
  color: #111827;
  font-size: 1.12rem;
  font-weight: 760;
  text-decoration: none;
}

.site-nav ul,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.35em;
}

main {
  min-height: 60vh;
}

.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 3.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 720;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.button-secondary {
  background: #ffffff;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--tint);
  color: var(--accent-strong);
}

.section {
  padding: 1rem 0 4.5rem;
}

.section-tint {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding-top: 3.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.card p:last-child {
  margin-bottom: 0;
}

.number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.notice {
  max-width: var(--content);
  margin: 2rem 0;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: var(--tint);
}

.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.page-header {
  padding: 4.5rem 0 1.75rem;
}

.page-header h1 {
  max-width: 20ch;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.article {
  padding-bottom: 5rem;
}

.article > * {
  max-width: var(--content);
}

.article .wide {
  max-width: 58rem;
}

.steps,
.source-list,
.plain-list {
  padding-left: 1.25rem;
}

.steps li,
.source-list li,
.plain-list li {
  margin-bottom: 0.65rem;
}

.chapter {
  scroll-margin-top: 2rem;
  padding-top: 0.5rem;
}

.source-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.worksheet {
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  break-inside: avoid;
}

.checklist {
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  min-height: 2rem;
  margin: 0.55rem 0;
  padding-left: 2rem;
}

.checklist li::before {
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid #667085;
  border-radius: 3px;
  content: "";
}

.write-lines {
  min-height: 7rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-note {
  max-width: 76ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  font-size: 0.9rem;
}

@media (max-width: 48rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
    padding-block: 0.9rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  html {
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .actions,
  .skip-link,
  .no-print {
    display: none !important;
  }

  .shell {
    width: 100%;
  }

  .page-header {
    padding: 0 0 1rem;
  }

  .article {
    padding: 0;
  }

  .notice,
  .worksheet {
    box-shadow: none;
  }

  a {
    color: #000000;
    text-decoration: none;
  }

  .source-list a::after {
    color: #374151;
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
