/* self-hosted Google Fonts (SIL Open Font License): Archivo, IBM Plex Sans, IBM Plex Mono */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/Archivo-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/IBMPlexMono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/IBMPlexMono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/IBMPlexMono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/IBMPlexMono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/IBMPlexMono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/IBMPlexMono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/IBMPlexSans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Weather Footprints: one reading column under a slim masthead; figures run the full column width. No scripts. */
:root {
  --paper: #f5f7f6;
  --surface: #ffffff;
  --ink: #18222a;
  --muted: #56646e;
  --rule: #d5dcdf;
  --accent: #1d4f7a;
  --accent-soft: #e3ecf4;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11171b; --surface: #182128; --ink: #e5eaec; --muted: #9aa8b1; --rule: #2b373f;
    --accent: #8db8e0; --accent-soft: #1d2c39; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11171b; --surface: #182128; --ink: #e5eaec; --muted: #9aa8b1; --rule: #2b373f;
  --accent: #8db8e0; --accent-soft: #1d2c39; color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap {
  max-width: 68rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* masthead */
.mast { border-bottom: 1px solid var(--rule); background: var(--surface); }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; padding-block: 0.9rem; }
.brand { font: 800 1.35rem/1 var(--display); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; padding-block: 0.2rem;
  border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* type */
main .wrap { padding-block: 2.2rem 3rem; display: grid; gap: 2.2rem; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.08; font-weight: 800; }
h2 { font-size: 1.45rem; line-height: 1.2; font-weight: 700; }
p { margin: 0; max-width: 65ch; }
.prose { display: grid; gap: 0.9rem; }
.section { display: grid; gap: 1rem; }
.sub { color: var(--muted); font-size: 0.85rem; }
ul.plain { margin: 0; padding-left: 1.2rem; max-width: 65ch; }

/* button row: plain links, the current one filled */
.tabbar { display: flex; flex-wrap: wrap; gap: 0.35rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; }
.tabbar a { color: var(--muted); border: 1px solid var(--rule); padding: 0.45rem 0.75rem; font-weight: 600;
  font-size: 0.88rem; text-decoration: none; }
.tabbar a:hover { color: var(--ink); border-color: var(--muted); }
.tabbar a[aria-current="page"] { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* 0-10 scale */
.ramp { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; max-width: 34rem; }
.ramp div { font: 600 0.8rem/1 var(--mono); text-align: center; padding: 0.55rem 0; border-radius: 2px;
  font-variant-numeric: tabular-nums; }

/* figures: maps are drawn on white, so they keep a white mat in both themes */
figure { margin: 0; display: grid; gap: 0.6rem; }
figure .mat { display: block; background: #fff; border: 1px solid var(--rule); padding: 0.5rem; }
figure img { display: block; width: 100%; height: auto; }

/* tables */
.tbl { overflow-x: auto; max-width: 40rem; }
table { border-collapse: collapse; font-size: 0.92rem; width: 100%; }
th, td { text-align: left; padding: 0.5rem 0.9rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

footer { border-top: 1px solid var(--rule); }
footer .wrap { padding-block: 1.5rem 2.5rem; font-size: 0.82rem; color: var(--muted); }

/* maps and charts drawn into the page, so their numbers are links and their dots have hover labels */
svg.inline { display: block; width: 100%; height: auto; }
svg.inline a:hover circle { fill: var(--accent); }
figcaption { font-size: 0.88rem; color: var(--muted); max-width: 70ch; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 65ch; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* footprint lists: one line each, the number and hazard as the link */
ul.fplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; max-width: 60rem; }
ul.fplist li { padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
ul.fplist a { text-decoration: none; }
ul.fplist a:hover { text-decoration: underline; }

/* the six hazard maps of a day */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.4rem; }
.card { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.card h3 { font: 700 1.05rem/1.2 var(--display); margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .mat { display: block; background: #fff; border: 1px solid var(--rule); padding: 0.3rem; }
.card img { display: block; width: 100%; height: auto; }

/* what is in the way */
table.facts th { width: 13rem; text-transform: none; letter-spacing: 0; font-size: 0.88rem; color: var(--ink); vertical-align: top; }
table.facts td { line-height: 1.5; }
@media (max-width: 560px) {
  table.facts, table.facts tbody, table.facts tr, table.facts th, table.facts td { display: block; width: auto; }
  table.facts th { border-bottom: 0; padding-bottom: 0; }
}

/* technical pages */
table.members { width: auto; min-width: 0; font-family: var(--mono); font-size: 0.82rem; }
table.members td, table.members th { padding: 0.25rem 1rem 0.25rem 0; }
table.members tr.control td { font-weight: 600; }

/* the logo beside the name in the masthead */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand .logo { width: 2rem; height: 2rem; flex: none; }

/* the 0-10 scale (colours here, not inline, so the strict security policy allows them) */
.ramp .l0, .ramp .l1, .badge.l0, .badge.l1 { background: #e6ebe8; color: #18222a; }
.ramp .l2, .badge.l2 { background: #fede82; color: #18222a; }
.ramp .l3, .badge.l3 { background: #fec561; color: #18222a; }
.ramp .l4, .badge.l4 { background: #fea747; color: #18222a; }
.ramp .l5, .badge.l5 { background: #fd883b; color: #18222a; }
.ramp .l6, .badge.l6 { background: #fc572c; color: #ffffff; }
.ramp .l7, .badge.l7 { background: #ec2c21; color: #ffffff; }
.ramp .l8, .badge.l8 { background: #d30f20; color: #ffffff; }
.ramp .l9, .badge.l9 { background: #b00026; color: #ffffff; }
.ramp .l10, .badge.l10 { background: #5c0a2e; color: #ffffff; }
.mast .wrap { align-items: center; }

/* the day's synopsis above the maps: the opening paragraph, then the highlights, each at its level */
.synopsis { display: grid; gap: 0.8rem; max-width: 65ch; }
.synopsis p { font-size: 1.05rem; }
ul.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
ul.highlights li.more { color: var(--muted); font-size: 0.92rem; }
ul.highlights .way { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.1rem; }
ul.highlights .way .label { font-weight: 600; }
.badge { display: inline-block; font: 600 0.72rem/1 var(--mono); padding: 0.28rem 0.45rem; border-radius: 2px;
  margin-right: 0.35rem; vertical-align: 0.08em; white-space: nowrap; }
