/* ============================================================
   DayFlow app — dark exhibition theme, same stage as the site.
   Tokens copied verbatim from css/style.css; components
   reference only semantic tokens.
   ============================================================ */

:root {
  /* color — warm near-black stage, ivory type, rose + champagne accents */
  --bg: #171419;
  --bg-elev: #201b24;
  --bg-elev-2: #282230;
  --fg: #f2ece2;
  --muted: #b3a89b;
  --rose: #e4667e;
  --rose-strong: #ef7c92;
  --rose-deep: #b03e54;
  --gold: #d9b98a;
  --gold-bright: #e8cda2;
  --border: rgba(242, 236, 226, 0.14);
  --border-strong: rgba(242, 236, 226, 0.28);
  --focus: #e8cda2;

  /* type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.5rem, 1.7rem + 4vw, 4.4rem);

  /* space (8-pt) */
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px;
  --section-pad: clamp(48px, 8vw, 128px);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --morph-dur: 850ms;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-3); font-weight: 900; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h1 em, h2 em { font-style: italic; font-weight: 700; color: var(--rose-strong); }

p { margin: 0 0 1em; }

a { color: var(--gold-bright); }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- focus & interaction states ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  background: var(--gold);
  color: #221c12;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms, border-color 180ms, color 180ms;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--rose);
  color: #2b0d14;
  border-color: var(--rose);
}
.btn-primary:hover { background: var(--rose-strong); border-color: var(--rose-strong); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-subtle {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn-subtle:hover { color: var(--fg); border-color: var(--border); }

.btn-sm { min-height: 44px; padding: 8px 20px; font-size: 0.82rem; }
.btn-wide { display: flex; width: 100%; }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.icon-btn {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color 150ms, background-color 150ms;
}
.icon-btn:hover { color: var(--gold-bright); background: var(--bg); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.del:hover { color: var(--rose-strong); background: color-mix(in oklab, var(--rose) 12%, transparent); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--bg);
  transition: opacity 600ms ease, visibility 600ms;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-art {
  position: relative;
  width: 120px;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-4);
}
.preloader-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  margin: 0 0 6px;
}
.preloader-title em { color: var(--rose-strong); }
.preloader-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin: 0;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  margin-right: auto;
}
.logo-mark { width: 26px; height: 26px; }
.logo-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
}
.app-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
@media (max-width: 640px) {
  .app-tag { display: none; }
}

/* ---------- shard artwork ---------- */
.shard-canvas { position: relative; }
.shard {
  position: absolute;
  inset: 0;
  transition:
    clip-path var(--morph-dur) var(--ease-out),
    background-color var(--morph-dur) var(--ease-out),
    opacity calc(var(--morph-dur) * 0.6) ease;
  will-change: clip-path;
}

/* ---------- layout ---------- */
.wrap {
  max-width: 920px;
  margin-inline: auto;
  padding: 104px clamp(16px, 4vw, 32px) var(--space-8);
}

.intro { padding: var(--space-5) 0 var(--space-4); }
.intro .lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}
.intro-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- viewing banner (read-only shared link) ---------- */
.view-banner[hidden] { display: none; }
.view-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  border: 1px solid color-mix(in oklab, var(--gold) 45%, transparent);
  background: color-mix(in oklab, var(--gold) 8%, transparent);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  text-align: center;
}
.view-banner strong { color: var(--fg); font-weight: 500; }
.view-banner a { color: var(--rose-strong); text-decoration-color: color-mix(in oklab, var(--rose) 50%, transparent); }

/* ---------- cards ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-block: var(--space-4);
}
@media (max-width: 640px) {
  .card { padding: var(--space-4) var(--space-3); }
}
.card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.card-head h2 { margin: 0; font-size: var(--step-2); }
.card-icon {
  position: relative;
  width: 44px;
  aspect-ratio: 1 / 1;
  flex: none;
}

/* ---------- inputs ---------- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 640px) {
  .details-grid { grid-template-columns: 1fr; }
}
.fld label,
.g-field label,
.g-choice legend {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 8px;
  padding: 0;
}
.fld input,
.g-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 180ms;
}
.fld input::placeholder { color: color-mix(in oklab, var(--muted) 55%, transparent); }
.fld input:hover, .g-field select:hover { border-color: var(--gold); }
.fld input:focus, .g-field select:focus { outline: none; border-color: var(--gold); }
.g-field select { cursor: pointer; }

/* ---------- tip callout ---------- */
.tip {
  background: color-mix(in oklab, var(--gold) 10%, transparent);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: var(--space-3);
}
.tip strong { color: var(--gold-bright); font-weight: 600; }

