/* Second Set — oat and espresso by default; each scene of the day repaints the page as it arrives. */
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/IBMPlexMono-500.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --paper: #efe6d8; --ink: #2a1f1a; --accent: #a3212f; --bone: #efe6d8; --espresso: #2a1f1a; --oat: #c9b8a3;
  --serif: "Instrument Serif", Georgia, serif; --sans: Onest, system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { min-height: 100svh; color: var(--ink); background: var(--paper); font: 300 17px/1.6 var(--sans); transition: background-color .9s ease, color .9s ease; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.eyebrow { margin: 0 0 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); transition: color .9s; }
.corner { position: fixed; z-index: 12; top: 12px; left: 12px; padding: 4px 8px; background: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); opacity: .7; text-decoration: none; transition: background-color .9s, color .9s; }
.corner:hover, .corner:focus-visible { opacity: 1; outline: none; }

/* ---------- the brand bar: wordmark, the clock of the day, the tray count ---------- */
.brand { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px clamp(18px, 4vw, 48px) 12px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); transition: background-color .9s, border-color .9s; }
.wordmark { justify-self: start; margin-left: 132px; font: italic 400 26px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.clock { display: flex; gap: 12px; align-items: baseline; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.clock span:first-child { font-size: 15px; font-variant-numeric: tabular-nums; }
.clock span:last-child { opacity: .6; }
.tray-toggle { justify-self: end; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, color .3s; }
.tray-toggle:hover, .tray-toggle:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.tray-toggle b { font-weight: 500; }

/* ---------- the opening ---------- */
.hero { min-height: calc(100svh - 62px); display: grid; align-content: center; gap: 22px; width: min(100%, 1240px); margin: 0 auto; padding: 60px clamp(18px, 4vw, 48px) 80px; }
.hero h1 { font: 400 clamp(46px, 7.4vw, 120px)/.98 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--accent); transition: color .9s; }
.hero .lede { max-width: 620px; font-size: clamp(17px, 1.4vw, 20px); text-wrap: pretty; }
.scrollhint { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.scrollhint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- the scenes: the photograph fills the screen, the copy sits on it ---------- */
.scene { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; }
.scene .look { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.scene .look img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; display: block; transform: scale(1.04); transition: transform 1.6s ease; }
.scene.active .look img { transform: scale(1); }
.scene .look::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--paper) 55%, transparent) 78%, color-mix(in srgb, var(--paper) 92%, transparent) 100%); }
.scene .copy { position: relative; z-index: 1; width: min(100%, 1240px); margin: 0 auto; padding: 40px clamp(18px, 4vw, 48px) 170px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 20px clamp(28px, 4vw, 64px); align-items: end; }
.scene .time { grid-column: 1 / -1; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.scene h2 { font: 400 clamp(38px, 5.4vw, 84px)/.98 var(--serif); letter-spacing: -.025em; text-wrap: balance; max-width: 14ch; }
.scene .body { max-width: 520px; font-size: clamp(16px, 1.2vw, 18px); text-wrap: pretty; }
.scene .side { display: grid; gap: 14px; align-self: end; }
/* the pieces in the scene, each a button that adds itself to the set */
.pieces { list-style: none; display: grid; gap: 8px; }
.piece { display: grid; grid-template-columns: 26px 1fr auto; gap: 0 12px; align-items: center; width: 100%; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--paper) 78%, transparent); text-align: left; cursor: pointer; transition: border-color .25s, background-color .25s; }
.piece:hover, .piece:focus-visible { border-color: var(--ink); outline: none; }
.piece[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.piece .swatch { display: block; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.piece .name { font: 400 15px/1.3 var(--sans); }
.piece .meta { font: 500 11px/1.3 var(--mono); letter-spacing: .04em; opacity: .75; white-space: nowrap; }
.piece .add { grid-column: 3; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.piece[aria-pressed="true"] .add { opacity: 1; }

/* ---------- tempo: every scene keeps its own time ---------- */
.tempo-hiit h2 { font: 700 clamp(36px, 5vw, 76px)/1 var(--sans); letter-spacing: -.03em; text-transform: uppercase; }
.tempo-run h2 { font-style: italic; letter-spacing: .01em; }
.tempo-strength h2 { font: 500 clamp(38px, 5.4vw, 84px)/.98 var(--serif); letter-spacing: -.03em; }
.widget { display: grid; gap: 6px; padding: 14px 16px; border-radius: 8px; background: color-mix(in srgb, var(--paper) 70%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.widget b { font: 500 34px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.widget .bar { height: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; border-radius: 2px; }
.widget .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.horizon { position: absolute; left: 0; right: 0; top: 9%; z-index: 1; height: 120px; pointer-events: none; opacity: .45; }
.horizon svg { display: block; width: 260%; height: 100%; transition: transform .2s linear; }
.horizon path { fill: none; stroke: var(--paper); stroke-width: 1.5; }
.breath { display: grid; place-items: center; gap: 10px; }
.breath i { display: block; width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid var(--accent); transform: scale(.72); transition: transform 3s ease-in-out; }
.scene.active .breath i { animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.72); } 45%, 55% { transform: scale(1); } }
.plates { display: grid; gap: 8px; }
.plates svg { width: 100%; height: 44px; display: block; }
.plates rect.plate { fill: var(--ink); opacity: 0; transition: opacity .3s; }
.plates rect.plate.on { opacity: 1; }
.plates line { stroke: var(--ink); stroke-width: 3; }
.ledger { display: grid; gap: 4px; }
.ledger span { display: flex; justify-content: space-between; gap: 18px; }

/* ---------- the tray: your set, a bar pinned along the bottom ---------- */
.tray { position: fixed; z-index: 11; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px 22px; padding: 12px clamp(18px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); color: var(--ink); border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); transition: background-color .9s, color .9s, border-color .9s; }
.tray[hidden] { display: none; }
.tray-head { display: flex; gap: 12px; align-items: baseline; }
.tray-head .eyebrow { margin: 0; }
.tray-clear { border: 0; background: transparent; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .55; cursor: pointer; }
.tray-clear:hover, .tray-clear:focus-visible { opacity: 1; outline: none; }
.tray-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.tray-list li { display: inline-grid; grid-template-columns: 14px auto auto auto; gap: 0 7px; align-items: center; padding: 5px 8px 5px 7px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 999px; font-size: 13px; white-space: nowrap; }
.tray-list .swatch { display: block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.tray-list .price { font: 500 11px/1 var(--mono); opacity: .8; }
.tray-list button { border: 0; background: transparent; font: 500 13px/1 var(--mono); opacity: .5; cursor: pointer; padding: 0 2px; }
.tray-list button:hover, .tray-list button:focus-visible { opacity: 1; outline: none; }
.tray-note { grid-column: 1 / 3; font-size: 14px; color: color-mix(in srgb, var(--ink) 78%, transparent); text-wrap: pretty; }
.tray-total { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tray-total:empty { display: none; }
.tray-sheet { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.tray-sheet:hover, .tray-sheet:focus-visible { background: var(--ink); color: var(--paper); outline: none; }

/* ---------- the line sheet ---------- */
.linesheet { width: min(100%, 1240px); margin: 0 auto; padding: 90px clamp(18px, 4vw, 48px) 40px; display: grid; gap: 14px; }
.linesheet h2 { font: 400 clamp(34px, 4.4vw, 64px)/1 var(--serif); letter-spacing: -.025em; max-width: 20ch; }
.linesheet .body { max-width: 620px; }
.sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 20px; }
.set { display: grid; gap: 10px; align-content: start; }
.set img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--oat); }
.set h3 { display: flex; align-items: center; gap: 10px; font: italic 400 26px/1 var(--serif); }
.set h3 i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.set .pieces { gap: 6px; }
.set .piece { background: transparent; }
.set .piece[aria-pressed="true"] { background: var(--ink); }
.print-note { margin-top: 18px; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.colophon { width: min(100%, 1240px); margin: 0 auto; padding: 24px clamp(18px, 4vw, 48px) 140px; }
.colophon p { max-width: 760px; font: 400 12px/1.6 var(--mono); opacity: .7; }

@media (max-width: 900px) {
  .brand { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px 10px 170px; }
  .wordmark { margin-left: 0; justify-self: start; font-size: 22px; }
  .clock { display: none; }
  .hero { padding: 40px 18px 60px; }
  .scene { min-height: 0; align-items: start; }
  .scene .look { position: relative; height: 62svh; }
  .scene .look img { object-position: center 10%; }
  .scene .look::after { background: linear-gradient(180deg, transparent 60%, var(--paper) 100%); }
  .scene .copy { grid-template-columns: 1fr; padding: 0 18px 70px; margin-top: -60px; }
  .scene h2 { max-width: none; }
  .horizon { top: 24%; height: 90px; }
  .tray { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 10px 14px 12px; }
  .tray-note { grid-column: 1 / -1; font-size: 13px; }
  .tray-list { grid-column: 1 / -1; }
  .tray[data-collapsed="true"] .tray-list, .tray[data-collapsed="true"] .tray-note { display: none; }
}
@media (max-width: 420px) {
  .brand { padding-left: 14px; }
  .wordmark { display: none; }   /* the hero carries the name; the back link needs the room */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .eyebrow, .corner, .brand, .tray, .hero h1 em { transition: none; }
  .scene .look img { transition: none; transform: none; }
  .scrollhint span, .scene.active .breath i { animation: none; }
  .horizon svg { transition: none; }
}
/* ---------- printed, the page is a line sheet ---------- */
@media print {
  html, body { background: #fff; color: #111; }
  .corner, .brand, .hero, #scenes, .tray, .scrollhint, .print-note { display: none !important; }
  .linesheet { padding: 0; }
  .linesheet h2 { font-size: 26px; }
  .sets { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .set img { display: none; }
  .piece { border-color: #ccc; background: #fff !important; color: #111 !important; break-inside: avoid; }
  .piece[aria-pressed="true"] { border-color: #111; border-width: 2px; }
  .eyebrow { color: #555; }
  .colophon { padding: 20px 0; }
}
