/* SpaceDragon · "Premium Grade" edition
   Warm cheese palette, serif display headings, soft shadows and generous
   radii, adapted from the "Premium Grade Cheese" pen (Vanessa Victorino, MIT;
   see THIRD-PARTY-NOTICES.txt). Approved as a change to the original
   neo-brutalist plan. Class names are unchanged, so the pages need no edits. */
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* cheese palette */
  --cream: #F5EEDF;
  --paper: #FFFAF0;
  --ink: #171512;
  --muted: #716B61;
  --stage: #EEE3CB;
  --cheese: #F6C94C;
  --cheese-light: #FFE27A;
  --cheese-dark: #D89E22;
  --cheese-edge: #B97916;
  --line: rgba(23, 21, 18, .16);
  --line-strong: rgba(23, 21, 18, .28);

  /* legacy names used by the templates, mapped onto the cheese palette */
  --bg-cream: var(--cream);
  --black: var(--ink);
  --white: var(--paper);
  --brand-yellow: var(--cheese);
  --brand-green: var(--cheese-light);
  --brand-pink: var(--cheese-dark);
  --brand-blue: var(--ink);
  --tint-yellow: #FFF1C4;
  --tint-green: #F8EDCF;
  --tint-pink: #F6E3BF;
  --tint-blue: var(--stage);

  /* structure */
  --border: 1px solid var(--line);
  --border-ink: 2px solid var(--ink);
  --radius: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 10px 28px rgba(45, 35, 20, .08), 0 2px 6px rgba(45, 35, 20, .05);
  --shadow-lg: 0 35px 80px rgba(45, 35, 20, .12), 0 8px 24px rgba(45, 35, 20, .07);

  /* type */
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --page: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(23, 21, 18, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, .025) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--cheese-dark); outline-offset: 4px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 8px 16px; background: var(--cheese); border-radius: var(--pill); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
}

h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: .9; letter-spacing: -.035em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: .98; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; }

.soft { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cheese-dark); }
.band--black .soft { color: var(--cheese-light); }
.band:not(.band--black) .soft, .card .soft { color: var(--cheese-dark); }

