/* Look: the aquarium shop's water station. A cobalt enamel RO WATER sign hung on chains over a
   pegboard wall, a brushed stainless dispenser cabinet holding the fill ticket (inputs), the water
   meter and the readout plate (result), jerry cans on a rubber drip mat. Fonts: self-hosted OFL
   files in fonts/ (Bungee for sign lettering, Outfit for text). */
@font-face { font-family: "Bungee"; font-weight: 400; font-display: swap; src: url(fonts/bungee.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 300 700; font-display: swap; src: url(fonts/outfit-var.woff2) format("woff2"); }
:root {
  --water: #1d3f8f;   /* enamel cobalt: the sign, headings, dial numerals */
  --glass: #f3f1ea;   /* enamel white: plates */
  --white: #ffffff;   /* ticket paper, dial face */
  --ink: #15191f;     /* text and outlines */
  --algae: #2e6a39;   /* RO-filter green: links, tap-water line */
  --amber: #8a4b06;   /* key number, target line */
  --steel: #c9ced3;   /* brushed stainless */
  --steeldk: #59626b; /* bezels, rivets, rules */
  --can: #2f7fd0;     /* jerry-can blue, drawing only */
  --pale: #d6e6f6;    /* empty can, sight-glass glass */
  --mat: #23272c;     /* rubber drip mat, footer */
  --peg: #b8946a;     /* pegboard */
  --pegdk: #6b5236;   /* pegboard holes */
  --display: "Bungee", "Arial Black", sans-serif;
  --body: "Outfit", system-ui, sans-serif;
  --hit: 44px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 17.5px/1.6 var(--body); background: var(--mat); }
a { color: var(--algae); text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 600; }
a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--water); line-height: 1.08; margin: 0 0 14px; }
h2 { font-size: 1.45rem; }
p { margin: 0 0 12px; }

/* the pegboard wall */
.wall {
  background-color: var(--peg);
  background-image: radial-gradient(circle, var(--pegdk) 0 2.6px, rgba(0,0,0,.12) 3.2px, transparent 3.8px),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.06));
  background-size: 26px 26px, 100% 100%; background-position: 13px 13px, 0 0;
  padding: 0 16px 40px;
}
.mast, main { max-width: 1240px; margin: 0 auto; }

