:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #173c32;
  --muted: #4c625a;
  --line: #bbc6b9;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0 auto; width: min(100% - 64px, 1232px); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, input:focus-visible + label { outline: 3px solid #9b471e; outline-offset: 4px; }
header, footer, .caption { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
header { padding: 24px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.wordmark { font: bold 2.35rem/.94 "Baskervville", Georgia, serif; letter-spacing: -.065em; text-decoration: none; }
main { display: grid; grid-template-columns: minmax(225px, .78fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 88px); margin: clamp(38px, 6vw, 86px) 0; }
.location, legend { font-size: .78rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.location { margin: .25rem 0 1.35rem; }
h1, h2 { font-family: "Baskervville", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3.25rem, 5.2vw, 5.65rem); line-height: .96; letter-spacing: -.065em; margin: 0; }
h1 em { font-weight: 400; }
.summary, .caption p { color: var(--muted); line-height: 1.55; }
.summary { max-width: 30ch; margin: 1.65rem 0 0; font-size: 1.05rem; }
.preview { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; }
.preview input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.preview label { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; padding: 5px 13px; margin: 0 4px 10px 0; border: 1px solid var(--line); border-radius: 4px; font-size: .88rem; cursor: pointer; }
.preview label span { font-variant-numeric: tabular-nums; opacity: .8; font-size: .75rem; }
.preview input:checked + label { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.landmark { margin-top: 4px; display: none; }
#fort:checked ~ .fort, #bridge:checked ~ .bridge { display: block; }
.landmark img { display: block; width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; background: #dce1d7; }
.caption { padding-top: 14px; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 0; letter-spacing: -.035em; }
.caption p { margin: 4px 0 0; }
.caption a { white-space: nowrap; font-size: .87rem; font-weight: 650; padding: 8px 0; }
footer { padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
footer small { font-size: .77rem; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .landmark { animation: arrive .32s ease-out; }
  @keyframes arrive { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 780px) {
  body { width: min(100% - 36px, 680px); }
  main { grid-template-columns: 1fr; gap: 30px; margin: 34px 0; }
  h1 br { display: none; }
  h1 em::before { content: " "; }
  .location { margin-bottom: 12px; }
  .summary { max-width: 48ch; margin-top: 12px; }
  .caption, footer { flex-wrap: wrap; gap: 4px 16px; }
  .preview label { padding: 5px 9px; font-size: .8rem; }
}