.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: #514C44; max-width: 62ch; }
.prose { max-width: 70ch; display: grid; gap: 1.1em; color: #3D3830; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head .lead { margin-top: 16px; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 250, 240, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--font-sans); font-size: .82rem; font-weight: 700; letter-spacing: .18em; }
.brand__mark { width: 44px; height: 44px; padding: 7px; border: var(--border-ink); border-radius: 50%; object-fit: contain; background: var(--paper); }
.topbar__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar__nav a:not(.btn) {
  padding: 8px 14px; border: 1px solid transparent; border-radius: var(--pill);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.topbar__nav a:not(.btn):hover { background: var(--stage); }
.topbar__nav a[aria-current="page"]:not(.btn) { border-color: var(--ink); }
.topbar__nav .btn { margin-left: 12px; min-height: 42px; padding: 8px 18px; font-size: .72rem; }

.topbar__toggle { display: none; margin-left: auto; width: 48px; height: 48px; padding: 0; background: var(--paper); border: var(--border-ink); border-radius: 50%; cursor: pointer; }
.topbar__burger, .topbar__burger::before, .topbar__burger::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); content: ""; border-radius: 2px; }
.topbar__burger { position: relative; }
.topbar__burger::before { position: absolute; top: -6px; }
.topbar__burger::after { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border: 1px solid var(--ink); border-radius: var(--pill);
  background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; line-height: 1.2;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--black, .btn--blue { background: var(--ink); color: var(--paper); }
.btn--black:hover, .btn--blue:hover { background: #2B2721; }
.btn--yellow, .btn--green { background: var(--cheese); border-color: var(--cheese-edge); }
.btn--yellow:hover, .btn--green:hover { background: var(--cheese-light); }
.btn--pink { background: var(--cheese-dark); border-color: var(--cheese-edge); color: var(--ink); }
.btn--pink:hover { background: var(--cheese); }
.btn--ghost { background: var(--paper); }
.btn--ghost:hover { background: var(--stage); }
.btn small { font-size: .9em; letter-spacing: .04em; text-transform: none; opacity: .75; }
.band--black .btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- chips, stickers, seals ---------- */
.chip, .sticker {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--ink); border-radius: var(--pill); background: transparent;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
}
.chip--black { background: var(--ink); color: var(--paper); }
.chip--yellow { background: var(--cheese); border-color: var(--cheese-edge); }
.chip--green { background: var(--cheese-light); border-color: var(--cheese-edge); }
.chip--pink { background: var(--cheese-dark); border-color: var(--cheese-edge); }
.chip--blue { background: var(--stage); }
.stickers { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sticker--yellow, .sticker--green, .sticker--blue { background: var(--paper); }

.seal {
  position: absolute; z-index: 4;
  display: grid; place-content: center; text-align: center;
  width: 92px; height: 92px;
  background: var(--paper); color: var(--ink);
  border: var(--border-ink); border-radius: 50%;
  transform: rotate(8deg);
}
.seal strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.55rem; line-height: 1; }
.seal span { margin-top: 3px; font-family: var(--font-mono); font-size: .52rem; letter-spacing: .12em; text-transform: uppercase; }

.tag { display: inline-block; padding: 4px 12px; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- stage (logo / product backdrops) ---------- */
.logo-frame, .product-hero__media, .cheese-stage, .card__media {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .9), transparent 55%), var(--stage);
}
.logo-frame::before, .logo-frame::after, .product-hero__media::before, .product-hero__media::after, .cheese-stage::before, .cheese-stage::after {
  content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(23, 21, 18, .08); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.logo-frame::before, .product-hero__media::before, .cheese-stage::before { width: 86%; aspect-ratio: 1; }
.logo-frame::after, .product-hero__media::after, .cheese-stage::after { width: 64%; aspect-ratio: 1; }

/* ---------- home hero ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 104px); text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.logo-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.logo-frame {
  display: grid; place-items: center;
  width: min(440px, 82vw); aspect-ratio: 1 / .9; margin: 0; padding: 48px;
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.logo-frame img { position: relative; z-index: 2; width: 54%; }
.logo-frame .seal { top: 24px; right: 24px; }
.hero__title {
  margin-top: clamp(36px, 5vw, 60px);
  font-size: clamp(3rem, 11vw, 9rem); line-height: .86; letter-spacing: -.045em;
}
.hero__title .soft { display: inline; }
.slogan {
  display: inline-block; margin-top: 26px; padding: 9px 18px;
  border: 1px solid var(--ink); border-radius: var(--pill);
  font-family: var(--font-mono); font-size: clamp(.78rem, 1.6vw, .95rem); letter-spacing: .04em;
}
.slogan mark { padding: 1px 5px; border-radius: 6px; background: var(--cheese); color: var(--ink); }
.hero .lead { margin: 24px auto 0; }
.hero .actions { justify-content: center; margin-top: 32px; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--ink); color: var(--cheese-light); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .2em; }
.ticker__track { display: flex; gap: 30px; width: max-content; padding: 16px 0; animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 22px; border-bottom: var(--border);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.card__head code { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; color: var(--cheese-dark); }
.card__media { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 26px; border-bottom: var(--border); }
.card__media img { position: relative; z-index: 1; max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(67, 47, 14, .18)); transition: transform 300ms var(--ease); }
a.card:hover .card__media img { transform: scale(1.04) rotate(-1deg); }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 22px; flex: 1; }
.card__body p { font-size: .92rem; color: var(--muted); }
.card__cta { margin-top: auto; padding-top: 12px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.card__cta span { display: inline-block; transition: transform 150ms var(--ease); }
a.card:hover .card__cta span { transform: translateX(4px); }

/* product tones: gentle cheese shades for the image backdrops */
.tone-blue .card__media { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.9), transparent 55%), var(--stage); }
.tone-yellow .card__media { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.85), transparent 55%), var(--tint-yellow); }
.tone-pink .card__media { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.85), transparent 55%), var(--tint-pink); }
.tone-green .card__media { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.85), transparent 55%), var(--tint-green); }
.tile { background: var(--cheese); }
.tone-blue.tile { background: var(--stage); }
.tone-pink.tile { background: var(--cheese-dark); }
.tone-green.tile { background: var(--cheese-light); }

.card--soon { background: var(--paper); }
.card--soon .card__head code { color: var(--muted); }
.card--soon h3 { color: var(--muted); }

.feature { padding: 30px; }
.feature__num { display: inline-block; margin-bottom: 26px; padding: 0; border: 0; background: none !important; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; color: var(--cheese-dark); }
.feature h3 { margin-bottom: 12px; }
.feature p { font-size: .92rem; color: var(--muted); }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 30px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--ink); }
.crumbs a:hover { color: var(--cheese-dark); }

.product-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 4vw, 52px) var(--section); }
.product-hero h1 { margin-top: 22px; }
.product-hero h1 + .lead { margin-top: 22px; }
.product-hero__media {
  display: grid; place-items: center; aspect-ratio: 1 / 1; padding: clamp(28px, 5vw, 60px);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.product-hero__media img { position: relative; z-index: 1; max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 26px 24px rgba(67, 47, 14, .22)); }
