@font-face { font-family: "Big Shoulders Display"; src: url(/fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --storm: #1f3d3a;
  --storm-deep: #15302d;
  --storm-lift: #2d5650;
  --ice: #e6efee;
  --ice-bright: #f4f8f7;
  --ink: #102826;
  --rime: #b9cfcc;
  --muted: #47635f;
  --strike: #f4db4e;
  --line: #bdd0cd;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ice); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: .005em; margin: 0; }
:focus-visible { outline: 3px solid var(--strike); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

.top { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; color: var(--ice); }
.top.solid { position: static; background: var(--storm); }
.brand { font: 800 1.7rem/1 var(--display); text-decoration: none; }
.top nav { display: flex; gap: 22px; font-size: 1rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

.hero { position: relative; min-height: 100svh; background: var(--storm); color: var(--ice); display: grid; align-items: end; overflow: hidden; }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--storm) 0, rgba(31, 61, 58, .86) 34%, rgba(31, 61, 58, 0) 62%); pointer-events: none; }
.hero-date { position: absolute; z-index: 2; right: 24px; bottom: 18px; margin: 0; font: 800 clamp(1.6rem, 3vw, 2.6rem)/1 var(--display); color: var(--strike); }
.hero-copy { position: relative; z-index: 2; max-width: 680px; padding: 120px 24px 64px; }
.hero h1 { font-size: clamp(4.6rem, min(12vw, 18vh), 9.5rem); line-height: .9; }
.lede { font-size: 1.25rem; max-width: 34em; margin: 22px 0 28px; }
.search label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-row { display: flex; gap: 0; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; padding: 16px; border: 0; background: var(--ice-bright); color: var(--ink); }
.search button { font: inherit; font-weight: 700; font-size: 1.1rem; padding: 16px 22px; border: 0; background: var(--strike); color: var(--ink); cursor: pointer; white-space: nowrap; }
.search button:hover { background: #fff; }
.search-note { min-height: 1.5em; margin: 10px 0 0; }
.search-note.bad { color: var(--strike); font-weight: 700; }

.result { padding: 64px 0 72px; background: var(--ice); }
.verdict { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.stone { margin: 0; }
.stone canvas { width: 100%; height: auto; }
.stone figcaption { color: var(--muted); font-size: .95rem; text-align: center; max-width: 34em; margin: 8px auto 0; }
.place { margin: 0 0 10px; font-weight: 700; }
.verdict h2 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: .96; }
.summary { font-size: 1.2rem; margin: 20px 0 0; max-width: 34em; }
.rank { margin: 12px 0 0; }
.warning { margin: 20px 0 0; padding-left: 14px; border-left: 4px solid #e0a100; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ghost { font: inherit; font-weight: 700; background: none; color: var(--ink); border: 2px solid var(--ink); padding: 9px 14px; cursor: pointer; }
.ghost:hover { background: var(--ink); color: var(--ice); }

.years { display: flex; align-items: flex-end; gap: 6px; margin: 56px 0 0; border-bottom: 2px solid var(--ink); }
.year { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.year span { font: 800 1.2rem/1 var(--display); padding: 6px 0; text-align: center; }
.year-dots { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 4px; padding: 0 2px 6px; min-height: 22px; }
.year-dots button { width: 18px; height: 18px; padding: 0; border: 1px solid rgba(16, 40, 38, .55); border-radius: 50%; cursor: pointer; }

.log { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; margin-top: 56px; align-items: start; }
.log h3, .older h3 { font-size: 2.2rem; }
.hint { color: var(--muted); margin: 8px 0 14px; }
.storms { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.storm { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 8px; cursor: pointer; }
.storm:hover { background: var(--ice-bright); }
.storm.on { background: var(--storm); color: var(--ice); }
.storm-date { font-weight: 700; }
.storm-radar { text-align: right; }
.storm-radar i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; border: 1px solid rgba(16, 40, 38, .5); }
.storm-likely, .storm-check { font-size: .95rem; }
.storm-check { text-align: right; }
.storm-check.confirmed { font-weight: 700; }
.log-map { position: sticky; top: 16px; }
.map { height: min(70vh, 560px); background: var(--storm-deep); }
.map-note { margin: 8px 0 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 50%; }
.pin { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 0 0 2px #fff; }
.older { margin-top: 56px; max-width: 760px; }
.tracks { margin: 12px 0 0; padding-left: 1.2em; }

.method { background: var(--storm); color: var(--ice); padding: 72px 0; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.method h2 { font-size: 2.6rem; margin-bottom: 14px; }

.page { padding: 48px 0 72px; }
.page .wrap { max-width: 860px; }
.page.wide .wrap { max-width: 1180px; }
.page h1 { font-size: clamp(3rem, 8vw, 5.2rem); line-height: .95; margin-bottom: 18px; }
.page h2 { font-size: 2.1rem; margin: 40px 0 10px; }
.page p, .page li { max-width: 66ch; }
.intro { font-size: 1.25rem; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; }
th, td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { border-bottom: 2px solid var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: 10px; }
.table-scroll { overflow-x: auto; }
.btn { display: inline-block; font-weight: 700; padding: 12px 18px; background: var(--strike); color: var(--ink); text-decoration: none; border: 0; font-size: 1rem; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--ice); }

.foot { background: var(--storm-deep); color: var(--rime); padding: 36px 0; font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; color: var(--ice); }
.foot p { margin: 6px 0 0; max-width: 80ch; }

@media (max-width: 860px) {
  .top nav { gap: 14px; font-size: .95rem; }
  .hero { align-items: end; }
  .hero-film { height: 48%; bottom: auto; object-position: 60% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(31, 61, 58, .35) 0, rgba(31, 61, 58, 0) 26%, var(--storm) 48%); }
  .hero-date { top: 76px; right: 16px; bottom: auto; }
  .hero-copy { padding: 44vh 16px 36px; }
  .hero h1 { font-size: clamp(4rem, 19vw, 7rem); }
  .wrap { padding: 0 16px; }
  .verdict, .log, .method-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stone { max-width: 420px; margin: 0 auto; }
  .log-map { position: static; order: -1; }
  .map { height: 340px; }
  .search-row { flex-direction: column; }
  .year span { font-size: 1rem; }
  .year-dots button { width: 13px; height: 13px; }
}

@media (max-width: 430px) {
  .top { padding: 14px 16px; }
  .top nav { gap: 14px; font-size: .95rem; white-space: nowrap; }
  .wide-only { display: none; }
  .storm { grid-template-columns: minmax(0, 1fr); }
  .storm-radar, .storm-check { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

@media print {
  .top, .hero, .method, .foot, .actions, .log-map, .search, #map, .legend { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .result { display: block !important; padding: 0; background: #fff; }
  .verdict { grid-template-columns: 200px 1fr; gap: 20px; }
  .verdict h2 { font-size: 28pt; }
  .log { display: block; margin-top: 16pt; }
  .storm { padding: 4pt 0; break-inside: avoid; }
  .storm.on { background: none; color: inherit; }
  .year-dots button { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Address lists, pricing and legal pages */
.page progress { width: min(100%, 420px); height: 14px; vertical-align: middle; accent-color: var(--storm-lift); }
.page input[type="file"] { font: inherit; max-width: 100%; margin-top: 6px; }
.page .bad { color: #8a1c1c; font-weight: 700; }
.page .warning { max-width: 66ch; }
.page section + section { margin-top: 8px; }

/* Storm map page */
.stormmap { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100svh - 66px); min-height: 560px; background: var(--ice); }
.stormbar { padding: 14px 24px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.stormbar h1 { font-size: 2.2rem; }
.stormcontrols { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stormcontrols label { font-weight: 700; margin-left: 8px; }
.stormcontrols input, .stormcontrols select { font: inherit; padding: 8px; border: 2px solid var(--ink); background: var(--ice-bright); color: var(--ink); max-width: 100%; }
.storminfo { flex-basis: 100%; margin: 0; min-height: 1.5em; }
.stormcanvas { min-height: 0; background: var(--storm-deep); }
.stormlegend { padding: 10px 24px; }
.columns { columns: 3; padding-left: 1.2em; }
@media (max-width: 860px) {
  .stormmap { height: auto; grid-template-rows: auto 62svh auto; }
  .stormbar, .stormlegend { padding-left: 16px; padding-right: 16px; }
  .columns { columns: 2; }
}
