/* ============================================================
   Father's Day — DAD'S GARAGE (for Mr Boateng)
   Classic-car magazine: feature cover, spec sheet, license
   plate, odometer photo log, road-trip stereo, plate sign-off.
   Mobile-first.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Archivo:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --font-head: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-cond: 'Oswald', system-ui, sans-serif;
  --font-ui:   'Archivo', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --maxw: 460px;
  --paint: #E0A53C;
}

/* ---------- Modes ---------- */
[data-mode="midnight"] {
  --bg:       #14181D;
  --bg2:      #1B2128;
  --panel:    #212932;
  --panel-2:  #2A333D;
  --ink:      #ECE7DC;
  --ink-soft: #B7BDC4;
  --muted:    #7E868F;
  --chrome:   linear-gradient(180deg, #f4f6f8, #c4ccd3 48%, #e8edf1);
  --asphalt:  #0E1217;
  --hair:     rgba(236,231,220,0.13);
  --paint:    #E0A53C;
  --glow:     rgba(224,165,60,0.16);
}
[data-mode="showroom"] {
  --bg:       #E3DDD0;
  --bg2:      #D9D2C2;
  --panel:    #FAF7EF;
  --panel-2:  #F0ECE0;
  --ink:      #181C20;
  --ink-soft: #4A5158;
  --muted:    #8A8C84;
  --chrome:   linear-gradient(180deg, #ffffff, #cfd4d8 48%, #f0f3f5);
  --asphalt:  #C8C2B3;
  --hair:     rgba(24,28,32,0.14);
  --paint:    #B5781C;
  --glow:     rgba(181,120,28,0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--asphalt);
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#root { min-height: 100vh; }

.page {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 55% at 50% -4%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 32%);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0,0,0,0.45);
  transition: background .5s ease, color .5s ease;
}
.content { position: relative; z-index: 4; }

/* ---------- atoms ---------- */
.kicker { font-family: var(--font-cond); font-weight: 600; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paint); }
.divider { height: 1px; background: var(--hair); margin: 0 24px; }
.plate {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--chrome); color: #15181c;
  border-radius: 7px; padding: 7px 13px;
  font-family: var(--font-head); font-size: 22px; letter-spacing: 0.08em; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.18), inset 0 0 0 4px rgba(255,255,255,0.4), 0 4px 10px rgba(0,0,0,0.3);
}
.plate .bolt { width: 6px; height: 6px; border-radius: 50%; background: #15181c; opacity: .5; }
.plate .reg { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; }

/* ============================================================
   HERO — magazine cover + spec sheet
   ============================================================ */
.hero { padding: 16px 22px 38px; position: relative; }
.masthead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.masthead .brand { font-family: var(--font-head); font-size: 26px; letter-spacing: 0.04em; line-height: 0.8; color: var(--ink); }
.masthead .brand b { color: var(--paint); }
.masthead .issue { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.5; }

.cover-frame {
  position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 6px; background: var(--asphalt);
  box-shadow: 0 22px 48px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.cover-frame image-slot { width: 100%; height: 100%; display: block; }
.cover-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 4%, rgba(0,0,0,0.15) 42%, transparent 66%); pointer-events: none; }
.cover-tag {
  position: absolute; top: 14px; left: 14px; white-space: nowrap;
  font-family: var(--font-cond); font-weight: 600; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: var(--paint); padding: 5px 11px; border-radius: 3px;
}
.cover-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 18px 18px; z-index: 2; }
.cover-foot .feature { font-family: var(--font-cond); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.78); margin-bottom: 2px; }
.cover-foot h1 { font-family: var(--font-head); font-size: clamp(48px, 16vw, 72px); line-height: 0.82; letter-spacing: 0.01em; color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.cover-foot .sub { font-family: var(--font-cond); font-weight: 400; font-style: italic; font-size: 15px; color: var(--paint); margin-top: 7px; }

/* spec sheet */
.specs { margin-top: 20px; background: var(--panel); border-radius: 10px; padding: 6px 18px; box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.spec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.spec-row:last-child { border-bottom: none; }
.spec-row .lab { font-family: var(--font-cond); font-weight: 500; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.spec-row .val { font-family: var(--font-head); font-size: 21px; letter-spacing: 0.03em; color: var(--ink); text-align: right; line-height: 1; white-space: nowrap; }
.spec-row .val small { font-family: var(--font-cond); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; color: var(--paint); }

.startup {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 24px auto 0; width: 100%; cursor: pointer;
  background: var(--paint); color: #15120b; border: none; border-radius: 100px;
  padding: 15px 24px;
  font-family: var(--font-head); font-size: 19px; letter-spacing: 0.08em;
  box-shadow: 0 12px 26px rgba(0,0,0,0.3); transition: transform .15s ease;
}
.startup:active { transform: scale(.97); }
.startup .ring { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #15120b; display: grid; place-items: center; }
.startup .ring svg { width: 12px; height: 12px; }

/* ============================================================
   THE LOGBOOK — message
   ============================================================ */
.logbook { padding: 44px 22px; }
.logbook-card { background: var(--panel); border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,0.25); overflow: hidden; }
.logbook-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--panel-2); border-bottom: 2px solid var(--paint); }
.logbook-top .gauge { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--paint); position: relative; }
.logbook-top .gauge::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 10px; background: var(--paint); transform-origin: bottom center; transform: translate(-50%, -100%) rotate(38deg); border-radius: 2px; }
.logbook-top .h { font-family: var(--font-head); font-size: 20px; letter-spacing: 0.06em; color: var(--ink); line-height: 1.05; }
.logbook-top .h small { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted); margin-top: 4px; }
.logbook-body { padding: 22px 22px 24px; }
.letter { font-family: var(--font-ui); font-size: 17px; line-height: 1.66; color: var(--ink); font-weight: 400; }
.letter p { margin: 0 0 0.95em; }
.letter em { color: var(--paint); font-style: normal; font-weight: 700; }
.sign-inline { margin-top: 18px; font-family: var(--font-head); font-size: 26px; letter-spacing: 0.04em; color: var(--ink); }

