:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --text: #111111;
  --muted: #444444;
  --accent: #111111;
  --line: rgba(17, 17, 17, 0.12);
  --radius-sm: 999px;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.72;
}

a {
  color: inherit;
  text-decoration: none;
}

article a,
.lead a,
.hero-copy a {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
}

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero,
.section-block,
.doc-layout article,
.doc-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero {
  padding: 0 0 28px;
}

.hero-home {
  margin-bottom: 22px;
}

.eyebrow,
.card-kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  font-family: "Newsreader", serif;
  font-weight: 600;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-copy,
.lead,
.section-copy,
.doc-card p,
article p {
  max-width: 70ch;
  color: var(--muted);
}

.doc-single article p {
  margin: 0 0 16px;
}

.doc-single article h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text);
}

.doc-single article code {
  padding: 0.12em 0.38em;
  background: rgba(17, 17, 17, 0.05);
  border-radius: 6px;
  font-size: 0.94em;
}

.status-line {
  max-width: 70ch;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(17, 17, 17, 0.03);
  border-left: 2px solid rgba(17, 17, 17, 0.16);
  color: var(--text);
}

.status-line strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: #111111;
  color: #ffffff;
}

.button-secondary {
  background: rgba(17, 17, 17, 0.06);
  color: var(--text);
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 28px 0 36px;
}

.doc-card {
  padding: 0;
}

.mini-list,
.article-list,
article ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini-list li + li,
.article-list li + li,
article li + li {
  margin-top: 8px;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--text);
  font-weight: 700;
}

.pull-quote {
  padding: 16px 0 0;
}

blockquote {
  margin: 0 0 12px;
  font-family: "Newsreader", serif;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 22px;
}

.doc-single {
  display: block;
}

.doc-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.doc-sidebar h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.doc-sidebar ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
}

.doc-sidebar li + li {
  margin-top: 8px;
}

.sidebar-note {
  padding: 14px;
  background: rgba(17, 17, 17, 0.04);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-layout article {
  padding: 32px clamp(22px, 3vw, 40px);
}

.doc-single article {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.doc-hero {
  margin-bottom: 40px;
  padding-bottom: 0;
  border-bottom: 0;
}

.doc-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(17, 17, 17, 0.05);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-section + .article-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.callout {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(17, 17, 17, 0.025);
  border: 0;
  border-radius: 14px;
}

.companion-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
}

.companion-links a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

@media (max-width: 940px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max));
    padding-top: 24px;
  }

  .hero,
  .doc-layout article,
  .doc-single article,
  .doc-card,
  .pull-quote {
    padding: 0;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }
}
