:root {
  --ink: #101713;
  --paper: #f4f1e8;
  --paper-2: #eae5d9;
  --muted: #667069;
  --line: rgba(16, 23, 19, .18);
  --lime: #c8f05a;
  --orange: #ff7a45;
  --blue: #65b9da;
  --cream: #fffdf5;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--lime); padding: .8rem 1rem; }
.skip:focus { top: 1rem; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(244, 241, 232, .91);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: .83rem; letter-spacing: .08em; }
.brand b { font-weight: 850; }
.brand-mark { width: 30px; height: 22px; display: inline-flex; align-items: end; gap: 3px; }
.brand-mark i { display: block; width: 7px; background: var(--ink); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 16px; background: var(--orange); }
.brand-mark i:nth-child(3) { height: 22px; }
nav { display: flex; gap: 2rem; }
nav a, .repo-link { text-decoration: none; font-size: .8rem; font-weight: 650; }
nav a:hover, .repo-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.repo-link { justify-self: end; }

main > section, footer { padding-left: max(24px, calc((100vw - var(--max)) / 2)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); }
.hero {
  min-height: calc(100svh - 68px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 5rem;
  background: var(--ink);
  color: var(--paper);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 80% 30%, black, transparent 68%);
}
.hero::after {
  content: "8→4→3";
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  top: 18%;
  color: rgba(200,240,90,.13);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: -.09em;
  transform: rotate(-7deg);
}
.eyebrow { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 2rem; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: #c3c9c5; }
.eyebrow span::before { content: ""; display: inline-block; width: 1.8rem; height: 2px; margin-right: .7rem; vertical-align: middle; background: var(--lime); }
.hero h1 { position: relative; z-index: 1; max-width: 1040px; margin: 2rem 0 1.8rem; font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 7.6vw, 7.2rem); line-height: .91; letter-spacing: -.055em; }
.hero h1 em { color: var(--lime); font-weight: 400; }
.lede { position: relative; z-index: 1; max-width: 760px; margin: 0; color: #c5ccc7; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.65; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; min-height: 45px; align-items: center; padding: 0 1.1rem; border: 1px solid rgba(255,255,255,.27); text-decoration: none; font-size: .78rem; font-weight: 750; }
.button.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button:hover { transform: translateY(-2px); }
.hero-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4.2rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero-metrics div { display: flex; flex-direction: column; padding: 1.25rem 1rem 0 0; }
.hero-metrics strong { font-family: var(--serif); font-size: 2.3rem; color: var(--lime); font-weight: 400; }
.hero-metrics span { margin-top: .25rem; color: #9ba49e; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }

.section-rule { padding-top: 7rem; padding-bottom: 7rem; border-bottom: 1px solid var(--line); }
.section-label { margin-bottom: 2.5rem; font-size: .67rem; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.section-label::before { content: ""; display: inline-block; width: 1.5rem; height: 1px; margin-right: .65rem; vertical-align: middle; background: currentColor; }
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .98; letter-spacing: -.045em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.section-heading > p { max-width: 410px; margin: 0; color: var(--muted); line-height: 1.6; }
.thesis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.thesis-grid > div > p { max-width: 620px; margin-top: 2rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.question-stack { border-top: 1px solid var(--ink); }
.question-stack article { padding: 1.5rem 0 1.8rem; border-bottom: 1px solid var(--line); }
.question-stack span { font-size: .65rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.question-stack h3 { margin: .8rem 0 0; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; font-weight: 560; }

.pipeline { background: var(--paper-2); }
.pipeline h2 { max-width: 900px; }
.loop { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: .5rem; margin-top: 4rem; }
.loop-node { min-height: 160px; display: flex; flex-direction: column; padding: 1rem; border: 1px solid var(--ink); background: var(--paper); }
.loop-node.hot { background: var(--orange); }
.loop-node b { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.loop-node span { margin-top: auto; font-weight: 800; }
.loop-node small { margin-top: .35rem; color: #465149; line-height: 1.35; }
.loop-arrow { display: grid; place-items: center; font-size: 1.2rem; }
.loop-note { max-width: 780px; margin: 2rem 0 0 auto; color: var(--muted); line-height: 1.6; }
.loop-note span { color: var(--orange); font-size: 2rem; vertical-align: middle; }

.tension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tension-card { min-height: 360px; padding: 1.5rem; display: flex; flex-direction: column; border: 1px solid var(--ink); }
.tension-card.lime { background: var(--lime); }
.tension-card.orange { background: var(--orange); }
.tension-card.blue { background: var(--blue); }
.versus { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.versus i { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; text-transform: none; }
.tension-card h3 { margin: auto 0 1.1rem; font-family: var(--serif); font-size: 2.15rem; line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.tension-card p { margin: 0; line-height: 1.55; }
.tension-card small { display: block; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(16,23,19,.3); font-size: .67rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .07em; }

.map-section { background: var(--ink); color: var(--paper); }
.map-section .section-label, .map-section .section-heading p { color: #aeb7b1; }
.taxonomy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.taxonomy-controls { border-top: 1px solid rgba(255,255,255,.25); }
.taxonomy-button { width: 100%; display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; color: inherit; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.18); text-align: left; cursor: pointer; }
.taxonomy-button span { color: #78837c; font-family: var(--serif); font-size: 1.2rem; }
.taxonomy-button b { font-size: .95rem; }
.taxonomy-button i { width: 9px; height: 9px; border: 1px solid var(--lime); border-radius: 50%; }
.taxonomy-button:hover, .taxonomy-button.active { color: var(--lime); }
.taxonomy-button.active i { background: var(--lime); box-shadow: 0 0 0 5px rgba(200,240,90,.12); }
.taxonomy-detail { min-height: 460px; position: sticky; top: 96px; align-self: start; padding: 2rem; border: 1px solid rgba(255,255,255,.25); background: #151f19; }
.taxonomy-detail .detail-number { color: var(--lime); font-family: var(--serif); font-size: 4rem; line-height: 1; }
.taxonomy-detail h3 { margin: 3rem 0 1rem; font-family: var(--serif); font-size: 2.7rem; font-weight: 400; line-height: 1; }
.taxonomy-detail p { color: #bdc5c0; line-height: 1.65; }
.taxonomy-detail ul { margin: 2rem 0 0; padding: 1.2rem 0 0 1.1rem; border-top: 1px solid rgba(255,255,255,.16); color: #bdc5c0; }
.taxonomy-detail li { margin: .65rem 0; line-height: 1.4; }
.taxonomy-detail button { margin-top: 1.5rem; color: var(--ink); background: var(--lime); border: 0; padding: .75rem 1rem; font-weight: 760; cursor: pointer; }

.paper-heading { align-items: center; }
.search-box { width: min(390px, 100%); }
.search-box span { display: block; margin-bottom: .5rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.search-box input { width: 100%; padding: .95rem 1rem; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: inherit; }
.search-box input:focus { outline: 3px solid rgba(101,185,218,.45); outline-offset: 2px; }
.active-filter { min-height: 2rem; color: var(--muted); font-size: .76rem; }
.paper-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.paper-card { display: flex; flex-direction: column; min-height: 450px; padding: 1.5rem; border-bottom: 1px solid var(--ink); }
.paper-card:nth-child(odd) { border-right: 1px solid var(--ink); padding-left: 0; padding-right: 2.5rem; }
.paper-card:nth-child(even) { padding-left: 2.5rem; padding-right: 0; }
.paper-topline { display: flex; justify-content: space-between; gap: 1rem; font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.paper-card h3 { margin: 2rem 0 1rem; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.paper-card > p { margin: 0; color: #354139; line-height: 1.6; }
.paper-path { margin-top: 1.3rem; padding: .75rem; border-left: 3px solid var(--orange); background: var(--paper-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; line-height: 1.5; }
.paper-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.2rem; }
.paper-facts div { padding-top: .7rem; border-top: 1px solid var(--line); }
.paper-facts b { display: block; margin-bottom: .35rem; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.paper-facts span { font-size: .79rem; line-height: 1.45; }
.tag-row { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.6rem; }
.tag { padding: .28rem .45rem; border: 1px solid var(--line); font-size: .57rem; text-transform: uppercase; letter-spacing: .06em; }
.paper-links { display: flex; gap: 1rem; margin-top: 1rem; }
.paper-links a { font-size: .72rem; font-weight: 750; text-underline-offset: 4px; }
.empty-state { padding: 2rem; border: 1px dashed var(--line); color: var(--muted); }

.claims-section { background: var(--paper-2); }
.claim-filters { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 2rem; }
.claim-filter { padding: .6rem .8rem; border: 1px solid var(--ink); background: transparent; font-size: .65rem; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.claim-filter.active { background: var(--ink); color: var(--paper); }
.claims-list { border-top: 1px solid var(--ink); }
.claim-row { display: grid; grid-template-columns: 5rem 9rem 1fr 8rem; gap: 1.5rem; align-items: start; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.claim-id { font-family: var(--serif); font-size: 1.2rem; }
.evidence-pill { display: inline-flex; justify-content: center; padding: .32rem .45rem; border: 1px solid currentColor; font-size: .56rem; font-weight: 850; letter-spacing: .08em; }
.evidence-pill.CONFLICT { color: #b33a0a; }
.evidence-pill.HYPOTHESIS { color: #426b0d; }
.evidence-pill.SYNTHESIS { color: #147197; }
.claim-copy h3 { margin: 0 0 .4rem; font-size: 1rem; }
.claim-copy p { margin: 0; color: #4f5a53; line-height: 1.55; font-size: .86rem; }
.claim-paper-count { color: var(--muted); font-size: .68rem; text-align: right; }
.text-link { display: inline-block; margin-top: 2rem; font-size: .8rem; font-weight: 780; text-underline-offset: 5px; }

.failure-section { background: var(--orange); }
.failure-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; }
.failure-grid > div > p { max-width: 480px; line-height: 1.65; }
.cascade { list-style: none; counter-reset: cascade; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cascade li { counter-increment: cascade; position: relative; display: grid; grid-template-columns: 2rem 1fr 1fr; gap: 1rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid rgba(16,23,19,.35); }
.cascade li::before { content: counter(cascade, decimal-leading-zero); font-family: var(--serif); }
.cascade li:not(:last-child)::after { content: "↓"; position: absolute; left: .55rem; bottom: -.78rem; z-index: 1; width: 1.2rem; height: 1.2rem; display: grid; place-items: center; background: var(--orange); }
.cascade span { font-size: .78rem; color: #4b2b1f; }

.questions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.question-card { min-height: 350px; display: flex; flex-direction: column; padding: 1.1rem; border: 1px solid var(--ink); background: var(--cream); }
.question-card .qid { color: var(--orange); font-family: var(--serif); font-size: 1.5rem; }
.question-card h3 { margin: 2rem 0 .8rem; font-family: var(--serif); font-size: 1.55rem; line-height: 1.05; font-weight: 400; }
.question-card > p { margin: 0; color: #465149; font-size: .82rem; line-height: 1.5; }
.experiment { margin-top: auto; padding-top: 1.2rem; }
.experiment b { display: block; margin-bottom: .35rem; font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; }
.experiment span { display: block; font-size: .72rem; line-height: 1.45; }
.prediction { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); color: #526c21; }

.reading-section { background: var(--ink); color: var(--paper); }
.reading-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.reading-grid a { min-height: 250px; display: flex; flex-direction: column; padding: 1rem; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); text-decoration: none; }
.reading-grid a:hover { background: var(--lime); color: var(--ink); }
.reading-grid b { color: var(--lime); font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.reading-grid a:hover b { color: var(--ink); }
.reading-grid span { margin-top: auto; font-family: var(--serif); font-size: 1.6rem; line-height: 1.05; }
.reading-grid small { margin-top: .8rem; color: #9fa9a2; line-height: 1.4; }
.reading-grid a:hover small { color: #344039; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,.15); }
.footer-title { font-size: .8rem; font-weight: 850; letter-spacing: .1em; }
footer p { margin: .5rem 0 0; color: #8f9992; font-size: .75rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .72rem; }
noscript { display: block; padding: 1rem; background: #ffdb6e; }

/* Learning-note index */
.notes-index-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 5rem;
  color: var(--paper);
  background: var(--ink);
}
.notes-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(100deg, transparent 4%, black 52%, transparent 96%);
}
.notes-index-hero::after {
  content: "1·8·23";
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  top: 13%;
  color: rgba(200,240,90,.12);
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 12rem);
  letter-spacing: -.08em;
  transform: rotate(-6deg);
}
.notes-index-hero > *:not(.notes-hero-grid) { position: relative; z-index: 1; }
.notes-index-hero .section-label { margin-bottom: 1.4rem; color: #aeb9b1; }
.notes-index-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.4vw, 7rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}
.notes-index-hero h1 em { color: var(--lime); font-weight: 400; }
.notes-index-hero > p:not(.section-label) {
  max-width: 760px;
  margin: 2rem 0 0;
  color: #c6cec8;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}
.notes-index-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.notes-index-stats div { display: flex; flex-direction: column; padding-top: 1.1rem; }
.notes-index-stats strong { color: var(--lime); font-family: var(--serif); font-size: 2.4rem; font-weight: 400; }
.notes-index-stats span { color: #9aa59d; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.notes-index-section { padding-top: 7rem; padding-bottom: 7rem; border-bottom: 1px solid var(--line); }
.notes-index-heading { display: grid; grid-template-columns: 1.1fr .75fr; gap: 5rem; align-items: end; }
.notes-index-heading > p { margin: 0; color: var(--muted); line-height: 1.65; }
.notes-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 230px auto;
  gap: .8rem;
  align-items: end;
  margin-top: 3.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.notes-controls label { display: grid; gap: .4rem; }
.notes-controls label > span { color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.notes-controls input,
.notes-controls select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0 .85rem;
  color: var(--ink);
  background: var(--cream);
  font: inherit;
}
.notes-controls input:focus,
.notes-controls select:focus { outline: 3px solid rgba(101,185,218,.4); outline-offset: 2px; }
#notes-visible-count { margin: 0 0 .7rem; color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.learning-note-list { border-top: 1px solid var(--ink); }
.learning-note-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 8rem;
  gap: 2rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}
.learning-note-number { color: var(--orange); font-family: var(--serif); font-size: 2rem; }
.learning-note-meta { margin: 0; color: var(--muted); font-size: .61rem; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.learning-note-card h3 { margin: .65rem 0 .7rem; font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.learning-note-card h3 a { text-decoration: none; }
.learning-note-card h3 a:hover { color: #b33a0a; }
.learning-note-card-copy > p:not(.learning-note-meta) { max-width: 780px; margin: 0; color: #465149; line-height: 1.6; }
.note-tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.note-tag-list li { padding: .28rem .45rem; border: 1px solid var(--line); font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; }
.learning-note-open { justify-self: end; margin-top: .3rem; font-size: .72rem; font-weight: 780; text-underline-offset: 4px; }
.notes-empty { padding: 2rem 0; color: var(--muted); }
.notes-method-section { padding-top: 6rem; padding-bottom: 7rem; background: var(--blue); }
.notes-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.notes-method-grid article { min-height: 250px; padding: 1.2rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.notes-method-grid b { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.notes-method-grid h3 { margin: 4rem 0 .7rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.notes-method-grid p { margin: 0; color: #243f4a; font-size: .82rem; line-height: 1.55; }

/* Individual learning notes */
.note-main { background: var(--paper); }
.learning-note-hero,
.learning-note-layout {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.learning-note-hero { padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--ink); }
.note-back { display: inline-block; margin-bottom: 2.5rem; color: var(--muted); font-size: .72rem; font-weight: 750; text-underline-offset: 4px; }
.note-status-line {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: .75rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.note-status-line strong { color: #426b0d; }
.learning-note-hero .eyebrow { margin-top: 2rem; color: var(--muted); }
.learning-note-hero h1 {
  max-width: 1000px;
  margin: 1.8rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.055em;
}
.note-abstract { max-width: 820px; margin: 2rem 0 0; color: #435047; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.authorship-note { max-width: 900px; margin: 1.4rem 0 0; padding-left: 1rem; border-left: 3px solid var(--orange); color: var(--muted); font-size: .75rem; line-height: 1.55; }
.learning-note-layout { display: grid; grid-template-columns: 240px minmax(0, 820px); gap: clamp(3rem, 8vw, 7rem); align-items: start; padding-top: 4rem; padding-bottom: 7rem; }
.learning-note-toc { position: sticky; top: 96px; padding-top: .4rem; }
.learning-note-toc > p { margin: 0 0 1rem; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.learning-note-toc ul { margin: 0; padding: 0; list-style: none; }
.learning-note-toc ul ul { margin: .35rem 0 .5rem 1rem; }
.learning-note-toc li { margin: .45rem 0; }
.learning-note-toc a { color: #465149; font-size: .73rem; line-height: 1.35; text-decoration: none; }
.learning-note-toc a:hover { color: #b33a0a; text-decoration: underline; text-underline-offset: 3px; }
.learning-note-prose { min-width: 0; font-family: var(--serif); font-size: 1.04rem; line-height: 1.78; overflow-wrap: anywhere; }
.learning-note-prose h2 { margin: 4.5rem 0 1.4rem; padding-top: .6rem; border-top: 1px solid var(--ink); font-size: clamp(2.2rem, 4vw, 3.6rem); }
.learning-note-prose h2:first-child { margin-top: 0; }
.learning-note-prose h3 { margin: 2.7rem 0 1rem; font-family: var(--sans); font-size: 1.25rem; line-height: 1.2; }
.learning-note-prose p { margin: 1rem 0; }
.learning-note-prose ul,
.learning-note-prose ol { padding-left: 1.35rem; }
.learning-note-prose li { margin: .45rem 0; }
.learning-note-prose a { color: #147197; text-underline-offset: 4px; }
.learning-note-prose code { padding: .15rem .28rem; background: var(--paper-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
.learning-note-prose pre { overflow-x: auto; padding: 1rem; background: var(--ink); color: var(--paper); }
.learning-note-prose pre code { padding: 0; background: transparent; }
.learning-note-prose blockquote { margin: 1.6rem 0; padding: .2rem 1.2rem; border-left: 4px solid var(--lime); background: var(--paper-2); color: #354139; }
.learning-note-prose table { display: block; width: 100%; overflow-x: auto; margin: 1.7rem 0 2rem; border-collapse: collapse; font-family: var(--sans); font-size: .78rem; line-height: 1.45; }
.learning-note-prose th,
.learning-note-prose td { min-width: 8rem; padding: .72rem .65rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.learning-note-prose th { background: var(--ink); color: var(--paper); font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }
.learning-note-prose mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; padding: .6rem 0; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero-metrics, .questions-grid, .reading-grid { grid-template-columns: repeat(2, 1fr); }
  .thesis-grid, .taxonomy-layout, .failure-grid { grid-template-columns: 1fr; }
  .taxonomy-detail { position: static; min-height: 0; }
  .tension-grid { grid-template-columns: 1fr; }
  .tension-card { min-height: 300px; }
  .loop { grid-template-columns: 1fr; }
  .loop-arrow { transform: rotate(90deg); height: 20px; }
  .loop-node { min-height: 130px; }
  .notes-index-heading { grid-template-columns: 1fr; gap: 2rem; }
  .notes-controls { grid-template-columns: 1fr 220px; }
  #notes-visible-count { grid-column: 1 / -1; }
  .notes-method-grid { grid-template-columns: repeat(2, 1fr); }
  .learning-note-layout { grid-template-columns: 1fr; }
  .learning-note-toc { position: static; padding: 1rem; border: 1px solid var(--line); background: var(--paper-2); }
  .learning-note-toc > .toc > ul { columns: 2; column-gap: 2rem; }
}

@media (max-width: 680px) {
  .topbar { height: 58px; padding-inline: 16px; }
  .repo-link { font-size: .7rem; }
  main > section, footer { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: calc(100svh - 58px); padding-top: 5rem; }
  .eyebrow time { display: none; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 5.4rem); }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .section-rule { padding-top: 5rem; padding-bottom: 5rem; }
  .section-heading, .paper-heading { display: block; }
  .section-heading > p, .search-box { margin-top: 1.5rem; }
  .paper-grid { grid-template-columns: 1fr; }
  .paper-card:nth-child(n) { border-right: 0; padding: 1.4rem 0; }
  .paper-facts { grid-template-columns: 1fr; }
  .claim-row { grid-template-columns: 3rem 7rem 1fr; gap: .7rem; }
  .claim-paper-count { display: none; }
  .questions-grid, .reading-grid { grid-template-columns: 1fr; }
  .question-card { min-height: 320px; }
  .cascade li { grid-template-columns: 2rem 1fr; }
  .cascade span { grid-column: 2; }
  footer { display: block; }
  .footer-links { margin-top: 1.5rem; }
  .notes-index-hero { min-height: 560px; }
  .notes-index-stats { grid-template-columns: repeat(3, 1fr); }
  .notes-index-heading { display: block; }
  .notes-index-heading > p { margin-top: 1.5rem; }
  .notes-controls { grid-template-columns: 1fr; }
  #notes-visible-count { grid-column: auto; }
  .learning-note-card { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .learning-note-open { grid-column: 2; justify-self: start; }
  .notes-method-grid { grid-template-columns: 1fr; }
  .notes-method-grid article { min-height: 210px; }
  .learning-note-hero,
  .learning-note-layout { width: min(calc(100% - 36px), var(--max)); }
  .note-status-line { display: grid; gap: .35rem; }
  .learning-note-hero .eyebrow { display: grid; gap: .45rem; }
  .learning-note-toc > .toc > ul { columns: 1; }
  .learning-note-prose { font-size: 1rem; }
}

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