/* masthead: the hanging enamel sign and the station */
.mast { display: grid; grid-template-columns: 8fr 4fr; gap: 24px 40px; align-items: end; }
.sign-hang { position: relative; padding-top: 70px; }
.rail { position: absolute; top: 0; left: 6%; right: 6%; height: 70px; }
.rail::before { content: ""; position: absolute; top: 10px; left: -4%; right: -4%; height: 10px; border-radius: 5px; background: linear-gradient(180deg, #e4e7ea, #8f979f); box-shadow: 0 0 0 2px var(--ink); }
.rail span { position: absolute; top: 18px; width: 8px; height: 56px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 2px, #c9ced3 2px 8px, var(--ink) 8px 10px, transparent 10px 12px); }
.rail span:first-child { left: 10%; }
.rail span:last-child { right: 10%; }
.sign { position: relative; background-color: var(--water); border-radius: 18px; padding: 10px;
  box-shadow: 0 0 0 2px var(--ink), inset 0 2px 0 rgba(255,255,255,.25), 0 16px 0 -6px rgba(0,0,0,.25), 0 20px 26px rgba(0,0,0,.28);
  background-image: radial-gradient(circle at 26px 26px, var(--ink) 0 5px, #e6e3da 5px 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 26px) 26px, var(--ink) 0 5px, #e6e3da 5px 8px, transparent 8.5px),
    radial-gradient(circle at 26px calc(100% - 26px), var(--ink) 0 5px, #e6e3da 5px 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 26px) calc(100% - 26px), var(--ink) 0 5px, #e6e3da 5px 8px, transparent 8.5px),
    linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%); }
.sign-in { border: 3px solid var(--white); border-radius: 12px; padding: 34px 52px 30px; color: var(--white); box-shadow: inset 0 0 0 5px var(--water), inset 0 0 0 7px var(--white); }
.chip { position: absolute; width: 40px; height: 40px; fill: #0d1424; z-index: 1; }
.chip-tl { top: 0; left: 0; border-top-left-radius: 18px; }
.chip-tr { top: 0; right: 0; width: 26px; height: 26px; }
.chip-br { bottom: 0; right: 0; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; font-weight: 700; font-size: .84rem; letter-spacing: .18em; text-transform: uppercase; }
.plate { display: inline-block; padding: 4px 10px 2px; font: 400 1rem/1.2 var(--display); letter-spacing: .04em; color: var(--water); background: var(--white); border-radius: 4px; }
.sign h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: .01em; margin-bottom: 16px; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.intro { font-size: 1.08rem; max-width: 46em; margin: 0; }
.sign .intro a { color: var(--white); }
.station-art { width: 100%; max-width: 340px; justify-self: center; display: block; margin-top: 20px; }

/* the stainless cabinet */
.cabinet { position: relative; margin-top: 30px; border-radius: 12px; padding: 60px 28px 28px;
  background-color: var(--steel);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 3px, rgba(0,0,0,.035) 3px 4px),
    linear-gradient(100deg, #b7bec5, #e2e5e8 35%, #c4cad0 60%, #dfe2e5 85%, #b3bac1);
  box-shadow: 0 0 0 2px var(--ink), 0 14px 0 -4px #3c4249, 0 22px 30px rgba(0,0,0,.3); }
.cabinet::before { content: ""; position: absolute; inset: 12px; pointer-events: none; border-radius: 6px;
  background: radial-gradient(circle at 6px 6px, var(--steeldk) 0 4px, transparent 4.5px) top left / 12px 12px no-repeat,
    radial-gradient(circle at 6px 6px, var(--steeldk) 0 4px, transparent 4.5px) top right / 12px 12px no-repeat,
    radial-gradient(circle at 6px 6px, var(--steeldk) 0 4px, transparent 4.5px) bottom left / 12px 12px no-repeat,
    radial-gradient(circle at 6px 6px, var(--steeldk) 0 4px, transparent 4.5px) bottom right / 12px 12px no-repeat; }
.maker { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); margin: 0; display: flex; gap: 10px; align-items: center;
  font: 400 .8rem/1 var(--display); letter-spacing: .14em; color: var(--white); background: var(--water); padding: 7px 14px; border-radius: 4px; box-shadow: 0 0 0 2px var(--ink); white-space: nowrap; }
.maker span + span { background: var(--white); color: var(--water); padding: 2px 6px; border-radius: 3px; }
.station { display: grid; grid-template-columns: 4fr 8fr; gap: 28px; align-items: start; }

/* the fill ticket (inputs) */
.ticket { position: sticky; top: 16px; background: var(--white); padding: 34px 22px 18px; margin-top: 12px;
  box-shadow: 0 0 0 1.5px var(--ink), 4px 6px 0 rgba(0,0,0,.18); border-radius: 2px; }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 9px;
  background: radial-gradient(circle at 6px 0, var(--steel) 0 4px, transparent 4.5px) top left / 12px 9px repeat-x; }
.clip { position: absolute; top: -18px; left: 50%; width: 92px; height: 30px; transform: translateX(-50%);
  background: linear-gradient(180deg, #3a4148, var(--ink)); border-radius: 6px 6px 3px 3px; box-shadow: inset 0 2px 0 rgba(255,255,255,.2); }
.clip::after { content: ""; position: absolute; left: 12px; right: 12px; top: -14px; height: 18px; border: 3px solid #8f979f; border-bottom: 0; border-radius: 10px 10px 0 0; }
.tk-head { display: flex; justify-content: space-between; border-bottom: 3px double var(--ink); padding-bottom: 6px; margin-bottom: 14px;
  font: 400 .78rem/1.2 var(--display); letter-spacing: .1em; color: var(--water); }
.ticket h2 { font-size: 1.6rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1.5px dashed #9aa2aa; }
.num { position: absolute; left: 0; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 400 1rem/1 var(--display); color: var(--white); background: var(--water); box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--water); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row > div { display: flex; flex-direction: column; justify-content: flex-end; }
label { display: block; font-weight: 600; font-size: .9rem; line-height: 1.3; margin-bottom: 5px; }
input, select { width: 100%; min-height: var(--hit); padding: 8px 10px; font: 600 1.08rem/1.2 var(--body); color: var(--ink);
  background: #fbfaf6; border: 2px solid var(--ink); border-radius: 4px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 30px; }
.hint { font-size: .9rem; margin: 10px 0 0; color: #3a4149; }
.err { background: #8a1c1c; color: var(--white); padding: 10px 14px; border-radius: 4px; font-weight: 600; margin: 8px 0 0; }
.tk-foot { margin: 14px 0 0; padding-top: 8px; border-top: 3px double var(--ink); text-align: center; font: 400 .72rem/1.2 var(--display); letter-spacing: .12em; color: var(--steeldk); }

/* the dispenser: readout plate, meter, cans */
.fill { display: grid; grid-template-columns: 7fr 9fr; grid-template-rows: auto 1fr; gap: 22px; align-items: start; }
.fig-meter { grid-column: 1; grid-row: 1; }
.readout { grid-column: 2; grid-row: 1 / span 2; }
.fig-cans { grid-column: 1; grid-row: 2; position: relative; margin-top: 26px; }
.fig-cans::before { content: ""; position: absolute; top: -30px; left: 50%; width: 22px; height: 30px; transform: translateX(-50%);
  background: linear-gradient(90deg, #8f979f, #e4e7ea 45%, #8f979f); border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 6px 6px; }
.fig { margin: 0; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { font-size: .86rem; line-height: 1.45; margin-top: 8px; }
.fig figcaption b { font: 400 .8rem/1 var(--display); color: var(--water); margin-right: 4px; }
.fig-meter figcaption { background: var(--glass); border: 1.5px solid var(--ink); border-radius: 4px; padding: 8px 10px; }
.readout { background: var(--white); border-radius: 6px; padding: 22px 22px 16px; margin: 10px;
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 9px var(--steeldk), 0 0 0 10.5px var(--ink), 6px 12px 0 2px rgba(0,0,0,.18); }
.readout h2 { font-size: 1.3rem; }
.warn { background: #fff3d6; border-left: 6px solid var(--amber); padding: 10px 12px; font-size: .95rem; }
.big { margin: 14px 0 12px; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
#swap { display: block; font: 400 clamp(1.9rem, 3vw, 2.3rem)/1.08 var(--display); color: var(--water); margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 16px; border: 2px solid var(--ink); border-radius: 4px; }
.facts > div { padding: 10px 12px; }
.facts > div + div { border-left: 2px solid var(--ink); background: var(--glass); }
.facts dt { font: 400 .72rem/1.2 var(--display); letter-spacing: .06em; color: var(--steeldk); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.facts dd.key { font: 400 1.6rem/1.1 var(--display); color: var(--amber); }
.fig-sight { margin: 4px 0 14px; }
#steps { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: .95rem; }
#steps th { text-align: left; font: 400 .72rem/1.2 var(--display); letter-spacing: .06em; color: var(--water); border-bottom: 2px solid var(--ink); padding: 6px 4px; }
#steps td { padding: 6px 4px; border-bottom: 1px solid #c9ced3; }
#steps tr:last-child td { font-weight: 700; }
.target { background: var(--glass); border: 1.5px dashed var(--amber); padding: 8px 12px; border-radius: 4px; }
#notes { margin: 0 0 12px; padding-left: 20px; font-size: .95rem; }
#notes:empty { display: none; }
.assume { font-size: .88rem; border-top: 1.5px dashed #9aa2aa; padding-top: 10px; margin: 0; }
.fig-cans { background-color: var(--mat); border-radius: 8px; padding: 18px 16px 12px; box-shadow: 0 0 0 2px var(--ink);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 3px, transparent 3px 12px); }
.fig-cans figcaption { color: var(--white); }
.fig-cans figcaption b { color: #9cc3ea; }
.cans svg { max-height: 300px; margin: 0 auto; }

/* drawing classes */
.m-bezel { fill: var(--steeldk); stroke: var(--ink); stroke-width: 2.5; }
.m-face { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.m-swap { fill: none; stroke: #9cc3ea; stroke-width: 14; }
.m-tick { stroke: var(--ink); stroke-width: 2; }
.m-minor { stroke: var(--ink); stroke-width: 1; }
.m-num { font: 600 14px var(--body); fill: var(--water); text-anchor: middle; }
.m-notch { fill: var(--water); }
.m-name { font: 400 12px var(--display); fill: var(--water); text-anchor: middle; letter-spacing: .08em; }
.m-sub { font: 500 11px var(--body); fill: var(--steeldk); text-anchor: middle; }
.m-odo { fill: var(--ink); }
.m-odo-t { font: 400 19px var(--display); fill: var(--white); text-anchor: middle; }
.m-needle { transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.m-needle path { fill: var(--amber); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.m-hub { fill: var(--water); stroke: var(--ink); stroke-width: 2; }
.m-end { font: 700 11px var(--body); fill: var(--ink); text-anchor: middle; }
.s-axis { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.s-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.s-last .s-line { stroke: var(--amber); stroke-width: 3.5; }
.s-grid { stroke: #dde1e5; stroke-width: 1; }
.s-lab { font: 500 12px var(--body); fill: #3a4149; text-anchor: end; }
.s-glass { fill: var(--pale); stroke: var(--ink); stroke-width: 2; }
.s-water { fill: var(--can); }
.s-cap { fill: var(--steeldk); stroke: var(--ink); stroke-width: 1.5; }
.s-ppm { font: 400 13px var(--display); fill: var(--water); text-anchor: middle; }
.s-last .s-ppm { fill: var(--amber); }
.s-name { font: 600 12px var(--body); fill: var(--ink); text-anchor: middle; }
.s-tap { stroke: var(--algae); stroke-width: 3; }
.s-taplab { font: 700 12px var(--body); fill: var(--algae); }
.s-tgt { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 7 5; }
.s-tgtlab { font: 700 12px var(--body); fill: var(--amber); }
.c-body { fill: var(--pale); stroke: var(--ink); stroke-width: 2; }
.c-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.c-water { fill: var(--can); }
.c-rib { stroke: #15191f; stroke-width: 1.2; opacity: .35; }
.c-hole { fill: var(--mat); stroke: var(--ink); stroke-width: 1.5; }
.c-cap { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.c-part { stroke: var(--white); stroke-width: 2; stroke-dasharray: 4 3; }
.c-note { font: 600 14px var(--body); fill: var(--white); }

/* reading matter: receipt and enamel plate */
.plates { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; margin-top: 44px; }
.receipt { position: relative; background: var(--white); padding: 24px 24px 34px; box-shadow: 4px 8px 0 rgba(0,0,0,.18); transform: rotate(-1deg); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: linear-gradient(135deg, var(--white) 50%, transparent 50%) 0 0 / 16px 12px repeat-x, linear-gradient(225deg, var(--white) 50%, transparent 50%) 0 0 / 16px 12px repeat-x; }
.rc-head { font: 400 .72rem/1.2 var(--display); letter-spacing: .12em; color: var(--steeldk); text-align: center; border-bottom: 2px dashed var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.receipt h2 { font-size: 1.25rem; }
.receipt p { font-size: .98rem; }
.enamel { position: relative; background-color: var(--glass); border-radius: 14px; padding: 30px 34px 22px;
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 8px var(--glass), inset 0 0 0 10.5px var(--water), 0 12px 22px rgba(0,0,0,.22);
  background-image: radial-gradient(circle at 18px 18px, var(--steeldk) 0 4px, transparent 4.5px), radial-gradient(circle at calc(100% - 18px) 18px, var(--steeldk) 0 4px, transparent 4.5px),
    radial-gradient(circle at 18px calc(100% - 18px), var(--steeldk) 0 4px, transparent 4.5px), radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), var(--steeldk) 0 4px, transparent 4.5px); }
.enamel .cols { columns: 2; column-gap: 34px; column-rule: 1.5px solid #c9ced3; }
.enamel .cols p { break-inside: avoid-column; }

/* questions: the cobalt board */
.board { margin-top: 44px; background: var(--water); color: var(--white); border-radius: 14px; padding: 30px 34px 22px; columns: 2 340px; column-gap: 40px;
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 8px var(--water), inset 0 0 0 10.5px var(--white), 0 12px 22px rgba(0,0,0,.25); }
.board h2 { color: var(--white); column-span: all; }
.board details { break-inside: avoid; border-top: 1.5px solid rgba(255,255,255,.45); padding: 6px 0 4px; }
.board summary { font-weight: 700; font-size: 1.02rem; line-height: 1.3; cursor: pointer; min-height: var(--hit); display: flex; align-items: center; gap: 10px; list-style: none; }
.board summary::-webkit-details-marker { display: none; }
.board { counter-reset: q; }
.board details { counter-increment: q; }
.board summary::before { content: counter(q); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 400 .8rem/1 var(--display); background: var(--white); color: var(--water); }
.board details p { margin: 4px 0 10px 38px; font-size: .97rem; }

/* shop: the price board at the counter */
.shop-guide { margin-top: 44px; background: var(--white); border-radius: 6px; padding: 0 30px 18px; box-shadow: 0 0 0 2px var(--ink), 6px 10px 0 rgba(0,0,0,.18); overflow: hidden; }
.board-head { margin: 0 -30px 18px; padding: 12px 30px; background: var(--ink); color: var(--white); font: 400 .9rem/1.2 var(--display); letter-spacing: .14em; border-bottom: 6px solid var(--can); }
.disc { font-size: .9rem; border-top: 1.5px dashed #9aa2aa; padding-top: 10px; }
.more { margin: 26px 0 0; background: var(--glass); display: inline-block; padding: 10px 16px; border-radius: 6px; box-shadow: 0 0 0 2px var(--ink); }

/* footer: the rubber drip mat */
.mat { background-color: var(--mat); color: var(--white); padding: 26px 16px 34px; border-top: 6px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 3px, transparent 3px 12px); }
.mat p { max-width: 1240px; margin: 0 auto; font-size: .92rem; }
.mat a { color: #b9e0bf; }

@media (max-width: 900px) {
  .mast { grid-template-columns: 1fr; }
  .station-art { max-width: 240px; margin-top: 4px; }
  .station, .plates { grid-template-columns: 1fr; }
  .ticket { position: relative; top: 0; }
  .fill { grid-template-columns: 1fr; }
  .readout, .fig-meter, .fig-cans { grid-column: 1; grid-row: auto; }
  .fig-meter { max-width: 420px; justify-self: center; width: 100%; }
  .enamel .cols { columns: 1; }
  .receipt { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wall { padding: 0 10px 28px; }
  .sign-hang { padding-top: 54px; }
  .rail { height: 54px; }
  .rail span { height: 40px; }
  .sign-in { padding: 26px 20px 22px; }
  .sign h1 { font-size: 1.85rem; }
  .station-art { max-width: 170px; }
  .cabinet { padding: 56px 10px 14px; }
  .ticket { padding: 30px 14px 14px; }
  .steps li { padding-left: 0; padding-top: 56px; }
  .num { top: 14px; }
  .readout { padding: 18px 14px 12px; }
  .enamel, .board { padding: 26px 20px 18px; }
  .shop-guide { padding: 0 18px 14px; }
  .board-head { margin: 0 -18px 16px; padding: 12px 18px; }
  .board details p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .m-needle { transition: none; }
}
