@font-face {
  font-family: Geist;
  src: url('/type/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/type/plex.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --panel: #fffdf7;
  --ink: #1e2639;
  --muted: #505a6d;
  --navy: #262e4b;
  --line: #c9c3b6;
  --accent: #9c391a;
  --orange: #f5d0ab;
  font: 16px/1.5 Geist, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .54; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ac512a; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.03; }
a { color: var(--navy); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
.screen-reader, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 2; background: white; padding: 8px; }
.page { width: min(1230px, calc(100% - 60px)); margin-inline: auto; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 67px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-size: 1.32rem; font-weight: 820; letter-spacing: -.038em; display: inline-flex; align-items: center; gap: 9px; line-height: 1; }
.brand-mark { width: 16px; height: 16px; border: 1px solid var(--accent); background: linear-gradient(135deg, transparent 53%, #b45932 54%); transform: rotate(-12deg); display: inline-block; flex: none; }
.guide-link { font-size: .88rem; font-weight: 660; }
.intro { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); gap: clamp(18px, 4vw, 48px); align-items: center; padding: 28px 0 26px; }
.intro h1 { font-size: clamp(3.12rem, 5vw, 4.65rem); letter-spacing: -.027em; line-height: .94; font-weight: 770; }
.intro h1 span { color: var(--accent); }
.intro p { color: var(--muted); font-size: 1.03rem; max-width: 37ch; margin: 12px 0 13px; }
.collage { overflow: hidden; border: 1px solid #c6b8a7; border-radius: 2px; background: #e7d1ad; aspect-ratio: 2.02; }
.collage img { width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.solid, .outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 43px; padding: 7px 12px; background: none; border: 1px solid #6f7688;
  border-radius: 3px; font-size: .86rem; line-height: 1.2; font-weight: 690;
}
.solid { background: var(--navy); color: #fffcf4; border-color: var(--navy); }
.solid:hover:enabled { background: #3b496c; border-color: #3b496c; }
.outline:hover:enabled { background: #eee8dd; }
.plain { border: 0; background: transparent; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; text-align: left; min-height: 36px; }
.plain:hover { color: var(--accent); }
.danger { color: #8b3113; }
.desk { border-top: 2px solid var(--navy); padding: 13px 0 28px; scroll-margin-top: 10px; }
.project-bar { display: flex; align-items: center; justify-content: space-between; gap: 9px 18px; }
.eyebrow { font: .72rem/1.3 Plex, monospace; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.project-info { min-width: 0; }
.project-info h2 { font-size: clamp(2.12rem, 4.3vw, 3.77rem); letter-spacing: -.034em; margin: 3px 0 4px; overflow-wrap: anywhere; }
#project-context, #source-count, .example-note, .empty { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.example-note { margin: 7px 0 0; }
.project-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.project-controls select { width: auto; max-width: 230px; min-height: 43px; }
.panels { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 13px; }
.sources, .output { padding: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.source-head, .output-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; padding-bottom: 9px; }
.source-head h3, .output-head h3 { font-size: clamp(1.45rem, 3vw, 2.21rem); letter-spacing: -.031em; }
#source-count { margin-top: 3px; }
.filter, .format { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.filter { border-block: 1px solid var(--line); padding: 4px 0; margin-bottom: 1px; }
.filter button, .format button { border: 1px solid transparent; border-radius: 2px; min-height: 37px; padding: 3px 9px; background: none; color: var(--muted); font-size: .79rem; font-weight: 680; }
.filter button[aria-pressed="true"] { background: #eae9f3; color: #2c355d; border-color: #b0b3cf; }
.filter button:hover, .format button:hover { text-decoration: underline; text-underline-offset: 3px; }
.source-list { margin: 0; padding: 0; list-style: none; }
.source-list li { border-bottom: 1px solid var(--line); }
.source-row { width: 100%; background: none; border: 0; text-align: left; display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content 12px; align-items: center; gap: 9px; padding: 8px 3px; min-height: 59px; }
.source-row:hover { background: #f2eee4; }
.source-kind { border-radius: 2px; color: #35417e; background: #e5e6f5; font: .69rem/1.25 Plex, monospace; padding: 3px 5px; min-width: 42px; text-align: center; }
.kind-audio { color: #7f3817; background: #f7dec5; }
.kind-text { color: #2a574f; background: #daece5; }
.kind-type { color: #6d3764; background: #efdeeb; }
.source-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.27; font-size: .9rem; }
.source-name strong, .source-author { display: block; }
.source-author { color: var(--muted); margin-top: 2px; font-size: .74rem; }
.source-arrow { color: #535b6f; text-align: right; font-size: .8rem; }
.record-status { color: #405d53; background: #e4ece5; white-space: nowrap; border-radius: 2px; font: .68rem/1.2 Plex, monospace; padding: 3px 5px; }
.record-status.missing { color: #903710; background: #f7ddca; }
.record-status.review { color: #6c3f15; background: #f1e5c7; }
.empty { margin: 8px 0; padding: 14px 1px; }
#more { margin-top: 10px; }
.output { color: #f4f0e8; background: var(--navy); border-color: var(--navy); }
.output .eyebrow { color: #f7c69d; margin-bottom: 3px; }
.format button { color: #e4e6ef; min-height: 33px; }
.format button[aria-pressed="true"] { background: #f3dfc5; color: #2d3144; border-color: #f3dfc5; }
#credit-output { display: block; width: 100%; min-height: 120px; max-height: 260px; overflow-wrap: anywhere; background: #1b243b; color: #fff8ed; border-color: #6d7592; font: .82rem/1.4 Plex, monospace; }
#credit-output::placeholder { color: #c2c8d7; opacity: 1; }
.output-summary, .output-note { color: #e0dfec; font-size: .78rem; line-height: 1.35; margin-top: 7px; }
.output-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.output-actions .solid { color: #282537; background: #f4d1ae; border-color: #f4d1ae; }
.output-actions .solid:hover:enabled { color: #282537; background: #ffe9d2; border-color: #ffe9d2; }
.output-actions .outline { border-color: #929ab7; color: #f4f0e8; }
.output-actions .outline:hover:enabled { background: #39445f; }
.open-details { border-top: 1px solid #687391; margin-top: 10px; }
.open-details summary { min-height: 40px; padding: 8px 0 2px; color: #ffe5c6; font-size: .86rem; font-weight: 690; cursor: pointer; }
.review-item { border-bottom: 1px solid #65708b; }
.review-item .plain:hover { color: #ffcd9b; }
.review-item ul { margin: 0 0 6px; padding-left: 19px; color: #e3e4ee; font-size: .81rem; }
.output .helper { color: #e1e0ec; }
.footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px 15px; border-top: 1px solid var(--line); padding: 12px 0 24px; color: var(--muted); font-size: .82rem; }
.footer .brand { font-size: 1.09rem; }
.status { border-left: 3px solid #486c64; background: #e6ede2; color: #325249; padding: 7px 9px; margin: 0 0 9px; font-size: .82rem; }
.status.warning { background: #f8e0d1; color: #742c15; border-color: #9c391a; }
#source-empty.empty { background: none; border: none; color: var(--muted); }
label { display: grid; gap: 3px; margin: 0 0 8px; min-width: 0; font-size: .82rem; font-weight: 675; }
textarea, input, select { width: 100%; min-width: 0; background: #fff; border: 1px solid #9b958a; border-radius: 3px; padding: 6px 7px; min-height: 40px; font-size: 1rem; font-weight: 430; }
select { padding-right: 18px; }
textarea { resize: vertical; }
dialog { width: min(640px, calc(100% - 22px)); max-height: calc(100dvh - 22px); overflow: auto; border: 1px solid #867b70; border-radius: 4px; background: var(--panel); color: var(--ink); padding: 16px; }
dialog::backdrop { background: #22283cb0; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 11px; margin-bottom: 10px; }
.dialog-head h2 { font-size: clamp(2.05rem, 6vw, 3.12rem); letter-spacing: -.045em; }
.close { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 3px; background: none; font-size: 1.35rem; line-height: 1; }
.close:hover { background: var(--orange); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
.fields.top-fields { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.helper { color: var(--muted); font-size: .84rem; line-height: 1.38; }
dialog .helper { margin: 0 0 8px; }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.current-review { color: #723111; background: #f7ead7; padding: 7px 8px; border: 1px solid #ead5bb; margin-bottom: 8px; font-size: .81rem; }
.current-review > p { font-weight: 660; }
.current-review ul { padding-left: 17px; margin: 2px 0 0; }
.article { max-width: 760px; margin: 35px auto 38px; }
.article h1 { font-size: clamp(3.05rem, 8vw, 5.9rem); letter-spacing: -.027em; }
.article h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.044em; margin: 19px 0 6px; }
.article .eyebrow { margin-bottom: 5px; }
.article .lead { max-width: 54ch; color: var(--muted); font-size: 1.08rem; margin: 9px 0; }
.article p + p { margin-top: 7px; }
.article li { margin-bottom: 5px; }
.article .example { padding: 12px; background: #eae9f3; border-left: 3px solid #696f9b; }
.article a.solid { margin: 10px 0 0; text-decoration: none; }
@media (max-width: 820px) {
  .page { width: calc(100% - 34px); }
  .mast { min-height: 58px; }
  .intro { gap: 15px; padding-block: 19px; }
  .intro h1 { font-size: clamp(2.35rem, 5.1vw, 4.2rem); }
  .project-bar { align-items: flex-start; flex-direction: column; }
  .source-row { gap: 6px; grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .source-arrow { display: none; }
}
@media (max-width: 655px) {
  .intro, .panels { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .intro h1 { font-size: clamp(2.35rem, 9.8vw, 3.85rem); }
  .intro p { font-size: .94rem; margin: 9px 0; }
  .collage { aspect-ratio: 2.28; }
  .panels { margin-top: 10px; }
  .project-controls { width: 100%; }
  .project-controls select { max-width: 100%; }
  .footer { flex-direction: column; }
}
@media (max-width: 375px) {
  .page { width: calc(100% - 24px); }
  .intro h1 { font-size: clamp(1.95rem, 9.25vw, 2.2rem); }
  .source-row { grid-template-columns: minmax(0, 1fr) max-content; }
  .source-kind { grid-column: 1 / -1; justify-self: start; }
  .fields, .fields.top-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-link { font-size: .79rem; }
}
