:root {
  color-scheme: light;
  --ink: #162c24;
  --pine: #15392f;
  --paper: #fcf8ef;
  --line: #ded4c1;
  --red: #992d39;
  --gold: #f2ca83;
  --muted: #58645c;
  font: 100% / 1.55 "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f3ede1; color: var(--ink); }
h1, h2, h3, p { margin: 0 0 .7rem; }
h1, h2, .brand, .recipient { font-family: Georgia, serif; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1; letter-spacing: -.045em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.05rem); line-height: 1.12; }
h3 { font-size: 1.05rem; }
a { color: #7f2430; font-weight: 650; text-underline-offset: .22em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #a96008; outline-offset: 3px; }
.wrap { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }
main { padding-block: clamp(1.4rem, 4vw, 3.5rem) 3rem; }
.top { background: var(--pine); color: var(--paper); border-bottom: 2px solid #b88440; }
.top-inner, nav { display: flex; align-items: center; gap: 1rem; }
.top-inner { justify-content: space-between; padding-block: .8rem; }
.top a, .text-button { color: inherit; }
.brand { font-size: 1.4rem; text-decoration: none; white-space: nowrap; }
.brand span, .hero-mark, .hero-budget span { color: var(--gold); }
.text-button { border: 0; background: none; padding: .25rem 0; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.hero {
  border-radius: 1rem;
  color: #fff8ea;
  display: grid;
  min-width: 0;
  align-items: end;
  overflow: hidden;
  padding: clamp(1.4rem, 5vw, 3.2rem);
  background: linear-gradient(90deg, #112f27f0, #112f2770 60%, #112f271c),
              url("christmas.webp") 60% center / cover, #15392f;
}
.hero p { max-width: 24ch; margin-bottom: 0; }
.hero h1 { margin-bottom: .65rem; }
.hero-mark { display: block; font-size: 1.8rem; margin-bottom: .5rem; }
.hero-budget { font-weight: 650; color: #f4d5a0; }
.dashboard-hero { min-height: clamp(170px, 24vw, 255px); margin-bottom: 1.25rem; }
.dashboard, .auth-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 1.25rem; align-items: start; }
.auth-layout { grid-template-columns: minmax(0, 1.27fr) minmax(0, .9fr); align-items: stretch; }
.auth-hero { min-height: 29rem; }
.auth-hero h1 { font-size: clamp(4rem, 10vw, 7.5rem); }
.auth-card { display: flex; flex-direction: column; justify-content: center; }
.auth-card h2 { margin-bottom: 1.1rem; }
.auth-switch { margin: 1.2rem 0 0; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 .25rem 1rem #4e342707;
  min-width: 0;
}
.narrow { max-width: 40rem; margin-inline: auto; }
.narrow h1, .page-title h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.page-title { margin-bottom: 1.2rem; }
.invite { margin-bottom: 1.25rem; }
.stack { display: grid; gap: 1rem; }
.muted, small { color: var(--muted); }
small { display: block; font-size: .86rem; }
label { display: grid; gap: .3rem; font-weight: 650; font-size: .95rem; }
input:not([type=checkbox]) {
  display: block;
  min-width: 0;
  width: 100%;
  padding: .56rem .72rem;
  border: 1px solid #b8ad9b;
  border-radius: .42rem;
  background: #fffdf9;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
.primary, .secondary {
  display: inline-block;
  justify-self: start;
  border: 1px solid transparent;
  border-radius: .42rem;
  padding: .55rem .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.primary { background: var(--red); color: white; }
.primary:hover { background: #77202b; }
.secondary { background: #f5ebe0; border-color: var(--line); color: #73232a; }
.secondary:hover { background: #ecdaca; }
.notice { padding: .7rem .85rem; border-radius: .45rem; background: #e3ece2; color: #234d39; }
.notice.error { background: #f8e0dc; color: #7f2532; }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .55rem; padding: .65rem .85rem .85rem; }
legend { padding-inline: .35rem; font-weight: 700; }
.tip-fields { display: grid; grid-template-columns: 1fr 8rem; gap: .65rem; }
.tip-link { grid-column: 1 / -1; }
.recipient { font-size: clamp(2rem, 5vw, 3.3rem); color: var(--red); line-height: 1; overflow-wrap: anywhere; }
.ornament { display: block; font-size: 2.55rem; line-height: 1.2; color: #885722; margin-block: .65rem; }
.suggestions, .people { list-style: none; padding: 0; margin: 0 0 1rem; }
.suggestions li, .people li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.suggestions span { white-space: nowrap; }
.check { display: flex; gap: .55rem; align-items: baseline; }
.check input { accent-color: var(--pine); }
.code { padding: .7rem .85rem; background: #ebe5d7; border-radius: .45rem; overflow-wrap: anywhere; user-select: all; }
details label { margin-top: .45rem; }
summary { cursor: pointer; }

@media (max-width: 720px) {
  .dashboard, .auth-layout { grid-template-columns: 1fr; }
  .auth-hero { min-height: 13rem; }
  .auth-hero h1 { font-size: clamp(3.5rem, 12vw, 5.25rem); }
  .hero-mark { display: none; }
  .wrap { width: calc(100% - 1.5rem); }
  .tip-fields { grid-template-columns: 1fr minmax(5.9rem, 7rem); }
  nav { gap: .6rem; font-size: .88rem; }
}
