:root {
  color-scheme: light;
  font: 100%/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #18352d;
  background: #f7f6ef;
  --accent: #19513e;
  --ink-muted: #415a51;
  --line: #dbe3d9;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p, dl, dd { margin: 0; }
button, input, textarea { font: inherit; }
button, a.open-bank, .bank-option span { -webkit-tap-highlight-color: transparent; }
button, a.open-bank { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #9a3f21; outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1;
  padding: .6rem 1rem;
  background: #fff;
  color: var(--accent);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }
.site-header { background: #fffdf6; }
.brand { display: flex; align-items: center; gap: .7rem; min-height: 3.65rem; font-size: .9rem; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #154737; color: #f9df9f; }

.hero { color: #fff9ea; background: #124438; }
.hero-inner { position: relative; overflow: hidden; padding-block: clamp(2rem, 7vw, 4.15rem); }
.hero-text { position: relative; z-index: 1; }
.event-date { color: #f4d89b; font-size: .875rem; font-weight: 650; margin-bottom: .4rem; }
.hero h1 {
  font: 700 clamp(2.15rem, 7.8vw, 4.4rem)/1.01 Georgia, serif;
  letter-spacing: -.037em;
  text-wrap: balance;
}
.hero-description { margin-top: 1rem; max-width: 32rem; color: #e9f0e8; }
.hero-decoration { display: none; }

.payment-layout { display: grid; gap: 1rem; align-items: start; padding-block: 1rem 0; }
.choices, .transfer { display: grid; gap: 1rem; min-width: 0; }
.card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}
.card h2, dialog h2 { font-size: 1.32rem; line-height: 1.25; letter-spacing: -.02em; }
.section-note { margin-top: .45rem; color: var(--ink-muted); font-size: .9rem; }
.field-label { display: block; margin: .85rem 0 .35rem; font-size: .88rem; font-weight: 650; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(3.1rem, 1fr)); gap: .45rem; margin-top: 1rem; }
.presets button { padding-inline: .2rem; white-space: nowrap; }

button, .bank-option span {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 0;
  padding: .45rem .6rem;
  color: var(--accent);
  border: 1px solid #a2b9ac;
  border-radius: .55rem;
  background: #fff;
  font-weight: 650;
}

button:hover, .bank-option:hover span { background: #eef5ed; }
button[aria-pressed="true"], .bank-option input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }

#amount, #copy-text {
  display: block;
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #859b90;
  border-radius: .55rem;
  background: #fff;
  color: inherit;
}

#amount::placeholder { color: #5b6f65; }
#amount[aria-invalid="true"] { border-color: #9a3023; }
.error { color: #9a3023; font-size: .875rem; }
.error:not(:empty) { margin-top: .45rem; }
.bank-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .48rem; margin-top: 1rem; }
.bank-option { display: grid; position: relative; cursor: pointer; }
.bank-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bank-option input:focus-visible + span { outline: 3px solid #9a3f21; outline-offset: 3px; }
.bank-option span { font-size: .88rem; text-align: center; }

.details { margin-top: .65rem; }
.detail {
  position: relative;
  padding-block: .5rem;
  border-bottom: 1px solid var(--line);
}
.detail dt { color: var(--ink-muted); font-size: .79rem; }
.detail dd { font-weight: 620; overflow-wrap: anywhere; }
.detail:has(button) { padding-inline-end: 5rem; }
.detail button { position: absolute; top: 50%; right: 0; transform: translateY(-50%); padding-inline: .45rem; font-size: .78rem; }
.iban { font-variant-numeric: tabular-nums; }
.copy-controls { margin-top: .85rem; }
.copy-all { width: 100%; }
.copy-status { color: var(--ink-muted); font-size: .85rem; }
.copy-status:not(:empty) { margin-top: .5rem; }
.bank-action { margin-top: 1rem; padding: .85rem; border-radius: .65rem; background: #edf4eb; }
.bank-action p { color: #2b4c3d; font-size: .9rem; }

.open-bank {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-top: .7rem;
  padding: .5rem .65rem;
  border-radius: .52rem;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.open-bank:hover { background: #0e402e; }

.qr-card { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); align-items: center; gap: .65rem; }
.qr { display: block; width: min(100%, 106px); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-card h2 { font-size: 1.1rem; }
.site-footer { padding-block: 1.15rem 1.6rem; color: var(--ink-muted); font-size: .875rem; }

dialog { width: min(26rem, calc(100% - 2rem)); padding: 1.15rem; border: 1px solid var(--line); border-radius: .8rem; color: inherit; }
dialog::backdrop { background: #102b23aa; }
dialog p { margin-top: .6rem; }
dialog form { display: flex; justify-content: end; margin-top: 1rem; }
#copy-text { resize: vertical; }

@media (min-width: 43rem) {
  .wrap { width: min(100% - 3rem, 68rem); }
  .payment-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding-top: 1.25rem; }
  .choices, .transfer { gap: 1.25rem; }
  .hero-decoration {
    position: absolute;
    display: grid;
    place-items: center;
    top: 50%;
    right: clamp(1rem, 8vw, 6rem);
    transform: translateY(-50%);
    width: clamp(10rem, 24vw, 16rem);
    aspect-ratio: 1;
    border: 1px solid #588373;
    border-radius: 50%;
    box-shadow: 0 0 0 1.2rem #174b3d, 0 0 0 calc(1.2rem + 1px) #466f62;
    color: #f4d89b;
    font-size: clamp(4rem, 11vw, 7rem);
    line-height: 1;
  }
  .hero-decoration::before, .hero-decoration::after {
    content: "✧";
    position: absolute;
    color: #d7cea1;
    font-size: 1.7rem;
  }
  .hero-decoration::before { left: 4%; top: 18%; }
  .hero-decoration::after { right: -7%; bottom: 22%; }
}