/* ---------- timeline rows (the site's demo rows, made editable) ---------- */
.rows-head {
  display: grid;
  grid-template-columns: 14px 136px minmax(0, 1.2fr) minmax(0, 1fr) 132px;
  gap: 10px;
  padding: 0 12px 8px calc(clamp(18px, 3vw, 26px) + 13px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.rows-wrap {
  border-left: 1px solid var(--border-strong);
  margin-left: 6px;
  padding-left: clamp(18px, 3vw, 26px);
  display: grid;
  gap: 10px;
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 14px 136px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms var(--ease-out), opacity 200ms;
}
.row::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(18px, 3vw, 26px) - 5.5px);
  top: 50%;
  margin-top: -5px;
  width: 10px; height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: background-color 200ms, transform 200ms var(--ease-out);
}
.row.star::before { background: var(--rose); transform: scale(1.3); }
.row.dragging {
  opacity: 0.45;
  border-color: var(--rose);
}
.row.dragging::before { background: var(--rose); }
.row.over {
  border-color: var(--rose);
  box-shadow: 0 12px 28px rgba(228, 102, 126, 0.18);
  transform: translateY(-2px);
}

.grip {
  width: 14px; height: 18px;
  background-image: radial-gradient(circle, var(--border-strong) 1.5px, transparent 1.6px);
  background-size: 5px 6px;
  cursor: grab;
  flex: none;
}
.grip:active { cursor: grabbing; }

.row input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  transition: border-color 180ms, background-color 180ms;
}
.row input:hover { border-color: var(--border); }
.row input:focus { outline: none; border-color: var(--gold); background: var(--bg-elev); }
.row input::placeholder { color: color-mix(in oklab, var(--muted) 55%, transparent); }

/* every time of day renders in mono gold — the brand signature */
.row input.time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.row input.time::-webkit-calendar-picker-indicator { opacity: 0.45; cursor: pointer; }

/* serif event title, muted note — same anatomy as the site's demo rows */
.row input.ev {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.row input.notes {
  color: var(--muted);
  font-size: 0.9rem;
}

.row-ctrl { display: flex; gap: 0; }

/* read-only rows are true text — it wraps, and times read as times */
.row span.time, .row span.ev, .row span.notes { display: block; padding: 8px 10px; }
.row span.time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.row span.ev {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}
.row span.notes { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.add-row {
  width: 100%;
  min-height: 48px;
  margin-top: var(--space-3);
  background: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 180ms, background-color 180ms, color 180ms;
}
.add-row:hover {
  border-color: var(--gold);
  background: color-mix(in oklab, var(--gold) 6%, transparent);
  color: var(--gold-bright);
}

.empty-note {
  position: relative;
  color: var(--muted);
  font-style: italic;
  padding: 10px 0;
  margin: 0;
}
.empty-note::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(18px, 3vw, 26px) - 5.5px);
  top: 50%;
  margin-top: -5px;
  width: 10px; height: 10px;
  background: var(--border-strong);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

@media (max-width: 760px) {
  .rows-head { display: none; }
  .row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    grid-template-areas:
      "grip time ctrl"
      "ev   ev   ev"
      "notes notes notes";
    padding: 10px 12px;
  }
  .row .grip { grid-area: grip; }
  .row .time { grid-area: time; max-width: 150px; }
  .row .row-ctrl { grid-area: ctrl; }
  .row .ev { grid-area: ev; }
  .row .notes { grid-area: notes; }
}

/* ---------- action bar & footer ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}
.app-foot {
  margin-top: var(--space-7);
  text-align: center;
  display: grid;
  gap: var(--space-2);
}
.foot-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin: 0;
}
.foot-line a { color: var(--muted); text-decoration-color: var(--border-strong); }
.foot-line a:hover { color: var(--gold-bright); }

/* ---------- modals ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: 20px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.overlay.open { display: grid; }
.modal {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5) var(--space-5);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.modal h2 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.modal-sub { color: var(--muted); margin-bottom: var(--space-4); max-width: 48ch; }
.modal-close { position: absolute; top: 10px; right: 10px; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.share-art {
  position: relative;
  width: 96px;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-3);
}
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: var(--space-4) 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.or::before, .or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.linkbox { display: flex; gap: 8px; margin-bottom: 10px; }
.linkbox input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}
.step small { display: block; color: var(--muted); font-size: 0.85rem; }

/* generator */
.g-grid { display: grid; gap: var(--space-4); }
.g-choice { border: none; margin: 0; padding: 0; }
.g-choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  margin-bottom: 8px;
  cursor: pointer;
  min-height: 32px;
}
.g-choice input {
  accent-color: var(--rose);
  width: 18px; height: 18px;
  cursor: pointer;
}
.g-preview {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  margin: var(--space-4) 0 0;
}
.g-preview .g-time { color: var(--gold-bright); }

