:root {
  color-scheme: light;
  --night: #10211d;
  --night-text: #f8f1de;
  --night-muted: #d0dcca;
  --lamp: #f5cd82;
  --paper: #f6f0e2;
  --ink: #192b22;
  --muted: #46594e;
  --rule: #9ca69a;
  --forest: #264f3c;
  --heading: Georgia, "Times New Roman", serif;
  --body: system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--body);
  overflow-wrap: anywhere;
}
h1, h2, p, figure { margin: 0; }
h1, h2 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.04;
}
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(calc(100% - 2rem), 72rem); margin-inline: auto; }

.cover {
  color: var(--night-text);
  background: var(--night);
  border-bottom: 4px solid var(--lamp);
}
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(.85rem, 4vw, 3.8rem);
  padding-block: clamp(1.4rem, 4vw, 3.8rem) 1.15rem;
}
.cover h1 { font-size: clamp(2.7rem, 5.6vw, 5.3rem); letter-spacing: -.046em; }
.cover-copy p { color: var(--night-muted); margin-top: .65rem; max-inline-size: 44ch; }
#print-walk {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 3rem;
  max-inline-size: 100%;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: .5em .9em;
  font: 650 1rem/1.35 var(--body);
  text-decoration: none;
}
.cover-scene img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.05 / 1;
  object-fit: cover;
  object-position: center 57%;
  background: #152921;
}
.cover-scene figcaption { color: var(--night-muted); font-size: .82rem; margin-top: .3rem; }

.walk {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: .8rem clamp(1.15rem, 4vw, 3rem);
  margin-block: clamp(1.2rem, 3vw, 2.8rem) 1.25rem;
}
.walk-intro { grid-column: 1 / -1; }
.walk-intro h2 { font-size: clamp(1.85rem, 3.2vw, 3rem); }
.walk-intro > p { margin-top: .35rem; }
.observations { display: grid; gap: .6rem; }
fieldset { min-inline-size: 0; margin: 0; padding: .25rem .7rem .65rem; border: 1px solid var(--rule); }
legend { padding-inline: .4em; font: 1.45rem/1.1 var(--heading); }
fieldset p { margin-bottom: .3rem; color: var(--muted); font-size: .9rem; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.2rem), 1fr)); gap: .48rem .65rem; }
label { display: block; font: 650 .9rem/1.45 var(--body); min-inline-size: 0; }
label span { display: block; margin-bottom: .25rem; }
select {
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  min-block-size: 2.8rem;
  margin: 0;
  border: 1px solid #65776b;
  border-radius: 3px;
  padding: .45em .5em;
  background: #fffaef;
  color: var(--ink);
  font: 1rem/1.35 var(--body);
}
.walk-decision { align-self: start; }
.readout { border-inline-start: 4px solid var(--forest); padding: .55rem .8rem; background: #e7ecdf; }
.readout[data-state="route"] { border-color: #8b4f22; background: #f7e3c9; }
.readout-title { font: 1.6rem/1.15 var(--heading); }
.readout p + p { margin-top: .38rem; }
.walk-actions { display: flex; gap: .35rem .85rem; flex-wrap: wrap; align-items: center; margin-top: .55rem; }
.walk-actions p { color: var(--muted); font-size: .9rem; }
#print-walk { cursor: pointer; background: var(--forest); color: white; }
#print-walk:focus-visible { outline-color: var(--forest); }
noscript p { margin-top: .9rem; }

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem clamp(1rem, 4vw, 3rem);
  padding-block: .6rem .9rem;
}
.notes h2 { font-size: clamp(1.65rem, 2.7vw, 2.35rem); }
.notes p { max-inline-size: 53ch; margin-top: .3rem; }
.evidence { border-block: 1px solid var(--rule); }
.evidence > summary { min-height: 44px; padding-block: .52rem; cursor: pointer; font-weight: 650; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: .45em; color: var(--forest); text-underline-offset: .25em; }
footer { padding-block: .7rem .85rem; }

@media (max-width: 59rem) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-scene img { aspect-ratio: 2.85 / 1; object-position: center 58%; }
}
@media (max-width: 41rem) {
  .walk, .notes { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  #print-walk { border-color: ButtonText; }
}
@page { size: letter; margin: .55in; }
@media print {
  body, .cover { background: white; color: black; line-height: 1.36; }
  .wrap { width: 100%; }
  .cover { border-bottom: 1px solid #777; }
  .cover-grid, .walk, .notes { display: block; margin: 0; padding: 0; }
  .cover h1 { font-size: 28pt; }
  .cover-copy p { max-inline-size: none; color: black; margin-block: .3rem .6rem; }
  .cover-scene, .wide-break, .walk-actions, footer, .evidence > summary { display: none !important; }
  .evidence::details-content { content-visibility: visible; }
  .walk { padding-block: .7rem; }
  .walk-intro h2, .notes h2 { font-size: 17pt; }
  .walk-intro > p { margin-top: .3rem; margin-bottom: .5rem; }
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  fieldset { padding: .45rem .65rem; break-inside: avoid; }
  legend { font-size: 14pt; }
  label { font-size: 10pt; margin: .1rem 0 0; }
  select { appearance: none; min-block-size: 0; font-size: 11pt; padding: .14em .3em; color: black; background: white; border-color: #888; }
  .readout { margin-top: .6rem; padding: .3rem .6rem; background: white !important; break-inside: avoid; }
  .readout-title { font-size: 14pt; }
  .notes { border-block: 1px solid #777; padding-block: .5rem; }
  .notes > div + div { margin-top: .43rem; }
  .notes p { max-inline-size: none; margin-top: .28rem; }
  .text-link { min-height: 0; display: inline; color: black; }
}

.release-notes { min-height: 44px; padding-block: .55em; cursor: pointer; }