/* ============================================================
   THE ROAD SO FAR — odometer gallery
   ============================================================ */
.road { padding: 30px 22px 44px; }
.road-head { text-align: center; margin-bottom: 12px; }
.road-head .kicker { display: block; margin-bottom: 10px; }
.odometer {
  display: inline-flex; gap: 3px; padding: 8px 10px; border-radius: 5px;
  background: #0c0f13; box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}
.odometer span {
  font-family: var(--font-mono); font-weight: 500; font-size: 26px; color: #f4f6f8;
  background: linear-gradient(180deg, #2a3037, #14181d); padding: 4px 7px; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.odometer span.unit { color: var(--paint); background: none; box-shadow: none; align-self: center; font-size: 12px; letter-spacing: 0.12em; }
.road-sub { font-family: var(--font-cond); font-weight: 400; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

.road-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.snap { background: var(--panel); padding: 8px 8px 12px; border-radius: 4px; box-shadow: 0 12px 24px rgba(0,0,0,0.28); }
.snap .art { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; background: var(--asphalt); }
.snap .art image-slot { width: 100%; height: 100%; display: block; }
.snap .mi { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding: 0 2px; }
.snap .mi .marker { font-family: var(--font-cond); font-weight: 600; font-size: 9px; letter-spacing: 0.1em; color: #fff; background: var(--paint); padding: 2px 6px; border-radius: 2px; text-transform: uppercase; white-space: nowrap; }
.snap .mi .place { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ============================================================
   ROAD-TRIP MIX — stereo
   ============================================================ */
.stereo { padding: 30px 22px 44px; }
.deck {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-radius: 12px; padding: 16px; box-shadow: 0 14px 30px rgba(0,0,0,0.3), inset 0 0 0 1px var(--hair);
}
.deck-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.deck-top .fm { font-family: var(--font-head); font-size: 17px; letter-spacing: 0.06em; color: var(--paint); }
.deck-top .freq { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.tuner { height: 6px; border-radius: 3px; background: #0c0f13; position: relative; margin-bottom: 16px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.6); }
.tuner .needle { position: absolute; top: -4px; bottom: -4px; left: 64%; width: 3px; background: var(--paint); border-radius: 2px; box-shadow: 0 0 7px var(--paint); }
.tuner .ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 5%; align-items: center; }
.tuner .ticks i { width: 1px; height: 60%; background: rgba(255,255,255,0.2); }
.deck-main { display: flex; align-items: center; gap: 14px; }
.deck-art { width: 64px; height: 64px; flex: none; border-radius: 6px; overflow: hidden; background: var(--asphalt); position: relative; }
.deck-art image-slot { width: 100%; height: 100%; display: block; }
.deck-meta { flex: 1; min-width: 0; }
.deck-meta .lbl { font-family: var(--font-cond); font-weight: 600; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paint); }
.deck-meta .ttl { font-family: var(--font-head); font-size: 22px; letter-spacing: 0.03em; line-height: 1; margin: 4px 0 3px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-meta .by { font-family: var(--font-cond); font-weight: 400; font-size: 13px; color: var(--muted); }
.deck-meta .eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 12px; margin-top: 8px; }
.deck-meta .eq i { width: 2.5px; background: var(--paint); height: 30%; border-radius: 2px; }
.stereo.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(1){animation-delay:-.2s}.eq i:nth-child(2){animation-delay:-.5s}.eq i:nth-child(3){animation-delay:-.1s}.eq i:nth-child(4){animation-delay:-.7s}.eq i:nth-child(5){animation-delay:-.35s}
@keyframes eq { 0%,100%{height:22%} 50%{height:100%} }
.deck-btn {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  border: none; background: var(--paint); color: #15120b; display: grid; place-items: center;
  cursor: pointer; transition: transform .15s ease; box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.deck-btn:active { transform: scale(.92); }
.deck-btn svg { width: 18px; height: 18px; }

/* ============================================================
   SIGN-OFF — odometer + plate
   ============================================================ */
.signoff { padding: 26px 22px 96px; text-align: center; }
.signoff .miles-label { font-family: var(--font-cond); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.big-odo { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 7px; background: #0c0f13; box-shadow: inset 0 3px 8px rgba(0,0,0,0.6); margin-bottom: 8px; }
.big-odo span { font-family: var(--font-mono); font-weight: 500; font-size: 32px; color: #f4f6f8; background: linear-gradient(180deg, #2a3037, #14181d); padding: 6px 9px; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.signoff .miles-unit { font-family: var(--font-cond); font-weight: 500; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paint); margin-bottom: 30px; }
.signoff .from-plate { display: inline-block; font-size: 20px; letter-spacing: 0.12em; padding: 13px 34px; white-space: nowrap; }
.signoff .date { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }

/* ============================================================
   FLOATING — speedo pill
   ============================================================ */
.music-pill {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 70; display: flex; align-items: center; gap: 11px;
  background: var(--panel); border: 1px solid var(--hair); box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  border-radius: 100px; padding: 7px 16px 7px 8px; cursor: pointer;
  max-width: calc(var(--maxw) - 44px); width: max-content; font-family: var(--font-ui);
  transition: transform .2s ease;
}
.music-pill:active { transform: translateX(-50%) scale(.97); }
.pill-wheel {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--paint) 0 22%, #15181c 23% 38%, #2a333d 39% 100%);
  box-shadow: inset 0 0 0 3px #0c0f13;
  position: relative;
}
.pill-wheel::before, .pill-wheel::after { content: ""; position: absolute; left: 50%; top: 50%; background: #2a333d; }
.pill-wheel::before { width: 3px; height: 44%; transform: translate(-50%, -50%); }
.pill-wheel::after { width: 44%; height: 3px; transform: translate(-50%, -50%); }
.music-pill.playing .pill-wheel { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill-txt { line-height: 1.15; min-width: 0; }
.pill-txt .a { font-family: var(--font-cond); font-weight: 600; font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pill-txt .b { font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.pill-eq i { width: 2.5px; background: var(--paint); height: 30%; border-radius: 2px; }
.music-pill.playing .pill-eq i { animation: eq 0.9s ease-in-out infinite; }
.pill-eq i:nth-child(1){animation-delay:-.2s}.pill-eq i:nth-child(2){animation-delay:-.55s}.pill-eq i:nth-child(3){animation-delay:-.1s}.pill-eq i:nth-child(4){animation-delay:-.4s}

/* ---------- checkered-flag confetti ---------- */
.confetti-layer { position: fixed; inset: 0; z-index: 75; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -24px; width: 9px; height: 9px; border-radius: 1px; background: var(--paint); opacity: 0; will-change: transform, opacity; }

image-slot { background: var(--asphalt); }

@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  .eq i, .pill-eq i, .music-pill.playing .pill-wheel { animation: none !important; }
}


/* ============================================================
   desktop.css — big-screen (tablet / laptop) layout for ALL
   five Father's Day themes. Mobile stays untouched; at >= 992px
   the page becomes a two-pane spread: a sticky hero panel on the
   left, the notes / gallery / music / sign-off scrolling on the
   right, with galleries opening up to more columns.

   Relies on the shared structure each app now uses:
     .page > .content > (header.hero + .rest)
   ============================================================ */

@media (min-width: 992px) {

  /* ---------------- shared frame ---------------- */
  .page {
    max-width: 1200px;
    overflow: visible;            /* let the hero pin via position:sticky */
  }

  .content {
    display: grid;
    grid-template-columns: minmax(360px, 432px) minmax(0, 1fr);
    column-gap: 60px;
    align-items: start;
    padding: 0 52px;
  }

  .hero {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .rest { min-width: 0; }
  .rest > .divider:first-child { display: none; }

  /* keep long-form reading at a comfortable measure */
  .rest .letter { max-width: 58ch; }

  /* ---------------- ELEGANT (styles.css) ---------------- */
  .hero-portrait { max-height: 58vh; }
  .gallery .grid { gap: 16px; }

  /* ---------------- CINEMA (cinema.css) ---------------- */
  .poster-wrap { max-width: 360px; margin-left: auto; margin-right: auto; }
  .poster { max-height: 42vh; }
  .hero .bulb-rule { margin-top: 12px; margin-bottom: 16px; }

  /* ---------------- HIGHLIFE (highlife.css) ---------------- */
  .record-set { max-width: 432px; }
  .crate-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---------------- MATCHDAY (matchday.css) ---------------- */
  .markings { display: none; }
  .sticker-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---------------- GARAGE (garage.css) ---------------- */
  .cover-frame { max-height: 46vh; }
  .specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .spec-row { padding: 11px 0; }
  .road-grid { grid-template-columns: repeat(3, 1fr); }
}

/* A roomier mid-band for large tablets / small laptops in portrait. */
@media (min-width: 992px) and (max-width: 1180px) {
  .content { column-gap: 44px; padding: 0 36px; }
  .crate-grid, .sticker-grid, .road-grid { grid-template-columns: repeat(2, 1fr); }
}



/* ============================================================
   Static control state — vanilla music + confetti helpers.
   (Added for the no-framework static build.)
   ============================================================ */
[data-music-toggle] { cursor: pointer; }
.i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: inline-block; }
[data-when-playing] { display: none; }
.is-playing [data-when-idle] { display: none; }
.is-playing [data-when-playing] { display: inline; }
