@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #faf9f5; --paper: #fff; --ink: #252f28; --muted: #56635a;
  --line: #e2e7df; --accent: #315843; --accent-dark: #244331;
  --sage: #e8f0e5; --shadow: 0 10px 28px #28352a0a;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #64896e; outline-offset: 3px; }
#main.programmatic-focus:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.35rem, 6vw, 4rem); letter-spacing: -.055em; line-height: 1.05; }
h2, h3 { line-height: 1.25; overflow-wrap: anywhere; }
p { line-height: 1.55; overflow-wrap: anywhere; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner, main, footer { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.top-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 72px; gap: .5rem; padding-block: .65rem 0; }
.brand { font: 700 1.65rem Georgia, serif; letter-spacing: -.055em; justify-self: start; }
.brand span, footer span:first-child { color: var(--accent); }
nav { grid-row: 2; grid-column: 1 / -1; display: flex; gap: clamp(.25rem, 2vw, 1.5rem); }
nav a, .profile { font-weight: 650; font-size: .86rem; color: var(--muted); }
nav a { padding: .75rem .45rem; border-bottom: 2px solid transparent; }
nav a[aria-current] { color: var(--accent-dark); border-color: var(--accent); }
.profile { display: flex; align-items: center; gap: .5rem; grid-row: 1; grid-column: 2; padding: .2rem; }
.profile[aria-current] { color: var(--accent-dark); text-decoration: underline; }
.avatar, .tile-icon { width: 2.5rem; height: 2.5rem; border-radius: .85rem; display: inline-grid; place-items: center; flex: none; background: var(--sage); color: var(--accent-dark); font-weight: 750; }
.avatar { border-radius: 50%; font-size: .76rem; }
.avatar.rose { background: #f6e7e0; color: #743c38; }
.avatar.gold { background: #f7edd5; color: #6c501e; }
main { flex: 1; padding-block: clamp(1.5rem, 4vw, 3rem) 3rem; }
footer { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); padding-block: 1rem; font-size: .77rem; color: var(--muted); }
.page { display: grid; gap: 1.25rem; }
.hero { overflow: hidden; position: relative; isolation: isolate; border: 1px solid #dce7d9; border-radius: 1.5rem; background: linear-gradient(120deg,#edf2e7,#e3eddc); padding: clamp(1.5rem,5vw,3.75rem); }
.hero-copy { max-width: 32rem; position: relative; z-index: 1; }
.hero-copy > p:not(.eyebrow) { margin: .9rem 0 1.5rem; color: #46584a; max-width: 29rem; }
.eyebrow { color: var(--accent); font-size: .69rem; font-weight: 800; letter-spacing: .15em; margin-bottom: .85rem; }
.hero-art { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: .62rem; background: var(--paper); color: var(--accent-dark); font-size: .86rem; font-weight: 700; text-align: center; }
.button:hover { background: #f0f5ee; border-color: #a7b9a5; }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.quiet { background: transparent; border-color: transparent; }
.button.quiet:hover { background: var(--sage); }
.shortcuts, .dashboard, .cards { display: grid; gap: .85rem; }
.shortcut, .panel, .card, .gift-row, .filters, .search-bar { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.shortcut { display: flex; gap: .75rem; align-items: center; padding: .9rem; }
.shortcut:hover, a.card:hover { border-color: #a7b9a5; }
small { display: block; color: var(--muted); margin-top: .18rem; }
.arrow { margin-left: auto; color: var(--muted); white-space: nowrap; }
.panel, .card { padding: 1.05rem; }
.section-title { font-size: 1.2rem; }
.panel > .section-title { margin-bottom: .45rem; }
.feed-row { display: flex; align-items: center; gap: .65rem; min-height: 3.65rem; padding-block: .45rem; font-size: .9rem; }
.feed-row + .feed-row { border-top: 1px solid var(--line); }
a.feed-row:hover, .text-link:hover, .card h2 a:hover { text-decoration: underline; }
.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem; }
.page-heading p { color: var(--muted); margin-top: .5rem; }
.card { display: grid; gap: .7rem; align-content: start; }
.card h2 { font-size: 1.14rem; }
.card p, .muted, .result-count { color: var(--muted); font-size: .9rem; }
.card-top, .sharing-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.pill { display: inline-block; width: fit-content; padding: .24rem .55rem; background: #eef2eb; color: #365443; border-radius: 99px; font-size: .73rem; font-weight: 750; }
.priority-0 { background: #f6edd8; color: #694b12; }
.priority-2 { background: #eeeaf3; color: #55436a; }
.text-link { color: var(--accent); font-size: .89rem; font-weight: 700; width: fit-content; }
.back { margin-bottom: -.45rem; }
.search-bar, .filters { padding: .85rem; }
.search-bar .field { max-width: 27rem; }
.filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; align-items: end; }
.filters > :first-child { grid-column: 1 / -1; }
.field { display: grid; gap: .3rem; font-size: .83rem; font-weight: 700; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; color: var(--ink); border: 1px solid #cbd4ca; background: #fff; border-radius: .55rem; min-height: 42px; padding: .45rem .6rem; font-weight: 400; }
textarea { resize: vertical; }
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--accent); }
.check { display: flex; gap: .4rem; align-items: center; font-size: .85rem; min-height: 34px; }
.density { min-height: 42px; }
.gift-list { display: grid; gap: .65rem; }
.gift-row { display: grid; grid-template-columns: 4rem minmax(0,1fr); align-items: start; gap: .7rem; padding: .8rem; }
.thumbnail { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: linear-gradient(145deg,#f0f3e9,#e6eee1); border-radius: .75rem; font-size: 2rem; color: var(--accent); }
.gift-details { display: grid; gap: .35rem; align-content: start; }
.gift-details h2 { font-size: 1.12rem; }
.gift-details p { font-size: .89rem; color: var(--muted); }
.price { font-weight: 750; }
.gift-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.compact .gift-row { grid-template-columns: 2.7rem minmax(0,1fr); padding: .55rem; }
.compact .thumbnail { font-size: 1.35rem; }
.empty { padding: 1.1rem; border: 1px dashed #bacbbb; border-radius: .8rem; color: var(--muted); grid-column: 1 / -1; }
.archive { padding-block: .5rem; }
.archive summary { color: var(--accent-dark); font-weight: 700; padding: .4rem 0; }
.archive[open] summary { margin-bottom: .5rem; }
.account { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.account h2 { font-size: 1.08rem; }
.account p { color: var(--muted); font-size: .86rem; }
.account .pill { margin-left: auto; }
.sharing-row { flex-wrap: wrap; }
.email { flex: 1 1 11rem; min-width: 0; overflow-wrap: anywhere; }
.sharing-header { margin-bottom: .5rem; }
dialog { width: min(100% - 1.5rem, 34rem); max-height: 90dvh; color: var(--ink); border: 1px solid var(--line); border-radius: 1rem; padding: 0; box-shadow: 0 20px 60px #17271f42; }
dialog::backdrop { background: #1d2c2380; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 1.25rem; }
.icon-button { border: 0; background: var(--sage); border-radius: .5rem; width: 2.25rem; height: 2.25rem; font-size: 1.4rem; color: var(--accent-dark); }
.form { display: grid; gap: .8rem; padding: 1rem; }
.form-actions { justify-content: end; }
.form-columns { display: grid; gap: .6rem; }
.image-placeholder { display: flex; align-items: center; gap: .75rem; background: var(--sage); border-radius: .7rem; padding: .7rem; }
.image-placeholder > span { font-size: 1.6rem; }
fieldset { min-width: 0; margin: 0; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: .55rem; }
legend { font-size: .83rem; font-weight: 700; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 3; background: white; padding: .65rem; }
@media (min-width: 550px) {
  .top-inner { grid-template-columns: 1fr auto 1fr; padding-block: 0; }
  nav { grid-row: 1; grid-column: 2; align-self: stretch; }
  nav a { display: flex; align-items: center; }
  .profile { grid-column: 3; justify-self: end; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters { grid-template-columns: 2fr 1fr 1fr 1.4fr auto; }
  .filters > :first-child { grid-column: auto; }
  .form-columns { grid-template-columns: 1fr 1fr; }
  .gift-row { grid-template-columns: 5.5rem minmax(0,1fr) minmax(6rem,auto); gap: 1rem; align-items: center; }
  .gift-actions { grid-column: 3; justify-content: end; }
  .compact .gift-row { grid-template-columns: 3rem minmax(0,1fr) minmax(6rem,auto); }
}
@media (min-width: 760px) {
  .shortcuts, .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard { grid-template-columns: 1.25fr 1fr; }
  .panel, .card { padding: 1.2rem; }
  .hero-copy { max-width: 60%; }
  .hero-art { display: grid; place-items: center; width: 34%; height: 100%; position: absolute; right: 5%; top: 0; }
  .hero-art::before { content: ""; position: absolute; width: 12.5rem; aspect-ratio: 1; border-radius: 50%; background: #f5f8ef; }
  .present { position: relative; width: 8.3rem; height: 6.6rem; margin-top: 1.4rem; transform: rotate(-10deg); border-radius: .35rem .35rem .8rem .8rem; background: linear-gradient(90deg,#65876e 0 42%,#f3e6bd 42% 58%,#567861 58%); box-shadow: .45rem .85rem 1.7rem #46604b32; }
  .present::before { content: ""; position: absolute; inset: -1rem -.45rem auto; height: 1.45rem; border-radius: .35rem; background: linear-gradient(90deg,#789882 0 43%,#f9edc8 43% 57%,#6f907a 57%); }
  .present::after { content: "୨୧"; position: absolute; bottom: 100%; left: 50%; margin-bottom: .45rem; transform: translateX(-50%); color: #607c64; font-size: 3.1rem; line-height: 1; }
  .spark { position: absolute; color: #54775b; font-size: 1.6rem; }
  .spark.one { top: 23%; right: 19%; }
  .spark.two { bottom: 20%; right: 16%; }
  .spark.three { bottom: 31%; left: 15%; font-size: 1rem; }
}
@media (max-width: 350px) {
  .top-inner, main, footer { width: calc(100% - 1rem); }
  nav a { padding-inline: .25rem; }
  .hero { padding: 1rem; }
}

.profile-intro { margin-top: .9rem; }
.profile-intro .button { margin-top: .5rem; }
.profile-form { display: grid; gap: .8rem; max-width: 36rem; margin-top: 1rem; }
.birthday-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .6rem; }
.birthday-fields > :last-child { grid-column: 1 / -1; }
.profile-form fieldset { padding: .65rem; }
.wishlist-person { display: flex; align-items: center; gap: .6rem; margin-top: .55rem; }
.page-heading .wishlist-person p { margin-top: 0; }
.birthday-note { color: var(--accent); font-weight: 650; overflow-wrap: anywhere; }
.birthday-row strong { overflow-wrap: anywhere; }
@media (min-width: 500px) {
  .birthday-fields { grid-template-columns: 2fr 1fr 1.5fr; }
  .birthday-fields > :last-child { grid-column: auto; }
}

[hidden] { display: none !important; }
.auth-panel { max-width: 34rem; margin-inline: auto; display: grid; gap: 1rem; padding: clamp(1.2rem, 4vw, 2rem); }
.auth-form { display: grid; gap: .85rem; }
.password-control { position: relative; }
.password-control input:not([type="checkbox"]) { padding-inline-end: 3rem; }
.password-control input::-ms-reveal { display: none; }
.password-toggle {
  position: absolute; inset: 1px 1px 1px auto; width: 2.6rem; border: 0;
  border-radius: .5rem; background: transparent; color: var(--accent);
  display: grid; place-items: center;
}
.password-toggle:hover { background: var(--sage); }
.password-toggle svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.password-toggle:not(.password-visible) svg path:last-child { display: none; }
.field-error { color: #8a332c; }
.field-error:empty { display: none; }
.invite-result { display: grid; gap: .65rem; }
.invite-result .button { justify-self: start; }
.auth-form .button { justify-self: start; }
.auth-status { color: var(--muted); font-size: .9rem; }
.auth-status:empty { display: none; }
