@charset "utf-8";
:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --paper-strong: #fffefb;
  --ink: #191813;
  --muted: #6f6e63;
  --line: #e2e0d4;
  --line-strong: #c6c3b2;
  --band: #f1efe6;
  --accent: #9b3f34;
  --quote: #1f6b68;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px max(20px, calc((100vw - 960px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.78rem;
}
nav { margin-left: auto; display: flex; gap: 2px; }
nav a {
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { color: var(--accent); background: var(--band); outline: none; }

.hero {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) 0 clamp(40px, 7vh, 80px);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.04; }
.subtitle-line {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  letter-spacing: 0;
}
.lede { margin: 0; max-width: 34em; color: #3c3b32; font-size: clamp(1.02rem, 1.4vw, 1.16rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--band); color: var(--accent); border-color: var(--line-strong); }

.section {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) 0;
  border-top: 1px solid var(--line);
}
.section h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-lede { margin: 0 0 30px; max-width: 44em; color: var(--muted); }

.research-prose { max-width: 42em; }
.research-prose p { margin: 0 0 1.1em; color: #35342b; font-size: 1.05rem; line-height: 1.75; }
.research-prose p:last-child { margin-bottom: 0; }

.abstract {
  max-width: 46em;
  margin-top: 34px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
}
.abstract-tag {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.abstract h3 { margin: 0 0 18px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2; }
.abstract p {
  margin: 0 0 1em;
  color: #2c2b23;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.72;
}
.abstract p:last-child { margin-bottom: 0; }

.keywords { margin: 1.4em 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.keywords strong { color: var(--ink); font-weight: 700; }

.toc-section h2 { margin-bottom: 16px; }
.toc {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 28px;
  max-width: 46em;
}
.toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  text-decoration: none;
}
.toc a:hover { background: var(--band); color: var(--accent); }

.draft-note { margin: 16px 0 0; max-width: 40em; color: var(--muted); font-size: 0.95rem; font-style: italic; }
.draft-section h2 { display: flex; align-items: baseline; gap: 12px; }
.sec-num { color: var(--accent); font-family: var(--serif); font-weight: 700; }
.draft-body { max-width: 46em; }
.draft-body p { margin: 0 0 1.05em; color: #2c2b23; font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; }
.draft-body p:last-child { margin-bottom: 0; }

.work-list { display: grid; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-strong); overflow: hidden; }
.work-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 140ms ease;
}
.work-row:last-child { border-bottom: 0; }
.work-row:hover { background: var(--band); }
.work-tag { color: var(--accent); font-size: 0.74rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.work-body { color: var(--muted); font-size: 0.94rem; }
.work-body strong { display: block; margin-bottom: 2px; color: var(--ink); font-family: var(--serif); font-size: 1.14rem; font-weight: 600; }
.work-arrow { color: var(--line-strong); font-size: 1.2rem; transition: color 140ms ease, transform 140ms ease; }
.work-row:hover .work-arrow { color: var(--accent); transform: translateX(3px); }

.throughline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
  overflow: hidden;
}
.throughline div { padding: 18px 20px; border-right: 1px solid var(--line); }
.throughline div:last-child { border-right: 0; }
.throughline strong { display: block; margin-bottom: 6px; color: var(--accent); font-family: var(--serif); font-size: 1.02rem; }
.throughline span { color: var(--muted); font-size: 0.9rem; }

.passage-list { display: grid; gap: 22px; }
.passage {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
}
.passage-head { display: flex; gap: 18px; align-items: baseline; margin-bottom: 12px; }
.passage-number { color: var(--accent); font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.passage-head h3 { margin: 0 0 3px; font-size: 1.42rem; line-height: 1.15; }
.source-link { color: var(--quote); font-size: 0.82rem; font-weight: 650; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.claim { margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--accent); color: #45443a; font-weight: 550; }
blockquote {
  margin: 0;
  padding: 18px 22px;
  border-left: 2px solid var(--quote);
  border-radius: 0 10px 10px 0;
  background: var(--band);
  color: #2c2b23;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.7;
}
blockquote .ellip { color: var(--muted); font-size: 0.85em; padding: 0 3px; white-space: nowrap; }
details { margin-top: 14px; }
details summary { cursor: pointer; color: var(--accent); font-size: 0.88rem; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 0.94rem; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
  margin-top: 40px;
  padding: 26px max(20px, calc((100vw - 960px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
footer a { color: var(--accent); font-weight: 650; }

@media print {
  .site-header, .actions, footer, .toc-section { display: none; }
  html { background: #fff; }
  .hero, .section { width: auto; padding: 14px 0; border-top: none; }
  .lede, .draft-body p { color: #000; }
  .draft-body p { font-size: 11.5pt; line-height: 1.55; }
  .work-list, .work-row { border: none; }
}

@media (max-width: 760px) {
  .toc { grid-template-columns: 1fr; }
  .site-header { position: static; flex-wrap: wrap; }
  .hero { padding-top: 44px; }
  .throughline { grid-template-columns: 1fr; }
  .throughline div { border-right: 0; border-bottom: 1px solid var(--line); }
  .throughline div:last-child { border-bottom: 0; }
  .work-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .work-tag { grid-column: 1 / -1; }
  .passage { padding: 20px; }
  .actions { display: grid; grid-template-columns: 1fr; }
}
