:root {
  --green: #14532d;
  --green-dark: #0b3320;
  --red: #b91c1c;
  --red-dark: #8f1414;
  --gold: #e8b64c;
  --cream: #fdf8ef;
  --ink: #1f2421;
  --muted: #6b716d;
  --line: #e6dfd1;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--green-dark);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.06) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.05) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.05) 0 1.5px, transparent 2.5px);
  background-size: 140px 140px, 190px 190px, 110px 110px;
  min-height: 100vh;
  line-height: 1.5;
}
header.site {
  text-align: center;
  color: var(--cream);
  padding: 2rem 1rem 1rem;
}
header.site h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  margin: 0;
  letter-spacing: .01em;
}
header.site h1 span { color: var(--gold); }
header.site p { margin: .25rem 0 0; opacity: .8; }
main { max-width: 640px; margin: 0 auto; padding: 0 1rem 3rem; }
.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border-top: 6px solid var(--red);
}
.card h2 { margin: 0 0 .5rem; font-family: Georgia, serif; font-size: 1.3rem; }
.muted { color: var(--muted); font-size: .92rem; }
.hidden { display: none !important; }

button, .btn {
  font: inherit;
  border: 0;
  border-radius: 10px;
  padding: .65rem 1rem;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
button:hover { background: var(--red-dark); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: var(--green); }
button.secondary:hover { background: var(--green-dark); }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.ghost:hover { background: #f3ecdf; }
button.small { padding: .35rem .7rem; min-height: 36px; font-size: .9rem; }

input, textarea {
  font: inherit;
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.row { display: flex; gap: .5rem; align-items: center; }
.row > input { flex: 1; }

.error { color: var(--red); font-weight: 600; margin: .5rem 0 0; }
.ok { color: var(--green); font-weight: 600; margin: .5rem 0 0; }

ul.people { list-style: none; margin: .75rem 0 0; padding: 0; }
ul.people > li { border-top: 1px solid var(--line); padding: .75rem 0; }
ul.people .top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
ul.people .name { font-weight: 700; flex: 1; min-width: 8rem; }
ul.people .editor { margin-top: .6rem; }
ul.people .editor .row { margin-top: .5rem; }

ul.gifts { margin: .5rem 0 0; padding-left: 1.2rem; }
ul.gifts li { margin: .3rem 0; overflow-wrap: anywhere; }
ul.gifts a { color: var(--green); font-weight: 600; }

.reveal { text-align: center; padding: 1rem 0 .5rem; }
.reveal .who {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--red);
  margin: .25rem 0;
}
.reveal .gift-icon { font-size: 3rem; }

label { display: block; font-weight: 600; font-size: .92rem; margin-top: .6rem; }
label input { margin-top: .25rem; font-weight: 400; }
.hint { margin: .25rem 0 0; }
.tabs { display: flex; gap: .25rem; background: #efe7d8; border-radius: 12px; padding: .25rem; margin-bottom: .5rem; }
.tabs .tab { flex: 1; background: transparent; color: var(--muted); min-height: 40px; }
.tabs .tab:hover { background: rgba(255,255,255,.5); }
.tabs .tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
details summary { cursor: pointer; font-weight: 600; }
.temp-pw { background: #fff7e0; border: 1px dashed var(--gold); border-radius: 10px; padding: .6rem .75rem; margin-top: .5rem; }
.temp-pw code { font-size: 1.15rem; font-weight: 700; }
