:root {
  --ink: #202734;
  --muted: #596574;
  --line: #e2e1dc;
  --paper: #fffefa;
  --wash: #f5f4ef;
  --accent: #285276;
  --tint: #edf3f8;
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
p { margin: 0 0 1.2rem; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.15rem, 4.3vw, 3.7rem); line-height: 1.12; letter-spacing: -.035em; margin: 1.25rem 0 1.5rem; max-width: 980px; }
h2 { font-size: clamp(1.65rem, 2.5vw, 2.15rem); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 1.5rem; }
h3 { font-size: 1.05rem; line-height: 1.4; margin: 0 0 .6rem; }
img { max-width: 100%; height: auto; }
.shell { max-width: 1220px; margin: 0 auto; padding: 0 2.5rem; }
.site-nav { border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { color: var(--ink); font: 1.4rem var(--serif); text-decoration: none; }
.nav-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.skip-link { position: absolute; top: -100px; left: 1rem; background: #fff; padding: 1rem; z-index: 5; }
.skip-link:focus { top: 0; }
.hero { padding: 3.6rem 0 3rem; }
.paper-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .09em; margin: 0; text-transform: uppercase; }
.project-page .hero h1 { font-size: clamp(2.6rem, 6.3vw, 5rem); line-height: 1.05; letter-spacing: -.045em; margin: 1.15rem 0 1rem; }
.paper-title { max-width: 890px; margin: 0 0 1.75rem; font: 1.35rem/1.5 var(--serif); color: #4a515b; }
.paper-year { margin: 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.paper-deck { max-width: 740px; font: 1.3rem/1.6 var(--serif); color: #495365; margin-bottom: 2rem; }
.paper-details { max-width: 920px; }
.authors { font-size: .9rem; line-height: 1.8; margin-bottom: .5rem; }
.authors a { color: var(--ink); }
.venue { font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
sup { margin-left: .12em; }
.badge { display: inline-block; margin-left: .5rem; padding: .1rem .65rem; border: 1px solid #d7c9ac; background: #faf3e3; color: #795018; font-size: .8rem; }
.source, .note { color: var(--muted); font-size: .85rem; line-height: 1.65; }
.note { margin: .5rem 0 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.45rem; margin-top: 1.5rem; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .4rem .15rem; border: 0; background: transparent; color: var(--accent); font-size: .88rem; font-weight: 600; text-decoration: none; }
.action:hover { text-decoration: underline; }
.action.primary { padding: .5rem 1.3rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; }
.page-grid { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 2.8rem; border-top: 1px solid var(--line); }
.toc { align-self: start; position: sticky; top: 2rem; padding-top: 3rem; font-size: .86rem; }
.toc strong { display: block; font-weight: 600; margin-bottom: 1.15rem; color: var(--ink); }
.toc a { display: block; margin: 0 0 .9rem; color: var(--muted); text-decoration: none; font-size: .8rem; }
.toc a span { font: .72rem/1.5 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a[aria-current] { color: var(--accent); }
.content { min-width: 0; }
.content > section { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.content > section:last-child { border: 0; }
.section-heading { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; }
.section-index { flex: 0 0 auto; color: var(--accent); font-size: .8rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.study-copy, .example-intro, .example-reading { max-width: 69ch; }
.study-copy p { margin-bottom: 1.3rem; }
#overview .source { margin: 1.5rem 0 0; }
.example-intro { margin-bottom: 1.75rem; }
.example-layout { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.example-item { min-width: 0; position: relative; padding: 1.6rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.item-label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.item-label h3 { font: 600 .85rem/1.5 var(--sans); color: var(--accent); margin: 0; }
.example-text, .example-item blockquote { margin: 0; }
.example-item blockquote { font: 1.3rem/1.6 var(--serif); letter-spacing: -.01em; }
.example-note { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: .9rem 0 0; }
.case-outcome { font-size: .87rem; font-weight: 650; color: var(--accent); border-top: 1px solid var(--line); padding-top: .9rem; margin: 1.1rem 0 0; }
.example-item mark { background: var(--tint); color: inherit; box-shadow: 0 2px 0 var(--accent); padding: .05rem .15rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.layout-salience .example-item { padding: 1.7rem 6.5rem 1.7rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.layout-salience .role-question:first-child { border-top: 2px solid var(--accent); }
.rating { position: absolute; top: 1.35rem; right: 1.5rem; display: flex; align-items: baseline; gap: .25rem; white-space: nowrap; color: var(--accent); }
.rating strong { font: 3rem/1 var(--serif); }
.rating span { color: var(--muted); font-size: .8rem; }
.layout-alignment, .layout-cases { grid-template-columns: 1fr 1fr; }
.layout-alignment .role-question { grid-column: 1 / -1; background: var(--tint); border-color: transparent; text-align: center; }
.layout-alignment .role-question .item-label { justify-content: center; }
.layout-alignment .example-text { font-family: var(--serif); font-size: 1.15rem; }
.layout-cases .example-item { display: flex; flex-direction: column; }
.layout-cases .case-outcome { margin-top: auto; padding-top: 1rem; }
.layout-cases .example-text { font-size: .95rem; margin-bottom: 1rem; }
.layout-dependency { gap: 0; border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.layout-dependency .example-item { background: var(--wash); border: 0; }
.layout-dependency .role-question { background: #fff; padding-top: 1.7rem; padding-bottom: 1.7rem; }
.layout-dependency .role-question::before, .layout-dependency .role-question::after { display: block; content: '↓'; color: var(--accent); line-height: 1; font-family: var(--sans); }
.layout-dependency .role-question::before { margin: -.8rem 0 .9rem; }
.layout-dependency .role-question::after { margin: .9rem 0 -.8rem; }
.layout-insertion { gap: 0; }
.layout-insertion .role-question { background: var(--wash); border-bottom: 0; border-radius: 3px 3px 0 0; }
.layout-insertion .role-answer { background: var(--tint); border-left: 3px solid var(--accent); border-radius: 0 0 3px 3px; padding-top: 1.8rem; padding-bottom: 1.8rem; }
.layout-evaluation .role-error { border-left: 3px solid #a94342; }
.layout-evaluation .role-error .item-label h3 { color: #96403e; }
.layout-evaluation .role-error mark { background: #faedeb; box-shadow: 0 2px 0 #a94342; }
.layout-evaluation .role-reference { background: var(--wash); }
.layout-speech blockquote { line-height: 1.85; }
.layout-speech mark { padding: .15rem .3rem; }
.source-note { display: grid; grid-template-columns: 98px minmax(0,1fr); gap: .9rem; border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1rem; font-size: .82rem; color: var(--muted); line-height: 1.7; }
.source-note > span { font-weight: 600; }
.source-note p { margin: 0; }
.resource-list { margin: 0; }
.resource-row { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 1.5rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.resource-row dt { font-size: .9rem; font-weight: 600; }
.resource-row dt a::after { content: ' ↗'; font-weight: 400; }
.resource-row dd { margin: 0; color: var(--muted); font-size: .9rem; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.related article { padding-top: 1rem; border-top: 1px solid var(--line); }
.related h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.related p { margin: 0; font-size: .9rem; color: var(--muted); }
.citation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: .8rem; }
.copy-status { font-size: .85rem; color: var(--muted); }
.bibtex-disclosure { border-top: 1px solid var(--line); }
.bibtex-disclosure summary { font-size: .87rem; color: var(--muted); cursor: pointer; padding: .8rem 0; }
pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--wash); padding: 1.3rem; margin: 0; font-size: .82rem; line-height: 1.65; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.site-footer { margin-top: 2.5rem; padding: 1.8rem 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.lead { font: 1.3rem/1.65 var(--serif); }
.hub-intro { max-width: 800px; }
.topic-nav { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin: 1.5rem 0 0; }
.topic-nav a { font-size: .86rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.topic-section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.project-row h3 { font: 500 1.55rem/1.3 var(--serif); }
.project-row h3 a { text-decoration: none; }
.project-row p { margin: .75rem 0; }
.project-meta { color: var(--muted); font-size: .85rem; }
.project-row .actions { margin-top: .8rem; }
.project-row .action.primary { background: transparent; border: 0; color: var(--accent); padding: 0; }
.project-row .action { min-height: 32px; }
@media (max-width: 850px) {
  .shell { padding: 0 1.6rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .paper-title { font-size: 1.2rem; }
  .page-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .toc strong { display: none; }
  .toc a { margin: 0; gap: .4rem; }
  .content > section { padding: 2.5rem 0; }
  .paper-deck { font-size: 1.2rem; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .shell { padding: 0 1.2rem; }
  .nav-inner { min-height: 68px; gap: .8rem; }
  .nav-links { gap: .8rem; }
  .nav-links a { font-size: .8rem; }
  .wordmark { font-size: 1.2rem; }
  .hero { padding: 2.2rem 0 2rem; }
  h1 { font-size: 2.15rem; }
  .badge { margin: .5rem 0 0; }
  .actions { gap: .6rem 1rem; }
  .layout-alignment, .layout-cases, .related { grid-template-columns: 1fr; }
  .example-item { padding: 1.2rem; }
  .example-item blockquote { font-size: 1.2rem; }
  .layout-salience .example-item { padding-right: 4.7rem; }
  .rating { right: 1rem; top: 1.2rem; }
  .rating strong { font-size: 2.3rem; }
  .rating span { font-size: .75rem; }
  .source-note { grid-template-columns: 1fr; gap: .3rem; }
  .resource-row { grid-template-columns: 1fr; gap: .3rem; }
  .project-row { grid-template-columns: 1fr; gap: .25rem; }
  .layout-dependency { padding-left: .8rem; }
  .section-heading { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-nav, .toc, .actions, .citation-actions, .skip-link { display: none; }
  .page-grid { display: block; }
  .shell { max-width: none; padding: 0; }
  .hero { padding-top: 0; }
  .content > section { break-inside: avoid; }
  .example-item { break-inside: avoid; }
  .site-footer { margin-top: 0; }
}
