:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fffefb;
  --ink: #201c27;
  --muted: #5a5564;
  --line: #d7d1df;
  --violet: #55299a;
  --deep: #342058;
  --lavender: #eee7fb;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--violet); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
h1 { font-size: clamp(2.75rem, 5.9vw, 5.2rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.85rem, 3.5vw, 3.05rem); }
h3 { font-size: 1.13rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; min-height: 44px; padding: .55rem .95rem; border: 1px solid var(--violet); background: var(--white); color: var(--violet); font-weight: 650; border-radius: 4px; }
button:hover { background: var(--lavender); }
.frame { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 3.2rem); }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-head, .site-foot { border-bottom: 1px solid var(--line); }
.site-head { background: var(--paper); }
.top { min-height: 76px; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.5rem); }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1.55rem; font-weight: 750; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.mark { display: block; width: 1.8rem; height: 1.8rem; flex: none; }
.top nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .15rem clamp(.25rem, 1.25vw, 1.15rem); margin-inline: auto; }
.top nav a { display: block; padding: .65rem .24rem; color: var(--muted); font-weight: 580; font-size: .92rem; text-decoration: none; }
.top nav a:hover, .top a[aria-current] { color: var(--violet); text-decoration: underline; text-underline-offset: .55em; }
.top-practice { white-space: nowrap; font-size: .88rem; font-weight: 700; text-decoration: none; padding: .45rem .75rem; border: 1px solid #cfc3e0; border-radius: 4px; }
main { min-height: 65vh; padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 8vw, 6.7rem) clamp(2.9rem, 6vw, 5rem); }
.eyebrow { font: 650 .72rem/1.55 var(--mono); color: var(--violet); letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin-block: 1rem 1.25rem; }
.hero em { color: var(--violet); font-weight: inherit; }
.lead { max-width: 63ch; font-size: clamp(1.03rem, 1.65vw, 1.22rem); line-height: 1.58; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.55rem; }
.button { display: inline-block; padding: .68rem .98rem; border-radius: 4px; font-weight: 680; text-decoration: none; }
.primary { background: var(--deep); color: #fff; }
.primary:hover { background: var(--violet); }
.text-action { font-size: .93rem; font-weight: 670; }
.beacon { border: 1px solid #d5cae9; background: #f1ebfb; color: var(--deep); }
.beacon svg { display: block; width: 100%; height: auto; }
.logo-board { background: #fff; padding: clamp(1.15rem, 3vw, 2rem); }
.logo-board img { display: block; width: 100%; height: auto; }
.beacon-top, figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; font: .72rem/1.4 var(--mono); }
.beacon-top { border-bottom: 1px solid #d5cae9; letter-spacing: .1em; font-weight: 700; }
figcaption { border-top: 1px solid #d5cae9; }
.start { border-top: 1px solid var(--line); padding-top: 1.55rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); }
.entry-tile { display: block; padding: clamp(1rem, 2vw, 1.55rem); color: var(--ink); text-decoration: none; background: var(--white); }
.entry-tile + .entry-tile { border-left: 1px solid var(--line); }
.entry-tile:hover { background: var(--lavender); }
.entry-tile .eyebrow { display: flex; justify-content: space-between; }
.entry-tile h3 { margin-top: .75rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.entry-tile p { margin-top: .4rem; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.snapshot { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); padding-top: 2rem; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.7rem, 6vw, 6rem); }
.snapshot h2 { margin: .6rem 0; }
.snapshot p { color: var(--muted); }
.snapshot .text-action { display: inline-block; margin-top: .9rem; }
.snapshot-list > div { display: flex; flex-direction: column; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--line); gap: .3rem; }
.status { display: inline-block; background: #ece4fa; color: #43206e; padding: .26rem .5rem; border-radius: 3px; font: 660 .69rem/1.35 var(--mono); white-space: nowrap; }
.status.reported-observation { background: #dcebe4; color: #1c553b; }
.status.proposal { background: #f2e6ce; color: #694313; }
.status.open-question { background: #f4e1e6; color: #762c45; }
.status.interpretation { background: #e5e5ee; color: #44415e; }
.page-head { padding-block: clamp(2.7rem, 6vw, 5rem) 2rem; max-width: 930px; }
.page-head h1 { margin: .55rem 0 1rem; }
.section-rule { padding: 1rem 0; border-top: 1px solid var(--line); margin-top: 1.85rem; }
.catalog { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.catalog li { display: grid; grid-template-columns: 2.4rem minmax(0,1fr) auto; align-items: center; gap: .7rem 1.25rem; padding: 1.03rem .25rem; border-bottom: 1px solid var(--line); }
.catalog h3, .catalog .case-list-title { margin: .16rem 0 .3rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.23rem, 2vw, 1.62rem); }
.title-link { color: inherit; text-decoration-color: #a691c0; }
.title-link:hover { color: var(--violet); }
.catalog li p:not(.eyebrow), .muted { color: var(--muted); }
.row-number { align-self: start; padding-top: .12rem; font: .8rem var(--mono); color: var(--muted); }
.row-end { display: flex; align-items: center; gap: 1rem; }
.row-arrow { color: var(--violet); }
.filters { display: grid; grid-template-columns: 2fr 1fr auto; gap: .8rem; align-items: end; margin: .3rem 0 .7rem; }
label { display: block; margin-bottom: .32rem; font-weight: 650; font-size: .92rem; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #9d91ae; border-radius: 4px; background: var(--white); padding: .55rem .65rem; }
textarea { resize: vertical; }
.result-count { margin: .8rem 0; color: var(--muted); font-size: .9rem; }
.empty { padding: 1rem; background: var(--lavender); }
.reading-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.reading-card { background: var(--white); padding: clamp(1rem, 3vw, 2rem); }
.reading-card h2 { margin: .6rem 0; font-size: clamp(1.65rem,3vw,2.4rem); }
.reading-card p { margin-bottom: .6rem; }
.featured, .callout { padding: clamp(1.2rem, 4vw, 2.4rem); background: var(--lavender); border: 1px solid #d9cce9; }
.featured { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.featured p, .callout p { margin-block: .7rem; max-width: 65ch; }
.callout { margin-top: 2.1rem; }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.timeline h3 { margin-bottom: .35rem; }
.timeline .source-links { margin-top: .4rem; }
.qa details { padding: .85rem 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 680; padding: .25rem .12rem; }
.qa details p { max-width: 66ch; margin-top: .35rem; }
.qa details + p, .qa + p { margin-top: .8rem; }
.back { padding-top: 1.4rem; }
.back + .page-head { padding-top: 1.5rem; }
.article-layout, .practice-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.practice-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.prose-section { border-top: 1px solid var(--line); padding: 1.2rem 0 1.5rem; }
.prose-section h2, .side-notes h2, .worksheet h2 { margin-bottom: .65rem; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.prose-section :is(p, ol) { max-width: 70ch; }
.prose-section ol { padding-left: 1.5rem; }
.prose-section li + li { margin-top: .32rem; }
.side-notes, .worksheet { padding: 1.2rem; border: 1px solid var(--line); background: var(--white); }
.side-notes ul, .source-links { list-style: none; padding: 0; font-size: .89rem; overflow-wrap: anywhere; }
.source-links li + li { margin-top: .28rem; }
.side-notes ul + h2 { margin-top: 1.4rem; }
.side-notes .eyebrow { margin-bottom: .35rem; }
.prompt-box { margin-top: .8rem; background: var(--lavender); border: 1px solid #d9cce9; padding: 1rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: .91rem/1.55 var(--mono); }
.prompt-actions, .worksheet-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .65rem; }
.prompt-actions:has(button[hidden]) { display: none; }
.worksheet label { margin-top: .85rem; }
.worksheet-status, .copy-result { font-size: .9rem; color: var(--muted); }
.worksheet-status:empty { display: none; }
.worksheet-status { margin-top: .45rem; }
.article-critique { padding-top: .85rem; }
.sources > div { border-top: 1px solid var(--line); padding: .9rem .65rem; }
.sources > div:target { background: var(--lavender); }
.sources dt { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.sources dd { margin-top: .3rem; }
.site-foot { border-top: 1px solid var(--line); border-bottom: 0; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-block: 1.1rem; }
.footer-inner p { font: .78rem var(--mono); color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .87rem; }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; justify-content: space-between; gap: .1rem .8rem; padding-block: .7rem .25rem; }
  .top nav { order: 2; justify-content: flex-start; margin: 0; width: 100%; gap: .1rem .75rem; }
  .top nav a { padding-block: .57rem; }
  .hero { gap: 1.8rem; }
}
@media (max-width: 680px) {
  .hero, .snapshot, .article-layout, .practice-layout { grid-template-columns: 1fr; }
  .hero { padding-block: 2.5rem 2rem; }
  .hero h1 { margin-top: .65rem; }
  .beacon { max-width: 460px; }
  .section-title { display: block; }
  .section-title h2 { margin-top: .3rem; }
  .entry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .entry-tile:nth-child(odd) { border-left: 0; }
  .entry-tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .catalog li { grid-template-columns: 1.35rem minmax(0,1fr); gap: .38rem .65rem; }
  .row-end { grid-column: 2; }
  .row-arrow { display: none; }
  .reading-grid, .filters { grid-template-columns: 1fr; }
  .filters button { justify-self: start; }
  .featured { flex-direction: column-reverse; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; }
}
