/* Colors live here. Change these to re-theme the whole site. */
:root {
  --bg: #000;
  --fg: #fff;
  --accent: #ffd200;      /* board amber */
  --blue: #1f4fd8;
  --rule: #444;
  --muted: #c8c8c8;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px; z-index: 9; }
img { max-width: 100%; }

h1, h2, h3 { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0 0 .5rem; color: var(--accent); }
h2 { font-size: 1.2rem; margin: 2.75rem 0 .75rem; color: var(--accent); }
h2::before { content: "▌"; margin-right: .35rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 .25rem; }

/* Header */
.top { border-bottom: 3px solid var(--accent); }
.top .in { max-width: 78rem; margin: 0 auto; padding: .7rem 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; }
.brand { font: 700 1rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; text-decoration: none; }
.brand b { background: var(--accent); color: #000; padding: .1rem .4rem; margin-right: .1rem; }
.brand { display: inline-flex; align-items: center; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.top nav a { color: #fff; font-weight: 600; white-space: nowrap; }

/* Two columns: main + narrow sidebar */
.wrap { max-width: 78rem; margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; }
.main { padding: 2rem 0 4rem; max-width: 48rem; }
.side { padding: 2rem 0; }
.side .panel { background: var(--blue); color: #fff; padding: 1.25rem; }
.side h2 { color: #fff; margin-top: 0; }
.side h2::before { content: none; }
.side a { color: #fff; }
@media (max-width: 860px) { .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; } .side { padding-top: 0; } }
.main, .page, .side { min-width: 0; overflow-wrap: break-word; }


.lede { font-size: 1.25rem; margin: .25rem 0 0; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.btn { display: inline-block; padding: .6rem 1.1rem; font-weight: 700; text-decoration: none; border: 3px solid var(--accent); background: var(--accent); color: #000; }
.btn:hover { background: #000; color: var(--accent); }
.btn.alt { background: transparent; color: var(--accent); }
.btn.alt:hover { background: var(--accent); color: #000; }
.btn.off { background: transparent; color: var(--muted); border-color: var(--rule); border-style: dashed; }


.ph { border: 2px dashed var(--rule); color: var(--muted); padding: 2.5rem 1rem; text-align: center; font-size: .95rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1rem 0; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin: .7rem 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 1.8rem; height: 1.8rem; background: var(--accent); color: #000;
  font: 700 1rem/1.8rem var(--mono); text-align: center; }

dl.modes { margin: 0; }
dl.modes dt { font-weight: 700; margin-top: .75rem; }
dl.modes dd { margin: 0; }

table { border-collapse: collapse; width: 100%; margin: .75rem 0; }
th, td { border-bottom: 1px solid var(--rule); padding: .5rem .5rem .5rem 0; text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--accent); color: var(--accent); font-family: var(--mono); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
tbody th { font-weight: 600; width: 38%; }
.models td, .models th { width: auto; }
code { font-family: var(--mono); background: #1d1d1d; padding: 0 .3em; }

.box { border: 2px solid var(--accent); padding: .25rem 1.1rem 1rem; margin: 1rem 0; }
.small, .note { font-size: .92rem; color: var(--muted); }
.links { list-style: none; padding: 0; margin: .5rem 0; }
.links li { padding: .45rem 0; border-top: 1px solid var(--rule); }
.links li:first-child { border-top: 0; }

/* Sidebar project cards */
.proj { display: block; text-decoration: none; border-top: 2px solid rgba(255,255,255,.5); padding: 1rem 0 .5rem; }
.proj .hd { display: flex; gap: .75rem; align-items: center; }
.proj img { width: 52px; height: 52px; border-radius: 11px; flex: none; }
.proj .name { font: 700 1.15rem var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.proj .url { display: block; text-decoration: underline; font-size: .95rem; }
.proj p { margin: .5rem 0 0; font-size: .97rem; }
.proj:hover .url { text-decoration-thickness: 3px; }

.page { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
footer { border-top: 3px solid var(--accent); }
footer .in { max-width: 78rem; margin: 0 auto; padding: 1rem 1.25rem 2rem; font-size: .92rem; color: var(--muted); }
footer a { color: #fff; }

/* Two ways to use it */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 .5rem; }
.uses > div { border: 2px solid var(--accent); padding: .75rem 1rem; }
.uses p { margin: .35rem 0; }
h2.plain { margin: 0; font-size: 1.05rem; }
h2.plain::before { content: none; }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

/* Owner bar under the header */
.ownerbar { background: var(--accent); color: #000; font-size: .95rem; }
.ownerbar .in { max-width: 78rem; margin: 0 auto; padding: .5rem 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.1rem; }
.ownerbar strong { font-family: var(--mono); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; color: #000; }
.ownerbar a { color: #000; }
.ownerbar :focus-visible { outline-color: #000; }
.ownerbar a { white-space: nowrap; }
.ownerbar .btn { padding: .2rem .7rem; border-width: 2px; }
.ownerbar .btn[hidden], .ownerbar a[hidden] { display: none; }

/* Sticky header; anchor jumps land below it */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); }
html { scroll-padding-top: 5.5rem; }
@media (max-width: 560px) { html { scroll-padding-top: 8.5rem; } }

/* Photos */
.photo { margin: 1.25rem 0; }
.photo img { display: block; width: 100%; height: auto; border: 1px solid #555; }
.photo figcaption { font-size: .92rem; color: var(--muted); margin-top: .4rem; }
.photo.hero { margin: 1.5rem 0 1rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery .photo { margin: .5rem 0; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.caption { font-size: .9rem; color: var(--muted); margin-top: -.5rem; }
.photo figcaption strong { color: var(--fg); }
.presets { grid-template-columns: repeat(3, 1fr); }
.presets figcaption { font-size: .85rem; }
@media (max-width: 640px) { .presets { grid-template-columns: 1fr 1fr; } }
.presets .photo img + img { margin-top: 4px; }
.photo.real img { border: 0; }
.gallery.vertical { grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.gallery.vertical figcaption { font-size: .85rem; }
@media (max-width: 640px) { .gallery.vertical { grid-template-columns: repeat(3, 1fr); } }
.ownerbar #quick-dl, .ownerbar #quick-dl-text { font-weight: 700; }

/* User manual */
.toc { border: 2px solid var(--rule); padding: .5rem 1.25rem 1rem; margin: 1.5rem 0 2rem; }
.toc ol { columns: 2; column-gap: 2rem; margin: .5rem 0 0; padding-left: 1.25rem; }
.toc li { break-inside: avoid; padding: .1rem 0; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.thumb { display: block; width: 192px; max-width: 100%; height: auto; border: 1px solid #555; }
.guide h3 { margin-top: 1.75rem; }
/* Price bar under the hero photo */
.buybar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; border: 3px solid var(--accent); padding: .75rem 1rem; margin: 1rem 0 0; }
.buybar p { margin: 0; flex: 1 1 14rem; }
.buybar .amt { flex: 0 0 auto; font: 700 2rem/1 var(--mono); color: var(--accent); }

/* Buy panel: the most prominent block on the page */
.buy { background: var(--accent); color: #000; padding: 1.25rem 1.5rem 1rem; margin: 3rem 0 0; }
.buy h2 { color: #000; margin-top: 0; }
.buy h2::before { color: #000; }
.buy a { color: #000; }
.buy .price { margin: .25rem 0 .5rem; font-weight: 700; }
.buy .amt { font: 700 2.6rem/1 var(--mono); margin-right: .5rem; vertical-align: -.2rem; }
.buy ul { margin: .5rem 0 1rem; padding-left: 1.25rem; }
.buy .small { color: #222; }
.buy code, .owners code { background: rgba(0,0,0,.1); color: #000; }
.buy .bundle { border: 3px solid #000; padding: .6rem .9rem; margin: 1rem 0; }
.buy .btn { background: #000; color: var(--accent); border-color: #000; font-size: 1.1rem; padding: .7rem 1.4rem; }
.buy .btn:hover { background: transparent; color: #000; }

/* Owners: a full-width light band, clearly a different area from the sales content */
.owners { background: #efefef; color: #111; border-top: 8px solid var(--accent); padding: 2rem 0 2.5rem; }
.owners .in { max-width: 78rem; margin: 0 auto; padding: 0 1.25rem; }
.owners h2 { color: #000; margin: 0 0 .25rem; font-size: 1.6rem; }
.owners h2::before { color: #000; }
.owners .lede { color: #111; margin: 0 0 1.5rem; }
.owners h3 { color: #000; margin: 1.75rem 0 .4rem; }
.owners .ocols > div > h3:first-child { margin-top: 0; }
.owners .ocols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; }
.owners a { color: #1036a8; }
.owners .small, .owners .note { color: #333; }
.owners th, .owners td { border-bottom-color: #bbb; }
.owners thead th { color: #000; border-bottom-color: #000; }
.owners .links li { border-top-color: #ccc; }
.owners .btn { color: #000; }
.owners .btn:hover { background: #000; color: var(--accent); border-color: #000; }
.owners .btn.off { color: #555; border-color: #999; background: transparent; }
@media (max-width: 860px) { .owners .ocols { grid-template-columns: minmax(0, 1fr); } }
.hash, #fw-rows a { word-break: break-all; }

/* Phones */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .top .in { padding: .55rem 1rem; gap: .35rem 1rem; }
  .top nav { gap: .15rem .9rem; font-size: .95rem; }
  .ownerbar .in { padding: .45rem 1rem; gap: .2rem .9rem; font-size: .9rem; }
  .wrap { padding: 0 1rem; }
  .main { padding-top: 1.25rem; }
  .page { padding: 1.25rem 1rem 3rem; }
  .lede { font-size: 1.1rem; }
  table { display: block; overflow-x: auto; }
  .buy { padding-left: 1rem; padding-right: 1rem; margin-left: -1rem; margin-right: -1rem; }
  .owners .in { padding: 0 1rem; }
  .buy .amt { font-size: 2.2rem; }
  .steps li { padding-left: 2.3rem; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, .ownerbar, .skip, footer, .side { display: none; }
  .buy, .owners { background: #fff; color: #000; border: 2px solid #000; }
  a { color: #000; }
  h1, h2, h3, h2::before { color: #000; }
  h2 { break-after: avoid; } table, figure { break-inside: avoid; }
  .steps li::before { background: #000; color: #fff; }
  code { background: #eee; }
  thead th { color: #000; border-bottom-color: #000; }
  th, td { border-color: #999; }
  .small, .note, .caption, .photo figcaption { color: #333; }
  .toc { border-color: #000; }
  .no-print { display: none; }
  .photo img, .thumb { border-color: #999; }
}

/* Buy button in the sticky header, and buy card in the sidebar */
.top nav a.navbuy { background: var(--accent); color: #000; padding: .05rem .55rem; text-decoration: none; }
.top nav a.navbuy:hover { background: #fff; }
.sidebuy { border: 3px solid var(--accent); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.sidebuy .amt { font: 700 2.2rem/1 var(--mono); color: var(--accent); margin: 0 0 .4rem; }
.sidebuy p { margin: 0 0 .75rem; }
.side .sidebuy .btn { color: #000; }
.side .sidebuy .btn:hover { color: var(--accent); background: #000; }
@media (max-width: 860px) { .sidebuy { display: none; } }
@media (max-width: 440px) { .top nav .hide-sm { display: none; } }
.proj .cta a::before { content: "→\00a0"; display: inline-block; text-decoration: none; }
