/* P-Town shared styles. Served from /assets/site.css by every page. */
@font-face { font-family: "Cabinet Grotesk"; src: url("/fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("/fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Tokens. Dark is the default: this page is mostly read at a party, on a phone, after sunset. */
:root {
  --bg: oklch(0.165 0.012 285);
  --bg-raised: oklch(0.205 0.013 285);
  --ink: oklch(0.955 0.005 85);
  --ink-2: oklch(0.80 0.010 285);
  --ink-3: oklch(0.66 0.012 285);
  --line: oklch(0.31 0.012 285);
  --line-soft: oklch(0.25 0.012 285);
  --accent: oklch(0.71 0.185 36);
  --accent-ink: oklch(0.17 0.03 36);
  --bar: oklch(0.80 0.010 285);

  /* The letterboard is an object, so it keeps its own colours in both themes. */
  --felt: oklch(0.185 0.010 285);
  --felt-groove: oklch(0.135 0.010 285);
  --letter: oklch(0.965 0.006 90);
  --frame: oklch(0.34 0.045 50);
  --frame-hi: oklch(0.42 0.05 55);
  --felt-ink: oklch(0.965 0.006 90);
  --felt-ink-2: oklch(0.80 0.008 285);
  --felt-ink-3: oklch(0.64 0.010 285);
  --felt-line: oklch(1 0 0 / 0.08);

  --display: "Cabinet Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "General Sans", ui-sans-serif, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: oklch(0.975 0.004 270);
    --bg-raised: oklch(0.945 0.006 270);
    --ink: oklch(0.20 0.015 285);
    --ink-2: oklch(0.38 0.014 285);
    --ink-3: oklch(0.50 0.012 285);
    --line: oklch(0.84 0.008 285);
    --line-soft: oklch(0.90 0.006 285);
    --accent: oklch(0.56 0.195 33);
    --accent-ink: oklch(0.98 0.01 36);
    --bar: oklch(0.36 0.014 285);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: oklch(0.975 0.004 270);
  --bg-raised: oklch(0.945 0.006 270);
  --ink: oklch(0.20 0.015 285);
  --ink-2: oklch(0.38 0.014 285);
  --ink-3: oklch(0.50 0.012 285);
  --line: oklch(0.84 0.008 285);
  --line-soft: oklch(0.90 0.006 285);
  --accent: oklch(0.56 0.195 33);
  --accent-ink: oklch(0.98 0.01 36);
  --bar: oklch(0.36 0.014 285);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: var(--line) var(--bg); caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration-color: color-mix(in oklch, var(--accent) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 1em; height: 1em; flex: none; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.mark { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 1px; }
.mark span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2.6vw, 32px); margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; padding-block: 10px; transition: color 160ms ease; }
.nav ul a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(8px, 2vw, 32px) clamp(64px, 9vw, 128px); align-items: end; }
@media (min-width: 1040px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .hero-copy { order: -1; padding-bottom: 8px; } }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 20px; color: var(--ink-2); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 38ch; }
.hero-go { margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; padding: 14px 22px 14px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.hero-go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .hero-go:hover { background: var(--accent); color: var(--accent-ink); } }

