/* יובל & איתי — Save the Date. Tokens from the design system. */
@font-face { font-family: 'IBM Plex Sans Hebrew'; src: url('fonts/IBMPlexSansHebrew-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; src: url('fonts/IBMPlexSansHebrew-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Assistant'; src: url('fonts/Assistant-Variable.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --navy: #1e3a5f;
  --navy-soft: #e2e7ec;
  --on-navy: var(--paper);
  --terracotta: #a94f29;
  --cream: #f6f1e7;
  --paper: #fffcf6;
  --ink: #2b2a24;
  --ink-muted: #6b6457;
  --line: #d9cfbc;
  --focus: var(--terracotta);
  --shadow-card: 0 1px 2px rgba(43,42,36,0.06), 0 12px 32px rgba(43,42,36,0.08);
  --shadow-button: 0 1px 2px rgba(43,42,36,0.14);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-none: 0;
  --radius-sm: 2px;
  --font-display: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --font-body: Assistant, "Segoe UI", Arial, sans-serif;
}
/* Yuval & Itay — component styles. Every value comes from tokens.css. */
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.yi-stage { padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }

/* Motif: straight lines only */
.yi-line { display: block; width: 48px; height: 0; border-top: 1.5px solid var(--navy); margin-inline: auto; }
.yi-divider { display: block; width: 100%; max-width: 240px; height: 0; border: 0; border-top: 1px solid var(--line); margin: 0 auto; }

/* Intro video: fills the first screen, loops, shown whole (never cropped) on paper; invitation follows on scroll */
.yi-intro { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: var(--paper); }
.yi-intro video, .yi-intro .yi-intro-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.yi-intro video { object-fit: contain; background: var(--paper); }
.yi-intro-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); color: var(--navy); text-align: center; }
.yi-intro-placeholder p { margin: 0; font-size: 13px; line-height: 18px; }
.yi-scroll { position: absolute; inset-inline: 0; bottom: 0; padding: var(--space-12) var(--space-4) var(--space-6); display: flex; flex-direction: column; align-items: center; gap: var(--space-1); color: var(--navy); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; }
.yi-scroll svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: yi-nudge 2s ease-in-out infinite; }
.yi-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
@keyframes yi-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Reveal on scroll */
.yi-reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
.yi-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .yi-reveal { opacity: 1; transform: none; transition: none; } .yi-scroll svg { animation: none; } }

/* Hero */
.yi-hero { width: 100%; max-width: 420px; margin-inline: auto; }
.yi-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-none); box-shadow: var(--shadow-card); padding: var(--space-12) var(--space-6) var(--space-8); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.yi-eyebrow { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 20px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--terracotta); }
.yi-names { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.yi-amp { color: var(--terracotta); padding-inline: 0.12em; }
.yi-date { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 36px; line-height: 1.1; letter-spacing: 0.06em; color: var(--navy); }
.yi-date-he { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.yi-venue { margin: 0; font-size: 17px; line-height: 26px; font-weight: 600; color: var(--ink); }
.yi-note { margin: var(--space-2) 0 0; font-size: 17px; line-height: 26px; color: var(--ink-muted); }
@media (min-width: 600px) { .yi-names { font-size: 72px; } }

/* Countdown */
.yi-countdown { width: 100%; max-width: 420px; margin-inline: auto; background: var(--navy-soft); border-radius: var(--radius-none); padding: var(--space-6) var(--space-4); text-align: center; box-sizing: border-box; }
.yi-countdown-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.yi-cell { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.yi-num { font-family: var(--font-display); font-weight: 300; font-size: 40px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.yi-unit { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.yi-countdown-caption { margin: var(--space-4) 0 0; font-size: 13px; line-height: 18px; color: var(--ink); }
.yi-countdown-done { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 26px; line-height: 1.25; color: var(--navy); }

/* Buttons */
.yi-buttons { width: 100%; max-width: 420px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.yi-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 17px; line-height: 26px; font-weight: 600; text-decoration: none; cursor: pointer; }
.yi-btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.yi-btn-primary { background: var(--navy); color: var(--on-navy); border: 1px solid var(--navy); box-shadow: var(--shadow-button); }
.yi-btn-secondary { background: var(--paper); color: var(--navy); border: 1px solid var(--navy); }
.yi-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (min-width: 600px) { .yi-buttons { flex-direction: row; } .yi-btn { flex: 1; } }

/* Closing line */
.yi-closing { margin: 0; width: 100%; text-align: center; align-self: center; font-family: var(--font-display); font-weight: 300; font-size: 26px; line-height: 1.25; color: var(--ink); }

/* Link preview mock (how the shared link looks in a chat) */
.yi-chat { width: 100%; max-width: 340px; margin-inline: auto; }
.yi-bubble { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-button); }
.yi-bubble img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--navy-soft); }
.yi-bubble-text { padding: var(--space-2) var(--space-3) var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.yi-bubble-title { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.yi-bubble-desc { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.yi-bubble-domain { font-size: 13px; line-height: 18px; color: var(--ink-muted); direction: ltr; text-align: end; }

/* Page */
html { background: var(--paper); }
.page { max-width: 420px; margin: 0 auto; padding: var(--space-8) var(--space-4) var(--space-12); display: flex; flex-direction: column; gap: var(--space-8); }
@media (min-width: 600px) { .page { gap: var(--space-12); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