.product-hero__media .seal { top: 26px; right: 26px; }

.buy { display: grid; gap: 16px; margin-top: 30px; padding: 24px 26px; background: var(--paper); border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.buy__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.buy__row + .buy__row { padding-top: 16px; border-top: var(--border); }
.price { font-family: var(--font-serif); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.buy__label { margin-bottom: 4px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.buy__note { margin-top: 4px; font-size: .8rem; color: var(--muted); }

.specs { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--paper); border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); font-size: .92rem; }
.specs th, .specs td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: var(--border); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 42%; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs td { font-weight: 500; }
.specs tbody tr:hover td, .specs tbody tr:hover th { background: #FFF6DA; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: start; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.gallery__item { margin: 0; padding: 0; overflow: hidden; color: var(--ink); background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item figcaption { padding: 12px 18px; border-top: var(--border); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; padding: 24px; background: rgba(23, 21, 18, .86); cursor: zoom-out; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: var(--radius-md); }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 22px; color: var(--ink); background: var(--paper); border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.callout__icon { display: grid; place-items: center; width: 36px; height: 36px; border: var(--border-ink); border-radius: 50%; font-family: var(--font-serif); font-size: 1.1rem; }
.callout--yellow .callout__icon { background: var(--cheese); }
.callout--pink .callout__icon { background: var(--cheese-dark); }
.callout--blue .callout__icon { background: var(--stage); }
.callout p { font-size: .9rem; color: #3D3830; }
.callout strong { font-weight: 700; color: var(--ink); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.checklist li::before { content: "✓"; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--cheese-edge); border-radius: 50%; background: var(--cheese); font-size: .85rem; line-height: 1; }

/* bands */
.band { border-block: var(--border); }
.band--black { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band--black .lead, .band--black .prose { color: #D8D2C6; }
.band--yellow, .band--green, .band--blue { background: var(--stage); }
.band--blue .lead, .band--yellow .lead { color: #514C44; }

.app-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.app-teaser__shot { border-radius: var(--radius-md); box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 250, 240, .12); }

.community { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.community a { display: grid; gap: 8px; padding: 28px; background: var(--paper); color: var(--ink); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.community a:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.community strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; line-height: 1; }
.community span { font-size: .9rem; color: var(--muted); }

/* page intro */
.page-intro { padding-block: clamp(44px, 6vw, 88px) clamp(34px, 4vw, 52px); }
.page-intro h1 { max-width: 16ch; }
.page-intro .lead { margin-top: 22px; }

.category + .category { margin-top: var(--section); }
.category__title { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.category__title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* forms */
.form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 36px); background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; font: inherit; font-size: .95rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--paper); border-color: var(--cheese-dark); box-shadow: 0 0 0 3px rgba(246, 201, 76, .35); }
.field textarea { min-height: 160px; resize: vertical; }
.form__status { font-size: .88rem; font-weight: 600; }
.form__status[data-state="error"] { color: #9A3B12; }
.form__status[data-state="ok"] { color: #5C6B16; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer a { text-decoration: none; color: #D8D2C6; }
.footer a:hover { color: var(--cheese-light); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 68px 52px; }
.footer__logo { width: min(280px, 100%); }
.footer h2 { margin-bottom: 18px; font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cheese-light); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 250, 240, .14); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: #BDB7AD; }

/* =========================
   CSS CHEESE
   Adapted from "Premium Grade Cheese" by Vanessa Victorino (MIT).
========================= */
.cheese-stage { display: grid; place-items: center; width: min(460px, 100%); aspect-ratio: 1 / .9; margin: 0 auto; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cheese-wrapper { position: relative; width: 390px; height: 320px; z-index: 2; transform: scale(var(--cheese-scale, 1)); }
.cheese__shadow { position: absolute; left: 50px; bottom: 28px; width: 310px; height: 55px; border-radius: 50%; background: rgba(67, 47, 14, .18); filter: blur(12px); transform: rotate(-5deg); }
.cheese {
  position: absolute; left: 55px; top: 55px; width: 285px; height: 190px;
  border: 3px solid var(--ink); border-radius: 15px 22px 28px 18px;
  background: linear-gradient(145deg, var(--cheese-light), var(--cheese) 48%, #EFB734 100%);
  clip-path: polygon(0 28%, 100% 0, 84% 100%, 0 88%);
  transform: rotate(-8deg);
  box-shadow: 10px 18px 0 rgba(23, 21, 18, .08);
}
.cheese__top { position: absolute; inset: 0 0 auto; height: 62px; background: linear-gradient(180deg, rgba(255, 244, 169, .92), rgba(255, 224, 105, .15)); }
.cheese__side { position: absolute; right: -3px; top: 0; width: 65px; height: 100%; background: linear-gradient(90deg, rgba(201, 137, 18, .12), var(--cheese-dark)); clip-path: polygon(25% 7%, 100% 0, 76% 100%, 0 100%); }
.cheese__hole { position: absolute; border: 2px solid var(--cheese-edge); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #D89A20, #C98514 75%); box-shadow: inset 3px 4px 4px rgba(96, 53, 4, .18); }
.cheese__hole:nth-of-type(1) { width: 38px; height: 31px; top: 55px; left: 54px; }
.cheese__hole:nth-of-type(2) { width: 28px; height: 24px; top: 105px; left: 105px; }
.cheese__hole:nth-of-type(3) { width: 48px; height: 39px; top: 84px; left: 170px; }
.cheese__hole:nth-of-type(4) { width: 21px; height: 19px; top: 40px; left: 143px; }
.cheese__hole:nth-of-type(5) { width: 32px; height: 28px; top: 132px; left: 42px; }
.cheese__hole:nth-of-type(6) { width: 23px; height: 20px; top: 128px; left: 220px; }
.cheese__hole:nth-of-type(7) { width: 28px; height: 20px; top: 57px; right: 12px; }
.cheese__hole:nth-of-type(8) { width: 22px; height: 17px; top: 105px; right: 26px; }
.cheese-stage .seal { top: 24px; right: 24px; }
.cheese-stage .tag { position: absolute; left: 24px; bottom: 22px; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .cheese-wrapper { animation: cheese-bob 5s ease-in-out infinite; }
  @keyframes cheese-bob { 50% { transform: scale(var(--cheese-scale, 1)) translateY(-8px) rotate(1.5deg); } }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid--3, .community { grid-template-columns: 1fr; }
  .grid--3 { max-width: 560px; margin-inline: auto; }
  .product-hero, .split, .app-teaser { grid-template-columns: 1fr; }
  .product-hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 860px) {
  .topbar__toggle { display: block; }
  .topbar__nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: var(--paper); border-bottom: var(--border); box-shadow: var(--shadow); }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav a:not(.btn) { padding: 16px var(--gutter); border: 0; border-top: var(--border); border-radius: 0; }
  .topbar__nav a[aria-current="page"]:not(.btn) { background: var(--stage); }
  .topbar__nav .btn { margin: 16px var(--gutter) 20px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--4, .footer__grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .specs th { width: 46%; }
  .specs th, .specs td { padding: 12px 14px; }
  .seal { width: 74px; height: 74px; }
  .seal strong { font-size: 1.2rem; }
  .logo-frame { padding: 36px; }
  .cheese-wrapper { --cheese-scale: .7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   CONTAINED LAYOUT (pen-style app shell)
   Everything sits in one rounded paper container floating on the cream
   grid, like the "Premium Grade Cheese" pen.
   ===================================================================== */
body { padding: 28px; }
.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  overflow: clip;                   /* rounds the corners without breaking the sticky header */
}
.wrap { width: auto; margin-inline: clamp(20px, 5.2vw, 62px); }

/* header inside the shell */
.topbar { position: sticky; top: 0; background: rgba(255, 250, 240, .94); border-bottom: 1px solid var(--line); }
.topbar__inner { min-height: 92px; padding-inline: clamp(18px, 3vw, 34px); }
.brand__mark { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.brand__text strong { font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .18em; }
.brand__text span { font-family: var(--font-mono); font-size: .58rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* two-column hero with a stage, on every page */
.hero-split {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(32px, 4.5vw, 50px);
  min-height: 600px;
  padding: clamp(36px, 5.2vw, 62px);
}
.hero-split__copy { position: relative; z-index: 2; min-width: 0; }
.hero-split__copy > * + * { margin-top: 26px; }
.hero-split__copy .eyebrow { margin-bottom: 0; }
.hero-split__copy h1 { margin-top: 20px; }
.hero-split__title { font-size: clamp(3.6rem, 8vw, 7rem); line-height: .82; letter-spacing: -.04em; }
.hero-split__title .soft { display: block; }
.hero-split .crumbs { padding-top: 0; margin-bottom: 18px; }
.hero-split .buy { margin-top: 30px; }
.hero-split .actions { margin-top: 30px; }

.claims { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.claims li { padding: 8px 11px; border: 1px solid var(--ink); border-radius: var(--pill); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }

.signature { display: flex; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.signature .brand__mark { width: 42px; height: 42px; flex: none; }
.signature strong { display: block; font-size: .86rem; font-weight: 700; }
.signature small { display: block; font-size: .74rem; color: var(--muted); }

.stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: clamp(360px, 46vw, 520px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .9), transparent 52%), var(--stage);
}
.stage::before, .stage::after { content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(23, 21, 18, .08); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.stage::before { width: min(450px, 92%); aspect-ratio: 1; }
.stage::after { width: min(340px, 70%); aspect-ratio: 1; }
.stage > img { position: relative; z-index: 2; }
.stage .seal { top: 32px; right: 30px; }
.stage__logo { width: min(240px, 52%); }
.stage__product { width: min(420px, 86%); max-height: 380px; object-fit: contain; filter: drop-shadow(0 30px 26px rgba(67, 47, 14, .24)); }
.stage__shot { width: 92%; border-radius: 14px; box-shadow: 0 30px 60px rgba(45, 35, 20, .28), 0 0 0 1px rgba(23, 21, 18, .12); transform: rotate(-2deg); }
.stage__label { position: absolute; left: 30px; bottom: 28px; z-index: 5; display: flex; flex-direction: column; padding: 10px 13px; border-left: 3px solid var(--ink); }
.stage__label span { font-family: var(--font-mono); font-size: .52rem; letter-spacing: .13em; text-transform: uppercase; }
.stage__label strong { margin-top: 2px; font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.stage--cheese .cheese-wrapper { --cheese-scale: .95; }
.tone-yellow.stage { background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .85), transparent 52%), var(--tint-yellow); }
.tone-pink.stage { background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .85), transparent 52%), var(--tint-pink); }
.tone-green.stage { background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .85), transparent 52%), var(--tint-green); }

.stage-form { align-self: stretch; border-radius: 28px; background: var(--stage); box-shadow: none; border: 0; }
.stage-form .field input, .stage-form .field textarea, .stage-form .field select { background: var(--paper); }

/* pen-style detail cells separated by hairlines */
.details { display: grid; border-top: 1px solid var(--line); }
.details--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.details--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.details--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.details__cell { display: flex; flex-direction: column; min-height: 220px; padding: 32px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.details__cell:last-child { border-right: 0; }
.details__cell .number { font-family: var(--font-mono); font-size: .64rem; color: var(--cheese-dark); }
.details__cell h2, .details__cell h3 { margin: 30px 0 10px; font-size: clamp(1.5rem, 2.2vw, 1.8rem); }
.details__cell p { font-size: .84rem; line-height: 1.65; color: var(--muted); }
a.details__cell { transition: background-color 180ms var(--ease); }
a.details__cell:hover { background: #FFF4D6; }
.details__go { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }

/* sections inside the shell: hairline rules instead of floating bands */
.section--flush { padding-bottom: 0; }
.section--flush .section-head { margin-bottom: 32px; }
.section--rule { border-top: 1px solid var(--line); }
.hero-split + .details, .hero-split + .section, .hero-split + .wrap { border-top: 1px solid var(--line); }
.band { border-block: 0; }
.band--black .gallery__item { border-color: rgba(255, 250, 240, .14); }

/* footer as the dark strip at the bottom of the shell */
.footer__grid { padding: clamp(40px, 5vw, 56px) clamp(22px, 3vw, 34px) 36px; }
.footer__bottom { align-items: center; padding: 22px clamp(22px, 3vw, 34px); }
.footer__bottom div { display: flex; flex-direction: column; gap: 4px; }
.footer__bottom strong { font-family: var(--font-sans); font-size: .64rem; letter-spacing: .14em; color: var(--paper); }
.footer__bottom span { font-family: var(--font-sans); font-size: .66rem; letter-spacing: 0; }
.footer__bottom p { font-family: var(--font-mono); font-size: .6rem; color: var(--cheese-light); }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; padding: 48px 34px; }
  .details--3, .details--4 { grid-template-columns: 1fr; }
  .details--2 { grid-template-columns: 1fr; }
  .details__cell { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .details__cell:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  body { padding: 10px; }
  .shell { border-radius: 18px; }
  .topbar__inner { min-height: 74px; padding-inline: 16px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__text strong { font-size: .62rem; }
  .brand__text span { font-size: .5rem; }
  .hero-split { gap: 36px; padding: 38px 18px; }
  .hero-split__title { font-size: clamp(3.4rem, 18vw, 5rem); }
  .stage { min-height: 390px; }
  .stage .seal { top: 22px; right: 18px; }
  .stage__label { left: 20px; bottom: 20px; }
  .details__cell { padding: 26px 20px; }
  .footer__bottom { align-items: flex-start; flex-direction: column; }
}

/* home news hero: live 3D viewer on the stage */
.hero-split__title--news { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .88; }
.hero-split__title--news .soft { display: block; }
.stage--viewer { padding: 0; min-height: clamp(400px, 48vw, 560px); }
.stage--viewer::before, .stage--viewer::after { display: none; }
.stage__viewer { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: var(--stage); }
.stage--viewer .seal, .stage--viewer .stage__label { pointer-events: none; }
.hero-split__copy .claims { margin-top: 22px; }

/* header symbol: the thicker team-drawn mark fills more of its circle */
.brand__mark { padding: 4px 5px 5px; }
.signature .brand__mark { padding: 4px 5px 5px; }

/* buttons: outline only, no yellow fills (team decision) */
.btn--yellow, .btn--green, .btn--pink { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn--yellow:hover, .btn--green:hover, .btn--pink:hover { background: var(--stage); }
.band--black .btn--yellow, .band--black .btn--pink { background: transparent; color: var(--paper); border-color: var(--paper); }
.band--black .btn--yellow:hover, .band--black .btn--pink:hover { background: rgba(255, 250, 240, .08); }

/* Safari does not clip iframes to a rounded parent: round the frame itself */
.stage__viewer { border-radius: 28px; }
.stage--viewer { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }

/* breathing room above the shell (header) */
body { padding-top: 40px; }
@media (max-width: 560px) { body { padding-top: 16px; } }

/* buttons at the reference's pill size only (no large buttons in the original layout) */
.btn, .topbar__nav .btn {
  min-height: 0; gap: 6px; padding: 8px 12px;
  border: 1px solid var(--ink); border-radius: var(--pill);
  background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .08em; line-height: 1.2;
  box-shadow: none;
}
.btn:hover, .btn--yellow:hover, .btn--green:hover, .btn--pink:hover, .btn--ghost:hover { transform: none; box-shadow: none; background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--black, .btn--blue { background: var(--ink); color: var(--paper); }
.btn--black:hover, .btn--blue:hover { background: var(--cheese-dark); color: var(--ink); }
.band--black .btn, .band--black .btn--yellow, .band--black .btn--pink, .band--black .btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.band--black .btn:hover { background: var(--paper); color: var(--ink); }
.actions { gap: 8px; }
.hero-split .actions { margin-top: 22px; }
.topbar__nav .btn { margin-left: 10px; }
@media (max-width: 640px) { .actions .btn { width: auto; } }
@media (max-width: 860px) { .topbar__nav .btn { align-self: flex-start; } }

/* nav items at the same pill size as the buttons */
.topbar__nav a:not(.btn) { padding: 8px 12px; font-size: .64rem; letter-spacing: .08em; line-height: 1.2; }
@media (max-width: 860px) { .topbar__nav a:not(.btn) { padding: 16px var(--gutter); font-size: .72rem; } }

/* =====================================================================
   DARK THEME ("aged cheese")
   Follows the system setting unless the visitor picks one with the header
   toggle (stored as data-theme on <html>). Light theme above is unchanged.
   ===================================================================== */
.theme-toggle {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; margin-left: 10px; padding: 0;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .theme-toggle { margin-left: auto; } .topbar__toggle { margin-left: 8px; } }

:root[data-theme="dark"] {
  --cream: #100F0C; --paper: #1A1814; --ink: #F3ECDF; --muted: #A69D8E; --stage: #2B261E;
  --line: rgba(243, 236, 223, .13); --line-strong: rgba(243, 236, 223, .24);
  --tint-yellow: #302918; --tint-green: #2B2719; --tint-pink: #33291B;
  --shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-lg: 0 35px 80px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .35);
  --night: #0B0A08; --on-cheese: #171512; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #100F0C; --paper: #1A1814; --ink: #F3ECDF; --muted: #A69D8E; --stage: #2B261E;
    --line: rgba(243, 236, 223, .13); --line-strong: rgba(243, 236, 223, .24);
    --tint-yellow: #302918; --tint-green: #2B2719; --tint-pink: #33291B;
    --shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
    --shadow-lg: 0 35px 80px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .35);
    --night: #0B0A08; --on-cheese: #171512; color-scheme: dark;
  }
}

:root[data-theme="dark"] body { background-image: linear-gradient(rgba(243,236,223,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(243,236,223,.03) 1px, transparent 1px);}
:root[data-theme="dark"] .topbar { background: rgba(26, 24, 20, .94);}
:root[data-theme="dark"] .lead, :root[data-theme="dark"] .band--blue .lead, :root[data-theme="dark"] .band--yellow .lead { color: #CFC6B6;}
:root[data-theme="dark"] .prose, :root[data-theme="dark"] .callout p { color: #D9D1C2;}
:root[data-theme="dark"] .footer, :root[data-theme="dark"] .band--black, :root[data-theme="dark"] .ticker { background: var(--night); color: var(--ink);}
:root[data-theme="dark"] .footer a { color: #BFB6A6;}
:root[data-theme="dark"] .footer__bottom strong { color: var(--ink);}
:root[data-theme="dark"] .band--black .lead, :root[data-theme="dark"] .band--black .prose { color: #CFC6B6;}
:root[data-theme="dark"] .band--black .btn, :root[data-theme="dark"] .band--black .btn--yellow, :root[data-theme="dark"] .band--black .btn--pink, :root[data-theme="dark"] .band--black .btn--ghost { color: var(--ink); border-color: var(--ink);}
:root[data-theme="dark"] .band--black .btn:hover { background: var(--ink); color: var(--night);}
:root[data-theme="dark"] .stage, :root[data-theme="dark"] .logo-frame, :root[data-theme="dark"] .product-hero__media, :root[data-theme="dark"] .cheese-stage, :root[data-theme="dark"] .card__media, :root[data-theme="dark"] .tone-yellow.stage, :root[data-theme="dark"] .tone-pink.stage, :root[data-theme="dark"] .tone-green.stage, :root[data-theme="dark"] .tone-blue .card__media, :root[data-theme="dark"] .tone-yellow .card__media, :root[data-theme="dark"] .tone-pink .card__media, :root[data-theme="dark"] .tone-green .card__media {
  background: radial-gradient(circle at 50% 40%, rgba(255, 236, 200, .13), transparent 55%), var(--stage);}
:root[data-theme="dark"] .tone-yellow.stage, :root[data-theme="dark"] .tone-yellow .card__media { background-color: var(--tint-yellow);}
:root[data-theme="dark"] .tone-pink.stage, :root[data-theme="dark"] .tone-pink .card__media { background-color: var(--tint-pink);}
:root[data-theme="dark"] .tone-green.stage, :root[data-theme="dark"] .tone-green .card__media { background-color: var(--tint-green);}
:root[data-theme="dark"] .stage::before, :root[data-theme="dark"] .stage::after, :root[data-theme="dark"] .logo-frame::before, :root[data-theme="dark"] .logo-frame::after, :root[data-theme="dark"] .product-hero__media::before, :root[data-theme="dark"] .product-hero__media::after, :root[data-theme="dark"] .cheese-stage::before, :root[data-theme="dark"] .cheese-stage::after { border-color: rgba(243, 236, 223, .08);}
:root[data-theme="dark"] .stage__product, :root[data-theme="dark"] .card__media img { filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(255, 236, 200, .07));}
:root[data-theme="dark"] a.details__cell:hover, :root[data-theme="dark"] .specs tbody tr:hover td, :root[data-theme="dark"] .specs tbody tr:hover th { background: #2A2417;}
:root[data-theme="dark"] .stage__logo { filter: invert(1);}
:root[data-theme="dark"] .brand__mark { filter: invert(1); background: #E5E7EB; border-color: #0C1320;}
:root[data-theme="dark"] .slogan mark, :root[data-theme="dark"] .checklist li::before, :root[data-theme="dark"] .callout--yellow .callout__icon, :root[data-theme="dark"] .callout--pink .callout__icon, :root[data-theme="dark"] .chip--yellow, :root[data-theme="dark"] .chip--green, :root[data-theme="dark"] .chip--pink, :root[data-theme="dark"] .skip-link { color: var(--on-cheese);}
:root[data-theme="dark"] .btn--black:hover, :root[data-theme="dark"] .btn--blue:hover { color: var(--on-cheese);}
:root[data-theme="dark"] .stage__viewer { background: var(--stage);}
:root[data-theme="dark"] .cheese { border-color: #171512; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) body { background-image: linear-gradient(rgba(243,236,223,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(243,236,223,.03) 1px, transparent 1px);}
:root:not([data-theme="light"]) .topbar { background: rgba(26, 24, 20, .94);}
:root:not([data-theme="light"]) .lead, :root:not([data-theme="light"]) .band--blue .lead, :root:not([data-theme="light"]) .band--yellow .lead { color: #CFC6B6;}
:root:not([data-theme="light"]) .prose, :root:not([data-theme="light"]) .callout p { color: #D9D1C2;}
:root:not([data-theme="light"]) .footer, :root:not([data-theme="light"]) .band--black, :root:not([data-theme="light"]) .ticker { background: var(--night); color: var(--ink);}
:root:not([data-theme="light"]) .footer a { color: #BFB6A6;}
:root:not([data-theme="light"]) .footer__bottom strong { color: var(--ink);}
:root:not([data-theme="light"]) .band--black .lead, :root:not([data-theme="light"]) .band--black .prose { color: #CFC6B6;}
:root:not([data-theme="light"]) .band--black .btn, :root:not([data-theme="light"]) .band--black .btn--yellow, :root:not([data-theme="light"]) .band--black .btn--pink, :root:not([data-theme="light"]) .band--black .btn--ghost { color: var(--ink); border-color: var(--ink);}
:root:not([data-theme="light"]) .band--black .btn:hover { background: var(--ink); color: var(--night);}
:root:not([data-theme="light"]) .stage, :root:not([data-theme="light"]) .logo-frame, :root:not([data-theme="light"]) .product-hero__media, :root:not([data-theme="light"]) .cheese-stage, :root:not([data-theme="light"]) .card__media, :root:not([data-theme="light"]) .tone-yellow.stage, :root:not([data-theme="light"]) .tone-pink.stage, :root:not([data-theme="light"]) .tone-green.stage, :root:not([data-theme="light"]) .tone-blue .card__media, :root:not([data-theme="light"]) .tone-yellow .card__media, :root:not([data-theme="light"]) .tone-pink .card__media, :root:not([data-theme="light"]) .tone-green .card__media {
  background: radial-gradient(circle at 50% 40%, rgba(255, 236, 200, .13), transparent 55%), var(--stage);}
:root:not([data-theme="light"]) .tone-yellow.stage, :root:not([data-theme="light"]) .tone-yellow .card__media { background-color: var(--tint-yellow);}
:root:not([data-theme="light"]) .tone-pink.stage, :root:not([data-theme="light"]) .tone-pink .card__media { background-color: var(--tint-pink);}
:root:not([data-theme="light"]) .tone-green.stage, :root:not([data-theme="light"]) .tone-green .card__media { background-color: var(--tint-green);}
:root:not([data-theme="light"]) .stage::before, :root:not([data-theme="light"]) .stage::after, :root:not([data-theme="light"]) .logo-frame::before, :root:not([data-theme="light"]) .logo-frame::after, :root:not([data-theme="light"]) .product-hero__media::before, :root:not([data-theme="light"]) .product-hero__media::after, :root:not([data-theme="light"]) .cheese-stage::before, :root:not([data-theme="light"]) .cheese-stage::after { border-color: rgba(243, 236, 223, .08);}
:root:not([data-theme="light"]) .stage__product, :root:not([data-theme="light"]) .card__media img { filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(255, 236, 200, .07));}
:root:not([data-theme="light"]) a.details__cell:hover, :root:not([data-theme="light"]) .specs tbody tr:hover td, :root:not([data-theme="light"]) .specs tbody tr:hover th { background: #2A2417;}
:root:not([data-theme="light"]) .stage__logo { filter: invert(1);}
:root:not([data-theme="light"]) .brand__mark { filter: invert(1); background: #E5E7EB; border-color: #0C1320;}
:root:not([data-theme="light"]) .slogan mark, :root:not([data-theme="light"]) .checklist li::before, :root:not([data-theme="light"]) .callout--yellow .callout__icon, :root:not([data-theme="light"]) .callout--pink .callout__icon, :root:not([data-theme="light"]) .chip--yellow, :root:not([data-theme="light"]) .chip--green, :root:not([data-theme="light"]) .chip--pink, :root:not([data-theme="light"]) .skip-link { color: var(--on-cheese);}
:root:not([data-theme="light"]) .btn--black:hover, :root:not([data-theme="light"]) .btn--blue:hover { color: var(--on-cheese);}
:root:not([data-theme="light"]) .stage__viewer { background: var(--stage);}
:root:not([data-theme="light"]) .cheese { border-color: #171512; }
}

/* menu button matches the theme toggle */
.topbar__toggle { width: 34px; height: 34px; border: 1px solid var(--ink); }
.topbar__burger, .topbar__burger::before, .topbar__burger::after { width: 14px; height: 1.5px; }
.topbar__burger::before { top: -5px; } .topbar__burger::after { top: 5px; }