/* ---------- access gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 240; /* above header (100) & overlays (150), below preloader (300) */
  display: grid;
  place-items: center;
  overflow-y: auto;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(228, 102, 126, 0.07), transparent 60%),
    var(--bg);
  padding: var(--space-6) clamp(16px, 5vw, 48px);
  transition: opacity 600ms var(--ease-out), visibility 600ms;
}
.gate.done { opacity: 0; visibility: hidden; }
.gate-inner {
  width: min(440px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
}
.gate-art {
  position: relative;
  width: 110px;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-4);
}
.gate-inner h2 { font-size: var(--step-3); font-weight: 900; margin-bottom: var(--space-2); }
.gate-sub { color: var(--muted); max-width: 40ch; margin-bottom: var(--space-5); }
.gate-form { display: grid; gap: var(--space-3); width: 100%; }
.gate-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-align: left;
  margin-bottom: -6px;
}
#gateCode {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--gold-bright);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 180ms;
}
#gateCode::placeholder { color: color-mix(in oklab, var(--muted) 40%, transparent); letter-spacing: 0.04em; }
#gateCode:focus { outline: none; border-color: var(--gold); }
.gate-error {
  color: var(--rose-strong);
  font-size: var(--step--1);
  margin: -4px 0 0;
}
.gate-alt { margin-top: var(--space-5); display: grid; gap: var(--space-3); justify-items: center; }
.gate-gift {
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 40ch;
  margin: 0;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 220;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  opacity: 0;
  transition: opacity 250ms, transform 250ms var(--ease-out);
  pointer-events: none;
  max-width: min(92vw, 560px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- read-only view ---------- */
body.view-only .grip,
body.view-only .row-ctrl,
body.view-only .add-row,
body.view-only .intro-actions,
body.view-only #shareBtnTop,
body.view-only #shareBtn,
body.view-only #freshBtn { display: none; }
body.view-only .row {
  grid-template-columns: 136px minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: baseline;
  padding: 10px 12px;
}
body.view-only .rows-head {
  grid-template-columns: 136px minmax(0, 1.2fr) minmax(0, 1fr);
  padding-left: calc(clamp(18px, 3vw, 26px) + 25px);
}
body.view-only .rows-head span:first-child,
body.view-only .rows-head span:last-child { display: none; }
body.view-only .row input { pointer-events: none; }
body.view-only .fld input { pointer-events: none; }
body.view-only .fld input::placeholder { color: transparent; }
@media (max-width: 760px) {
  body.view-only .row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "time" "ev" "notes";
  }
  body.view-only .row span.time,
  body.view-only .row span.ev,
  body.view-only .row span.notes { padding-block: 2px; }
}

/* ---------- print: ink on white, clean binder page ---------- */
#printView { display: none; }
@media print {
  @page { margin: 14mm; }
  :root { color-scheme: light; }
  body { background: #fff; color: #000; overflow: visible; }
  .site-header, .wrap, .overlay, .toast, .preloader, .skip-link { display: none !important; }
  #printView { display: block; font-family: var(--font-body); font-weight: 400; color: #000; }
  #printView .pv-head { text-align: center; margin-bottom: 24px; }
  #printView .pv-brand {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #000;
  }
  #printView .pv-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin: 8px 0 4px; }
  #printView .pv-couple { font-size: 15px; margin: 0; }
  #printView .pv-meta { font-size: 12px; color: #444; margin: 2px 0 0; }
  #printView .pv-section { margin: 18px 0; break-inside: avoid; page-break-inside: avoid; }
  #printView .pv-section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0;
    color: #000;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin: 0 0 10px;
  }
  #printView .pv-row { display: flex; gap: 14px; padding: 5px 0; break-inside: avoid; font-size: 13px; line-height: 1.45; align-items: baseline; }
  #printView .pv-time { width: 84px; flex: 0 0 84px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
  #printView .pv-ev { flex: 1; }
  #printView .pv-note { color: #555; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
