/* AME Day Of: Angela Monique Events brand (gold on near-black, editorial serif headings) */
:root {
  --bg: #0b0b0c; --card: #151517; --card2: #1c1c1f; --line: #2a2a2e;
  --fg: #f3f0ea; --muted: #9a958c; --gold: #c4a265; --gold2: #e2c891;
  --done: #5d6b5a; --warn: #d9784a; --ok: #7fb07a;
  --serif: "Cormorant Garamond", "Didot", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.45; }
body { padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
main { max-width: 760px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
.kicker { color: var(--gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card.gold { border-color: var(--gold); }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
button, .btn { font: inherit; font-size: 15px; font-weight: 600; color: var(--fg); background: var(--card2); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
button:active { transform: scale(.98); }
button.primary { background: var(--gold); border-color: var(--gold); color: #17130b; }
button.danger { color: #ffb3a1; }
button.ghost { background: transparent; }
button[disabled] { opacity: .5; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--fg); background: #0f0f11; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.pill { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.live { color: #17130b; background: var(--gold); border-color: var(--gold); }
.pill.warn { color: var(--warn); border-color: var(--warn); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--fg); cursor: pointer; font-weight: 500; }
.chip.on { background: var(--gold); border-color: var(--gold); color: #17130b; font-weight: 700; }
#toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: #24221e; border: 1px solid var(--gold);
  color: var(--fg); padding: 12px 18px; border-radius: 14px; font-size: 15px; max-width: min(90vw, 520px); text-align: center; display: none; z-index: 50; }

/* timeline list */
.day { margin-top: 22px; }
.day > h3 { color: var(--gold2); margin-bottom: 8px; }
.item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.item .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold2); font-size: 15px; }
.item .t small { display: block; color: var(--muted); font-weight: 500; }
.item .ti { font-weight: 600; font-size: 17px; }
.item .who { color: var(--muted); font-size: 14px; margin-top: 2px; }
.item .notes { white-space: pre-wrap; font-size: 14px; color: #cfc9bf; margin-top: 6px; display: none; }
.item.open .notes { display: block; }
.item.done, .item.skip { opacity: .45; }
.item.skip .ti { text-decoration: line-through; }
.item.now { background: linear-gradient(90deg, rgba(196,162,101,.14), transparent); border-radius: 10px; padding-left: 8px; margin-left: -8px; }
.item.tbd .t { color: var(--warn); }
.item.mine .ti::before { content: "● "; color: var(--gold); font-size: 12px; vertical-align: 2px; }

/* now / next hero */
.hero { display: grid; gap: 10px; }
.hero .label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero .big { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.12; }
.hero .count { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold2); }
.bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); width: 0; }

/* confirm dialog in the house style (replaces the browser's plain confirm box) */
.dlg-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 60; animation: dlgfade .15s ease-out; }
.dlg { background: var(--card); border: 1px solid var(--gold); border-radius: 18px; padding: 22px 22px 18px; width: min(100%, 420px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: dlgpop .18s ease-out; }
.dlg h3 { font-size: 26px; margin-bottom: 6px; }
.dlg p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.dlg .row { justify-content: flex-end; }
.dlg button.danger-fill { background: #8f2a1c; border-color: #b3261e; color: #fff; }
@keyframes dlgfade { from { opacity: 0 } }
@keyframes dlgpop { from { opacity: 0; transform: translateY(8px) scale(.98) } }
.dlg button:focus { outline: none; }
.dlg button:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }

/* Angela's AM monogram (gold) */
.mono { display: block; height: 84px; width: auto; max-width: none; align-self: flex-start; object-fit: contain; margin-bottom: 10px; }
.mono.sm { height: 28px; margin: 0; }
.row .grow > .mono { height: 40px; }
