/* ── Custom properties ─────────────────────────────────────────────── */
:root {
  --cream:       #F5EFE6;
  --cream-alt:   #F9F4EC;
  --beige:       #EDE8DF;
  --off-white:   #FAFAF8;
  --white:       #FFFFFF;
  --text:        #2B2826;
  --text-mid:    #5A5450;
  --text-dim:    #6A645C;
  --accent:      #C0442A;
  --accent-warm: #E8A040;
  --border:      #E6DED3;
  --border-soft: #EFE9DF;
  --dark:        #1F1C1A;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Headings ──────────────────────────────────────────────────────── */
.h-section {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.h-pivot {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.h-statement {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.lede {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-top: 1.75rem;
  max-width: 680px;
}

.prose { margin-top: 2rem; max-width: 680px; }
.prose p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-mid);
}
.prose p + p { margin-top: 1.25rem; }

.footnote {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.65;
  margin-top: 2rem;
}

.caption {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Layout ────────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container.center { text-align: center; }

.section { padding: 5.5rem 0; }

/* ── Frames ─────────────────────────────────────────────────────────
   The container that holds each section's content. Gives the page
   structure instead of paragraphs floating on coloured backgrounds. */
.frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4rem 4rem;
  max-width: 960px;
  margin: 0 auto;
}
.frame-wide { max-width: 1080px; }
.frame-accent {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--cream-alt), var(--white));
}

/* ── Navigation ────────────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
#nav.scrolled {
  border-color: var(--border-soft);
  background: rgba(255,255,255,0.96);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 32px; width: auto; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  background: var(--cream);
  background: linear-gradient(180deg, var(--cream-alt) 0%, var(--cream) 100%);
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, var(--accent), var(--accent-warm)) 1;
}
.hero-inner {
  max-width: 860px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-mid);
  font-weight: 400;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Page hero (inner pages) ───────────────────────────────────────── */
.page-hero {
  background: linear-gradient(180deg, var(--cream-alt) 0%, var(--cream) 100%);
  padding: 6rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero-tall { padding: 8rem 2rem 7rem; }

.page-hero-inner { max-width: 780px; margin: 0 auto; }

.page-hero h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.page-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-mid);
  font-weight: 400;
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Packages grid (Products page) ─────────────────────────────────── */
.package-list {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.package {
  background: var(--cream-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.35rem 1.5rem;
}
.package code {
  display: block;
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.package p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.package p code {
  display: inline;
  font-size: 0.84rem;
  color: var(--text);
  background: var(--white);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
  font-weight: 500;
  margin: 0;
}
.package-featured {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 68, 42, 0.06);
}

/* ── Code block (inside frames) ────────────────────────────────────── */
.code-block {
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}
.code-block code {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}
.frame-accent .code-block {
  background: var(--cream-alt);
}

.frame h2 code {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.82em;
  font-weight: 500;
  color: var(--accent);
  background: var(--cream-alt);
  padding: 0.08em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}

/* ── Inline code in cards ──────────────────────────────────────────── */
.card code {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--white);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}

/* ── Integrations list (Products page) ─────────────────────────────── */
.integ-list {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
}
.integ h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.integ p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-mid);
}
.integ code {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.84rem;
  color: var(--text);
  background: var(--cream-alt);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}

/* ── Reading list (Resources page) ─────────────────────────────────── */
.reading-list {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.reading-list li {
  background: var(--cream-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.75rem 1.75rem;
  position: relative;
}
.reading-meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.reading-list h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.55rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.reading-list p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 680px;
}
.reading-status {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Invariant list — inline code support ──────────────────────────── */
.invariant-list code {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--cream-alt);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}

/* ── Reading list — link state ─────────────────────────────────────── */
.reading-link { display: block; color: inherit; }
.reading-link h3 { transition: color 0.15s; }
.reading-link:hover h3 { color: var(--accent); }

.reading-empty {
  margin-top: 2.75rem;
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  padding: 2rem;
  background: var(--cream-alt);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}

/* ── Tags ──────────────────────────────────────────────────────────── */
.tags, .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags { margin-top: 0.85rem; }
.article-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
}
.reading-link:hover .tag {
  color: var(--accent);
  border-color: rgba(192, 68, 42, 0.3);
}

/* ── Article page ──────────────────────────────────────────────────── */
.article-hero .article-meta {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  justify-content: center;
  gap: 2rem;
  letter-spacing: 0.04em;
}
.article-hero .article-meta span::before {
  content: '· ';
}
.article-hero .article-meta span:first-child::before { content: ''; }

.frame-narrow { max-width: 760px; padding: 4rem 3.5rem; }

.article-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-mid);
}
.article-body > * + * { margin-top: 1.25rem; }
.article-body > p { color: var(--text-mid); }
.article-body > p:first-child { font-size: 1.18rem; color: var(--text); }

.article-body h2,
.article-body h3,
.article-body h4 {
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.article-body h2 { font-size: 1.6rem; margin-top: 3rem; }
.article-body h3 { font-size: 1.2rem; margin-top: 2.25rem; }
.article-body h4 { font-size: 1rem; margin-top: 2rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }

.article-body strong { color: var(--text); font-weight: 600; }
.article-body em     { color: var(--text); font-style: italic; }

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(192, 68, 42, 0.35);
  transition: border-color 0.15s, color 0.15s;
}
.article-body a:hover { border-bottom-color: var(--accent); }

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-top: 0.4rem; color: var(--text-mid); }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.5rem;
  margin: 2rem 0;
  color: var(--text);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.65;
}
.article-body blockquote p + p { margin-top: 0.75rem; }

