/* Baking Brad Studio design system — shared by every site (design/design.yaml). Tokens from the
   Parekio design system: warm near-black ground, warm off-white ink, one amber accent. Dark by
   default (the TV's theme), light on request. Each site adds its own rules in src/css/site.css. */

@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("../fonts/AtkinsonHyperlegibleMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --ground: #0E0F11;
  --surface: #17181B;
  --surface-raised: #22242A;
  --line: #30323A;
  --ink: #ECE8E1;
  --ink-muted: #A3A098;
  --ink-faint: #6E6C66;
  --focus: #F2B33D;
  --on-focus: #15130F;
  --on-focus-muted: #4A3A16;
  --accent-ink: #F2B33D;
  --danger: #FF8E72;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --page: 1120px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #F6F4F0; --surface: #FFFFFF; --surface-raised: #ECE9E3; --line: #D8D4CC;
    --ink: #17171A; --ink-muted: #5C5953; --ink-faint: #8C8880;
    --focus: #E9A52C; --on-focus: #17171A; --on-focus-muted: #4A3A16; --accent-ink: #8A5800;
    --danger: #B23A1E; --shadow: 0 16px 48px rgba(23, 23, 26, 0.18);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ground: #F6F4F0; --surface: #FFFFFF; --surface-raised: #ECE9E3; --line: #D8D4CC;
  --ink: #17171A; --ink-muted: #5C5953; --ink-faint: #8C8880;
  --focus: #E9A52C; --on-focus: #17171A; --on-focus-muted: #4A3A16; --accent-ink: #8A5800;
  --danger: #B23A1E; --shadow: 0 16px 48px rgba(23, 23, 26, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--surface-raised); padding: 2px 6px; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; padding: 1px 7px; border-radius: var(--radius-sm); background: var(--surface); white-space: nowrap; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; overflow-x: auto; }
pre code { background: none; padding: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink-muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-md); font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .buy { background: var(--focus); color: var(--on-focus); font-weight: 600; }
.nav .buy:hover { background: var(--focus); color: var(--on-focus); filter: brightness(1.06); }
@media (max-width: 720px) {
  .top .wrap { flex-wrap: wrap; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: -10px; width: calc(100% + 10px); flex-wrap: wrap; gap: 2px; }
  .nav a { padding: 6px 10px; font-size: 15px; white-space: nowrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: var(--radius-md); font-weight: 600; font-size: 18px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--focus); color: var(--on-focus); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--surface-raised); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* The big square download button in a download box (bcoleman.net and the Download page). */
.btn-square { flex-direction: column; justify-content: center; text-align: center; gap: 14px; width: 100%; min-height: 220px; padding: 24px; border-radius: var(--radius-lg); font-size: 22px; line-height: 1.2; box-shadow: var(--shadow); }
.btn-square svg { width: 44px; height: 44px; }
.btn-square span { display: block; }
@media (max-width: 720px) { .btn-square { min-height: 140px; } }

/* Download boxes: the details start at the top, level with the download button. */
.price-card.top { align-items: start; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.price-card.top .actions { display: block; }
@media (max-width: 720px) { .price-card.top { grid-template-columns: 1fr; } }
.price-card.top h2 { margin-top: 0; }
.price-card.top .facts { grid-template-columns: minmax(110px, auto) 1fr; }
.price-card.top .facts code { white-space: nowrap; }


/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lede { font-size: 22px; color: var(--ink-muted); max-width: 34em; }
.hero .by { font-size: 15px; color: var(--ink-muted); margin-top: 18px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.02em; margin-bottom: 16px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* TV illustration: the Roku Home screen, drawn in HTML. */
.tv { aspect-ratio: 16 / 9; background: #0E0F11; color: #ECE8E1; border-radius: 14px; border: 10px solid #1b1c20; box-shadow: var(--shadow); padding: 3.4% 5%; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; container-type: inline-size; font-family: var(--sans); }
.tv-head { display: flex; align-items: center; gap: 2.2cqi; border-bottom: 2px solid #30323A; padding-bottom: 1.8cqi; margin-bottom: 2cqi; }
.tv-head img { width: 5cqi; }
.tv-head strong { font-size: 4.2cqi; }
.tv-head span { margin-left: auto; color: #A3A098; font-size: 2.2cqi; }
.tv-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4cqi; min-height: 0; }
.tv-rows { display: grid; gap: 0.5cqi; align-content: start; }
.tv-row { display: flex; align-items: baseline; justify-content: space-between; padding: 0.9cqi 2cqi; border-radius: 1cqi; font-size: 2.8cqi; line-height: 1.35; font-weight: 500; }
.tv-row small { font-size: 2.1cqi; color: #A3A098; }
.tv-row.on { background: #F2B33D; color: #15130F; }
.tv-row.on small { color: #4A3A16; }
.tv-side h4 { margin: 0 0 1.4cqi; font-size: 2cqi; letter-spacing: 0.08em; color: #A3A098; }
.tv-card { background: #17181B; border-radius: 1cqi; padding: 1.6cqi 2cqi; margin-bottom: 1.2cqi; font-size: 2.4cqi; }
.tv-card small { display: block; color: #A3A098; font-size: 1.9cqi; }
.tv-bar { height: 0.6cqi; border-radius: 1cqi; background: #34363D; margin-top: 1cqi; overflow: hidden; }
.tv-bar i { display: block; height: 100%; background: #F2B33D; }
.tv-hints { display: flex; gap: 3cqi; color: #A3A098; font-size: 2cqi; margin-top: 1.4cqi; }
.tv-hints b { border: 1px solid #30323A; border-radius: 0.6cqi; padding: 0 0.8cqi; color: #ECE8E1; font-weight: 600; margin-right: 0.8cqi; }
.figure-note { font-size: 14px; color: var(--ink-faint); margin-top: 10px; text-align: center; }

/* Sections */
section.band { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head p { color: var(--ink-muted); font-size: 19px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
/* Roku themes: a tiny Home in each theme's own colours (fixed, whatever the page theme). */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .themes { grid-template-columns: repeat(2, 1fr); } }
.theme h3 { margin: 12px 0 4px; font-size: 19px; }
.theme p { margin: 0; font-size: 15px; color: var(--ink-muted); }
.theme-tv { aspect-ratio: 16 / 9; background: var(--g); border-radius: var(--radius-md); border: 1px solid var(--line); padding: 9% 9% 0; display: grid; align-content: start; gap: 4%; container-type: inline-size; }
.theme-tv i { font-style: normal; font-weight: 600; font-size: 7.5cqi; color: var(--i); padding: 2.5cqi 4cqi; border-radius: 2.5cqi; }
.theme-tv i.on { background: var(--f); color: var(--of); }
.theme-tv b { display: block; height: 2cqi; width: 55%; margin: 4cqi 0 0 4cqi; background: var(--t); border-radius: 1cqi; overflow: hidden; }
.theme-tv s { display: block; height: 100%; width: 60%; background: var(--p); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .glyph { width: 40px; height: 40px; color: var(--accent-ink); margin-bottom: 14px; }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--focus); color: var(--on-focus); display: grid; place-items: center; font: 600 20px var(--mono); }
.step h3 { margin-bottom: 4px; }

/* Lists of facts */
.facts { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; margin: 0; }
.facts dt { color: var(--ink-muted); }
.facts dd { margin: 0; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 2px 0; } .facts dd { margin-bottom: 10px; } }

/* Pricing */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.price { font: 700 56px/1 var(--sans); }
.price small { font-size: 18px; color: var(--ink-muted); font-weight: 400; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
@media (max-width: 720px) { .price-card { grid-template-columns: 1fr; } }

/* Docs pages */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 72px; }
.doc nav { position: sticky; top: 96px; align-self: start; font-size: 15px; }
.doc nav strong { display: block; color: var(--ink-muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.doc nav a { display: block; color: var(--ink-muted); text-decoration: none; padding: 5px 0; }
.doc nav a:hover { color: var(--ink); }
.doc article { min-width: 0; max-width: 46em; }
.doc article h1 { font-size: clamp(34px, 5vw, 52px); }
.doc article h2 { margin-top: 56px; padding-top: 8px; font-size: 30px; }
.doc article h3 { margin-top: 28px; }
.doc article li { margin-bottom: 6px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 0; } .doc nav { position: static; margin-bottom: 24px; } }

.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 20px; margin: 20px 0; }
.callout strong:first-child { color: var(--accent-ink); }
.callout.warn strong:first-child { color: var(--danger); }
.callout code.hash { display: block; margin-top: 8px; font-size: 15px; word-break: break-all; user-select: all; }
table { border-collapse: collapse; width: 100%; margin: 16px 0 24px; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }

/* Footer */
footer.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-muted); font-size: 15px; }
footer.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
footer.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.foot a { color: var(--ink-muted); }
.tmdb { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.tmdb img { width: 120px; height: auto; }
@media (max-width: 720px) { footer.foot .wrap { grid-template-columns: 1fr; } }

/* Forms: the support/contact form used on every site (PLAN §4.13). */
form.contact { display: grid; gap: 8px; }
form.contact label { font-weight: 600; font-size: 16px; margin-top: 8px; }
form.contact .optional { font-weight: 400; color: var(--ink-muted); }
form.contact input, form.contact textarea, form.contact select { font: inherit; font-size: 17px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; width: 100%; }
form.contact input[type="file"] { padding: 10px 14px; }
form.contact textarea { resize: vertical; min-height: 140px; }
form.contact input:focus-visible, form.contact textarea:focus-visible, form.contact select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
form.contact .actions { margin: 12px 0 0; }
form.contact p.optional { margin: 0; font-size: 15px; }
/* The hidden field only spam bots fill in; people never see it. */
form.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* The answer shown under the button after sending (assets/forms.js). */
.form-status { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-md); font-size: 16px; border: 1px solid var(--line); background: var(--surface); }
.form-status.ok { border-color: var(--focus); }
.form-status.error { border-color: var(--danger); color: var(--danger); }
.form-status.sending { color: var(--ink-muted); }

/* bcoleman.net (Baking Brad Studio): this site's additions to the shared design system
   (design/css). The build puts the design system first, then this file. */
.brand .studio-mark { width: 30px; height: 30px; color: var(--accent-ink); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card .status { font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.card.later { background: transparent; }
.card.later .status { color: var(--ink-muted); }
.more { margin-top: 28px; }
.lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 0.4em; }
.lockup img { width: 48px; height: 48px; }
.lockup h2 { margin: 0; }
section.band.first { border-top: 0; padding-top: 72px; }
section.band.slim { padding: 40px 0; }
.card.strip { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.card.strip p { margin: 0; font-size: 20px; }
