/* Burlington Days — What Now's big sibling.
   Same room: a piece of Burlington sky dissolving into black, glass cards,
   one gold accent. What Now answers the next hour on one card; this page
   holds a whole day, so the timeline is the hero and everything else stays
   quiet. Nothing here asks the reader to type. */

@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/instrument-serif-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../assets/fonts/dm-sans-latin.woff2') format('woff2');
}

:root {
  --ground: #06080A;
  --ink: #F2F0EA;
  --ink-soft: rgba(242, 240, 234, .72);
  --ink-faint: rgba(242, 240, 234, .45);
  --glass: rgba(255, 255, 255, .06);
  --glass-hover: rgba(255, 255, 255, .11);
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-edge-hi: rgba(255, 255, 255, .32);
  --gold: #E8A33D;
  --gold-deep: #C9822A;
  --gold-soft: rgba(232, 163, 61, .16);
  --good: #6FD79E;
  --serif: "Instrument Serif", "Lora", Georgia, serif;
  --ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --pill: 999px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sky-top: #2E5F92; --sky-mid: #5484B0; --sky-low: #9FC0D8;
}
html[data-phase="night"]   { --sky-top:#05070D; --sky-mid:#0A1226; --sky-low:#14213A; }
html[data-phase="dawn"]    { --sky-top:#1E2A4E; --sky-mid:#8A5A6E; --sky-low:#E8927C; }
html[data-phase="morning"] { --sky-top:#27547E; --sky-mid:#4E7CA6; --sky-low:#A8C4D8; }
html[data-phase="day"]     { --sky-top:#2E5F92; --sky-mid:#5484B0; --sky-low:#9FC0D8; }
html[data-phase="golden"]  { --sky-top:#3D6088; --sky-mid:#E09A4E; --sky-low:#F5C173; }
html[data-phase="dusk"]    { --sky-top:#232B55; --sky-mid:#6E4A72; --sky-low:#C96A4A; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  font-family: var(--ui); font-size: 15.5px; line-height: 1.5; font-weight: 350;
  background:
    linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 14%, var(--sky-low) 26%,
      rgba(10, 13, 16, .92) 44%, var(--ground) 60%) fixed,
    var(--ground);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
  transition: background 1.2s var(--ease);
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #F0BA65; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.view { display: none; flex-direction: column; flex-grow: 1; }
.view[data-active] { display: flex; }
.pad { padding-left: 20px; padding-right: 20px; }
.grow { flex-grow: 1; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.spread { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }

/* ---------- head: the sky speaks ---------- */
.masthead { padding: 26px 20px 4px; }
.brand { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.greeting {
  font-size: clamp(2rem, 8.5vw, 2.6rem); line-height: 1.06; margin-top: 8px;
  text-wrap: balance;
}
.greeting em { font-style: italic; color: var(--gold); }
.ctx { margin: 8px 0 0; color: var(--ink-soft); font-size: 13.5px; min-height: 20px; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.whenrow { padding: 18px 20px 10px; }
.moodrow { padding: 2px 20px 6px; }
.chip {
  min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 15px;
  border-radius: var(--pill); background: var(--glass); border: 1px solid var(--glass-edge);
  color: var(--ink-soft); font-size: 13.5px; font-weight: 420;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.chip:hover { background: var(--glass-hover); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] {
  background: var(--gold-soft); border-color: var(--gold); color: var(--ink); font-weight: 500;
}
.chip.when { min-height: 36px; font-size: 12.5px; padding: 0 13px; }

/* ---------- the day itself ---------- */
.dayhead { padding: 14px 20px 2px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dayname { font-size: 1.45rem; line-height: 1.15; }
.dayname i { font-style: italic; color: var(--gold); }
.dayfrom { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-faint); }

.timeline { padding: 14px 20px 4px; display: flex; flex-direction: column; }
.stop { display: flex; gap: 14px; opacity: 0; animation: rise .45s var(--ease) forwards; }
.stop:nth-child(2) { animation-delay: .06s; } .stop:nth-child(3) { animation-delay: .12s; }
.stop:nth-child(4) { animation-delay: .18s; } .stop:nth-child(5) { animation-delay: .24s; }
.stop:nth-child(6) { animation-delay: .30s; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.stop .when-col { width: 52px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
.stop .when-col b { font-size: 12px; font-weight: 600; color: var(--gold); padding-top: 4px; letter-spacing: .02em; }
.stop .rail { width: 1px; flex-grow: 1; background: var(--glass-edge); margin: 6px 25px 0 0; align-self: flex-end; }
.stop .body {
  flex-grow: 1; margin-bottom: 10px; padding: 13px 14px 12px;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.stop .body.swapping { animation: swapfade .35s var(--ease); }
@keyframes swapfade { from { opacity: .25; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.stop .toprow { display: flex; align-items: flex-start; gap: 8px; }
.stop h3 { font-size: 1.28rem; line-height: 1.15; flex-grow: 1; min-width: 0; }
.stop .why { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stop .note { font-size: 13px; color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 15px; }
.reroll {
  flex-shrink: 0; width: 34px; height: 34px; margin: -4px -4px 0 0;
  border: 0; border-radius: var(--pill); background: transparent; color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  transition: color .15s var(--ease), background .15s var(--ease), transform .3s var(--ease);
}
.reroll:hover { color: var(--gold); background: var(--glass-hover); }
.reroll:active { transform: rotate(180deg); }
.badge {
  font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--pill); color: var(--ground); background: var(--gold);
  flex-shrink: 0; align-self: center;
}
.badge.soft { background: var(--gold-soft); color: var(--gold); }

/* skeleton while feeds land */
.skel .body { min-height: 64px; animation: pulse 1.3s ease-in-out infinite; }
.skel .when-col b { color: var(--ink-faint); }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: .25; } }

/* notices */
.notices { padding: 2px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.notice {
  background: var(--gold-soft); border: 1px solid rgba(232, 163, 61, .35);
  border-radius: 12px; padding: 10px 13px; font-size: 12.5px; line-height: 1.5; color: var(--ink);
}
.notice b { color: var(--gold); font-weight: 600; }
.warnline {
  background: var(--glass); border: 1px solid var(--glass-edge);
  border-radius: 12px; padding: 10px 13px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
}

/* ---------- action bar ---------- */
.actionbar {
  position: sticky; bottom: 0; margin-top: auto;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ground) 65%, transparent);
  display: flex; gap: 10px;
}
.btn {
  min-height: 52px; border-radius: var(--pill); display: flex; align-items: center;
  justify-content: center; gap: 8px; font-size: 15.5px; font-weight: 500; border: 0;
  transition: transform .12s var(--ease), background .15s var(--ease), opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn.solid { flex: 1.6; background: var(--gold); color: var(--ground); font-weight: 600; }
.btn.solid:hover { background: #F0BA65; }
.btn.solid[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost { flex: 1; background: var(--glass); border: 1px solid var(--glass-edge); color: var(--ink); }
.btn.ghost:hover { background: var(--glass-hover); border-color: var(--glass-edge-hi); }

/* ---------- footer honesty ---------- */
.credit { padding: 6px 20px 16px; font-size: 11.5px; color: var(--ink-faint); line-height: 1.55; }
.credit a { color: var(--ink-soft); }
.saylink { padding: 0 20px 8px; }
.saylink button { border: 0; background: none; padding: 0; color: var(--ink-faint); font-size: 12.5px; }
.saylink button:hover { color: var(--ink-soft); }
.sayform { padding: 0 20px 10px; display: flex; gap: 8px; }
.sayform input {
  flex-grow: 1; min-height: 46px; border-radius: var(--pill); border: 1px solid var(--glass-edge);
  background: var(--glass); color: var(--ink); font: inherit; padding: 0 16px; min-width: 0;
}
.sayform input::placeholder { color: var(--ink-faint); }
.sayform input:focus { outline: none; border-color: var(--gold); }
.sayform .go {
  width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: var(--pill);
  background: var(--gold); color: var(--ground); display: flex; align-items: center; justify-content: center;
}

/* ---------- kept days strip ---------- */
.kept { padding: 10px 0 6px; }
.kept .label { padding: 0 20px 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.keptshelf { display: flex; gap: 10px; overflow-x: auto; padding: 2px 20px 10px; scrollbar-width: none; }
.keptshelf::-webkit-scrollbar { display: none; }
.keptcard {
  flex: 0 0 210px; text-align: left; padding: 13px 14px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-edge); color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
}
.keptcard:hover { background: var(--glass-hover); }
.keptcard b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; line-height: 1.2; }
.keptcard small { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.keptcard i { font-style: normal; color: var(--good); font-size: 11.5px; }

/* ---------- sheet (save / publish) ---------- */
.sheet {
  position: fixed; inset: auto 0 0 0; max-width: 480px; margin: 0 auto; z-index: 30;
  background: rgba(14, 17, 21, .97); border-top: 1px solid var(--glass-edge-hi);
  border-radius: 20px 20px 0 0; padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 44px rgba(0, 0, 0, .6);
}
.sheet h3 { font-size: 1.4rem; }
.sheet .sub { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.sheet label { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.sheet label span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.sheet input {
  min-height: 50px; border-radius: 12px; border: 1px solid var(--glass-edge);
  background: var(--glass); color: var(--ink); font: inherit; font-size: 15.5px; padding: 0 15px;
}
.sheet input:focus { outline: none; border-color: var(--gold); }
.sheet .btns { display: flex; gap: 9px; margin-top: 16px; }

/* ---------- gate / live / rate share the room ---------- */
.gatewrap { justify-content: center; padding-bottom: 10dvh; }
.gate-title { font-size: clamp(2rem, 9vw, 2.5rem); line-height: 1.1; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.gate-input {
  min-height: 54px; border-radius: var(--pill); border: 1px solid var(--glass-edge);
  background: var(--glass); color: var(--ink); font: inherit; font-size: 16px; padding: 0 18px; width: 100%;
}
.gate-input:focus { outline: none; border-color: var(--gold); }

.livecard {
  margin: 0 20px; padding: 18px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-edge-hi);
  display: flex; flex-direction: column; gap: 7px;
}
.livecard h2 { font-size: 1.7rem; line-height: 1.1; }
.raildot { width: 20px; height: 20px; border-radius: var(--pill); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.raildot.done { background: var(--good); color: var(--ground); }
.raildot.next { border: 2px solid var(--gold); }
.raildot.later { border: 2px solid var(--glass-edge); }

.rate-row {
  margin: 0 20px 8px; padding: 10px 11px 10px 15px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px;
}
.thumb {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--glass-edge);
  background: transparent; color: var(--ink-faint); display: flex; align-items: center; justify-content: center;
}
.thumb[aria-pressed="true"] { background: rgba(111, 215, 158, .16); border-color: var(--good); color: var(--good); }
.thumb.down[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.thumb.down svg { transform: rotate(180deg); }

.icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
}
.icon-btn:hover { background: var(--glass-hover); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
