:root {
  color-scheme: light;
  --ink: #132b45;
  --muted: #435974;
  --red: #9c1e25;
  --paper: #fffdf8;
  --line: #e1e7ee;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #edf3f8;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 0, #fffaf1, transparent 58%),
              linear-gradient(155deg, #f3f7fa, #e3edf6);
  line-height: 1.55;
}
h1, h2, p, figure { margin: 0; }
h1, h2 { line-height: 1.1; }
h1 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
h2 { font-size: 1.28rem; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #32679a;
  outline-offset: 3px;
}
.site { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 5vw, 72px) clamp(16px, 5vw, 64px) 32px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  grid-template-areas: "intro poster" "collection poster";
  align-items: start;
  gap: 24px clamp(24px, 5vw, 68px);
}
.intro { grid-area: intro; padding-top: 9px; }
.event { color: var(--red); font-weight: 750; margin-bottom: 14px; }
.event span { margin-right: .28em; }
.intro h1 { font-size: clamp(2.65rem, 5.7vw, 5.1rem); margin-bottom: 23px; }
.intro p:not(.event) { max-width: 55ch; }
.intro p + p { margin-top: 10px; }
.greeting { font-weight: 750; }
.poster {
  grid-area: poster;
  background: #193e61;
  border: 4px solid #fff;
  border-radius: 23px;
  box-shadow: 0 20px 42px #1b38502a;
  overflow: hidden;
}
.poster img { display: block; width: 100%; height: auto; }
.collection {
  grid-area: collection;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 26px #17345110;
  overflow: hidden;
}
.total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 18px;
  padding: 18px clamp(16px, 3vw, 27px);
  color: #fff;
  background: linear-gradient(120deg, #102c49, #224f74);
}
.total span { font-weight: 750; }
.total strong {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.total p { color: #e0ebf5; font-size: .9rem; }
.payment { padding: 20px clamp(16px, 3vw, 27px); }
.payment h2 { margin-bottom: 6px; }
.payment p { color: var(--muted); }
.payment strong { color: var(--ink); }
.phone-row { margin: 10px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.phone { font-size: clamp(1.32rem, 3.2vw, 1.62rem); font-weight: 780; user-select: all; }
.copy, .primary { border: 1px solid transparent; border-radius: 9px; font-weight: 700; padding: 9px 13px; }
.copy { background: #f8e9e7; color: #831820; font-size: .9rem; }
.copy:hover { background: #f3d8d5; }
.transfer-note { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.closing { border-top: 1px solid #cbd8e5; margin-top: 32px; padding: 20px 0 0; color: var(--muted); }
.closing .wish { color: var(--ink); font-weight: 700; margin: 8px 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.account {
  max-width: 690px; margin: 32px auto; padding: clamp(18px, 5vw, 38px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 16px 50px #17345115;
}
.login { max-width: 440px; }
.account h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 12px 0 16px; }
.account h2 { margin-bottom: 14px; }
.back, .link { color: #234b75; text-decoration: underline; text-underline-offset: 3px; }
.link { border: 0; background: none; padding: 0; }
.account-nav { display: flex; justify-content: space-between; }
.account-total { margin: 0 0 22px; color: var(--muted); }
.account-total strong { margin-left: .4em; color: var(--ink); }
.entry { padding: 20px 0; border-block: 1px solid var(--line); }
.entry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.wide { grid-column: 1 / -1; }
.account label { font-weight: 650; }
.optional { color: var(--muted); font-size: .875rem; font-weight: 400; }
.account input:not([type="hidden"]), .account textarea {
  display: block; width: 100%; margin: 4px 0 0; padding: 9px 10px;
  border: 1px solid #9cabbc; border-radius: 7px; background: #fff; color: var(--ink);
}
.account textarea { resize: vertical; }
.primary { width: fit-content; background: #183957; color: #fff; }
.primary:hover { background: #234f74; }
.login .primary { margin-top: 14px; }
.error, .success { margin: 10px 0; font-weight: 700; }
.error { color: #9c1e25; }
.success { color: #225b3f; }
.history { margin-top: 22px; }
.history > p { color: var(--muted); }
.transfers { list-style: none; margin: 0; padding: 0; }
.transfers li { border-top: 1px solid var(--line); padding: 9px 0; overflow-wrap: anywhere; }
.transfers time, .transfers li > strong { margin-right: 12px; }
.transfers p { color: var(--muted); white-space: pre-wrap; }
@media (max-width: 730px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "collection" "poster"; }
  .poster { width: min(100%, 480px); margin-inline: auto; }
}
@media (max-width: 480px) {
  .account { margin: 16px 12px; }
  .entry-form { grid-template-columns: minmax(0, 1fr); }
}
