/* Thought Experiment Collective — sample channel.
   Departure Mono (MIT), Courier Prime and Caveat (SIL OFL).
   Notebook sheet matches the live collective background. */

@font-face {
  font-family: "Departure Mono";
  src: url("fonts/DepartureMono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #292e2a;
  --pencil: #54574d;
  --muted: #626659;
  --red: #a64b29;
  --mint: #f4e6b9;
  --line: #dad8c9;
  --gold: #f0c52c;
  --orange: #bc512c;
  --navy: #293e62;
  --shadow-gold: #dcbf51;
  --cream: #fff9e8;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  padding-left: 40px;
  color: var(--ink);
  background-color: #fff;
  background-image: url("assets/notebook-paper-weathered.png");
  background-position: left top;
  background-size: max(1536px, 100vw) auto;
  background-repeat: repeat-y;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 18px;
  line-height: 1.65;
}

button, a { -webkit-tap-highlight-color: transparent; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

::selection {
  background: #f4e6b9;
  color: var(--ink);
}

.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 10;
  background: #fff;
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.skip:focus { top: 10px; }

.wrap {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main:focus { outline: none; }

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: "Departure Mono", monospace;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span { color: var(--orange); }

nav[aria-label="Main"] {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

nav[aria-label="Main"] a { text-decoration: none; }
nav[aria-label="Main"] a:hover { color: #974423; }

.eyebrow {
  font-family: "Departure Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: #80611b;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Departure Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.65px;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--orange);
  -webkit-text-stroke: 0.4px #745423;
  paint-order: stroke fill;
  margin: 0 0 24px;
}

h1 .line { display: block; }

h1 em,
.feature-sub em,
.signoff em {
  font-style: normal;
}

h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--navy);
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--shadow-gold);
  margin: 0 0 22px;
}

h3 {
  font-family: "Departure Mono", monospace;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.28;
  letter-spacing: 0;
  color: var(--navy);
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 var(--shadow-gold);
  margin: 0 0 12px;
}

.hero {
  position: relative;
  text-align: center;
  padding: 28px 0 48px;
}

.home-hero h1 {
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.17;
  margin-bottom: 22px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: #42483d;
  margin: 0 auto 22px;
  max-width: 640px;
}

.text-link {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  color: #30342c;
  text-decoration-color: #af7623;
}

.text-link:hover { color: #974423; }

.margin-note {
  font-family: "Bradley Hand", "Segoe Print", Caveat, cursive;
  font-style: italic;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.3;
  color: #a04b27;
  transform: rotate(-4deg);
  transform-origin: center;
  max-width: 280px;
  margin: 0;
}

.hero-note {
  position: static;
  display: block;
  margin: 18px auto 0;
  max-width: 36ch;
  text-align: center;
  transform: none;
  font-family: "Courier Prime", "Courier New", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: #747469;
  letter-spacing: 0;
}

.essay-nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-block: 8px 16px;
  font-family: "Departure Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  -webkit-overflow-scrolling: touch;
}

.essay-nav a {
  text-decoration: none;
  white-space: nowrap;
  color: #80611b;
  padding-block: 8px;
}

.essay-nav a:hover { color: #974423; }

.page-section { padding-block: 72px; }

.section-heading { max-width: 920px; }

.section-heading > p:not(.eyebrow):not(.margin-note) {
  font-size: 19px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.with-note {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(180px, 1fr);
  gap: 12px 36px;
  align-items: end;
}

.with-note .margin-note {
  justify-self: end;
  margin: 0 4px 10px 0;
  text-align: left;
}

.prose { max-width: 720px; margin-top: 8px; }

.prose p,
.principle-copy p,
.question-copy p,
.wrinkle-copy p { margin: 0 0 1em; }

.prose p:last-child,
.principle-copy p:last-child,
.question-copy p:last-child,
.wrinkle-copy p:last-child { margin-bottom: 0; }

.prose p { font-size: 18px; }

.prose a,
.wrinkle-copy a { text-decoration-color: #af7623; }

.prose a:hover,
.wrinkle-copy a:hover { color: #974423; }

strong { font-weight: 700; color: var(--ink); }

.diagram-card { margin-top: 36px; padding: 8px 0 4px; }

.diagram-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.pencil-caption {
  font-family: "Bradley Hand", "Segoe Print", Caveat, cursive;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: #a04b27;
  margin: 0;
}

.pencil-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #8a6740;
  background: #fff9e8b8;
  padding: 10px 16px;
  box-shadow: 3px 3px 0 #d7a64c;
  transform: rotate(-1deg);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}

.pencil-button:hover { background: #f4dfa0; }

.longlist,
.shortlist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.longlist { counter-reset: hit; }

.longlist li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 9px 2px;
  border-bottom: 1px solid #cfcab6;
}

.longlist li::before {
  content: counter(hit, decimal-leading-zero);
  counter-increment: hit;
  font-family: "Departure Mono", monospace;
  font-size: 12px;
  color: #9a4c25;
}

.longlist li span { font-size: 17px; }

.shortlist-wrap { display: none; }

.diagram-card.is-short .longlist-wrap { display: none; }
.diagram-card.is-short .shortlist-wrap { display: block; }

.shortlist { display: grid; gap: 14px; }

.shortlist li {
  background: #fff9e8cc;
  border: 1px solid #8a6740;
  padding: 14px 16px 12px;
  box-shadow: 3px 3px 0 #d7a64c;
}

.who {
  font-family: "Departure Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #9a4c25;
}

.shortlist h3 {
  font-size: 22px;
  margin: 8px 0;
}

.shortlist p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.fourth {
  font-family: "Bradley Hand", "Segoe Print", Caveat, cursive;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  color: #a04b27;
  margin: 18px 0 0;
}

.fourth s {
  color: var(--pencil);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange);
}

.diagram-bottom {
  font-family: "Bradley Hand", "Segoe Print", Caveat, cursive;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  color: #a04b27;
  text-align: center;
  margin: 20px 0 0;
}

.study-note {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
  color: #716d5c;
  margin: 16px 0 0;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 32px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}

.facts li {
  margin: 0;
  padding: 4px 4px 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fact-kicker {
  font-family: "Departure Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #80611b;
  margin: 0 0 10px;
}

.fact-figure {
  font-family: "Departure Mono", monospace;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--orange);
}

.fact-figure.words {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.35em;
  font-size: clamp(26px, 2.6vw, 34px);
  max-width: none;
  white-space: normal;
}

.fact-arrow { color: var(--orange); }

.fact-delta {
  font-family: "Bradley Hand", "Segoe Print", Caveat, cursive;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: #a04b27;
  margin: 0 0 10px;
}

.facts li > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 42ch;
}

.pull {
  margin: 42px 0 0;
  padding: 0;
  border: 0;
  max-width: 920px;
}

.pull p {
  font-family: "Departure Mono", monospace;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.28;
  letter-spacing: 0;
  color: var(--navy);
  text-shadow: 1px 1px 0 #fff, 3px 3px 0 var(--shadow-gold);
  margin: 0;
}

.pull p::before,
.pull p::after { color: var(--orange); }

.pull p::before { content: "\201C"; margin-right: 0.12em; }
.pull p::after { content: "\201D"; }

.pull-follow {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.principles,
.questions {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-width: 920px;
}

.principles li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
}

.hand-number {
  flex: 0 0 46px;
  font-family: "Departure Mono", monospace;
  font-size: 28px;
  line-height: 1.2;
  color: #9a4c25;
  transform: none;
  text-align: left;
  padding-top: 2px;
}

.principle-copy p,
.question-copy p,
.wrinkle-copy p {
  font-size: 18px;
  color: var(--muted);
  max-width: 68ch;
}

.wrinkle {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.wrinkle .margin-note { margin-top: 6px; }

.wrinkle-copy .healthy-lead {
  font-family: "Departure Mono", monospace;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.28;
  letter-spacing: 0;
  color: var(--navy);
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 var(--shadow-gold);
  margin: 0 0 16px;
}

.questions li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
  padding: 26px 0 8px;
}

.signoff {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 18px;
  font-style: normal;
  line-height: 1.55;
  color: var(--ink);
  margin-top: 8px;
  max-width: 46ch;
}

.signoff em {
  font-family: "Departure Mono", monospace;
  font-style: normal;
  font-weight: 400;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--orange);
}

.sources {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 860px;
}

.sources li {
  display: grid;
  grid-template-columns: minmax(128px, 190px) minmax(0, 1fr);
  gap: 8px 22px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid #cfcab6;
  margin: 0;
}

.src-who {
  font-family: "Departure Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #9a4c25;
}

.sources a {
  display: inline-block;
  text-decoration: none;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 18px;
  line-height: 1.4;
}

.sources a:hover { color: #974423; }

.src-domain {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #716d5c;
}

.closing {
  text-align: center;
  padding-block: 72px 88px;
}

.closing h2 { font-size: clamp(32px, 4.2vw, 48px); }

.closing .lead-close {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 8px auto 26px;
}

.closing .study-note { text-align: center; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px 40px;
}

.site-footer p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.site-footer a:not(.wordmark) { font-size: 15px; }

.feature {
  max-width: 760px;
  margin-top: 8px;
  background: #fff9e8c4;
  border: 1px solid #8a6740;
  box-shadow: 3px 3px 0 #d7a64c;
  padding: 26px 26px 22px;
}

.feature h2 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 36px); }

.feature h2 a { text-decoration: none; }
.feature h2 a:hover { color: #1c3054; }

.feature-sub {
  font-family: "Departure Mono", monospace;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--orange);
  margin: 0 0 14px;
}

.feature-dek {
  color: var(--muted);
  font-size: 17px;
  max-width: 58ch;
  margin: 0 0 20px;
}

.index-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  max-width: 720px;
}