.article-body code {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.88em;
  color: var(--text);
  background: var(--cream-alt);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}
.article-body pre {
  background: var(--cream-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 2rem 0;
}
.article-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--text);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.75rem 0;
}

.article-footer-section { background: var(--white); padding: 3.5rem 0 5rem; }
.back-link {
  font-size: 0.92rem;
  color: var(--text-mid);
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

/* ── Pricing email line ────────────────────────────────────────────── */
.email-line {
  margin-top: 2.25rem;
  font-size: 1.1rem;
  font-weight: 500;
}
.email-line a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1em;
  transition: color 0.15s, border-color 0.15s;
}
.email-line a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ── Frame — inline code (general) ─────────────────────────────────── */
.frame .prose code,
.frame .accent-line code,
.frame .footnote code {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.88em;
  color: var(--text);
  background: var(--cream-alt);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}

/* ── Section backgrounds ───────────────────────────────────────────── */
.section-observation { background: var(--off-white); }
.section-pivot       { background: var(--cream); padding: 9rem 0; }
.section-thesis      { background: var(--off-white); }
.section-arch        { background: var(--cream); }
.section-invariant   { background: var(--off-white); }
.section-participant { background: var(--cream); }
.section-promise     { background: var(--off-white); padding: 7rem 0; }
.section-not         { background: var(--cream); }
.section-landscape   { background: var(--off-white); }
.section-closing     { background: var(--white); padding: 9rem 0 7rem; }

/* ── Pivot ─────────────────────────────────────────────────────────── */
.h-pivot {
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Architecture diagram ──────────────────────────────────────────── */
.arch {
  margin-top: 3rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.arch-band {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  background: var(--white);
}
.arch-band-edge {
  background: var(--off-white);
}
.arch-band-core {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(192,68,42,0.06);
}

.arch-band-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}
.arch-band-core .arch-band-label { color: var(--accent); }

.arch-band-items {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}
.arch-band-items em {
  color: var(--text-dim);
  font-style: italic;
}
.arch-band-items-core {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 1rem;
}
.arch-band-items-core strong {
  font-weight: 600;
  color: var(--text);
}

.arch-pipe {
  position: relative;
  height: 2rem;
  margin: 0.35rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.arch-pipe::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border);
}
.arch-pipe span {
  position: relative;
  background: var(--cream);
  padding: 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.arch-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Invariant ─────────────────────────────────────────────────────── */
.invariant-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.invariant-list li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.inv-num {
  font-size: 1.6rem;
  font-weight: 200;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.invariant-list h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.invariant-list p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 680px;
}

/* ── Participant ───────────────────────────────────────────────────── */
.two-col {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.quote-card {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2.25rem;
}
.quote-card p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.quote-card cite {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: normal;
}
.col-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.two-col-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.two-col-text p + p { margin-top: 1rem; }

/* ── Promise ───────────────────────────────────────────────────────── */
.frame-accent .h-statement { margin-bottom: 2rem; }
.accent-line {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
}

/* ── Not ───────────────────────────────────────────────────────────── */
.cards {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--cream-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.75rem 1.6rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-mid);
}

/* ── Landscape ─────────────────────────────────────────────────────── */
.table-wrap {
  margin-top: 2.75rem;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
thead tr { background: var(--dark); color: var(--white); }
thead th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid var(--border-soft); }
tbody tr:last-child { border-bottom: none; }
tbody td {
  padding: 0.95rem 1.25rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.table-highlight { background: var(--cream-alt); }
.table-highlight td { color: var(--accent) !important; }

/* ── Closing ───────────────────────────────────────────────────────── */
.closing-muted {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 200;
  color: var(--text-dim);
  line-height: 1.15;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.closing-strong {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}
.section-closing .footnote {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  background: var(--cream);
  color: var(--text-mid);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  height: 44px;
  width: auto;
  margin: 0 auto 1.25rem;
}
.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0.9rem;
}
.footer-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .frame { padding: 2.75rem 2rem; }
  .nav-links { gap: 1.25rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .arch-split { grid-template-columns: 1fr; }
  .package-list { grid-template-columns: 1fr; }
  .integ-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 4rem 0; }
  .section-pivot, .section-closing { padding: 6rem 0; }
  .page-hero { padding: 4.5rem 2rem 4rem; }
  .page-hero-tall { padding: 6rem 2rem 5rem; }
  .reading-status { position: static; margin-top: 0.5rem; display: block; }
  .frame-narrow { padding: 2.75rem 2rem; }
  .article-hero .article-meta { gap: 1rem; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .frame { padding: 2rem 1.25rem; border-radius: var(--r-md); }
  .cards { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; font-size: 0.85rem; }
  .nav-inner { padding: 0 1.25rem; }
  .container { padding: 0 1rem; }
  .invariant-list li { grid-template-columns: 2.5rem 1fr; gap: 0.75rem; }
}
