/* ==========================================================================
   AI-2035 (Cybersecurity Standpoint)
   Author: Aditya Singh
   Continuous Flat Editorial Stylesheet (AI 2027 / AI 2040 Design System)
   Exact Page Background #FFFFF8 · True Black Typography · Solid Black Structural Borders
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Exact ivory/parchment background matching AI 2027 & AI 2040 */
  --bg-primary: #FFFFF8;
  --page-bg: #FFFFF8;
  --bg-surface: transparent;
  --bg-dark: #000000;
  
  /* Literal neutral black for all primary content */
  --text-main: #000000;
  --text-primary: #000000;
  --text-dark: #000000;
  --text-muted: #555550;
  --text-subtle: #777770;
  
  /* Semantic country colors for graph lines & vertical rules */
  --us-color: #1e3a5f;
  --china-color: #9e1b1b;
  --europe-color: #2d5a3f;
  
  --accent-red: #9e1b1b;
  --accent-blue: #1e3a5f;
  --accent-green: #2d5a3f;
  --footnote-green: #1e4d2b;

  --border-black: #000000;
  --border-light: #e2dccf;
  --border-dark: #000000;
  
  --font-serif: "Newsreader", "Charter", "Merriweather", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 0px;
  --radius-md: 0px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-serif);
  line-height: 1.65;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }

h1, h2, h3, h4, .chapter-title, .hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.25;
}

p {
  margin-bottom: 1.15rem;
  font-size: 1.075rem;
  color: var(--text-main);
}

/* Hero Section */
.hero-wrapper {
  max-width: 1400px;
  margin: 3rem auto 1.5rem;
  padding: 0 3rem;
  background: transparent;
}

/* Header Row: Title on Left (1 line on desktop), Navigation on Right */
.hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  width: 100%;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-main);
  white-space: nowrap;
}

.hero-top-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.12s ease;
}

.hero-nav-link:hover {
  text-decoration: underline;
}

.hero-nav-about-btn {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
  background: #FFFFF8;
  border: 1px solid #000000;
  border-radius: 6px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: opacity 0.12s ease;
}

.hero-nav-about-btn:hover {
  opacity: 0.75;
}

.hero-prose {
  max-width: 860px;
}

.hero-author {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 1.65rem;
}

.hero-lead-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-sublead-text {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 1.65rem;
}

/* 4 Introductory Tabs Bar (Inactive: #FFFFF8 + black text; Active: black + #FFFFF8 text) */
.hero-intro-cards-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.intro-card-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  background: #FFFFF8;
  border: 1px solid #000000;
  border-radius: 6px;
  color: #000000;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.intro-card-btn:hover {
  background: #FFFFF8;
  color: #000000;
  border-color: #000000;
}

.intro-card-btn.active {
  background: #000000;
  color: #FFFFF8;
  border: 1px solid #000000;
}

/* Inline Expandable Content Area */
.intro-expandable-box {
  background: #FFFFF8;
  border: 1px solid var(--border-black);
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-box-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
  color: var(--text-main);
}

.intro-box-content p:last-child {
  margin-bottom: 0;
}

/* Metadata Row */
.hero-metadata-row {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  padding-top: 0.25rem;
}

.meta-separator {
  color: #c0baa8;
}

.meta-link {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.15s ease;
}

.meta-link:hover {
  color: var(--text-main);
}

.meta-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-yt-icon {
  color: var(--text-subtle);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.meta-link:hover .meta-yt-icon {
  color: var(--text-main);
}

/* ==========================================================================
   Main 3-Column Scrollytelling Viewport
   ========================================================================== */
.scrolly-viewport {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem 4rem;
  display: grid;
  grid-template-columns: 110px 1fr 480px;
  gap: 2.75rem;
  align-items: start;
}

/* Column 1: Left Timeline Rail */
.left-rail-container {
  position: sticky;
  top: 2rem;
  height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-black);
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0;
  cursor: pointer;
  margin-left: -5px;
  transition: all 0.12s ease;
}

.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-black);
  flex-shrink: 0;
  transition: all 0.12s ease;
}

.rail-dot.filled {
  background: var(--border-black);
}

.rail-dot.hollow {
  background: var(--bg-primary);
  border-color: var(--border-black);
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
  white-space: nowrap;
  transition: color 0.12s ease;
}

.rail-item:hover .rail-label,
.rail-item.active .rail-label {
  color: var(--text-main);
  font-weight: 600;
}

.rail-item.active .rail-dot {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: scale(1.3);
}

/* Column 2: Center Narrative Story Flow */
.narrative-container {
  padding-right: 1.5rem;
  max-width: 680px;
}

.story-chapter {
  padding: 2rem 0 2.75rem;
  min-height: 420px;
}

.chapter-title {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin-bottom: 1.15rem;
  color: var(--text-main);
}

.story-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.15rem;
}

.cross-narrative-text {
  color: var(--text-main);
  font-weight: 500;
}