.index-points li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 2px;
  border-top: 1px solid #cfcab6;
  font-size: 18px;
}

.index-points span {
  font-family: "Departure Mono", monospace;
  font-size: 13px;
  color: #9a4c25;
}

.collective-link { margin: 26px 0 0; }

@media (max-width: 900px) {
  body { padding-left: 34px; background-size: 1200px auto; }
  .wrap { width: calc(100% - 44px); }
  .hero { padding: 20px 0 32px; }
  .page-section { padding-block: 56px; }
  .with-note { grid-template-columns: 1fr; }
  .with-note .margin-note { justify-self: end; margin-top: 16px; }
  .wrinkle { gap: 22px; }
  h1 { font-size: 42px; }
  .home-hero h1 { font-size: clamp(40px, 8vw, 55px); }
  h2 { font-size: 34px; }
}

@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; gap: 26px; }
  .wrinkle { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body {
    padding-left: 28px;
    background-size: 1000px auto;
    font-size: 17px;
  }
  .wrap { width: calc(100% - 32px); }
  .site-header { height: auto; min-height: 64px; padding-block: 12px; }
  .wordmark { font-size: 11px; }
  nav[aria-label="Main"] { gap: 14px; font-size: 13px; }
  h1 {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 0 var(--orange);
    -webkit-text-stroke: 0.35px #745423;
  }
  .home-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  h2, .closing h2 {
    font-size: clamp(26px, 7.2vw, 34px);
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 0 #fff, 3px 3px 0 var(--shadow-gold);
  }
  h3 { font-size: 20px; }
  .lead { font-size: 17px; }
  .hero-note { font-size: 14px; }
  .page-section { padding-block: 46px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.2px; }
  .diagram-top { align-items: flex-start; flex-direction: column; gap: 14px; }
  .pencil-caption, .diagram-bottom, .fourth, .fact-delta { font-size: 21px; }
  .principle-copy p,
  .question-copy p,
  .wrinkle-copy p,
  .section-heading > p:not(.eyebrow):not(.margin-note),
  .prose p { font-size: 17px; }
  .hand-number { font-size: 22px; flex-basis: 34px; }
  .principles li, .questions li { gap: 8px; }
  .closing { padding-block: 52px 64px; }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px 32px;
  }
  .sources li { grid-template-columns: 1fr; gap: 4px; }
  .feature { padding: 18px 16px 16px; }
  .essay-nav { gap: 16px; }
  .margin-note { font-size: 20px; }
}

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

@media print {
  body { background: #fff; color: #000; padding-left: 0; }
  .skip, .essay-nav, .pencil-button, nav[aria-label="Main"] { display: none; }
  h1, h2, h3, .fact-figure, .signoff em { color: #000; text-shadow: none; -webkit-text-stroke: 0; }
  .shortlist-wrap { display: block; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 11px;
    word-break: break-all;
  }
}