/* ---------- Letterboard ---------- */
.board-wrap { container-type: inline-size; }
.board {
  --rows: 4;
  position: relative;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(92deg, oklch(0 0 0 / 0.07) 0 2px, transparent 2px 7px, oklch(1 0 0 / 0.035) 7px 8px, transparent 8px 13px),
    linear-gradient(160deg, var(--frame-hi), var(--frame) 55%, oklch(0.28 0.04 48));
  padding: clamp(9px, 1.6cqi, 16px);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.18) inset,
    0 -1px 0 oklch(0 0 0 / 0.35) inset,
    0 30px 60px -20px oklch(0 0 0 / 0.55),
    0 10px 24px -12px oklch(0 0 0 / 0.5);
}
.felt {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs, 40px);
  line-height: 1;
  color: var(--letter);
  padding: 0.75em 0.5em;
  background-color: var(--felt);
  /* Grooves every half em: letters sit on every third one, like a real board. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(0.5em - 2px), var(--felt-groove) calc(0.5em - 2px), var(--felt-groove) 0.5em);
  box-shadow: inset 0 2px 10px oklch(0 0 0 / 0.55);
}
.felt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 30% 0%, oklch(1 0 0 / 0.05), transparent 60%); }
.rows { position: relative; z-index: 1; }
.row { height: 1.5em; display: flex; justify-content: center; align-items: center; white-space: nowrap; }
.ch {
  display: inline-block;
  min-width: 0.24em;
  margin-inline: 0.02em;
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  text-shadow: 0 0.035em 0.04em oklch(0 0 0 / 0.55), 0 -0.01em 0 oklch(1 0 0 / 0.25);
}
.ch.sp { width: 0.32em; }
.hero .board { transition: transform 600ms var(--ease-out); }
@media (min-width: 1040px) { .hero .board { transform: rotate(-1.1deg); } }
@media (hover: hover) and (pointer: fine) and (min-width: 1040px) { .hero .board:hover { transform: rotate(-0.4deg); } }
@media (prefers-reduced-motion: reduce) { .hero .board { transition: none; } }
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--ink-3); font-size: 0.875rem; }
.swap {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.9375rem/1 var(--body); color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.swap svg { transition: transform 360ms var(--ease-out); }
.swap:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .swap:hover { border-color: var(--ink-3); background: var(--bg-raised); } }
.swap.spun svg { transform: rotate(180deg); }

/* ---------- Section scaffolding ---------- */
section { padding-block: clamp(72px, 10vw, 144px); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; }
.sec-head p { margin-top: 18px; color: var(--ink-2); max-width: 60ch; font-size: 1.125rem; }
.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---------- Directory: the lobby board ---------- */
.lobby { container-type: inline-size; }
.lobby .felt { font-size: 1rem; line-height: 1.6; padding: clamp(18px, 4cqi, 44px) clamp(16px, 4cqi, 48px) clamp(12px, 3cqi, 32px); background-size: auto, 100% 12px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, transparent 0 10px, var(--felt-groove) 10px 12px); }
.lobby-title { position: relative; z-index: 1; text-align: center; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.32em; color: var(--felt-ink); font-size: clamp(1.25rem, 3.4cqi, 2rem); padding-left: 0.32em; text-shadow: 0 1px 1px oklch(0 0 0 / 0.6); }
.lobby-cols { position: relative; z-index: 1; display: none; margin-top: clamp(18px, 3cqi, 32px); padding: 0 6px 10px; border-bottom: 1px solid var(--felt-line); font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; color: var(--felt-ink-3); }
.dir { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; }
.dir > li + li { border-top: 1px solid var(--felt-line); }
.dir details { interpolate-size: allow-keywords; }
.dir details::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.dir details[open]::details-content { block-size: auto; }
.dir summary {
  list-style: none; cursor: pointer;
  display: grid; align-items: baseline; gap: 2px 16px;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  grid-template-areas: "name status caret" "role role role";
  padding: 18px 6px;
  border-radius: 8px;
  transition: background-color 160ms ease;
}
.lobby-cols, .dir summary { grid-template-columns: minmax(0, 1fr) auto 18px; }
.dir summary::-webkit-details-marker { display: none; }
.d-name a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3em; border-radius: 4px; transition: color 160ms ease; }
.d-name a svg { width: 0.62em; height: 0.62em; color: var(--felt-ink-3); transition: transform 200ms var(--ease-out), color 160ms ease; }
.d-name small a { display: inline; text-decoration: underline; text-decoration-color: var(--felt-line); text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) {
  .dir summary:hover { background: oklch(1 0 0 / 0.035); }
  .d-name a:hover { color: var(--accent); }
  .d-name a:hover svg { color: var(--accent); transform: translate(2px, -2px); }
  .d-name small a:hover { text-decoration-color: var(--accent); }
}
.d-name, .d-status, .d-role { font-family: var(--display); font-weight: 500; text-transform: uppercase; text-shadow: 0 1px 1px oklch(0 0 0 / 0.6); }
.d-name { grid-area: name; color: var(--felt-ink); font-size: clamp(1.25rem, 2.3cqi, 1.75rem); letter-spacing: 0.06em; line-height: 1.15; transition: color 160ms ease; }
.d-role { grid-area: role; color: var(--felt-ink-2); letter-spacing: 0.08em; font-size: 0.875rem; }
.d-status { grid-area: status; display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--felt-ink-2); white-space: nowrap; }
.d-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--felt-ink-2); }
.d-status.soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--felt-ink-2); }
.d-status.new { color: oklch(0.74 0.17 36); }
.d-status.new::before { background: oklch(0.74 0.17 36); }
.caret { grid-area: caret; align-self: center; color: var(--felt-ink-3); transition: transform 240ms var(--ease-out); }
details[open] .caret { transform: rotate(180deg); }
@container (min-width: 820px) {
  .lobby-cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 130px 18px; }
  .dir summary { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 130px 18px; grid-template-areas: "name role status caret"; padding: 20px 6px; }
}
.d-body { display: grid; gap: 20px 16px; padding: 2px 6px 28px; font-family: var(--body); font-size: 1rem; line-height: 1.6; }
@container (min-width: 820px) { .d-body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 148px; } .d-body .d-text { grid-column: 2; } .d-body .d-foot { grid-column: 1; grid-row: 1; } }
.d-text { display: grid; gap: 12px; color: var(--felt-ink-2); max-width: 62ch; }
.d-text p:first-child { color: var(--felt-ink); }
.d-foot { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-content: start; font-size: 0.9375rem; color: var(--felt-ink); }
.d-foot dt { color: var(--felt-ink-3); }
.d-foot dd { margin: 0; font-variant-numeric: tabular-nums; }
.d-name small { display: block; margin-top: 2px; font: 400 0.8125rem/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--felt-ink-3); text-shadow: none; }

