:root {
  --ink: #16221d;
  --paper: #f5f0e7;
  --cream: #fffaf0;
  --line: rgba(22,34,29,.18);
  --accent: #ef5b38;
  --accent-dark: #b9361e;
  --card: #ed6b48;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.6; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; top: -60px; left: 1rem; z-index: 20; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { height: 78px; display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: auto; padding: 0 2rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 2px solid var(--ink); border-radius: 50%; font-size: .72rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { text-decoration: none; font-size: .86rem; font-weight: 600; }
.site-nav a:hover { color: var(--accent-dark); }
.menu-button { display: none; padding: .5rem .7rem; color: var(--ink); background: transparent; border: 1px solid var(--line); }

.hero { min-height: 680px; max-width: var(--max); margin: auto; padding: 6rem 2rem; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
.eyebrow, .section-number, .card-kicker { margin: 0 0 1.2rem; font-size: .72rem; line-height: 1.2; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Newsreader", serif; line-height: .98; letter-spacing: -.045em; }
.hero h1 { margin: 0; font-size: clamp(4.8rem, 8vw, 8rem); }
.hero h1 span { color: var(--accent); font-style: italic; font-size: .62em; }
.hero-subtitle { max-width: 480px; margin: 2rem 0; font-size: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .9rem 1.25rem; text-decoration: none; font-size: .85rem; font-weight: 700; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--accent-dark); }
.hero-visual { position: relative; min-height: 480px; overflow: hidden; display: grid; place-items: center; border-radius: 50% 50% 8px 8px; background: var(--ink); color: white; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.orbit-one { width: 420px; height: 420px; }
.orbit-two { width: 300px; height: 300px; }
.balance { position: relative; width: 330px; height: 160px; }
.balance-beam { position: absolute; width: 280px; height: 5px; top: 60px; left: 25px; background: var(--accent); }
.balance-post { position: absolute; width: 5px; height: 120px; left: 162px; top: 55px; background: white; }
.balance-label { position: absolute; z-index: 2; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.liberty-label { left: 0; top: 0; color: var(--ink); background: var(--accent); }
.order-label { right: 0; top: 0; color: var(--ink); background: var(--accent); }
.visual-note { position: absolute; bottom: 1.5rem; font-family: "Newsreader", serif; font-style: italic; color: rgba(255,255,255,.7); }

.intro-section, .matter-section { max-width: var(--max); margin: auto; padding: 8rem 2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; border-top: 1px solid var(--line); }
.intro-section h2, .matter-section h2, .section-heading h2, .how-section h2 { margin: 0 0 2rem; font-size: clamp(3rem, 5vw, 5rem); }
.intro-section > div > p, .matter-section > div > p { max-width: 680px; font-size: 1.25rem; }
.explore-section { padding: 8rem max(2rem, calc((100vw - var(--max))/2)); background: var(--ink); color: white; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.section-heading > p { max-width: 410px; color: rgba(255,255,255,.68); }
.amendment-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.amendment-card { min-height: 500px; padding: 1.6rem; display: flex; flex-direction: column; color: var(--ink); background: var(--card); text-decoration: none; transition: transform .25s, filter .25s; }
.amendment-card:hover { transform: translateY(-8px); filter: brightness(1.06); }
.amendment-card:nth-child(2) { background: #f0b94f; }
.amendment-card:nth-child(3) { background: #80b9ae; }
.amendment-card:nth-child(4) { background: #9c91c7; }
.card-top { display: flex; justify-content: space-between; font-weight: 700; }
.arrow { font-size: 1.4rem; }
.card-icon { margin: 2rem 0 auto; font-family: "Newsreader", serif; font-size: 5rem; line-height: .8; }
.target-icon { font-family: sans-serif; }
.amendment-card h3 { margin: 0 0 1rem; font-size: 3.2rem; }
.amendment-card > p:not(.card-kicker) { min-height: 75px; padding-top: 1rem; border-top: 1px solid rgba(22,34,29,.3); font-size: .92rem; }
.how-section { max-width: var(--max); margin: auto; padding: 8rem 2rem; display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.steps li > span { color: var(--accent-dark); font-family: "Newsreader", serif; font-size: 2rem; }
.steps strong { font-size: 1.1rem; }
.steps p { margin: .25rem 0 0; }
.site-footer { max-width: var(--max); margin: auto; padding: 2.5rem 2rem; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: .78rem; font-weight: 600; }

.theme-first { --accent: #ef6545; --accent-dark: #b83d25; --card: #ef6545; }
.theme-second { --accent: #e8ad3e; --accent-dark: #8a5a00; --card: #e8ad3e; }
.theme-fourth { --accent: #65a99c; --accent-dark: #246b61; --card: #65a99c; }
.theme-eighth { --accent: #8f83bd; --accent-dark: #53468a; --card: #8f83bd; }
.page-hero, .case-hero { max-width: var(--max); margin: auto; padding: 3rem 2rem 7rem; }
.back-link { display: inline-block; margin-bottom: 5rem; font-size: .78rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--accent-dark); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 6rem; align-items: end; }
.page-hero-grid > *, .case-intro-grid > * { min-width: 0; }
.page-hero h1, .case-hero h1 { margin: 0; font-size: clamp(5rem, 10vw, 9rem); }
.page-lede { max-width: 680px; margin-top: 2rem; font-size: 1.2rem; }
blockquote { position: relative; margin: 0; padding: 2.2rem; background: var(--accent); font-family: "Newsreader", serif; font-size: 1.55rem; line-height: 1.25; }
blockquote span { display: block; font-size: 5rem; line-height: .5; }
.tension { margin-top: 3rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.tension > div { min-height: 125px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); }
.tension > div { background: var(--accent); }
.tension small { font-weight: 700; letter-spacing: .15em; }
.featured-case { padding: 7rem max(2rem, calc((100vw - var(--max))/2)); color: white; background: var(--ink); }
.case-library-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.case-library-heading h2 { margin: 0; font-size: clamp(3rem, 5vw, 5rem); }
.case-library-heading > p { max-width: 420px; color: rgba(255,255,255,.68); }
.case-card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.case-library-card { min-height: 310px; padding: 1.5rem; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); text-decoration: none; transition: transform .2s, background .2s; }
.case-library-card:first-child { grid-column: span 2; background: var(--accent); }
.case-library-card:not(:first-child) { grid-column: span 1; }
.case-library-card:hover { transform: translateY(-6px); background: var(--accent); }
.case-index, .case-year-small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.case-year-small { margin: auto 0 .75rem; color: var(--accent-dark); }
.case-library-card h3 { margin: 0 0 .75rem; font-size: 1.85rem; line-height: 1.02; }
.case-library-card p { margin: 0 0 1.25rem; font-size: .82rem; line-height: 1.45; }
.case-library-card strong { padding-top: .9rem; border-top: 1px solid var(--line); font-size: .72rem; }
.case-feature-card { margin-top: 2rem; padding: 3rem; display: grid; grid-template-columns: .6fr 2fr; gap: 3rem; color: var(--ink); background: var(--accent); text-decoration: none; }
.case-feature-card:hover .button { transform: translateX(5px); }
.case-year { font-family: "Newsreader", serif; font-size: clamp(4rem, 8vw, 7rem); }
.case-feature-card h2 { margin: .3rem 0 1.5rem; font-size: clamp(3rem, 5vw, 5rem); }
.case-feature-card p { max-width: 620px; }
.button-light { margin-top: 1rem; padding-left: 0; transition: transform .2s; }
.next-path { max-width: var(--max); margin: auto; padding: 6rem 2rem; }
.next-path > p { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.next-path a { display: grid; grid-template-columns: 50px 1fr auto; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.next-path a:hover { color: var(--accent-dark); }

.case-hero { padding-bottom: 5rem; }
.case-hero .back-link { margin-bottom: 2rem; }
.case-meta { display: flex; gap: .5rem; margin-bottom: 5rem; }
.case-meta span { padding: .35rem .65rem; border: 1px solid var(--line); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.case-hero h1 { max-width: 950px; font-size: clamp(4.5rem, 9vw, 8.5rem); }
.case-intro-grid { margin-top: 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.case-intro-grid > div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.case-intro-grid p:last-child { max-width: 520px; font-family: "Newsreader", serif; font-size: 1.6rem; line-height: 1.25; }
.case-nav { position: sticky; top: 0; z-index: 10; padding: .9rem max(2rem, calc((100vw - var(--max))/2)); display: flex; gap: 2rem; color: white; background: var(--ink); font-size: .75rem; }
.case-nav span { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.case-nav a { text-decoration: none; }
.case-content { max-width: var(--max); margin: auto; padding: 8rem 2rem; display: grid; grid-template-columns: .7fr 2fr; gap: 5rem; }
.case-content aside { border-right: 1px solid var(--line); }
.big-number { display: block; margin-bottom: 2rem; color: var(--accent); font-family: "Newsreader", serif; font-size: 5rem; line-height: 1; }
.case-content h2, .research-section h2 { margin: 0 0 2rem; font-size: clamp(3rem, 5vw, 5rem); }
.case-content > div > p { max-width: 760px; font-size: 1.1rem; }
.case-content .large-copy { font-family: "Newsreader", serif; font-size: 1.9rem; line-height: 1.35; }
.alt-section { max-width: none; padding-left: max(2rem, calc((100vw - var(--max))/2)); padding-right: max(2rem, calc((100vw - var(--max))/2)); background: #e9e1d4; grid-template-columns: minmax(180px,.7fr) minmax(0,2fr); }
.vocab-box { margin-top: 4rem; border-top: 3px solid var(--ink); }
.vocab-box > .section-number { padding: 1.5rem 0 .5rem; }
details { border-top: 1px solid var(--line); }
summary { padding: 1rem 0; display: flex; justify-content: space-between; font-weight: 700; cursor: pointer; list-style: none; }
details p { margin: 0 0 1.5rem; max-width: 650px; }
.question-card { margin-top: 4rem; padding: 2.5rem; background: var(--accent); }
.question-card > p:last-child { margin: 0; font-family: "Newsreader", serif; font-size: 2rem; line-height: 1.25; }
.holding-section { padding: 8rem max(2rem, calc((100vw - var(--max))/2)); background: var(--ink); color: white; }
.holding-badge { float: right; width: 160px; height: 160px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .65rem; text-align: center; transform: rotate(8deg); }
.holding-badge strong { font-family: "Newsreader", serif; font-size: 1.6rem; }
.holding-section h2 { margin: 0 0 2rem; color: var(--accent); font-size: clamp(4rem, 7vw, 7rem); }
.holding-section > p:last-child { max-width: 790px; font-size: 1.25rem; }
.fact-list { margin: 0; padding: 0; list-style: none; }
.fact-list li { display: grid; grid-template-columns: 60px 1fr; gap: 1rem; border-top: 1px solid var(--line); }
.fact-list span { padding: 1.3rem 0; color: var(--accent-dark); font-family: "Newsreader", serif; font-size: 1.6rem; }
.fact-list p { margin: 0; padding: 1.4rem 0; font-size: 1.05rem; }
.reflection-section { padding: 8rem max(2rem, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; background: var(--accent); }
.reflection-section h2 { margin: 0; font-size: clamp(4rem, 7vw, 7rem); }
.reflection-card { padding: 2.5rem; background: var(--cream); }
.reflection-card > span { font-family: "Newsreader", serif; font-size: 5rem; color: var(--accent-dark); }
.reflection-card > p { font-family: "Newsreader", serif; font-size: 1.8rem; line-height: 1.3; }
.reveal-button { border: 0; padding: .8rem 1rem; background: var(--ink); color: white; cursor: pointer; font-weight: 700; }
.thinking-guide { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); }
.research-section, .learn-section { max-width: var(--max); margin: auto; padding: 7rem 2rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; }
.research-section ol { margin: 0; padding-left: 1.5rem; }
.research-section li { padding: 1.2rem 0 1.2rem .5rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.learn-section { padding-top: 2rem; }
.learn-section > div { display: flex; flex-direction: column; }
.learn-section a { padding: 1.2rem 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.learn-section a:hover { color: var(--accent-dark); }

@media (max-width: 900px) {
  .hero, .page-hero-grid, .amendment-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 3rem; }
  .hero-visual { min-height: 420px; }
  .amendment-card { min-height: 450px; }
  .case-feature-card { grid-template-columns: 1fr; }
  .case-year { line-height: .8; }
  .case-card-grid { grid-template-columns: repeat(2, 1fr); }
  .case-library-card:first-child, .case-library-card:not(:first-child) { grid-column: span 1; }
}

@media (max-width: 680px) {
  .site-header { height: 68px; padding: 0 1rem; }
  .brand > span:last-child { font-size: .9rem; }
  .menu-button { display: block; }
  .site-nav { position: absolute; z-index: 15; top: 68px; left: 0; right: 0; padding: 1.5rem; display: none; flex-direction: column; align-items: flex-start; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero, .page-hero-grid, .intro-section, .matter-section, .how-section, .case-intro-grid, .case-content, .reflection-section, .research-section, .learn-section { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1rem; }
  .hero h1 { font-size: 4.3rem; }
  .hero-visual { min-height: 370px; }
  .balance { transform: scale(.85); }
  .intro-section, .matter-section, .how-section, .case-content, .reflection-section, .research-section, .learn-section { padding: 5rem 1rem; gap: 2rem; }
  .section-heading { display: block; }
  .case-library-heading { display: block; }
  .explore-section, .featured-case, .holding-section { padding: 5rem 1rem; }
  .amendment-grid { grid-template-columns: 1fr; }
  .amendment-card { min-height: 420px; }
  .page-hero, .case-hero { padding: 2rem 1rem 4rem; }
  .back-link { margin-bottom: 3rem; }
  .page-hero h1 { font-size: 3.7rem; overflow-wrap: anywhere; }
  .page-hero-grid { gap: 3rem; }
  .tension { grid-template-columns: 1fr; }
  .tension > span { text-align: center; }
  .case-feature-card { padding: 1.5rem; }
  .case-feature-card h2 { font-size: 3rem; }
  .case-card-grid { grid-template-columns: 1fr; }
  .case-library-card { min-height: 280px; }
  .site-footer { padding: 2rem 1rem; flex-direction: column; }
  .case-meta { margin-bottom: 3rem; flex-wrap: wrap; }
  .case-hero h1 { font-size: 3.5rem; overflow-wrap: anywhere; }
  .case-intro-grid { margin-top: 3rem; gap: 1.5rem; }
  .case-nav { padding: .8rem 1rem; gap: 1rem; overflow-x: auto; white-space: nowrap; }
  .case-content aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .big-number { font-size: 3rem; }
  .alt-section { grid-template-columns: 1fr; padding-left: 1rem; padding-right: 1rem; }
  .holding-badge { float: none; width: 120px; height: 120px; margin-bottom: 2rem; }
  .holding-section h2 { font-size: 4rem; }
  .reflection-section h2 { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