.branch-bullets-list {
  margin: 1rem 0 1.25rem 1.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.branch-bullets-list li {
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

/* Country Summary Box (Solid black border, country-specific vertical accent rules) */
.national-comparison-box {
  background: transparent;
  border: 1px solid var(--border-black);
  border-radius: 0;
  padding: 1rem 1.25rem;
  margin: 1.35rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nat-box-item {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
  padding-left: 0.65rem;
}

.nat-box-item.us {
  border-left: 2.5px solid var(--us-color);
}

.nat-box-item.cn {
  border-left: 2.5px solid var(--china-color);
}

.nat-box-item.eu {
  border-left: 2.5px solid var(--europe-color);
}

/* Quotes */
.story-quote {
  padding-left: 1.25rem;
  border-left: 2.5px solid var(--border-black);
  margin: 1.5rem 0;
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-main);
}

.quote-attribution {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.epilogue-box {
  background: transparent;
  border: 1px solid var(--border-black);
  border-radius: 0;
  padding: 1.25rem 1.35rem;
  margin: 1.75rem 0 1rem;
}

/* ==========================================================================
   Decision Crossroads Widget & Flowchart Structure
   ========================================================================== */
.decision-tree-widget {
  background: transparent;
  border: none;
  padding: 1.5rem 0 0.5rem;
  margin: 1.5rem 0 0.5rem;
}

.tree-root-box {
  border: 1.25px solid var(--border-black);
  border-radius: 0;
  padding: 1.15rem 1.35rem;
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: center;
  background: transparent;
  margin-bottom: 0;
  color: var(--text-main);
}

/* Top Connection Flowchart Element (Clean, 2px uniform black lines) */
.tree-top-connector-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tree-stem-top {
  width: 2px;
  height: 16px;
  background: #000000;
  margin: 0 auto;
}

.tree-horizontal-crossbar {
  width: 50%;
  height: 2px;
  background: #000000;
  margin: 0 auto;
}

.tree-stems-down-row {
  display: flex;
  justify-content: space-between;
  width: 50%;
  margin: 0 auto;
}

.tree-stem-down {
  width: 2px;
  height: 16px;
  background: #000000;
}

.tree-branches-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tree-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tree-war-outcome {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-black);
  border-radius: 0;
  background: transparent;
  width: 100%;
}

.tree-vertical-line {
  width: 2px;
  height: 20px;
  background: var(--border-black);
  margin: 0 auto;
}

.tree-decision-box {
  border: 1px solid var(--border-black);
  border-radius: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  background: transparent;
  text-align: center;
  width: 100%;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.plan-select-card {
  border: 1px solid var(--border-black);
  border-radius: 0;
  padding: 1.15rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-primary);
  width: 100%;
  position: relative;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-select-card:hover {
  opacity: 0.92;
}

.plan-select-card.active {
  border: 2px solid var(--border-black);
}

.plan-select-card.active::after {
  content: "∨";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.plan-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.plan-card-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.plan-card-sub {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.plan-choose-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.15rem 0.45rem;
  border-radius: 0;
}

.plan-select-card.active .plan-choose-hint {
  font-weight: 700;
}

/* Branch Transition Quote Slot (Below Plan Cards, Above 2032) */
.branch-transition-quote-slot {
  text-align: center;
  margin: 2.75rem 0 1.5rem;
  padding: 0 1rem;
}

.transition-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.transition-quote-attribution {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Column 3: Right-Hand Visualization Area (Square Black Frame)
   ========================================================================== */
.fixed-hud-dock {
  position: sticky;
  top: 2rem;
  width: 480px;
  background: transparent;
  border: 1px solid var(--border-black);
  border-radius: 0;
  padding: 1.15rem;
  box-shadow: none;
}

.dock-top-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-black);
}

.dock-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.hud-date-pill {
  background: var(--bg-dark);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 0;
}

.hud-level-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-monochrome {
  background: #000000;
  color: var(--bg-primary);
  border: 1px solid #000000;
}

/* SVG Chart Box */
.dock-chart-box {
  width: 100%;
  background: transparent;
  border: none;
  margin-bottom: 0.75rem;
}

.dock-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.legend-text {
  font-family: var(--font-sans);
  font-size: 9px;
  fill: #000000;
}

.chart-axis-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: #555550;
}

.chart-zone-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  fill: #000000;
}

/* Chart Switcher Buttons (Monochrome State) */
.chart-switch-buttons-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.chart-toggle-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-black);
  border-radius: 0;
  color: var(--bg-primary);
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.chart-toggle-btn:hover {
  opacity: 0.88;
}

.chart-toggle-btn.active {
  background: var(--bg-primary);
  color: var(--text-main);
  border: 1px solid var(--border-black);
}

/* Live Threat Summary Area */
.threat-summary-card {
  background: transparent;
  border: none;
  padding: 0;
}

.threat-card-row {
  margin-bottom: 0.65rem;
}

.threat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.threat-val-loss {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
}

.threat-val-milestone {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: #000000;
  font-weight: 500;
}

.threat-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-black);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

.status-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--text-main);
  padding-left: 0.5rem;
}

.status-row.us {
  border-left: 2.5px solid var(--us-color);
}