/* ---------- Tonight ---------- */
.tonight { display: grid; gap: 0; border-top: 1px solid var(--line); }
.t-item { display: grid; gap: 10px 48px; padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .t-item { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.t-item h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.05; }
.t-item p { color: var(--ink-2); max-width: 46ch; }
.t-lead { padding-block: clamp(36px, 6vw, 72px); }
.t-lead h3 { font-size: clamp(2.75rem, 8vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; }
.t-lead h3 q { quotes: "\201C" "\201D"; }
.t-lead h3 q::before, .t-lead h3 q::after { color: var(--accent); }
.t-lead .t-side { display: grid; gap: 18px; justify-items: start; }
.movie-btn {
  position: relative; z-index: 61;
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.9375rem/1 var(--body);
  padding: 14px 20px; border-radius: 999px; cursor: pointer;
  color: var(--accent-ink); background: var(--accent); border: 0;
  transition: transform 160ms var(--ease-out), box-shadow 300ms ease;
}
.movie-btn:active { transform: scale(0.97); }
.dim {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), oklch(0.12 0.02 40 / 0.35), oklch(0.05 0.01 285 / 0.86) 42%);
  opacity: 0; transition: opacity 700ms var(--ease-in-out);
}
html.movie .dim { opacity: 1; }
html.movie .movie-btn { box-shadow: 0 0 0 6px oklch(0.71 0.185 36 / 0.18), 0 12px 40px -6px oklch(0.71 0.185 36 / 0.55); }

/* ---------- Alexa ---------- */
.flow { list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow li { position: relative; display: grid; align-content: start; gap: 6px; padding: 22px 0 22px 34px; border-bottom: 1px solid var(--line); }
.flow li::before { content: ""; position: absolute; left: 6px; top: 31px; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.flow li.cloud::before { background: var(--ink-3); }
.flow li.home::before { background: var(--accent); box-shadow: none; }
.flow b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.flow span { color: var(--ink-2); font-size: 0.9375rem; max-width: 40ch; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .flow li { padding: 30px 28px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .flow li::before { left: 0; top: -5px; }
}
.flow-note { margin-top: -64px; margin-bottom: clamp(56px, 8vw, 96px); color: var(--ink-3); font-size: 0.9375rem; display: flex; gap: 18px; flex-wrap: wrap; }
.flow-note span { display: inline-flex; align-items: center; gap: 8px; }
.flow-note i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
@media (max-width: 899px) { .flow-note { margin-top: calc(-1 * clamp(56px, 8vw, 96px) + 20px); } }

.phr-h { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.phr-sub { color: var(--ink-2); max-width: 60ch; margin-bottom: 28px; }
.phr { display: grid; gap: 0; margin-bottom: clamp(56px, 8vw, 96px); }
.phr-group { display: grid; gap: 4px 48px; padding-block: 24px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .phr-group { grid-template-columns: 200px minmax(0, 1fr); } }
.phr-group h4 { margin: 6px 0 8px; font-family: var(--body); font-weight: 500; font-size: 0.9375rem; color: var(--ink-3); }
.phr-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.phr-group li { display: grid; gap: 2px 32px; }
@media (min-width: 1100px) { .phr-group li { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); align-items: baseline; } }
.say { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.625rem); letter-spacing: -0.015em; line-height: 1.2; }
.say span { color: var(--ink-3); font-weight: 500; }
.does { color: var(--ink-2); }

.plates { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 559px) { .plates { grid-template-columns: minmax(0, 1fr); } .plates .gang { aspect-ratio: 5 / 2; } }
@media (min-width: 900px) { .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plate { margin: 0; min-width: 0; }
.plate figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); min-height: 3em; }
.plate figcaption b { display: block; margin-top: 2px; font-family: var(--display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink); }
.plate figcaption b em { font-style: normal; color: var(--accent); }
.plate-face {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px;
  border-radius: 18px; background: var(--bg-raised); border: 1px solid var(--line);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.05) inset, 0 14px 30px -18px oklch(0 0 0 / 0.6);
}
.gang {
  position: relative; aspect-ratio: 1 / 1; min-width: 0;
  display: flex; align-items: flex-end; padding: 10px;
  font: 500 0.8125rem/1.25 var(--body); color: var(--ink-2); text-align: left;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 11px; cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, color 160ms ease;
}
.gang::after { content: ""; position: absolute; top: 10px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color 160ms ease, box-shadow 160ms ease; }
.gang:active { transform: scale(0.96); }
.gang[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-3); }
.gang[aria-pressed="true"]::after { background: var(--accent); box-shadow: 0 0 0 3px oklch(0.71 0.185 36 / 0.2); }
@media (hover: hover) and (pointer: fine) { .gang:hover { border-color: var(--ink-3); color: var(--ink); } }
.dev-more { margin-top: 20px; color: var(--ink-2); max-width: 66ch; }

