/* Palette: rose-gold / nude / caramel (second reference). White text on --accent: 3.85:1 (large caps), body text --ink 9.3:1 */
/* Palette: blush / pearl / champagne gold (promo reference). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #fbf7f5;
  --tint: #f7efec;
  --tint-2: #fbf6f4;
  --ink: #5e4b44;           /* body text */
  --ink-soft: #7d675f;      /* small text */
  --rose: #a58b80;          /* script headings (large) */
  --rose-name: #9c857a;     /* big name */
  --rose-deco: #d9b8b4;     /* blush ornaments */
  --accent: #a88560;        /* champagne-bronze: radio, focus */
  --btn-1: #bc9770; --btn-2: #a88560;
  --gold-1: #e6cfa3; --gold-2: #c9a97e; --gold-3: #b8935f;
  --band-1: #be9b94; --band-2: #9f7c75;
  --accent-hi: #d4b88f;
  --accent-shadow: #eadbd6;
  --line: #eadbd6;
  --shadow: rgba(150, 115, 105, .16);
  --error: #b0414c;
  --font-script: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  --font-caps: "Forum", "Trajan Pro", "Times New Roman", Georgia, serif;
  --font-ui: "Montserrat", "Segoe UI", Arial, sans-serif;
  --torn-b: polygon(0 0, 100% 0, 100.00% calc(100% - 4.0px), 98.21% calc(100% - 5.0px), 96.43% calc(100% - 11.1px), 94.64% calc(100% - 14.9px), 92.86% calc(100% - 4.0px), 91.07% calc(100% - 14.1px), 89.29% calc(100% - 11.2px), 87.50% calc(100% - 13.9px), 85.71% calc(100% - 3.0px), 83.93% calc(100% - 10.0px), 82.14% calc(100% - 7.2px), 80.36% calc(100% - 7.6px), 78.57% calc(100% - 2.7px), 76.79% calc(100% - 6.6px), 75.00% calc(100% - 10.5px), 73.21% calc(100% - 8.2px), 71.43% calc(100% - 4.4px), 69.64% calc(100% - 5.6px), 67.86% calc(100% - 4.6px), 66.07% calc(100% - 4.2px), 64.29% calc(100% - 4.1px), 62.50% calc(100% - 14.2px), 60.71% calc(100% - 8.3px), 58.93% calc(100% - 12.6px), 57.14% calc(100% - 2.3px), 55.36% calc(100% - 14.1px), 53.57% calc(100% - 11.6px), 51.79% calc(100% - 13.5px), 50.00% calc(100% - 3.5px), 48.21% calc(100% - 8.7px), 46.43% calc(100% - 13.4px), 44.64% calc(100% - 3.4px), 42.86% calc(100% - 2.0px), 41.07% calc(100% - 10.1px), 39.29% calc(100% - 12.1px), 37.50% calc(100% - 3.8px), 35.71% calc(100% - 3.3px), 33.93% calc(100% - 11.9px), 32.14% calc(100% - 9.3px), 30.36% calc(100% - 13.4px), 28.57% calc(100% - 3.2px), 26.79% calc(100% - 4.8px), 25.00% calc(100% - 10.7px), 23.21% calc(100% - 8.7px), 21.43% calc(100% - 3.9px), 19.64% calc(100% - 8.6px), 17.86% calc(100% - 14.9px), 16.07% calc(100% - 5.8px), 14.29% calc(100% - 1.8px), 12.50% calc(100% - 13.0px), 10.71% calc(100% - 3.2px), 8.93% calc(100% - 3.8px), 7.14% calc(100% - 3.2px), 5.36% calc(100% - 10.2px), 3.57% calc(100% - 7.4px), 1.79% calc(100% - 9.5px), 0.00% calc(100% - 1.8px));
  --torn-tb: polygon(0.00% 2.7px, 1.79% 10.3px, 3.57% 10.9px, 5.36% 12.4px, 7.14% 3.1px, 8.93% 12.2px, 10.71% 2.9px, 12.50% 7.4px, 14.29% 3.7px, 16.07% 9.3px, 17.86% 12.0px, 19.64% 3.8px, 21.43% 2.2px, 23.21% 5.2px, 25.00% 8.3px, 26.79% 8.6px, 28.57% 0.8px, 30.36% 4.9px, 32.14% 5.5px, 33.93% 12.1px, 35.71% 3.2px, 37.50% 4.3px, 39.29% 10.9px, 41.07% 4.0px, 42.86% 2.7px, 44.64% 3.9px, 46.43% 2.6px, 48.21% 11.7px, 50.00% 1.4px, 51.79% 4.8px, 53.57% 12.8px, 55.36% 11.7px, 57.14% 1.7px, 58.93% 12.6px, 60.71% 8.2px, 62.50% 9.6px, 64.29% 1.4px, 66.07% 12.4px, 67.86% 9.8px, 69.64% 12.7px, 71.43% 3.6px, 73.21% 5.7px, 75.00% 6.4px, 76.79% 4.3px, 78.57% 1.2px, 80.36% 3.3px, 82.14% 5.7px, 83.93% 8.9px, 85.71% 0.8px, 87.50% 9.7px, 89.29% 6.1px, 91.07% 5.8px, 92.86% 3.3px, 94.64% 7.6px, 96.43% 5.9px, 98.21% 7.6px, 100.00% 3.0px, 100.00% calc(100% - 1.5px), 98.21% calc(100% - 4.1px), 96.43% calc(100% - 2.8px), 94.64% calc(100% - 7.8px), 92.86% calc(100% - 2.7px), 91.07% calc(100% - 7.3px), 89.29% calc(100% - 10.9px), 87.50% calc(100% - 7.5px), 85.71% calc(100% - 3.6px), 83.93% calc(100% - 7.7px), 82.14% calc(100% - 11.4px), 80.36% calc(100% - 2.7px), 78.57% calc(100% - 3.1px), 76.79% calc(100% - 9.9px), 75.00% calc(100% - 3.3px), 73.21% calc(100% - 7.4px), 71.43% calc(100% - 1.7px), 69.64% calc(100% - 4.2px), 67.86% calc(100% - 5.0px), 66.07% calc(100% - 8.0px), 64.29% calc(100% - 3.2px), 62.50% calc(100% - 11.3px), 60.71% calc(100% - 12.7px), 58.93% calc(100% - 3.1px), 57.14% calc(100% - 1.7px), 55.36% calc(100% - 12.5px), 53.57% calc(100% - 9.3px), 51.79% calc(100% - 7.0px), 50.00% calc(100% - 1.9px), 48.21% calc(100% - 10.8px), 46.43% calc(100% - 5.3px), 44.64% calc(100% - 5.8px), 42.86% calc(100% - 1.5px), 41.07% calc(100% - 5.7px), 39.29% calc(100% - 9.1px), 37.50% calc(100% - 7.4px), 35.71% calc(100% - 0.9px), 33.93% calc(100% - 9.5px), 32.14% calc(100% - 11.0px), 30.36% calc(100% - 11.9px), 28.57% calc(100% - 1.6px), 26.79% calc(100% - 12.5px), 25.00% calc(100% - 10.8px), 23.21% calc(100% - 5.8px), 21.43% calc(100% - 3.1px), 19.64% calc(100% - 4.1px), 17.86% calc(100% - 6.1px), 16.07% calc(100% - 5.7px), 14.29% calc(100% - 0.8px), 12.50% calc(100% - 9.2px), 10.71% calc(100% - 5.3px), 8.93% calc(100% - 9.4px), 7.14% calc(100% - 2.1px), 5.36% calc(100% - 7.2px), 3.57% calc(100% - 6.9px), 1.79% calc(100% - 7.6px), 0.00% calc(100% - 1.9px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #f3ece9; }
body {
  margin: 0; color: var(--ink);
  font-family: var(--font-caps); font-weight: 400; font-size: 19px; line-height: 1.5;
  overflow-x: hidden;
  background:
    radial-gradient(60vmax 60vmax at 0% 0%, rgba(226, 205, 200, .45), transparent 70%),
    radial-gradient(60vmax 60vmax at 100% 100%, rgba(226, 205, 200, .45), transparent 70%),
    #f7f1ee;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.script { font-family: var(--font-script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.caps { font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Page column (phone-like on desktop) */
.page { position: relative; max-width: 520px; margin: 0 auto; background: var(--bg); overflow: hidden; box-shadow: 0 0 80px -20px rgba(150, 115, 105, .26); }

.orn { position: absolute; width: 200px; height: 200px; color: var(--accent-shadow); pointer-events: none; z-index: 0; }
.orn--l { left: -100px; }
.orn--r { right: -100px; }
.orn--white { color: rgba(255, 255, 255, .42); }
.medal { display: block; width: 150px; height: 150px; margin: 0 auto; }

/* Hero */
.hero { position: relative; text-align: left; padding-bottom: 8px; background: #fff; }
.hero__photo { position: relative; height: clamp(500px, 74svh, 720px); overflow: hidden; background: #eadbd6; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 30%); pointer-events: none; }
.hero__photo .orn { right: -96px; top: 10%; width: 210px; height: 210px; z-index: 1; }
.wave { position: relative; display: block; width: 100%; height: auto; margin-top: -2px; }
.hero > .wave { margin-top: calc(min(100vw, 520px) * -0.3 + 1px); z-index: 1; }
.petals-wc { position: absolute; z-index: 2; right: 2%; width: 46%; top: calc(clamp(500px, 74svh, 720px) - 150px); pointer-events: none; }
.hero__title { position: relative; z-index: 8; margin-top: -40px; padding: 0 6% 0 5%; }
.name { line-height: 1.15; color: var(--rose-name); }
.name--hero { line-height: 1.1; font-size: clamp(78px, 24vw, 124px); text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 2px 16px rgba(255, 255, 255, .9); animation: nameIn 1.6s ease both; margin-left: -1%; }
.hero__sub { position: relative; z-index: 3; font-size: clamp(20px, 5.8vw, 28px); letter-spacing: .12em; color: #8f7a70; text-align: right; margin-top: -4px; padding-right: 2%; }
.hero .medal { margin: 16px auto 0; }

@keyframes nameIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.block { position: relative; padding: 44px 28px; text-align: center; }
.h2 { font-size: clamp(38px, 10.6vw, 48px); line-height: 1.2; margin-bottom: 22px; padding-left: .06em; color: var(--rose); text-wrap: balance; }

/* Invitation */
.invite { padding-top: 40px; }
.invite > *:not(.orn) { position: relative; z-index: 1; }
.invite .orn { top: calc(100% - 14px); width: 150px; height: 150px; left: -75px; }
.invite__addr { font-size: clamp(19px, 5.3vw, 23px); line-height: 1.5; letter-spacing: .08em; margin-bottom: 26px; text-wrap: balance; }
.invite__text { font-size: 19px; line-height: 1.5; letter-spacing: .01em; max-width: 380px; margin: 0 auto; text-wrap: balance; }

/* Calendar */
.date { padding-top: 104px; }
.cal { max-width: 360px; margin: 0 auto; }
.cal__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 8px 18px; font-size: clamp(24px, 6.8vw, 30px); letter-spacing: .14em; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow { font-family: var(--font-caps); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); padding-bottom: 8px; }
.cal__day { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-family: var(--font-caps); font-size: 20px; font-variant-numeric: tabular-nums lining-nums; }
.cal__num { position: relative; z-index: 1; }
.cal__day.is-wed { z-index: 2; color: #9c857a; }
.cal__heart { position: absolute; left: 50%; top: 50%; width: 150%; height: 140%; margin: -70% 0 0 -75%; pointer-events: none; transform: rotate(-6deg); animation: beat 2.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.07); } }
.start { display: flex; justify-content: space-between; align-items: baseline; margin: 30px auto 0; max-width: 360px; padding: 15px 26px 14px 24px; background: var(--tint); border-radius: 16px; border-left: 4px solid var(--accent); font-size: 18px; letter-spacing: .14em; }
.start strong { font-family: var(--font-caps); font-weight: 400; font-size: 30px; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; }

/* Venue */
.venue { position: relative; min-height: 540px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; clip-path: var(--torn-tb); margin: 16px 0 0; }
.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(105, 82, 78, .52), rgba(105, 82, 78, .42) 45%, rgba(105, 82, 78, .6)); }
.venue .orn { right: -100px; top: 56%; z-index: 1; }
.venue__in { position: relative; z-index: 2; padding: 70px 28px; }
.venue .h2 { color: #fff; margin-bottom: 16px; font-size: clamp(40px, 11.4vw, 54px); }
.venue__city { font-size: 24px; letter-spacing: .04em; }
.venue__name { font-size: 21px; margin-top: 12px; letter-spacing: .02em; text-wrap: balance; }
.venue__addr { font-family: var(--font-ui); font-weight: 300; font-size: 15px; letter-spacing: .02em; margin: 10px 0 30px; opacity: .95; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 30px; border: 1.5px solid var(--accent); border-radius: 999px;
  background: linear-gradient(135deg, var(--btn-1), var(--btn-2)); color: #fff; text-decoration: none; cursor: pointer;
  font-family: var(--font-caps); font-size: 17px; text-transform: uppercase; letter-spacing: .09em; line-height: 1.2;
  box-shadow: 0 14px 28px -14px rgba(120, 80, 60, .5); transition: transform .2s, box-shadow .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline-color: var(--accent); outline-offset: 4px; }
.venue .btn { background: var(--accent); border-color: #fff; }
.btn--ghost { background: #fff; color: var(--accent); box-shadow: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }

.medal--mid { margin: 72px auto 8px; }

/* RSVP */
.rsvp { text-align: left; padding-top: 24px; }
.rsvp__title { text-align: center; font-size: clamp(21px, 5.9vw, 25px); line-height: 1.4; letter-spacing: .12em; margin-bottom: 28px; text-wrap: balance; }
.rsvp__deadline { text-align: center; color: var(--ink-soft); font-size: 15px; margin: -10px 0 22px; }
.field { margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field label, .lbl { display: block; font: 500 13px/1.4 var(--font-ui); letter-spacing: .01em; color: var(--ink); margin: 0 0 8px; }
input[type="text"], input[type="tel"], textarea {
  width: 100%; font: 400 16px/1.4 var(--font-ui); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  padding: 15px 20px; min-height: 58px; appearance: none; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; border-radius: 20px; }
input::placeholder, textarea::placeholder { color: #b9a8a1; font-weight: 300; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201, 169, 126, .28); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.err { color: var(--error); font-size: 13px; margin-top: 6px; padding-left: 8px; font-weight: 400; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices { display: grid; gap: 12px; margin-bottom: 20px; }
.choice { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 12px 20px; font: 400 15px/1.35 var(--font-ui); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; background: #fff; transition: background-color .2s, border-color .2s; }
.choice__dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); position: relative; }
.choice__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .18s; }
.choice input:checked + .choice__box { background: var(--tint); border: 2px solid var(--accent); padding: 11.5px 19.5px; }
.choice input:checked + .choice__box .choice__dot::after { transform: scale(1); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.reveal-box { animation: nameIn .4s ease both; }

.form-error { color: var(--error); background: #fff; border: 1px solid #deaab0; border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-bottom: 16px; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: center; padding: 10px 0 20px; }
.success:focus { outline: none; }
.success__t { font-size: 24px; line-height: 1.4; letter-spacing: .06em; margin-bottom: 12px; text-wrap: balance; }
.lead { font-size: 19px; line-height: 1.5; text-wrap: pretty; }

/* Hosts band */
.hosts { margin: 56px 0 0; }
.lace { height: 26px; background: linear-gradient(90deg, var(--gold-1), var(--gold-2), var(--gold-3)); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2264%22%20height=%2226%22%20viewBox=%220%200%2064%2026%22%3E%20%20%3Crect%20x=%220%22%20y=%2219%22%20width=%2264%22%20height=%227%22%20fill=%22%23000%22/%3E%20%20%3Cg%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222.4%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%20%20%20%20%3Cpath%20d=%22M32%2018C22%2018%2020%208%2012%209.500%208%2010.500%208%2016%2012.500%2016%2015.500%2016%2016%2012%2014%2012%22/%3E%20%20%20%20%3Cpath%20d=%22M32%2018C42%2018%2044%208%2052%209.500%2056%2010.500%2056%2016%2051.500%2016%2048.500%2016%2048%2012%2050%2012%22/%3E%20%20%3C/g%3E%20%20%3Cpath%20d=%22M32%201C27%207%2027%2013%2032%2019%2037%2013%2037%207%2032%201z%22%20fill=%22%23000%22/%3E%20%20%3Ccircle%20cx=%220%22%20cy=%2214%22%20r=%222.6%22%20fill=%22%23000%22/%3E%3Ccircle%20cx=%2264%22%20cy=%2214%22%20r=%222.6%22%20fill=%22%23000%22/%3E%3C/svg%3E") repeat-x center top / auto 26px; mask: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2264%22%20height=%2226%22%20viewBox=%220%200%2064%2026%22%3E%20%20%3Crect%20x=%220%22%20y=%2219%22%20width=%2264%22%20height=%227%22%20fill=%22%23000%22/%3E%20%20%3Cg%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222.4%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%20%20%20%20%3Cpath%20d=%22M32%2018C22%2018%2020%208%2012%209.500%208%2010.500%208%2016%2012.500%2016%2015.500%2016%2016%2012%2014%2012%22/%3E%20%20%20%20%3Cpath%20d=%22M32%2018C42%2018%2044%208%2052%209.500%2056%2010.500%2056%2016%2051.500%2016%2048.500%2016%2048%2012%2050%2012%22/%3E%20%20%3C/g%3E%20%20%3Cpath%20d=%22M32%201C27%207%2027%2013%2032%2019%2037%2013%2037%207%2032%201z%22%20fill=%22%23000%22/%3E%20%20%3Ccircle%20cx=%220%22%20cy=%2214%22%20r=%222.6%22%20fill=%22%23000%22/%3E%3Ccircle%20cx=%2264%22%20cy=%2214%22%20r=%222.6%22%20fill=%22%23000%22/%3E%3C/svg%3E") repeat-x center top / auto 26px; }
.lace--bottom { transform: scaleY(-1); }
.hosts__band { background: linear-gradient(180deg, var(--band-1), var(--band-2)); color: #fff; text-align: center; padding: 42px 20px 44px; margin: -1px 0; position: relative; z-index: 1; }
.hosts__title { font-size: clamp(42px, 11.4vw, 54px); line-height: 1.2; }
.hosts__line { font-size: clamp(21px, 6.4vw, 28px); letter-spacing: .12em; padding-left: .12em; line-height: 1.3; margin-top: 8px; white-space: nowrap; }
.hosts__contacts { margin-top: 18px; }
.contact__name { display: block; font-size: 15px; opacity: .9; }
.contact__tel { font-size: 24px; text-decoration: none; display: inline-block; padding: 6px 0; color: #fff; }

/* Wishes */
.wishes { padding-left: 0; padding-right: 0; padding-top: 70px; }
.wishes .h2 { padding: 0 20px; }
.wcar { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 12% 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wcar::-webkit-scrollbar { display: none; }
.wcard { font-family: var(--font-ui); position: relative; flex: 0 0 76%; max-width: 360px; scroll-snap-align: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 26px; padding: 34px 22px 20px; min-height: 230px; display: flex; flex-direction: column; box-shadow: 0 16px 34px -26px rgba(150, 115, 105, .32); }
.wcard::before { content: "\201C"; position: absolute; top: -4px; left: 16px; font-family: var(--font-caps); font-size: 86px; line-height: 1; color: var(--accent-shadow); }
.wcard__t { flex: 1; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.wcard__f { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 500 14px var(--font-ui); letter-spacing: .04em; }
.wcard__n { font-weight: 500; font-size: 15px; line-height: 1.2; }
.wcard__d { font-size: 13px; color: var(--ink-soft); }
.wempty { flex: 0 0 100%; text-align: center; padding: 26px 10px 12px; }
.wempty__t { font-family: var(--font-caps); font-size: 22px; text-transform: uppercase; letter-spacing: .12em; text-wrap: balance; color: var(--rose); }
.wempty__s { margin-top: 8px; color: var(--ink-soft); font-size: 17px; text-wrap: balance; }
.wdots { display: flex; justify-content: center; gap: 8px; margin: 4px 0 26px; }
.wdot { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .25s, background-color .25s; }
.wdot.is-on { width: 26px; background: var(--accent); }
.wbtns { display: grid; gap: 12px; justify-items: center; padding: 8px 28px 0; }
.wbtns .btn { min-width: 250px; }

/* Countdown */
.count { position: relative; min-height: 540px; display: grid; place-items: center; overflow: hidden; clip-path: var(--torn-tb); color: #fff; margin-top: 40px; }
.count__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(110, 85, 80, .58) 0%, rgba(110, 85, 80, .48) 50%, rgba(255, 255, 255, .8) 100%); }
.count__in { position: relative; z-index: 2; width: 100%; padding: 60px 20px; text-align: center; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 380px; margin: 0 auto; }
.cd { min-width: 0; }
.cd__n { display: block; font-family: var(--font-caps); font-size: clamp(40px, 12vw, 56px); line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; text-shadow: 0 2px 10px rgba(60, 35, 25, .45); }
.cd__l { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .18em; padding-left: .18em; }
.cd__done { font-size: clamp(52px, 14vw, 72px); line-height: 1.2; text-shadow: 0 2px 12px rgba(60, 35, 25, .5); }

.credit { margin-top: 10px; font-family: var(--font-ui); font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--ink-soft); opacity: .9; }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer { padding: 36px 20px calc(88px + env(safe-area-inset-bottom)); text-align: center; color: var(--ink-soft); font-family: var(--font-caps); font-size: 17px; letter-spacing: .1em; }

/* Reminder notice */
.notice { font-family: var(--font-ui); position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); left: 50%; width: min(calc(100% - 20px), 500px); transform: translate(-50%, -140%); display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px -14px rgba(120, 80, 60, .38); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.notice.is-in { transform: translate(-50%, 0); }
.notice__txt { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); font-weight: 400; }
.notice__txt strong { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.notice__btn { flex: none; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 500 14px var(--font-ui); padding: 10px 16px; cursor: pointer; }
.notice__x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(80, 52, 40, .5); animation: fade .25s ease both; }
.modal__box { position: relative; width: min(100%, 460px); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 28px; padding: 36px 22px 26px; }
.modal__x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.modal__t { font-size: 24px; letter-spacing: .12em; padding-left: .12em; text-align: center; line-height: 1.3; color: var(--rose); margin-bottom: 20px; text-wrap: balance; }
.modal__t.script { font-size: 40px; letter-spacing: 0; padding-left: .06em; line-height: 1.2; text-transform: none; }
.wlist { display: grid; gap: 12px; }
.wlist .wcard { flex: none; max-width: none; min-height: 0; padding-top: 30px; }
.wthanks { text-align: center; padding: 20px 0 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
html.modal-open, html.modal-open body { overflow: hidden; }

/* Petals */
.petals { position: fixed; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.petal { position: absolute; top: -70px; width: var(--s, 30px); height: auto; opacity: .85; filter: drop-shadow(0 2px 3px rgba(150, 115, 105, .22)); animation: fall var(--dur, 22s) linear var(--delay, 0s) infinite; will-change: transform; }
@keyframes fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(var(--r0, 0deg)); }
  50% { transform: translate3d(var(--sway, 40px), 60vh, 0) rotate(calc(var(--r0, 0deg) + 160deg)); }
  100% { transform: translate3d(calc(var(--sway, 40px) * -0.6), 118vh, 0) rotate(calc(var(--r0, 0deg) + 340deg)); }
}
.p1 { left: 8%;  --s: 26px; --dur: 26s; --delay: -3s;  --sway: 50px;  --r0: 20deg; }
.p2 { left: 32%; --s: 20px; --dur: 32s; --delay: -14s; --sway: -40px; --r0: 90deg; }
.p3 { left: 60%; --s: 24px; --dur: 28s; --delay: -8s;  --sway: 60px;  --r0: 200deg; }
.p4 { left: 84%; --s: 18px; --dur: 34s; --delay: -20s; --sway: -50px; --r0: 300deg; }

/* Music button: compact round, bottom-right (never covers the content column text on phones) */
.music {
  position: fixed; z-index: 30; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  display: grid; place-items: center; background: #fff; color: var(--accent); cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(120, 80, 60, .38); -webkit-tap-highlight-color: transparent;
}
.music svg { opacity: .75; transition: opacity .2s; }
.music.is-playing svg { opacity: 1; }
.music.is-playing { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 26px -8px rgba(120, 80, 60, .38), 0 0 0 0 rgba(201, 169, 126, .4); } 50% { box-shadow: 0 10px 26px -8px rgba(120, 80, 60, .38), 0 0 0 9px rgba(201, 169, 126, 0); } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Opening screen */
.intro {
  display: none; position: fixed; inset: 0; z-index: 100; overflow: hidden; flex-direction: column;
  background: #fff;
  transition: opacity .9s ease, visibility .9s;
}
.js .intro { display: flex; }
.intro.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__photo { position: relative; flex: 1 1 52%; min-height: 0; overflow: hidden; }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.intro .wave { margin-top: -90px; flex: none; z-index: 1; }
.intro__in { position: relative; z-index: 2; flex: none; text-align: left; padding: 0 6% max(28px, env(safe-area-inset-bottom)) 5%; margin-top: -6px; max-width: 520px; width: 100%; align-self: center; display: flex; flex-direction: column; gap: 4px; }
.intro .name { font-size: clamp(78px, 24vw, 118px); margin-left: -1%; text-shadow: none; }
.intro .hero__sub { margin-top: -6px; }
.intro .btn { align-self: center; margin-top: 18px; }

html.intro-active, html.intro-active body { overflow: hidden; }
.js.intro-active .petals { opacity: 0; }

@media (min-width: 560px) {
  body { font-size: 20px; }
  .page { margin-top: 0; }
}
@media (max-width: 380px) {
  .block { padding-inline: 20px; }
  .medal { width: 124px; height: 124px; }
  .btn { padding-inline: 22px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petals { display: none; }
  .cal__heart, .name--hero, .reveal-box, .music.is-playing svg { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .intro, .notice { transition-duration: .01ms; }
}

/* Parisienne for the Latin A that replaces the Cyrillic А inside Great Vibes lines */
.kz-A { font-family: "Parisienne", "Great Vibes", cursive; font-size: 1.05em; }

/* Very pale blossoms along the page edges (decor, behind text) */
.sak { position: absolute; width: 150px; height: 150px; opacity: .55; pointer-events: none; z-index: 0; }
.sak--a { right: -42px; top: 12px; transform: rotate(18deg); }
.sak--b { left: -50px; top: 40px; transform: rotate(-24deg); width: 170px; height: 170px; }
.sak--c { right: -56px; top: 20px; transform: rotate(40deg); }
.rsvp, .wishes, .block { position: relative; }
.rsvp > *:not(.sak), .wishes > *:not(.sak) { position: relative; z-index: 1; }
