@font-face {
  font-family: "Roboto";
  src: url("roboto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #12243d;
  --blue: #1456b8;
  --accent: #2475dc;
  --paper: #ffffff;
  --line: #d7e2f0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
header { padding: 24px 5vw; border-bottom: 1px solid var(--line); }
.rsvp-header { display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 8px 16px 8px 5vw; min-height: 96px; }
.brand-logo { display: block; width: 120px; height: auto; flex-shrink: 0; mix-blend-mode: multiply; }
.mode-notice { margin: 0; padding: 12px 5vw; background: #edf5ff; color: #12243d; font-weight: bold; }
a { color: inherit; }
.wordmark { font-weight: bold; text-decoration: none; letter-spacing: .07em; }
.wordmark span { display: block; font-size: .875rem; font-weight: normal; letter-spacing: .14em; }
.header-brand { min-width: 0; }
.language-control { margin: 10px 0 2px; font-size: .875rem; color: var(--blue); }
.language-control select { display: block; width: auto; max-width: 100%; margin-top: 4px;
  padding: 5px 28px 5px 8px; background: white; color: var(--ink); font-size: .875rem; }
html[lang="bn"] { font-family: "Noto Sans Bengali", "Nirmala UI", sans-serif; }
html[lang="zh"] { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="zh"] h1, html[lang="zh"] h2 { font-family: inherit; }
html[lang="bn"] h1, html[lang="bn"] h2 { line-height: 1.4; }
.invitation { max-width: 1250px; margin: auto; padding: 48px 5vw; display: grid; gap: 48px; }
.eyebrow { font-size: .875rem; letter-spacing: .13em; font-weight: bold; }
.event { position: relative; }
.anniversary { color: var(--blue); font-family: "Roboto", Arial, sans-serif;
  font-size: 7rem; line-height: 1; }
.anniversary span { font: bold .875rem "Roboto", Arial, sans-serif; color: var(--ink); padding-left: 12px; }
h1, h2 { font-family: "Roboto", Arial, sans-serif; line-height: 1.08;
  font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 20px 0; }
h2 { font-size: 2.3rem; margin: 12px 0 24px; }
.lead { font-size: 1.2rem; }
.details div { margin: 20px 0; }
dt { font-weight: bold; font-size: .875rem; letter-spacing: .12em; }
dd { margin: 4px 0; }
.muted { color: #526379; }
.small { font-size: .875rem; }
.card { background: white; border: 1px solid var(--line); border-top: 6px solid var(--accent); padding: 32px; }
label { display: block; font-weight: bold; margin: 20px 0 10px; }
input, select { width: 100%; font: inherit; padding: 12px; border: 1px solid #7f96b3; border-radius: 4px; }
input { margin-top: 6px; }
button { font: inherit; font-weight: bold; padding: 13px 18px; border: 1px solid var(--blue); }
button { background: var(--blue); color: white; border-radius: 4px; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: transparent; color: var(--blue); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #2475dc; outline-offset: 4px;
}
#submit { width: 100%; display: flex; justify-content: space-between; }
.trap { position: absolute; left: -10000px; }
#result:not(:empty), #notice:not(:empty) { padding: 16px; margin-top: 16px; background: #edf5ff; }
.program { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
.program > div { display: grid; grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line); padding: 16px 0; }
.program p { margin: 0; }
footer { padding: 24px 5vw; border-top: 1px solid var(--line); font-size: .875rem; }
.admin { max-width: 1400px; padding: 32px 4vw; margin: auto; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.toolbar label { flex: 1; min-width: 220px; }
.stats { font-size: 1.2rem; margin: 20px 0; }
.tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin: 20px 0; }
.table-count { border: 1px solid var(--line); padding: 12px; background: white; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
td select { min-width: 125px; }
td button { white-space: nowrap; }
.party { font-size: .875rem; color: #526379; }
[hidden] { display: none !important; }
.layout { max-width: 650px; width: 100%; border: 1px solid var(--line); }
.arrival { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; }
#venue-address { color: var(--blue); text-underline-offset: 3px; }
.venue-map-link { display: block; max-width: 929px; margin: 20px auto 0; color: var(--blue); }
.venue-map-link img { display: block; width: 100%; height: auto; aspect-ratio: 929 / 748;
  object-fit: contain; border: 1px solid var(--line); border-radius: 12px; }
.map-action { display: block; padding: 12px 0; font-weight: 700; text-align: center; }
.rsvp-layout { max-width: 2000px; margin: auto; }
.photo-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; padding: 0 5vw 16px; }
.photo-rail img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center; border-radius: 20px; background: #edf5ff; }
@media (min-width: 1280px) {
  .rsvp-layout { display: grid; grid-template-columns: minmax(160px, 15%) minmax(0, 1fr) minmax(160px, 15%);
    gap: 24px; padding: 16px 24px 40px; align-items: start; }
  .rsvp-layout .invitation { grid-column: 2; grid-row: 1; width: 100%; padding: 32px 20px;
    gap: 32px; margin: 0 auto; }
  .photo-rail { grid-row: 1; grid-template-columns: 1fr; padding: 0; gap: 24px; }
  .photo-rail-left { grid-column: 1; }
  .photo-rail-right { grid-column: 3; }
}
@media (max-width: 600px) {
  .photo-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-rail img { border-radius: 14px; }
}
@media (min-width: 850px) { .invitation { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) {
  .rsvp-header { gap: 12px; min-height: 84px; }
  .rsvp-header .wordmark { font-size: .875rem; }
  .rsvp-header .wordmark span { font-size: .75rem; letter-spacing: .08em; }
  .brand-logo { width: 84px; }
  .invitation { padding: 24px 5vw; gap: 28px; }
  .card { padding: 22px; }
  .program > div { grid-template-columns: 1fr; gap: 8px; }
}
@media print {
  .photo-rail { display: none; }
  header, .toolbar, .tables, .layout, details, button, #notice { display: none; }
  .admin { padding: 0; }
  th, td { font-size: 12px; padding: 5px; }
  select { appearance: none; border: 0; padding: 0; }
}