/* ---------- Alexa page: lamps ---------- */
.lamps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lamp { display: grid; gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 900px) { .lamp { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); } }
.lamp-name { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: clamp(1.125rem, 1.8vw, 1.375rem); letter-spacing: -0.01em; line-height: 1.2; }
.lamp-name small { grid-column: 2; font: 400 0.875rem/1.4 var(--body); color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.bulb { --b: 0.4; width: 12px; height: 12px; border-radius: 50%; align-self: center; justify-self: center; background: var(--accent); opacity: calc(0.18 + var(--b) * 0.82); box-shadow: 0 0 calc(var(--b) * 18px) calc(var(--b) * 3px) oklch(0.71 0.185 36 / calc(var(--b) * 0.55)); transition: opacity 120ms ease, box-shadow 120ms ease; }
.say-line { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.say-line span { color: var(--ink-3); font-weight: 500; }
.say-line em { font-style: normal; }
.lamp input[type="range"] { --p: 40%; -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0; }
.lamp input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p), var(--line) var(--p)); }
.lamp input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 1px 4px oklch(0 0 0 / 0.4); transition: transform 140ms var(--ease-out); }
.lamp input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.lamp input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.lamp input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.lamp input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 1px 4px oklch(0 0 0 / 0.4); }

/* ---------- Alexa page: single switches ---------- */
.plates-more { margin-top: clamp(48px, 7vw, 80px); }
.plates.single .plate-face { grid-template-columns: 1fr; }
.plates.single .gang { aspect-ratio: 2 / 1; }
@media (max-width: 559px) { .plates.single { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plates.single .gang { aspect-ratio: 1 / 1; } }
.nav ul a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }

/* ---------- Creed ---------- */
.creed { padding-block: clamp(96px, 14vw, 200px); }
.creed blockquote { margin: 0; }
.creed blockquote p { font-family: var(--display); font-weight: 800; font-size: clamp(2.75rem, 8.6vw, 7rem); line-height: 0.94; letter-spacing: -0.04em; max-width: 13ch; }
.creed blockquote p span { color: var(--accent); }
.creed footer { margin-top: 28px; color: var(--ink-2); max-width: 52ch; }
.creed ul { list-style: none; padding: 0; margin: clamp(48px, 7vw, 88px) 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .creed ul { grid-template-columns: repeat(3, 1fr); } .creed li + li { border-left: 1px solid var(--line); padding-left: 28px; } }
.creed li { padding: 22px 28px 22px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .creed li { border-bottom: 0; } }

/* ---------- Footer ---------- */
.foot { padding-block: 48px 64px; display: grid; gap: 32px; align-items: end; }
@media (min-width: 860px) { .foot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.foot .board-wrap { max-width: 480px; }
.foot p { color: var(--ink-3); font-size: 0.9375rem; max-width: 52ch; }
.foot p + p { margin-top: 6px; }
@media (min-width: 860px) { .foot-text { justify-self: end; text-align: right; } .foot p { margin-left: auto; } }

@media (prefers-reduced-motion: reduce) {
  .dir details::details-content, .caret, .swap svg, .dim { transition-duration: 1ms; }
}
