:root {
  --bg: #f4eee2;
  --ink: #292820;
  --muted: #585142;
  --line: #c8baa3;
  --focus: #814d19;
  --accent: #693b1b;
  --panel: #eae0cd;
}

h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.046em; line-height: 1.01; }
h1 { font-size: clamp(3.3rem, 8.25vw, 7rem); max-width: 9.5ch; }
h2 { font-size: clamp(2.15rem, 5.4vw, 4.1rem); margin-bottom: .85rem; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: clamp(1.6rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6.8vw, 6.1rem) clamp(1.6rem, 5vw, 4rem);
}
.intro div > p { max-width: 42ch; margin-block: 1.15rem 1.4rem; color: var(--muted); }
.intro figure { justify-self: end; width: min(100%, 29rem); }
.intro img { width: 100%; height: auto; max-height: 30rem; object-fit: contain; object-position: center; background: #26231d; }
figcaption { color: var(--muted); font-size: .78rem; padding-top: .55rem; }
.primary, .view-buttons button {
  display: inline-block;
  min-height: 2.75rem;
  border: 1px solid var(--accent);
  padding: .58rem .83rem;
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}
.primary { background: var(--accent); color: #fff8ec; }
.primary:hover { background: #512a12; }
.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.route a { display: grid; gap: .2rem; align-content: start; padding: .68rem 0; font-size: .88rem; font-weight: 800; }
.route span { color: var(--muted); font-size: .74rem; font-weight: 600; }
.step { padding-block: clamp(2.4rem, 6vw, 5rem); scroll-margin-top: .85rem; }
.step + .step { border-top: 1px solid var(--line); }
.editorial-pair, .sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.15rem clamp(1.6rem, 6vw, 5rem);
  align-items: start;
}
.editorial-pair > :first-child { max-width: 48ch; }
summary { width: fit-content; padding-block: .45rem; font-weight: 800; font-size: .9rem; }
details p { max-width: 66ch; color: var(--muted); }
.compare-head { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: .85rem 1rem; }
.compare-head p { max-width: 57ch; }
.view-buttons { display: flex; gap: .3rem; }
.view-buttons button { background: transparent; color: var(--accent); }
.view-buttons button[aria-pressed="true"] { background: var(--accent); color: #fff8ec; }
.view-buttons button[aria-pressed="false"]:hover { background: var(--panel); }
.contact-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.62rem, 2vw, 1.8rem);
  padding: clamp(.62rem, 2.3vw, 1.55rem);
  margin-top: 1.1rem;
  background: #2b2721;
}
.contact-pair .plate { display: grid; place-items: center; height: clamp(11rem, 46vw, 32rem); }
.contact-pair[data-copy-view="detail"] .plate { height: clamp(8rem, 38vw, 23rem); }
.plate img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.contact-pair figcaption { display: flex; flex-wrap: wrap; gap: 0 .65rem; justify-content: space-between; align-items: baseline; color: #f1e8d9; }
.contact-pair figcaption a { color: #d6c7ae; overflow-wrap: anywhere; }
.view-status { color: var(--muted); font-size: .8rem; margin-top: .42rem; }
.revealed { margin-top: .45rem; }
.caption-card {
  background: var(--panel);
  border-block: 1px solid var(--line);
  padding: clamp(.9rem, 2.8vw, 1.65rem);
}
.source-label { font-size: .82rem; font-weight: 800; color: var(--accent); }
.caption-card blockquote {
  margin: .75rem 0;
  font-size: clamp(1.2rem, 2.35vw, 1.78rem);
  font-family: var(--serif);
  line-height: 1.35;
}
.caption-card > p:last-child { color: var(--muted); font-size: .9rem; }
.claim { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.claim label, .caption-draft label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: .35rem; }
.claim select, .caption-draft textarea {
  width: 100%;
  border: 1px solid #99896e;
  background: #fcf8ee;
  padding: .5rem .65rem;
  color: var(--ink);
}
.claim p { color: var(--accent); margin-top: .3rem; font-size: .83rem; }
.claim[data-result="matched"] p { color: #325537; }
.claim p:empty { display: none; }
[data-check-evidence] { margin-block: .85rem .35rem; }
.claim-status { font-weight: 750; font-size: .84rem; }
.caption-brief ul { color: var(--muted); padding-inline-start: 1.35rem; }
.caption-draft textarea { display: block; resize: vertical; }
#caption-length { font-size: .77rem; color: var(--muted); margin-top: .4rem; }

@media (max-width: 700px) {
  .intro, .editorial-pair, .sources-layout { grid-template-columns: minmax(0, 1fr); }
  .intro figure { justify-self: start; }
  .intro img { max-height: 23rem; }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
