/* FireCare (c) 2026 Engenic. Written by vbaker@engenic.com; this work belongs to Engenic.
   Ideas for further development, or for using it somewhere else? Get in touch: vbaker@engenic.com

   firecare.ca's look: the sunny maps of FireCare's own PRA and Skies behind everything, a hex wireframe drifting
   over them, and the words in glass windows pinned at each corner by a hex, with the wireframe just showing through.
   The colours are the original site's: sunny yellow, FireCare green, and the zones' red, orange and yellow.
   Built by tools/make_site.py from site_src/. */
:root {
  --sun: #ffc21a; --sun-2: #ffd75e; --green: #1c8a2e; --green-d: #0f5c1d; --red: #e1262a; --orange: #f7941d; --yellow: #ffc61e;
  --ink: #f4f7f5; --dim: #c9d6dc; --glass: rgba(16, 27, 34, .74); --glass-2: rgba(16, 27, 34, .84); --edge: rgba(255, 255, 255, .16);
  --cream: #fffdf4; --text-d: #1f2a22; --gold: #ffd36b; --blue: #4aa3ff;
  --hexA: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 32'%3E%3Cpath d='M14 1.5 26 8.5v15L14 30.5 2 23.5v-15z' fill='%23142229' stroke='%23ffc21a' stroke-width='2.6'/%3E%3Cpath d='M14 9.5 20 13v6l-6 3.5L8 19v-6z' fill='%23ffc21a'/%3E%3C/svg%3E");
  --hexG: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='90' viewBox='0 0 52 90'%3E%3Cpath d='M26 0v15L0 30v30l26 15v15M26 15l26 15v30L26 75' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #10202a; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--sun-2); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 850; }
h2 { font-size: clamp(23px, 2.8vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #000; padding: 6px 10px; z-index: 99; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---- Behind everything: the page's picture, and the hex wireframe drifting over it ---- */
.backdrop { position: fixed; inset: 0; z-index: -2; background: #10202a center / cover no-repeat; }
.backdrop::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 24, .05) 0%, rgba(10, 18, 24, .25) 55%, rgba(10, 18, 24, .55) 100%); }
#wire { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---- The header: a bright band, as the original's, with the logo and a sunny menu ---- */
.top { position: relative; z-index: 5; background: rgba(255, 253, 244, .94); color: var(--text-d); box-shadow: 0 4px 22px rgba(0, 0, 0, .25); }
.top .in { max-width: 1180px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand img.logo { width: 330px; height: auto; display: block; }
.top .tag { margin-left: auto; font-size: 13.5px; line-height: 1.3; color: #3c4a40; text-align: right; max-width: 240px; }
.top .tag b { color: var(--green); display: block; font-size: 14.5px; }
.menu { position: relative; z-index: 4; background: var(--sun); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.menu .in { max-width: 1180px; margin: 0 auto; padding: 0 12px; display: flex; flex-wrap: wrap; justify-content: center; }
.menu a { position: relative; display: block; padding: 13px 15px; color: #1b2216; font-weight: 750; text-decoration: none; font-size: 15.5px; }
.menu a:hover, .menu a[aria-current="page"] { color: #000; }
.menu a[aria-current="page"]::after, .menu a:hover::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 12px; height: 14px; margin-left: -6px;
  background: #1b2216; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.menu a.go { margin: 6px 4px; padding: 7px 18px; background: #142229; color: var(--sun); border-radius: 0;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.menu a.go::after { display: none; }
.menu a.go:hover { background: var(--green); color: #fff; }
.menu a.join { color: var(--green-d); }
.menu button.more { display: none; }
@media (max-width: 760px) {
  .top .tag { display: none; }
  .brand img.logo { width: 230px; }
  .menu .in { justify-content: flex-start; }
  .menu a { padding: 8px 8px; font-size: 14px; }
  .menu a.go { padding: 6px 14px; margin: 4px 2px; }
}

/* ---- Windows: glass, a hex at each corner, the wireframe showing through ---- */
main { max-width: 1180px; margin: 0 auto; padding: 34px 18px 60px; }
.win { position: relative; margin: 0 0 34px; padding: 28px 30px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(7px) saturate(1.25); backdrop-filter: blur(7px) saturate(1.25); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.win::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .07;
  background: var(--hexG) 0 0 / 52px 90px; mask-image: linear-gradient(135deg, #000 0%, transparent 45%, transparent 60%, #000 100%);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 45%, transparent 60%, #000 100%); }
.win::after { content: ""; position: absolute; inset: -11px; pointer-events: none;
  background: var(--hexA) 0 0 / 22px 25px no-repeat, var(--hexA) 100% 0 / 22px 25px no-repeat,
              var(--hexA) 0 100% / 22px 25px no-repeat, var(--hexA) 100% 100% / 22px 25px no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.win > * { position: relative; }
.win.light { background: rgba(255, 253, 244, .9); color: var(--text-d); border-color: rgba(0, 0, 0, .08); }
.win.light::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='90' viewBox='0 0 52 90'%3E%3Cpath d='M26 0v15L0 30v30l26 15v15M26 15l26 15v30L26 75' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 52px 90px; opacity: .06; }
.win.light a { color: var(--green-d); }
.win.light h2, .win.light h3 { color: var(--green-d); }
.win.thin { padding: 20px 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.eyebrow::before { content: ""; width: 12px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.win.light .eyebrow { color: var(--green); }
.lead { font-size: 1.15em; color: var(--dim); }
.win.light .lead { color: #3c4a40; }

/* the hero: one big window over the picture */
.hero { min-height: 62vh; display: grid; align-content: end; }
.hero .win { max-width: 760px; padding: 34px 36px; }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--sun); }
.zones { display: flex; height: 10px; border-radius: 99px; overflow: hidden; max-width: 340px; margin: 4px 0 18px; }
.zones i { flex: 1; } .zones i:nth-child(1) { background: var(--red); } .zones i:nth-child(2) { background: var(--orange); }
.zones i:nth-child(3) { background: var(--yellow); } .zones i:nth-child(4) { background: var(--green); }

/* buttons: hex-ended */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font: 800 16px/1.1 inherit; text-decoration: none; border: 0; cursor: pointer;
  background: var(--sun); color: #1b2216; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  transition: filter .15s, transform .15s; font-family: inherit; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #000; }
.btn.green { background: var(--green); color: #fff; }
.btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* grids and cards */
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } .win { padding: 22px 20px; } .hero .win { padding: 26px 22px; } }
.card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--glass-2); border: 1px solid var(--edge);
  color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); border-color: rgba(255, 194, 26, .6); color: inherit; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .b { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--dim); font-size: 15.5px; }
.card .more { margin-top: auto; padding-top: 10px; color: var(--sun); font-weight: 800; }
.card .tagline { position: absolute; top: 10px; left: 10px; background: rgba(15, 22, 28, .85); color: var(--sun); border: 1px solid rgba(255, 194, 26, .5);
  border-radius: 99px; padding: 2px 10px; font-size: 12.5px; font-weight: 800; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 820px) { .split, .split.rev { grid-template-columns: 1fr; } }
figure { margin: 0; }
figure img { display: block; border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
figcaption { font-size: 13.5px; color: var(--dim); margin-top: 6px; }
.win.light figcaption { color: #56645a; }
.shot { position: relative; }
.shot::after { content: ""; position: absolute; inset: -9px; pointer-events: none;
  background: var(--hexA) 0 0 / 18px 21px no-repeat, var(--hexA) 100% 0 / 18px 21px no-repeat, var(--hexA) 0 100% / 18px 21px no-repeat, var(--hexA) 100% 100% / 18px 21px no-repeat; }

/* lists with hex bullets */
ul.hex { list-style: none; padding: 0; margin: 0 0 1em; }
ul.hex li { position: relative; padding-left: 26px; margin: 6px 0; }
ul.hex li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 14px; background: var(--sun);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.win.light ul.hex li::before { background: var(--green); }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 58px; min-height: 46px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 48px; display: grid; place-items: center;
  font-weight: 900; font-size: 19px; color: #1b2216; background: var(--sun); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
ol.steps li:nth-child(4n+2)::before { background: var(--orange); } ol.steps li:nth-child(4n+3)::before { background: var(--red); color: #fff; }
ol.steps li:nth-child(4n+4)::before { background: var(--green); color: #fff; }
ol.steps b { display: block; }

/* the zones explained */
.zonekey { display: grid; gap: 10px; }
.zonekey div { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; }
.zonekey i { width: 46px; height: 52px; display: block; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.zonekey .z1 { background: var(--red); } .zonekey .z2 { background: var(--orange); } .zonekey .z3 { background: var(--yellow); } .zonekey .z4 { background: var(--green); }

/* quote */
blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 4px solid var(--sun); font-size: 1.15em; font-style: italic; }

/* Playing now: who's in which lobby, as hexes */
.playing h2 { display: flex; align-items: center; gap: 10px; }
.playing .dot { width: 11px; height: 11px; border-radius: 50%; background: #5fd27a; box-shadow: 0 0 0 0 rgba(95, 210, 122, .6); animation: pnow 2s infinite; }
.playing.quiet .dot { background: #6b7a84; animation: none; }
@keyframes pnow { 70% { box-shadow: 0 0 0 9px rgba(95, 210, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 210, 122, 0); } }
.hexes { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.phex { width: 112px; height: 128px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 12px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, #24506a, #17323f); transition: transform .15s, filter .15s; }
.phex:nth-child(2n) { margin-top: 40px; }
.phex:hover { transform: scale(1.06); filter: brightness(1.2); color: #fff; }
.phex b { font-size: 24px; line-height: 1; color: var(--sun); }
.phex span { font-size: 12.5px; font-weight: 700; margin-top: 3px; line-height: 1.15; }
.phex small { font-size: 10.5px; color: #bcd0dc; margin-top: 3px; line-height: 1.2; }
.phex.live { background: linear-gradient(160deg, #2f7a4a, #1b4a2c); }
.phex.blitz { background: linear-gradient(160deg, #7a4f14, #4a2e0b); }

/* forms */
form.f { display: grid; gap: 14px; }
.f label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.f label small { font-weight: 400; color: var(--dim); }
.win.light .f label small { color: #56645a; }
.f input[type=text], .f input[type=email], .f select, .f textarea { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .28); color: inherit; }
.win.light .f input, .win.light .f select, .win.light .f textarea { background: #fff; border-color: #cfd8c9; color: var(--text-d); }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.f .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .f .row2 { grid-template-columns: 1fr; } }
.f .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.f .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green); }
.f fieldset { border: 1px dashed rgba(255, 255, 255, .28); border-radius: 14px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; }
.f legend { padding: 0 8px; font-weight: 800; color: var(--sun); }
.f .err { color: #ff9a8a; font-weight: 700; min-height: 1.2em; }
.f .ok { color: #8ef0a5; font-weight: 700; }
.note { font-size: 14px; color: var(--dim); }
.win.light .note { color: #56645a; }

/* a pulsing hex is work being done */
.busyhex { display: inline-block; width: 16px; height: 18px; background: currentColor; vertical-align: -3px; margin-right: 6px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); animation: bh 0.9s ease-in-out infinite; }
@keyframes bh { 50% { transform: scale(.7); opacity: .5; } }

/* news */
.post .date { color: var(--sun); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.win.light .post .date { color: var(--green); }

/* footer */
footer.site { position: relative; z-index: 2; background: rgba(10, 17, 22, .92); color: var(--dim); font-size: 14px; }
footer.site .in { max-width: 1180px; margin: 0 auto; padding: 28px 18px 34px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; }
footer.site h4 { margin: 0 0 8px; color: #fff; font-size: 15px; }
footer.site a { color: var(--dim); text-decoration: none; display: block; padding: 2px 0; }
footer.site a:hover { color: var(--sun); }
footer.site .credits { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 760px) { footer.site .in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .playing .dot, .busyhex { animation: none; } html { scroll-behavior: auto; } }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { .win { background: var(--glass-2); } }

/* rows of windows: room for the corner hexes between them */
section.grid { margin-bottom: 40px; }
section.grid > .win { margin: 0; }

/* ---- Hex-cornered: no rounded corners. Each window's corners are cut off just short of the gold hex nut, which sits
   wholly on the glass, holding the window like a bolt. The same for the cards and the framed pictures. ---- */
:root { --cut: 10px; --cutS: 6px; }   /* small cuts: the glass runs a couple of pixels past every side of the nut, so the whole nut shows */
.win, .card, .shot img, figure.shot > img {
  border-radius: 0;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.win { --c: var(--cut); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.win.light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.win::before { border-radius: 0; }
.win::after { inset: 3px; filter: none;
  background: var(--hexA) 0 0 / 26px 30px no-repeat, var(--hexA) 100% 0 / 26px 30px no-repeat,
              var(--hexA) 0 100% / 26px 30px no-repeat, var(--hexA) 100% 100% / 26px 30px no-repeat; }
.card { --c: var(--cutS); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.card::after { content: ""; position: absolute; inset: 2px; z-index: 2; pointer-events: none;
  background: var(--hexA) 0 0 / 19px 22px no-repeat, var(--hexA) 100% 0 / 19px 22px no-repeat,
              var(--hexA) 0 100% / 19px 22px no-repeat, var(--hexA) 100% 100% / 19px 22px no-repeat; }
a.card:hover { box-shadow: inset 0 0 0 2px rgba(255, 194, 26, .75); }
.card .tagline { left: 26px; top: 8px; }
.shot img, figure.shot > img { --c: var(--cutS); box-shadow: none; }
.shot::after { inset: 2px; background: var(--hexA) 0 0 / 18px 21px no-repeat, var(--hexA) 100% 0 / 18px 21px no-repeat,
  var(--hexA) 0 100% / 18px 21px no-repeat, var(--hexA) 100% 100% / 18px 21px no-repeat; }
figure.shot { display: block; }
figure.shot figcaption { padding: 0 4px; }

/* The PRA's own legend and notes (an example report, written by the PRA) */
.pmlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.pmlegend span { display: inline-flex; align-items: center; gap: 6px; }
.pmnotes { list-style: none; padding: 0; margin: 0; font-size: 14px; display: grid; gap: 5px; }
.pmnotes li svg { vertical-align: -2px; }

/* framed pictures: the nuts on the picture itself (make_site.py wraps it in .pic), the caption below them */
.shot::after { content: none; }
.shot .pic { position: relative; display: block; }
.shot .pic img { display: block; width: 100%; }
.shot .pic::after { content: ""; position: absolute; inset: 2px; pointer-events: none;
  background: var(--hexA) 0 0 / 18px 21px no-repeat, var(--hexA) 100% 0 / 18px 21px no-repeat,
              var(--hexA) 0 100% / 18px 21px no-repeat, var(--hexA) 100% 100% / 18px 21px no-repeat; }

/* ---- Corners cut at the hex's own angle (30° off the horizontal, √3 across for 1 down), parallel to the nut's nearest edge
   and ~3 px outside it; the outline runs along the cuts too, so the border follows the hex edge all the way round. ---- */
:root { --line: rgba(255, 255, 255, .2); }
.win { --cy: 10px; --cx: 17.3px; }
.card, .shot .pic img { --cy: 6.5px; --cx: 11.3px; }
.win, .card, .shot .pic img {
  clip-path: polygon(var(--cx) 0, calc(100% - var(--cx)) 0, 100% var(--cy), 100% calc(100% - var(--cy)), calc(100% - var(--cx)) 100%, var(--cx) 100%, 0 calc(100% - var(--cy)), 0 var(--cy));
}
.win, .card {
  background-image:
    linear-gradient(to bottom right, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom left, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to top right, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to top left, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: var(--cx) var(--cy);
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}
.win.light { --line: rgba(0, 0, 0, .14); background-color: rgba(255, 253, 244, .9); }
.card { --line: rgba(255, 255, 255, .16); }
a.card:hover { --line: rgba(255, 194, 26, .8); }
