@font-face {
  font-family: "Poster Fallback";
  src: local("Arial Black"), local("Arial-BoldMT");
  font-weight: 900;
}

:root {
  color-scheme: light;
  --red: #a8242c;
  --red-bright: #d33b36;
  --ink: #172b36;
  --paper: #f0e5ce;
  --paper-light: #fff8e8;
  --gold: #f4c94f;
  --line: rgba(23, 43, 54, .28);
  --display: "Poster Fallback", "Arial Black", Impact, sans-serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.poster { overflow: hidden; }
.topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--paper-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  max-width: 1180px;
  min-height: 630px;
  margin: 0 auto;
  border-inline: 1px solid var(--line);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 72px 24px 56px 48px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker span { font-size: 21px; line-height: 1; }
.kicker.light { color: var(--gold); }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .76;
  text-transform: uppercase;
}
h1 span { display: block; font-size: clamp(72px, 9vw, 126px); }
h1 strong {
  display: block;
  margin-top: 24px;
  color: var(--red);
  font-size: clamp(116px, 15vw, 202px);
  font-weight: 900;
}
.hero-lead {
  margin: 42px 0 18px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
}
.hero-text { max-width: 440px; margin: 0; font-size: 16px; line-height: 1.6; }

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 580px;
  isolation: isolate;
}
.sunburst {
  position: absolute;
  z-index: -2;
  width: 660px;
  height: 660px;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from -6deg, var(--gold) 0 8deg, transparent 8deg 17deg);
  opacity: .72;
  -webkit-mask-image: radial-gradient(circle, #000 0 45%, transparent 71%);
  mask-image: radial-gradient(circle, #000 0 45%, transparent 71%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 370px;
  height: 370px;
  left: 50%;
  top: 154px;
  transform: translateX(-50%);
  border: 2px solid var(--red);
  border-radius: 50%;
  opacity: .6;
}
.hero-photo {
  position: absolute;
  z-index: 1;
  bottom: -1px;
  left: 50%;
  width: min(540px, 115%);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(8px 10px 0 var(--ink)) drop-shadow(-2px -2px 0 var(--paper-light));
  transform-origin: bottom center;
}
.age-seal {
  position: absolute;
  z-index: 3;
  top: 42px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 126px;
  transform: rotate(9deg);
  border: 3px solid var(--ink);
  border-radius: 50%;
  outline: 5px solid var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 7px var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.age-seal strong { margin: 3px 0; font-family: var(--display); font-size: 58px; letter-spacing: -.07em; }
.photo-caption {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 24px;
  padding: 9px 13px;
  transform: rotate(-5deg);
  background: var(--paper-light);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.25fr;
  max-width: 1180px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  background: var(--paper-light);
}
.fact { min-width: 0; padding: 28px 30px; }
.fact + .fact { border-left: 1px solid var(--ink); }
.fact-label {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fact-big { margin: 0; font-family: var(--display); font-size: clamp(46px, 5vw, 70px); font-weight: 900; letter-spacing: -.06em; line-height: .9; white-space: nowrap; }
.fact-month { margin: 7px 0 0; color: var(--red); font-family: var(--display); font-size: 29px; font-weight: 900; text-transform: uppercase; }
.fact-medium { margin: 0 0 10px; font-family: var(--display); font-size: clamp(25px, 3vw, 37px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; text-transform: uppercase; }
.fact-note { margin: 9px 0 0; font-size: 13px; font-style: normal; line-height: 1.45; }
.fact-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.fact-links a { color: var(--red); font-size: 12px; font-weight: 900; text-underline-offset: 4px; text-transform: uppercase; }

.order-section {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 48px;
  border-inline: 1px solid var(--line);
}
.order-number { color: var(--red); font-family: Georgia, serif; font-size: 160px; line-height: .8; }
.order-section h2, .rsvp-section h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(35px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
  text-transform: uppercase;
}
.order-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.order-list li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.order-list li:last-child { border-bottom: 1px solid var(--line); }
.order-list span { color: var(--red); font-family: var(--display); font-size: 24px; font-weight: 900; }
.order-list p { max-width: 660px; margin: 0; font-size: 15px; line-height: 1.55; }

.rsvp-section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 58px 48px 48px;
  background: var(--red);
  color: var(--paper-light);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.rsvp-section::before {
  content: "25";
  position: absolute;
  right: 32px;
  top: -18px;
  color: rgba(255, 248, 232, .075);
  font-family: var(--display);
  font-size: 240px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.rsvp-heading { position: relative; max-width: 680px; }
.rsvp-heading > p:last-child { max-width: 560px; margin: 0; color: rgba(255, 248, 232, .8); font-size: 14px; line-height: 1.55; }
.telegram-note {
  position: relative;
  margin: 30px 0 24px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 248, 232, .35);
  color: rgba(255, 248, 232, .82);
  font-size: 12px;
  line-height: 1.45;
}
.telegram-note.connected { border-color: var(--gold); color: var(--gold); }
.telegram-note.warning { background: rgba(23, 43, 54, .18); color: var(--paper-light); }
#rsvp-form { position: relative; }
.attendance-fieldset { margin: 0; padding: 0; border: 0; }
.attendance-fieldset legend { margin-bottom: 15px; font-size: 13px; font-weight: 800; }
.attendance-fieldset legend span, .plus-one-title strong { margin-right: 9px; color: var(--gold); font-family: var(--display); font-size: 18px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  min-height: 112px;
  padding: 22px;
  border: 2px solid var(--paper-light);
  border-radius: 0;
  background: transparent;
  color: var(--paper-light);
  text-align: left;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.choice span { display: block; font-family: var(--display); font-size: clamp(20px, 3vw, 28px); font-weight: 900; letter-spacing: -.025em; text-transform: uppercase; }
.choice small { display: block; margin-top: 8px; font-size: 12px; opacity: .75; }
.choice:hover { transform: translateY(-2px); }
.choice.selected { background: var(--gold); border-color: var(--ink); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.choice-no.selected { background: var(--paper-light); }
.choice:focus-visible, .submit-button:focus-visible, .change-button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.plus-one { margin-top: 24px; padding: 20px; border: 1px solid rgba(255, 248, 232, .45); }
.plus-one label { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
.plus-one-title { font-size: 14px; font-weight: 800; }
.plus-one input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle { flex: 0 0 auto; width: 56px; height: 30px; padding: 3px; border: 2px solid var(--paper-light); background: transparent; transition: background .15s; }
.toggle span { display: block; width: 20px; height: 20px; background: var(--paper-light); transition: transform .15s, background .15s; }
.plus-one input:checked + .toggle { border-color: var(--gold); background: var(--gold); }
.plus-one input:checked + .toggle span { transform: translateX(26px); background: var(--ink); }
.plus-one input:focus-visible + .toggle { outline: 3px solid var(--gold); outline-offset: 4px; }
.plus-one > p { margin: 12px 0 0; color: rgba(255, 248, 232, .72); font-size: 12px; line-height: 1.45; }
.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 26px;
  padding: 20px 24px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: 5px 5px 0 var(--gold);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
}
.submit-button:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.submit-button:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--gold); }
.submit-button.busy { cursor: wait; }
.form-error { margin: 18px 0 0; padding: 13px; background: var(--paper-light); color: var(--red); font-size: 13px; font-weight: 700; line-height: 1.45; }
.answer-card { position: relative; margin-top: 30px; padding: 32px; border: 2px solid var(--gold); background: var(--paper-light); color: var(--ink); box-shadow: 7px 7px 0 var(--gold); }
.answer-stamp { display: inline-block; margin: 0 0 20px; padding: 6px 9px; transform: rotate(-2deg); border: 2px solid var(--red); color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.answer-card h3 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.answer-card > p:not(.answer-stamp) { margin: 0; font-size: 15px; line-height: 1.55; }
.change-button { margin-top: 24px; padding: 10px 0; border: 0; border-bottom: 2px solid var(--red); background: transparent; color: var(--red); font-size: 12px; font-weight: 900; text-transform: uppercase; cursor: pointer; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 36px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer a { color: var(--red); text-underline-offset: 4px; }

@media (min-width: 900px) {
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 48px;
    width: 1px;
    background: var(--line);
  }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 540px; }
  .hero-copy { padding: 54px 18px 40px 28px; }
  h1 span { font-size: clamp(56px, 10vw, 84px); }
  h1 strong { font-size: clamp(96px, 17vw, 138px); }
  .hero-visual { min-height: 520px; }
  .age-seal { right: 6px; width: 100px; height: 100px; }
  .age-seal strong { font-size: 46px; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact-place { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
  .fact:nth-child(3) { border-left: 0; }
  .order-section { grid-template-columns: 90px 1fr; padding: 58px 28px; }
  .order-number { font-size: 110px; }
  .rsvp-section { margin-inline: 16px; padding: 46px 28px 36px; }
}

@media (max-width: 600px) {
  .topline { padding: 12px 16px; font-size: 9px; }
  .hero { display: block; min-height: 0; border: 0; }
  .hero-copy { padding: 36px 20px 0; }
  .kicker { margin-bottom: 18px; font-size: 10px; }
  h1 { line-height: .79; }
  h1 span { font-size: clamp(68px, 21vw, 106px); }
  h1 strong { margin-top: 17px; font-size: clamp(120px, 36vw, 182px); }
  .hero-lead { margin-top: 28px; font-size: 27px; }
  .hero-text { font-size: 14px; }
  .hero-visual { min-height: 560px; margin-top: 12px; }
  .hero-photo { width: min(430px, 112%); }
  .sunburst { top: 0; width: 540px; height: 540px; }
  .hero-visual::after { top: 116px; width: 300px; height: 300px; }
  .age-seal { top: 48px; right: 20px; }
  .photo-caption { right: 18px; bottom: 24px; }
  .fact-grid { margin-inline: 12px; grid-template-columns: 1fr; }
  .fact { padding: 24px; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--ink); }
  .fact-place { grid-column: auto; }
  .fact-label { margin-bottom: 16px; }
  .fact-big { font-size: 64px; }
  .fact-medium { font-size: 31px; }
  .order-section { display: block; padding: 48px 20px; border: 0; }
  .order-number { display: none; }
  .order-section h2, .rsvp-section h2 { font-size: 38px; }
  .order-list li { grid-template-columns: 44px 1fr; }
  .order-list p { font-size: 14px; }
  .rsvp-section { margin: 0 12px 36px; padding: 38px 18px 28px; box-shadow: 6px 6px 0 var(--ink); }
  .rsvp-section::before { right: 4px; font-size: 170px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice { min-height: 96px; padding: 18px; }
  .choice span { font-size: 23px; }
  .plus-one { padding: 16px; }
  .plus-one-title { font-size: 13px; }
  .submit-button { padding: 18px; font-size: 16px; }
  .answer-card { padding: 24px 20px; }
  .footer { padding: 0 16px calc(28px + env(safe-area-inset-bottom)); font-size: 8px; }
}

@media (max-width: 370px) {
  .hero-visual { min-height: 450px; }
  .hero-photo { width: 450px; }
  .age-seal { right: 10px; width: 88px; height: 88px; }
  .age-seal strong { font-size: 40px; }
  .age-seal span { font-size: 8px; }
  .plus-one-title strong { display: block; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
