
:root {
  color-scheme: light;
  --ink: #242538;
  --muted: #636477;
  --paper: #f6f7fa;
  --line: #dde0e9;
  --accent: #5144a3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem max(5vw, 1rem);
  border-bottom: 1px solid var(--line);
  background: white;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.brand {
  color: var(--ink);
  font:
    700 1.6rem Georgia,
    serif;
  text-decoration: none;
}
.brand span {
  display: block;
  font: 11px system-ui;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.3rem;
}
h1 {
  font:
    650 clamp(1.8rem, 3vw, 2.5rem)/1.2 system-ui,
    sans-serif;
  max-width: 900px;
  margin: 0.6rem 0 1.3rem;
}
h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  color: var(--muted);
}
.session {
  font-size: 0.8rem;
  color: var(--muted);
}
.lead {
  max-width: 750px;
  color: var(--muted);
}
section {
  background: white;
  border: 1px solid var(--line);
  padding: 1.6rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  scroll-margin-top: 1rem;
}
.notice {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  background: #eeedf7;
  color: var(--muted);
  font-size: 0.85rem;
}
.button,
button {
  display: inline-block;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
}
input[type="text"],
textarea {
  display: block;
  width: 100%;
  font: inherit;
  padding: 0.7rem;
  border: 1px solid var(--line);
  margin: 0.5rem 0 1rem;
}
label {
  display: block;
  margin: 0.8rem 0;
}
input[type="checkbox"] {
  margin-right: 0.5rem;
}
button:disabled {
  cursor: default;
  background: #657487;
  border-color: #657487;
}
button[aria-busy="true"]::before {
  content: "";
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.6rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: run-spin 0.8s linear infinite;
}
@keyframes run-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  button[aria-busy="true"]::before { animation: none; }
}
:focus-visible {
  outline: 3px solid #b56b24;
  outline-offset: 3px;
}
blockquote {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--line);
  font-size: 0.9rem;
}
cite {
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
}
article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.6 ui-monospace,
    monospace;
}
code {
  overflow-wrap: anywhere;
  font-size: 0.85em;
}
details {
  margin: 1rem 0;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.scroll {
  overflow-x: auto;
}
.source {
  font:
    15px/1.7 system-ui,
    sans-serif;
  max-width: 70ch;
}
.caption {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  background: #eeedf7;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
.review-heading .badge {
  margin-left: 0.7rem;
}
.review-stages {
  display: flex;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.review-stages [aria-current] {
  color: var(--accent);
  font-weight: 650;
  border-bottom: 2px solid var(--accent);
}
.review-overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.review-overview p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.review-overview a {
  font-size: 0.82rem;
}
.rule-card,
.example-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  margin: 0.65rem 0;
  overflow: hidden;
}
.rule-card > summary,
.example-card > summary,
.document-reader > summary {
  padding: 0.9rem 1rem;
}
.rule-card > summary .caption,
.example-card > summary .badge,
.document-reader > summary .caption {
  float: right;
  margin-left: 0.5rem;
}
.rule-card[open] > summary {
  background: #eeedf7;
  color: var(--accent);
}
.rule-body {
  padding: 0.2rem 1.1rem 1rem;
}
.fact-preview {
  display: block;
  margin: 0.3rem 0 0 1rem;
  line-height: 1.5;
}
.rule-statement {
  font-size: 1.15rem;
  line-height: 1.5;
}
.rule-statement strong {
  font-size: inherit;
}
.source-link {
  background: var(--paper);
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
}
.source-link blockquote {
  border-color: var(--accent);
  margin: 1rem 0;
}
.example-link {
  font-size: 0.85rem;
}
.example-result {
  display: flex;
  gap: 2rem;
  margin: 1rem;
}
.example-result dt {
  font-size: 0.82rem;
  color: var(--muted);
}
.example-result dd {
  margin: 0;
}
.example-card > details {
  margin: 1rem;
}
.document-reader {
  margin: 0;
  border: 0;
  padding: 0;
}
.document-reader > summary {
  padding: 0;
}
.document-reader[open] > summary {
  margin-bottom: 1.5rem;
}
.markdown {
  overflow-wrap: anywhere;
}
.markdown h3 {
  font-size: 1.2rem;
}
.markdown h4 {
  font-size: 1.05rem;
}
.technical {
  background: transparent;
}
.technical > details {
  margin: 0;
  padding: 0;
  border: 0;
}
.pin {
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
  overflow-wrap: anywhere;
}
footer {
  max-width: 1120px;
  padding: 2rem 1.3rem;
  margin: auto;
  color: var(--muted);
  font-size: 0.8rem;
}
@media (max-width: 760px) {
  header {
    align-items: flex-start;
  }
  main {
    margin-top: 2rem;
  }
  section {
    padding: 1rem;
  }
  .session {
    display: block;
    max-width: 130px;
  }
  .review-overview {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .rule-card > summary .caption {
    float: none;
    display: block;
    margin-left: 1rem;
  }
}
