:root { --paper: #fbfaf7; --ink: #1c1b19; --soft: #56524b; --rule: #cfcabf; --accent: #57068c; --band: #e7dcef; color-scheme: light; }
* { box-sizing: border-box; }
html { font-size: clamp(100%, .94vw, 125%); background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 "Source Serif 4", Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3, p, fieldset, figure { margin: 0; padding: 0; border: 0; min-width: 0; }
h1 { font-weight: 600; font-size: 1.875rem; letter-spacing: -.018em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; max-width: 33em; }
b { font-weight: 600; }
[hidden] { display: none !important; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-season=summer] .winter, [data-season=winter] .summer { display: none; }

/* A printed sheet map. The map runs off the page edges, with the title and colour key in the empty desert.
   Beside it, each choice is a piece of the map itself. A line joins the chosen one to its place. */
.plate { --mapw: min(59.5vw, calc(100svh * var(--aspect))); --key: 5rem; --inset: calc(var(--mapw) * .028); position: relative; display: grid; grid-template: "map intro" auto "map controls" 1fr / var(--mapw) minmax(0, 1fr); }
.intro { grid-area: intro; padding: 14px 24px 0 36px; }
.map { grid-area: map; }
.controls { grid-area: controls; padding: 8px 24px 12px 36px; }
.frame { position: relative; }
#map { display: block; width: 100%; aspect-ratio: var(--aspect); background: #e9e5da; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
img { pointer-events: none; }
.zoomed #map { cursor: grab; }
.zoomed #map.dragging { cursor: grabbing; }
#map:focus { outline: none; }
#map:focus-visible + .ring { position: absolute; inset: 0; border: 4px solid var(--accent); outline: 3px solid var(--paper); outline-offset: -7px; pointer-events: none; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#problem:not(:empty) { position: absolute; left: 16px; top: 16px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--ink); max-width: calc(100% - 32px); }

.lead { font-size: clamp(1.1875rem, 1.5vw, 1.5rem); font-weight: 600; line-height: 1.4; letter-spacing: -.008em; text-wrap: balance; max-width: 30em; }
.whole { white-space: nowrap; }
.deck, .terms { text-wrap: balance; }
.deck { max-width: 34em; margin-top: 4px; font-size: 0.9375rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
label { position: relative; cursor: pointer; }
label input { position: absolute; z-index: 1; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.season { display: flex; gap: 26px; }
.season span { display: block; padding: 4px 0; color: var(--accent); }
.season input:checked + span { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px var(--accent); }
.season input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
button { min-width: 28px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
button[aria-disabled=true] { color: #716d65; cursor: default; }
.main-action { min-width: 14.25rem; min-height: 40px; padding: 6px 16px; border-radius: 2px; background: var(--accent); color: var(--paper); font-weight: 600; }
.main-action:hover { background: #3f0467; }

.choices legend { float: left; display: flex; justify-content: space-between; gap: 16px; width: 100%; margin: 8px 0 0; padding: 0 0 4px; font-size: 0.9375rem; line-height: 1.3; }
.choice { clear: both; display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto; gap: 0 16px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rule); }
.choice img { display: block; width: 100%; height: auto; aspect-ratio: 2.15; object-fit: cover; outline: 1px solid var(--ink); }
.about span { line-height: 1.35; }
.about > span { display: block; }
.name { font-size: 1.25rem; color: var(--accent); }
.verdict { font-size: 1rem; }
.score { font-size: 0.875rem; color: var(--soft); }
.match { font-size: 1.625rem; line-height: 1.2; color: var(--soft); }
.choice:has(input:checked) .match, .comparing .compared .match { color: var(--ink); font-weight: 600; }
.choice input:checked ~ img, .comparing .compared img { outline: 3px solid var(--ink); outline-offset: -3px; }
.choice input:checked ~ .about .name, .comparing .compared .name { color: var(--ink); font-weight: 600; text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.terms { margin-top: 4px; font-size: 0.875rem; color: var(--soft); max-width: 35em; }

.bar { display: flex; height: 13px; outline: 1px solid var(--ink); }
.bar i { flex: 1; }
.legend p, .hot-key p { font-size: 0.875rem; margin-bottom: 6px; }
.ticks { position: relative; height: 1.4rem; font-size: 0.875rem; }
.ticks span { position: absolute; transform: translateX(-50%); padding-top: 5px; line-height: 1; white-space: nowrap; }
.ticks span::before { content: ""; position: absolute; left: 50%; top: -4px; height: 7px; border-left: 1px solid var(--ink); }
.zoom { display: flex; align-items: center; gap: 26px; }
.hint { display: none; font-size: 0.875rem; }
@media (pointer: coarse) { .zoomed .hint { display: inline; } }

.pane { position: relative; min-height: 0; }
.view { --shift: .5; position: relative; container-type: size; aspect-ratio: 2.15; }
.mark { position: absolute; left: calc(var(--x) * 100%); top: calc((var(--y) - var(--shift)) * var(--tall) * 100cqw + var(--shift) * 100cqh); width: 18px; height: 18px; margin: -9px; border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), inset 0 0 0 2px var(--paper); }
.mark b { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); padding: 1px 8px 2px; background: var(--paper); border: 1px solid var(--ink); font-size: 1.125rem; line-height: 1.3; white-space: nowrap; }
.pane img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pane p { font-weight: 600; }
.comparing .zoom { display: none; }
.comparing:not(.growing) #map { visibility: hidden; }
#leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#leaders path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
#leaders .halo { stroke: var(--paper); stroke-width: 4.5; }

@media (min-width: 1001px) {
  h1, .legend { position: absolute; z-index: 2; left: var(--inset); width: calc(var(--mapw) * .51); background: var(--paper); border: 1px solid var(--ink); pointer-events: none; }
  h1 { top: calc(var(--mapw) / var(--aspect) - var(--inset) - var(--key)); transform: translateY(-100%); padding: 14px calc(var(--mapw) * .024); border-bottom: 0; font-size: calc(var(--mapw) * .0455); line-height: 1.04; letter-spacing: -.022em; transition: opacity .2s; }
  .legend { top: calc(var(--mapw) / var(--aspect) - var(--inset) - var(--key)); height: var(--key); padding: 8px calc(var(--mapw) * .024) 0; }
  .zoomed h1 { opacity: 0; }
  .comparing h1 { z-index: 4; opacity: 0; } /* the title fades while the close-ups grow */
  .comparing:not(.growing) h1 { visibility: hidden; transition: none; }
  .legend { z-index: 4; }
  .zoom { position: absolute; z-index: 2; left: calc(var(--mapw) - var(--inset)); top: calc(var(--mapw) / var(--aspect) - var(--inset)); transform: translate(-100%, -100%); padding: 2px 12px; background: var(--paper); border: 1px solid var(--ink); }
  .map:has(.compare:not([hidden])) { z-index: 3; }
  .compare { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) calc(var(--key) + 2 * var(--inset)); background: var(--paper); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .pane { border-bottom: 1px solid var(--ink); }
  .view { --shift: .39; position: absolute; inset: 0; aspect-ratio: auto; }
  .pane p { z-index: 1; }
  .pane img { object-position: 50% 39%; } /* the same top edge as the box on the map */
  .pane p { position: absolute; left: var(--inset); bottom: 14px; padding: 4px 12px 5px; background: var(--paper); border: 1px solid var(--ink); font-size: 1.1875rem; line-height: 1.4; transition: opacity .16s; }
  .compare.opening { background: none; border-color: transparent; } .opening .pane { transform-origin: 0 0; border-color: transparent; }
  .opening .pane p, .opening .mark, .opening .same { opacity: 0; transition: none; }
  .same { align-self: center; margin: 0 var(--inset) 0 calc(var(--mapw) * .51 + var(--inset) + 24px); }
  /* The four close-ups get only the height left on the screen, so every choice is in view. */
  .choice { grid-template-columns: clamp(150px, calc((100svh - 27rem) / 4 * 2.15), 38%) minmax(0, 1fr) auto; }
}
@media (min-width: 1001px) and (max-width: 1250px) { .plate { --mapw: min(57vw, calc(100svh * var(--aspect))); } .intro { padding: 12px 20px 0 26px; } .controls { padding: 8px 20px 12px 26px; } }
@media (min-width: 1001px) and (max-height: 700px) { .choice { padding: 4px 0; } }
@media (min-width: 1600px) { .deck { font-size: 1.0625rem; } }

/* Why the mountains disappear: two cross-sections, drawn like a geologist's. */
.why, .extremes, .notes { --side: max(32px, calc((100vw - 2200px) / 2)); }
.why { grid-column: 1 / -1; width: 100%; padding: 30px var(--side) 28px; }
.why h2 { font-size: 1.6875rem; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 8px; }
.why header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 40px; }
.why h2, .why header p { grid-column: 1; font-size: 1.0625rem; }
.why header h2 { font-size: 1.6875rem; }
.why header .key { grid-column: 2; grid-row: 2; align-self: end; margin: 0; font-size: 0.875rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 20px; }
.pair figcaption { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; margin-bottom: 18px; }
.pair figure > p { margin-top: 22px; }
.section-chart { container-type: inline-size; position: relative; height: clamp(210px, 21vw, 340px); margin-left: 46px; }
.section-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.section-chart path { fill: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.section-chart .grid { stroke: #dcd7cb; }
.section-chart .added { fill: var(--band); }
.section-chart .posts { stroke: var(--accent); opacity: .4; }
.section-chart .r { stroke: #6d675c; stroke-width: 2; }
.section-chart .e { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 6 4; }
.section-chart .k { stroke: var(--accent); stroke-width: 3.4; }
.section-chart .deg { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); font-size: .875rem; line-height: 1; color: var(--soft); white-space: nowrap; }
.section-chart .ground { position: absolute; transform: translateX(-50%); padding-top: 6px; font-size: .9375rem; line-height: 1; white-space: nowrap; }
.section-chart b { position: absolute; transform: translate(-50%, -50%); padding: 1px 6px; background: var(--band); color: var(--accent); font-size: 1.125rem; line-height: 1.3; white-space: nowrap; }
.section-chart .hang { margin-top: 5px; transform: translate(-50%, 0); }
@container (max-width: 440px) { .section-chart b { font-size: .8125rem; padding: 0 1px; } .section-chart .hang { margin-top: 3px; } }
.key { display: flex; flex-wrap: wrap; gap: 2px 26px; max-width: none; margin-top: 18px; font-size: 0.875rem; }
.key span::before { content: ""; display: inline-block; width: 22px; margin-right: 7px; vertical-align: 4px; border-top: 3px solid var(--accent); }
.key .a::before { height: 12px; border: 0; background: var(--band); outline: 1px solid var(--accent); vertical-align: -1px; }
.key .e::before { border-top: 2px dashed var(--ink); }
.key .r::before { border-top: 2px solid #6d675c; }

/* The extremes: three maps, each with the ringed spot's summer days underneath. */
.extremes { grid-column: 1 / -1; width: 100%; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; padding: 16px var(--side) 30px; border-bottom: 1px solid var(--ink); font-size: 0.9375rem; }
.extremes h2 { font-size: 1.6875rem; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 8px; text-wrap: balance; }
.extremes header p { font-size: 1.0625rem; max-width: 33em; }
.extremes p { max-width: 33em; }
.extremes b { font-weight: 600; }
.hot-key { align-self: end; justify-self: end; width: min(100%, 31rem); }
.hot-key .hot-note { margin: 3px 0 0; }
.hot-key p { font-size: 0.875rem; margin-bottom: 6px; }
.hot-key .bar { display: flex; height: 13px; outline: 1px solid var(--ink); }
.hot-key i { flex: 1; }
.panels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
/* On a short screen the maps lose some of the empty south, so each one stays in view with its chart. */
@media (min-width: 1001px) { .panels img { max-height: max(300px, 100svh - 21rem); object-fit: cover; object-position: top; } }
.panels figure { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.panels figcaption > span b { font-size: 1.25rem; }
.panels figcaption { min-height: 34px; padding-bottom: 4px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; align-content: end; gap: 0 12px; margin-bottom: 6px; font-size: 1rem; line-height: 1.35; }
.hot-map { position: relative; }
.here { position: absolute; top: 0; width: 18px; height: 18px; transform: translate(-50%, -50%); border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), inset 0 0 0 2px var(--paper); }
.panels img { display: block; width: 100%; height: auto; outline: 1px solid var(--ink); pointer-events: none; }
.panels figure > p { margin-top: 2px; font-size: 0.875rem; }
.days-chart { position: relative; margin-top: 8px; padding-top: 18px; }
.top-day { position: absolute; top: 18px; height: 70px; border-left: 2px solid var(--ink); }
.top-day span { position: absolute; top: -18px; left: 0; transform: translateX(-50%); font-size: .9375rem; font-weight: 600; line-height: 18px; white-space: nowrap; }
.days-chart svg { display: block; width: 100%; height: 70px; overflow: visible; border-bottom: 1px solid var(--ink); }
.days-chart path { vector-effect: non-scaling-stroke; }
.days { fill: #cdb9dc; stroke: var(--accent); stroke-width: 1.5; }
.days-chart .e { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 3; }
.days-ticks { position: relative; height: 22px; font-size: .875rem; color: var(--soft); }
.days-ticks span { position: absolute; transform: translateX(-50%); padding-top: 4px; line-height: 1.2; white-space: nowrap; }
.extremes .hot-note { display: flex; flex-wrap: wrap; gap: 0 20px; max-width: none; font-size: 0.875rem; }
.hot-note span::before { content: ""; display: inline-block; width: 22px; height: 12px; margin-right: 7px; vertical-align: -1px; }
.hot-note .hatch::before { border: 1px solid var(--ink); background: repeating-linear-gradient(135deg, var(--ink) 0 2px, #fcffa4 2px 5px); }
.hot-note .key-days::before { background: #cdb9dc; border: 1.5px solid var(--accent); }
.hot-note .key-top::before { width: 2px; height: 14px; margin-left: 4px; background: var(--ink); vertical-align: -2px; }
.hot-note .key-ring::before { width: 13px; height: 13px; border: 2.5px solid var(--ink); border-radius: 50%; vertical-align: -2px; }
.hot-note .key-e::before { height: 0; border-top: 2px dashed var(--ink); vertical-align: 4px; }
.how { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; margin-top: 8px; }
.how h3 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.how p + p, .how table + p { margin-top: 8px; }
.how p + h3 { margin-top: 18px; }
.how tbody th { white-space: normal; }

.notes { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; padding: 26px var(--side) 32px; font-size: 0.9375rem; }
.notes h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.notes p + p, .notes table + p { margin-top: 8px; }
.notes b { font-weight: 600; }
tbody th { white-space: nowrap; }
table { border-collapse: collapse; width: 100%; font-size: 0.875rem; line-height: 1.3; }
th { font-weight: 400; text-align: left; }
td { white-space: nowrap; }
thead th { white-space: nowrap; }
thead th, td { text-align: right; padding: 4px 0 4px 10px; vertical-align: bottom; }
tbody th { padding: 4px 0; border-top: 1px solid var(--rule); }
tbody td { border-top: 1px solid var(--rule); }
th[scope=rowgroup] { font-weight: 600; padding-top: 8px; border-top-color: var(--ink); }


#still { display: none; }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; } }

@media (max-width: 1000px) {
  .plate { grid-template: "title title" auto "map intro" auto "map controls" 1fr / minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; padding: 18px 20px 28px; }
  h1 { grid-area: title; margin-bottom: 14px; }
  .intro, .controls { padding: 0; } .controls { padding-top: 10px; }
  #map, .pane img { border: 1px solid var(--ink); }
  .pane p { margin: 0 0 4px; line-height: 1.35; } .pane + .pane { margin-top: 10px; } .same { margin-top: 6px; font-size: 0.9375rem; }
  .comparing #map { display: none; }
  .zoom { margin: 4px 0; } .legend { margin-top: 10px; }
  .main-action { width: 100%; } .actions { gap: 8px 20px; }
  .choice { gap: 0 12px; } .name { font-size: 1.125rem; } .verdict { font-size: 0.9375rem; }
  .why, .extremes, .notes { padding-inline: 0; }
  .why header { display: block; } .why header .key { margin-top: 10px; }
  .extremes, .notes { grid-template-columns: minmax(0, 1fr); } .hot-key { justify-self: start; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .notes { border-top: 1px solid var(--ink); }
}
@media (max-width: 700px) {
  .plate { display: block; padding: 18px 16px 28px; }
  .map { margin-top: 14px; }
  #leaders { display: none; }
  .pair, .panels { grid-template-columns: minmax(0, 1fr); }
  .panels figure + figure { margin-top: 20px; }
 .mark b { font-size: 1rem; }
  .season span { padding: 9px 0; }
  button { min-width: 44px; min-height: 44px; }
}
/* Without JavaScript: the same page, with four still maps in place of the interactive one. */
.off .live { display: none !important; }
.off .choice input { display: none; }
.off .name { color: var(--ink); font-weight: 600; text-decoration: none !important; }
.off .choice input:checked ~ img { outline: 1px solid var(--ink); outline-offset: 0; }
.off .choices .choice .match { color: var(--ink); font-weight: 400; }
.off .why header { display: block; }
.off .why header .key { margin-top: 10px; }
.off .choice, .off label { cursor: default; }
.off .plate { display: block; max-width: 900px; margin: auto; padding: 18px 16px 28px; }
.off h1, .off .legend { position: static; width: auto; transform: none; padding: 0; border: 0; height: auto; }
.off h1 { font-size: 1.875rem; line-height: 1.1; margin-bottom: 12px; }
.off .intro, .off .controls, .off .map { padding: 0; margin-top: 14px; }
.off #still { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.off #still img { display: block; width: 100%; height: auto; outline: 1px solid var(--ink); margin-top: 4px; }
.off .choices { max-width: 620px; }
.off .why, .off .extremes, .off .notes { padding-inline: 0; }
.off .extremes, .off .how, .off .notes { grid-template-columns: minmax(0, 1fr); }
