/* hfsignals.com: a workbench look. Paper and ink, one teal for links,
   amber only for buying. System fonts, so the page asks for nothing
   from anyone else's server. */

:root {
  --paper: #faf9f6;
  --panel: #f1efe9;
  --ink: #1a1a1a;
  --muted: #5b6168;
  --rule: #d9d6ce;
  --link: #006a80;
  --buy: #e06000;
  --buy-ink: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --measure: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121416; --panel: #1b1e21; --ink: #e8e6e1; --muted: #9aa0a6;
    --rule: #2c3035; --link: #5cc0d4; --buy: #ff8a3d; --buy-ink: #121416;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121416; --panel: #1b1e21; --ink: #e8e6e1; --muted: #9aa0a6;
  --rule: #2c3035; --link: #5cc0d4; --buy: #ff8a3d; --buy-ink: #121416;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.6rem 0 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
code, .num, .mono { font-family: var(--mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--measure); }
.muted { color: var(--muted); }

.preview {
  background: repeating-linear-gradient(45deg, #f6d36b, #f6d36b 12px, #f2c94c 12px, #f2c94c 24px);
  color: #1a1a1a; text-align: center; font: 600 14px/1.4 var(--sans); padding: 6px 16px;
}

/* the top bar */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.mark { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; font-size: 15px; margin: 0; }
nav { display: flex; gap: 4px 18px; flex-wrap: wrap; flex: 1; }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 4px 0; }
nav a:hover { color: var(--link); }
nav a.buy { color: var(--buy); font-weight: 650; }
.theme { background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 6px;
  width: 34px; height: 34px; font-size: 16px; cursor: pointer; }

/* the opening of a page */
.lede { padding: 44px 0 8px; }
.lede p.say { font-size: 1.25rem; line-height: 1.5; max-width: 60ch; margin: 0.4rem 0 0; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.4rem; }

/* products on the home page */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 18px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 1px solid var(--rule); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card p { font-size: 15px; margin: 0 0 10px; }
.card .facts { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: auto 0 10px; }
.price { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.price small { font-weight: 400; color: var(--muted); }

/* a product page: the photo beside its key facts */
.product-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; padding: 32px 0 8px; }
.product-head figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
dl.key { margin: 0; border-top: 1px solid var(--rule); }
dl.key div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
dl.key dt { color: var(--muted); font-size: 14px; }
dl.key dd { margin: 0; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.buyrow { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; flex-wrap: wrap; }
.button { display: inline-block; background: var(--buy); color: var(--buy-ink); text-decoration: none;
  font-weight: 650; padding: 10px 18px; border-radius: 4px; }
.button:hover { filter: brightness(1.05); }
.note { font-size: 14px; color: var(--muted); }

table.spec { border-collapse: collapse; width: 100%; max-width: 820px; font-size: 15px; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
table.spec th { font-weight: 500; color: var(--muted); width: 13em; }
table.spec td { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; }
.screens img { border: 1px solid var(--rule); image-rendering: pixelated; width: 100%; }
.modes { margin: 0 0 1rem; border-top: 1px solid var(--rule); }
.modes div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.modes dt { font-family: var(--mono); font-weight: 700; font-size: 14px; padding-top: 2px; }
.modes dd { margin: 0; font-size: 15px; }
.cards.big { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.band .screens { max-width: none; }
.faq dt { font-weight: 650; margin-top: 1rem; }
.faq dd { margin: 0.2rem 0 0; }
.limits li { margin-bottom: 0.3rem; }

.band { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 44px 0 0; padding: 8px 0 26px; }
.band h2 { border-top: 0; }

.foot { border-top: 1px solid var(--rule); margin-top: 56px; padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot p { margin: 0 0 6px; }

@media (max-width: 760px) {
  .cards.big { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .product-head, .two, .screens, .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  dl.key div { grid-template-columns: 8em 1fr; }
  table.spec th { width: 9em; }
  nav { order: 3; flex-basis: 100%; gap: 2px 14px; padding-bottom: 8px; }
  .lede { padding-top: 28px; }
}

/* out of the box: three things the radios do without a computer */
.oob { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 18px 0 8px; }
.oob > div { border-top: 3px solid var(--link); padding-top: 10px; }
.oob h3 { margin: 0 0 6px; font-size: 1.1rem; }
.oob p { font-size: 15px; margin: 0; }
.wrap > .oob { margin-top: 28px; }

/* the Buy page */
.buylist { border-top: 1px solid var(--rule); margin: 8px 0 24px; }
.buyitem { display: grid; grid-template-columns: 200px 1fr 220px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.buyitem img { aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); border-radius: 4px; }
.buyitem h2 { border-top: 0; margin: 0 0 6px; padding: 0; font-size: 1.2rem; }
.buyitem h2 a { color: var(--ink); text-decoration: none; }
.buyitem p { font-size: 15px; margin: 0 0 8px; }
.buyitem .facts { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pay .price { font-size: 1.3rem; margin-bottom: 10px; }
.pay .price small { font-size: 13px; }
.pay .group { margin-top: 18px; font-size: 1.05rem; }
.pay form { margin: 0 0 8px; }
button.button { border: 0; font: inherit; font-weight: 650; cursor: pointer; }
button.button:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 760px) {
  .oob { grid-template-columns: 1fr; gap: 16px; }
  .buyitem { grid-template-columns: 1fr; gap: 12px; }
  .buyitem img { max-width: 320px; }
}

/* archive pages: a status note, then the old page as it was */
.status { border-left: 4px solid var(--buy); background: var(--panel); padding: 12px 16px; margin: 16px 0 8px; max-width: var(--measure); }
.status p { margin: 0 0 6px; }
.status p:last-child { margin: 0; }
.archived img { margin: 12px 0; border: 1px solid var(--rule); }
.archived figure { margin: 16px 0; }
.archived table { border-collapse: collapse; margin: 0 0 1rem; font-size: 15px; }
.archived td, .archived th { border: 1px solid var(--rule); padding: 4px 8px; vertical-align: top; }
.archived h1 { font-size: 1.5rem; margin-top: 1.5rem; }
.archived h2 { font-size: 1.25rem; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 16px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* screenshots from the radios, a gallery */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 16px 0 8px; }
.shots.panel { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shots figure { margin: 0; }
.shots img { width: 100%; border: 1px solid var(--rule); background: #000; }
/* the radios' photos are wider than the kits': show the whole front panel */
.cards.big .card img { aspect-ratio: 5 / 3; }

.video { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* each card's way to its product page */
.card .go { align-self: flex-start; margin-top: 2px; }

/* the wBitx card with its video beside it */
.with-video { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 22px; align-items: start; margin: 18px 0 8px; }
@media (max-width: 760px) { .with-video { grid-template-columns: 1fr; } }