.status-row.cn {
  border-left: 2.5px solid var(--china-color);
}

.status-row.eu {
  border-left: 2.5px solid var(--europe-color);
}

.status-country-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #000000;
}

.status-desc {
  color: #000000;
  font-weight: 500;
  font-size: 0.8125rem;
}

.status-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Superscript Footnote Marker & Dark Green Floating Popover (AI 2027 / AI 2040)
   ========================================================================== */
.footnote-ref {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
  color: var(--footnote-green);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  padding: 0 1px;
  display: inline-block;
  outline: none;
}

.footnote-ref:hover,
.footnote-ref:focus {
  text-decoration: underline;
}

.footnote-popover {
  position: absolute;
  z-index: 9999;
  background: #1d3827;
  color: #f5f5ee;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  max-width: 380px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.45;
  pointer-events: auto;
  animation: popoverFadeIn 0.15s ease;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.footnote-popover-badge {
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.footnote-popover-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footnote-popover-type {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a5d6a7;
  font-weight: 600;
}

.footnote-popover-text {
  color: #f5f5ee;
}

.footnote-popover-sources {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.popover-source-item {
  font-size: 0.78125rem;
}

.popover-source-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.12s ease;
}

.popover-source-link:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Footnotes Section (Numbered 1-17)
   ========================================================================== */
.footnotes-section {
  max-width: 1400px;
  margin: 4rem auto 2rem;
  padding: 3rem 3rem 2rem;
  border-top: 1px solid var(--border-black);
}

.footnotes-header {
  margin-bottom: 1.5rem;
}

.footnotes-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #000000;
}

.sources-numbered-list {
  list-style: decimal;
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.source-list-item {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: #000000;
}

.source-list-link {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.12s ease;
}

.source-list-link:hover {
  opacity: 0.75;
}

.source-list-item.plain-assumption {
  color: #000000;
}

/* ==========================================================================
   Clean 2-Column Footer
   ========================================================================== */
.site-footer {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding: 2.25rem 3rem 2.5rem;
  border-top: 1px solid #000000;
  background: var(--bg-primary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-acknowledgement {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.25;
  color: #000000;
  text-align: left;
}

.desktop-br {
  display: inline;
}

.footer-icons-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-shrink: 0;
}

.footer-icon-link {
  color: #000000;
  font-size: 2.5rem;
  text-decoration: none;
  transition: opacity 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon-link:hover {
  opacity: 0.65;
}

/* Responsive */
@media (max-width: 1180px) {
  .scrolly-viewport {
    grid-template-columns: 1fr;
  }
  .left-rail-container {
    display: none;
  }
  .fixed-hud-dock {
    position: static;
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 900px) {
  .hero-title {
    white-space: normal;
    font-size: 2.5rem;
  }
  .hero-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .desktop-br {
    display: none;
  }
}

/* ==========================================================================
   About Page — Dedicated styles (isolated from main page hero-title etc.)
   ========================================================================== */

.about-page-body {
  background-color: #FFFFF8;
  color: #000000;
  font-family: var(--font-serif);
  margin: 0;
  padding: 0;
}

.about-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 3rem 4rem;
}

/* Top-left site identity — SMALL, independent of .hero-title */
.about-header {
  margin-bottom: 0; /* gap controlled by about-article-column margin-top */
}

.about-site-title {
  /* Dedicated class — does NOT inherit .hero-title */
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.1;
  color: #000000;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
}

.about-site-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reading column — left-aligned, narrow, ample right space */
.about-article-column {
  max-width: 720px;
  margin-top: 62px; /* generous gap between site identity and About Me */
}

/* Primary page title — MUCH LARGER than site identity */
.about-page-title {
  /* Dedicated class — does NOT inherit .hero-title */
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.07;
  color: #000000;
  letter-spacing: -0.5px;
  margin-bottom: 26px;
}

/* Introductory section */
.about-intro-section {
  margin-bottom: 0;
}

.about-intro-section p,
.about-article-column p {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.52;
  color: #000000;
  margin-bottom: 20px;
}

/* Section spacing: generous gap before each secondary heading */
.about-section {
  margin-top: 46px;
}

/* Secondary headings: Get in touch / Changelog */
.about-section-heading {
  font-family: var(--font-serif);
  font-size: clamp(27px, 3vw, 33px);
  font-weight: 400;
  line-height: 1.1;
  color: #000000;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

/* All editorial text links on the About page */
.about-text-link {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.about-text-link:hover {
  opacity: 0.72;
}

.about-text-link:visited {
  color: #000000;
}

/* Credit line at the bottom */
.about-credit-line {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.2vw, 17px);
  color: #000000;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #000000;
}

/* About-page responsive adjustments */
@media (max-width: 900px) {
  .about-page-wrapper {
    padding: 36px 2rem 3rem;
  }
  .about-article-column {
    margin-top: 48px;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .about-page-wrapper {
    padding: 28px 1.35rem 2.5rem;
  }
  .about-site-title {
    white-space: normal;
  }
  .about-article-column {
    margin-top: 36px;
  }
}

