:root {
  --ink: #17221c;
  --muted: #617068;
  --paper: #fff;
  --panel: #fff;
  --line: #dedbd2;
  --green: #254e3c;
  --green-soft: #e1ebe4;
  --amber: #8a5a20;
  --amber-soft: #f3e8d3;
  --blue: #365b70;
  --blue-soft: #e4edf1;
  --unknown: #6b6670;
}
* { box-sizing: border-box; }
body { margin: 0; color: #242620; background: var(--paper); font: 14px/1.55 Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; gap: 27px; align-items: center; min-height: 60px; padding: 0 24px; background: rgba(245,241,224,.96); border-bottom: 1px solid #e7e1cf; backdrop-filter: blur(12px); }
.brand { font: 800 24px Georgia, serif; text-decoration: none; }
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a, .nav-button, .saved { color: #45473f; background: transparent; padding: 0; font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-search { display: flex; align-items: center; margin-left: auto; width: 220px; color: #8c8d84; border-bottom: 1px solid #c9c4b4; }
.header-search span { position: absolute; pointer-events: none; }
.header-search input { width: 100%; padding: 9px 0; border: 0; background: transparent; outline: none; }
.header-search:focus-within span { display: none; }
.saved { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
main { max-width: 1380px; margin: auto; padding: 36px 24px 80px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; margin: 0; }
h1 { max-width: 900px; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; }
.lede { max-width: 760px; color: var(--muted); font-size: 17px; }
.collection-head { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin: 28px 0 38px; }
.metrics { display: flex; gap: 10px; }
.metric { min-width: 105px; padding: 14px; border: 1px solid var(--line); background: var(--panel); }
.metric b { display: block; font: 30px Georgia, serif; }
.metric span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.controls { display: flex; gap: 10px; margin: 0 0 22px; border-top: 1px solid var(--line); padding-top: 16px; }
input, select, button { font: inherit; }
input, select { padding: 11px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
input { flex: 1; }
button { cursor: pointer; border: 0; background: var(--green); color: white; padding: 11px 15px; font-weight: 700; }
.grid { columns: 4 230px; column-gap: 18px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.collection-card { position: relative; min-height: 430px; overflow: hidden; color: white; background: #17221c; text-decoration: none; }
.collection-card img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; opacity: .78; transition: transform .2s, opacity .2s; }
.collection-card:hover img { transform: scale(1.01); opacity: .9; }
.collection-card > div { position: absolute; inset: auto 0 0; padding: 70px 25px 24px; background: linear-gradient(transparent, #111c); }
.collection-card .eyebrow { color: #eee1b1; }
.collection-card h2 { margin-top: 5px; font-size: 32px; }
.collection-card p { margin-bottom: 0; }
.portal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 68px; }
.portal-tile { display: block; min-height: 118px; padding: 19px 18px; border: 1px solid var(--line); color: var(--ink); background: #fbfaf6; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.portal-tile:hover { transform: translateY(-2px); border-color: #b8b3a6; box-shadow: 0 10px 28px #24382b10; }
.portal-tile h2 { font: 500 25px/1.1 Inter, sans-serif; letter-spacing: -.03em; }
.portal-tile p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.subcollections { margin: 58px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 18px; }
.section-head h2 { font: 500 31px/1.1 Inter, sans-serif; letter-spacing: -.03em; }
.subcollection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.subcollection-card { position: relative; min-height: 315px; overflow: hidden; color: white; background: #17221c; text-decoration: none; }
.subcollection-card img { width: 100%; height: 100%; min-height: 315px; object-fit: cover; opacity: .78; transition: transform .2s, opacity .2s; }
.subcollection-card:hover img { transform: scale(1.015); opacity: .9; }
.subcollection-card > div { position: absolute; inset: auto 0 0; padding: 65px 18px 18px; background: linear-gradient(transparent, #111c); }
.subcollection-card h2 { font: 500 26px/1.05 Inter, sans-serif; letter-spacing: -.03em; }
.subcollection-card p { margin: 8px 0 0; color: #eee8d4; }
.work-list { display: grid; border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.work-row span { font: 500 18px/1.25 Inter, sans-serif; }
.work-row small { color: var(--muted); white-space: nowrap; }
.related-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.search-head { margin-bottom: 22px; }
.search-controls { max-width: 760px; border-top: 0; padding-top: 0; }
.result-section { margin: 36px 0 54px; padding-top: 22px; border-top: 1px solid var(--line); }
.result-list { display: grid; gap: 10px; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 15px; border: 1px solid var(--line); color: var(--ink); background: #fbfaf6; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.result-row:hover { transform: translateY(-2px); box-shadow: 0 10px 28px #24382b10; }
.result-row h2 { font: 500 22px/1.15 Inter, sans-serif; letter-spacing: -.02em; }
.result-row p { margin: 7px 0; color: var(--muted); }
.result-row small { color: var(--green); font-weight: 700; }
.result-thumbs { display: flex; gap: 6px; justify-content: flex-end; }
.result-thumbs img { width: 58px; height: 74px; object-fit: cover; background: #ece8dc; }
.search-group { margin: 0 0 42px; }
.search-group-title { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin: 0 0 15px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.search-group-title span { font: 500 22px/1.15 Inter, sans-serif; letter-spacing: -.02em; }
.search-group-title small { color: var(--muted); }
.card { position: relative; display: inline-block; width: 100%; margin: 0 0 18px; overflow: hidden; background: #f3f1eb; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px #24382b18; }
.card img { display: block; width: 100%; object-fit: cover; background: #e8e3d8; }
.card-body { position: absolute; inset: auto 0 0; padding: 32px 12px 11px; color: white; background: linear-gradient(transparent, #111b); opacity: 0; transition: opacity .15s; }
.card:hover .card-body { opacity: 1; }
.card h3 { font: 500 16px Inter, sans-serif; margin: 4px 0; }
.badge { display: inline-block; padding: 3px 7px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.card .badge { color: white; background: #ffffff2b; }
.badge.milestone { background: var(--amber-soft); color: var(--amber); }
.small { color: var(--muted); font-size: 12px; }
.plate-shell { max-width: 1180px; margin: auto; }
.plate-nav { display: flex; justify-content: space-between; align-items: center; margin: 0 8px 25px; color: #4d5148; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.plate-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr); gap: 34px; align-items: start; }
.viewer { position: relative; background: #eeece5; text-align: center; }
.viewer img { display: block; width: 100%; height: min(74vh, 760px); object-fit: contain; }
.image-actions { position: absolute; top: 18px; right: 15px; display: grid; gap: 8px; }
.image-actions button, .image-actions a { display: grid; place-items: center; width: 39px; height: 39px; border: 0; border-radius: 50%; color: #33372f; background: #fffc; text-decoration: none; box-shadow: 0 2px 12px #24382b16; }
.plate-content { position: sticky; top: 92px; margin: 8px 0 0; }
.plate-title h1 { margin-top: 8px; font: 500 clamp(30px, 3vw, 46px)/1.08 Inter, sans-serif; letter-spacing: -.03em; }
.byline { display: flex; flex-wrap: wrap; gap: 9px 16px; align-items: center; margin: 15px 0; color: #62665d; }
.rights-pill { display: inline-block; padding: 5px 9px; border-radius: 4px; color: #40604d; background: #edf4ef; font-size: 11px; font-weight: 700; }
.description { max-width: 780px; margin: 22px 0; font-size: 16px; color: #4f544b; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.tag { padding: 7px 11px; border: 1px solid #d9d6ce; border-radius: 18px; color: #4f554c; background: #faf9f5; font-size: 12px; text-decoration: none; }
.tag:hover { border-color: #aaa497; color: var(--ink); }
.primary-actions { display: flex; gap: 10px; margin-bottom: 30px; }
.primary-actions button, .primary-actions a { padding: 11px 17px; border: 1px solid #d4d2ca; color: #31352e; background: white; text-decoration: none; font-weight: 600; }
.primary-actions .ask-toggle { border-color: #222820; color: white; background: #222820; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.fact { border-top: 1px solid var(--line); padding-top: 8px; }
.fact span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.evidence-panel { margin: 55px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.evidence-intro { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 15px; }
.evidence-intro p { margin: 0; color: var(--muted); }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evidence-group { margin: 0; border: 1px solid var(--line); background: var(--panel); }
.evidence-group summary { cursor: pointer; padding: 13px; font-weight: 800; }
.evidence-list { list-style: none; margin: 0; padding: 0 13px 13px; }
.evidence-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.evidence-list a { color: var(--blue); }
.type-verified { border-left: 4px solid var(--green); }
.type-visible { border-left: 4px solid var(--blue); }
.type-ai { border-left: 4px solid var(--amber); }
.type-unknown { border-left: 4px solid var(--unknown); }
.ask { display: none; margin: 18px 0 28px; padding: 20px; background: #f1efe7; color: #222820; }
.ask.open { display: block; }
.ask h2 { font-size: 26px; }
.ask p { color: #656a61; }
.ask-row { display: flex; gap: 8px; }
.ask input { min-width: 0; background: white; }
.answer { display: none; margin-top: 14px; padding: 14px; color: var(--ink); background: white; border-left: 3px solid #607d68; }
.answer.show { display: block; }
.prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.prompts button { padding: 6px 9px; color: #526056; background: white; border: 1px solid #cbd1c9; font-size: 11px; }
footer { display: flex; justify-content: space-between; padding: 30px 28px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.lang-toggle { display: inline-flex; align-items: center; border: 1px solid #c9c4b4; border-radius: 3px; overflow: hidden; }
.lang-toggle .lang-opt { padding: 4px 8px; color: #8c8d84; background: transparent; border: 0; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.lang-toggle .lang-opt + .lang-opt { border-left: 1px solid #d6d1c2; }
.lang-toggle .lang-opt.active { color: #2f3329; background: rgba(96,125,104,.16); }
.lang-toggle .lang-opt:hover { color: #45473f; }
@media (max-width: 650px) {
  .collection-head, .collection-grid, .portal-grid, .subcollection-grid, .plate-layout, .evidence-grid, .work-row, .result-row { grid-template-columns: 1fr; }
  .metrics { display: none; }
  .site-header { padding: 13px 16px; }
  .site-header nav, .saved { display: none; }
  .header-search { width: auto; flex: 1; }
  main { padding: 24px 16px 50px; }
  .plate-content { position: static; }
  .viewer img { height: auto; max-height: 72vh; }
  .result-thumbs { justify-content: flex-start; }
}
