:root {
  color-scheme: light;
  --ink: #35251e;
  --soft: #6d554b;
  --accent: #963f32;
  --cream: #faf5ee;
  --paper: #fffdf9;
  --line: #e6d8cc;
  font: 100%/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ad5e48; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, dialog h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3rem, 9vw, 5.5rem); letter-spacing: -.06em; line-height: 1.06; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .layout { width: min(100% - 2rem, 56rem); margin: 0 auto; }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.mark { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #f1ddd1; color: var(--accent); font-size: 1.4rem; }
.layout { padding: 2rem 0 4rem; }
.hero { background: #ecd6c7; border-radius: 1.75rem; padding: clamp(1.5rem, 6vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1.35rem; align-items: end; justify-content: space-between; }
.hero p { margin-top: .55rem; color: var(--soft); }
.primary, .quiet, .filters button { min-height: 2.75rem; border: 1px solid transparent; border-radius: .8rem; padding: .55rem 1rem; font-weight: 650; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #783026; }
.quiet { background: transparent; color: var(--soft); }
.quiet:hover, .filters button:hover { background: #f1e4da; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1.3rem 0 1rem; }
.filters button { background: transparent; color: var(--soft); border-radius: 2rem; }
.filters [aria-pressed="true"] { background: var(--ink); color: white; }
.empty { border: 1px dashed #cbb6a7; border-radius: 1.15rem; padding: 2.5rem 1rem; text-align: center; color: var(--soft); }
.wishes { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; }
.wish { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; }
.check { width: 1.3rem; height: 1.3rem; margin: .3rem .1rem 0; accent-color: var(--accent); cursor: pointer; }
.wish-title { overflow-wrap: anywhere; font-size: 1.12rem; font-weight: 650; }
.done .wish-title { text-decoration: line-through; color: var(--soft); }
.meta, .controls { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.meta { margin-top: .55rem; font-size: .875rem; }
.tag { border-radius: 1rem; padding: .15rem .6rem; background: #f2ded4; color: #75372b; }
.tag.mine { background: #e5e7db; color: #46503b; }
.tag.hers { background: #f0e2e9; color: #693d52; }
.link { color: var(--accent); text-underline-offset: .18em; }
.price { font-weight: 650; }
.controls .quiet { padding: .35rem .5rem; font-size: .875rem; }
.error { color: #952f2d; margin: .7rem 0; }
.gate { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 1rem; background: radial-gradient(ellipse at center, #f0dccf, var(--cream) 75%); }
.login, dialog { background: var(--paper); border: 1px solid var(--line); border-radius: 1.65rem; padding: clamp(1.35rem, 6vw, 2.5rem); box-shadow: 0 1.25rem 4rem #4d292018; }
.login { width: min(100%, 26rem); }
.login h1 { font-size: clamp(2.8rem, 12vw, 4rem); margin: .8rem 0 .4rem; }
.muted { color: var(--soft); }
.login form { margin-top: 1.5rem; }
.login button { width: 100%; margin-top: 1rem; }
dialog { width: min(100% - 2rem, 30rem); color: var(--ink); max-height: calc(100% - 2rem); }
dialog::backdrop { background: #30231f69; }
dialog h2 { font-size: 2rem; margin-bottom: 1rem; }
label { display: block; font-weight: 650; font-size: .9rem; margin: .75rem 0 .32rem; }
input:not(.check), select { width: 100%; min-width: 0; min-height: 2.9rem; background: white; border: 1px solid #cdbbad; border-radius: .72rem; padding: .5rem .7rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.actions { display: flex; justify-content: end; flex-wrap: wrap; gap: .4rem; margin-top: 1.35rem; }
@media (max-width: 40rem) {
  .layout { padding-top: 1rem; }
  .wish { grid-template-columns: auto minmax(0, 1fr); }
  .controls { grid-column: 2; }
}
