/* The Wishing Room: My Architect Era brand, holiday style */
:root{
  --ink:#1C1B3A; --sand:#F4E9D8; --bg:#F4E9D8; --surface:#FFFFFF; --text:#1C1B3A; --muted:#4E4C68; --line:#E2D4BC;
  --red:#B23A2A; --red-dark:#8E2C20; --teal:#137A78; --teal-deep:#0F6664; --turq:#1FA3A0; --orange:#EE7B30; --gold:#E8B04B;
  --teal-soft:#D4EFEE; --teal-text:#0F6664; --gold-soft:#FBEBC8; --gold-text:#6B4E10; --photo:#EBDDC4;
  --sky1:#cfe6ea; --sky2:#eaf4f3; --hill:#e3eef0; --head:#1C1B3A;
  --display:'Limelight',Georgia,serif; --sub:'Federo',Georgia,serif; --label:'Josefin Sans',system-ui,sans-serif; --body:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#141327; --surface:#1F1E38; --text:#F4E9D8; --muted:#C9C3D6; --line:#34325A;
  --red:#C2483A; --red-dark:#A23A2D; --teal-soft:#12403F; --teal-text:#9FD8D6; --gold-soft:#3A2E14; --gold-text:#F0CF7C; --photo:#2B2946;
  --sky1:#1b2848; --sky2:#232b4d; --hill:#2a3556; --head:#0E0D22; color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#141327; --surface:#1F1E38; --text:#F4E9D8; --muted:#C9C3D6; --line:#34325A;
  --red:#C2483A; --red-dark:#A23A2D; --teal-soft:#12403F; --teal-text:#9FD8D6; --gold-soft:#3A2E14; --gold-text:#F0CF7C; --photo:#2B2946;
  --sky1:#1b2848; --sky2:#232b4d; --hill:#2a3556; --head:#0E0D22; color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:18px;line-height:1.55}
img{max-width:100%}
a{color:var(--teal-text)}
h1,h2,h3{margin:0;line-height:1.15}
h1{font-family:var(--display);font-weight:400;font-size:clamp(32px,5.4vw,56px)}
h2{font-family:var(--sub);font-weight:400;font-size:clamp(24px,3vw,32px)}
h3{font-size:20px}
p{margin:0}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
.narrow{max-width:640px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)} .small{font-size:15px} .center{text-align:center}
.hint{font-size:15px;color:var(--muted);margin-top:4px}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border-radius:14px;border:0;font:inherit;font-weight:700;font-size:17px;text-decoration:none;cursor:pointer;line-height:1.2;text-align:center}
.btn-primary{background:var(--red);color:#fff}.btn-primary:hover{background:var(--red-dark)}
.btn-teal{background:var(--teal);color:#fff}.btn-teal:hover{background:var(--teal-deep)}
.btn-gold{background:var(--gold);color:#1C1B3A}
.btn-outline{background:transparent;color:var(--text);border:1.5px solid var(--line)}
.btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55);min-height:44px}
.btn-big{min-height:58px;font-size:19px;padding:0 30px}
.btn-block{width:100%}
.btn[disabled]{opacity:.6;cursor:wait}
.linkish{background:none;border:0;padding:8px 4px;min-height:44px;font:inherit;font-size:16px;color:var(--teal-text);text-decoration:underline;cursor:pointer}
.linkish.danger{color:var(--red)}
.link-red{color:var(--red);font-weight:700}

/* Header */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;max-width:1200px;margin:0 auto;position:relative;z-index:5}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.eyebrow{font-family:var(--label);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--teal-text)}
.wordmark{font-family:var(--display);font-size:24px;color:var(--red)}
.theme-toggle{width:46px;height:46px;border-radius:23px;border:1px solid var(--line);background:var(--surface);color:var(--teal-text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.topbar-dark .eyebrow{color:var(--gold)} .topbar-dark .wordmark{color:#fff}
.topbar-dark .theme-toggle{background:transparent;border-color:rgba(255,255,255,.4);color:#fff}

/* Lights + snow */
.lights{display:block;width:100%;height:46px;position:relative;z-index:4}
.bulb{animation:twinkle 1.6s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:1}50%{opacity:.35}}
.snow{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
.snow span{position:absolute;top:-10px;border-radius:50%;background:#fff;box-shadow:0 0 2px rgba(28,27,58,.25);animation:fall linear infinite}
@keyframes fall{0%{transform:translate(0,-20px)}50%{transform:translate(16px,45vh)}100%{transform:translate(-8px,100vh)}}

/* Home hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg,var(--sky1) 0%,var(--sky2) 60%,var(--bg) 100%)}
.hero-inner{display:flex;flex-wrap:wrap;align-items:flex-end;gap:24px 40px;position:relative;z-index:2}
.hero-copy{flex:1 1 420px;min-width:0;padding:8px 0 56px;display:flex;flex-direction:column;gap:16px}
.kicker{font-family:var(--label);font-size:14px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-text)}
.tagline{font-family:var(--sub);font-size:clamp(22px,2.6vw,28px);color:var(--teal-text)}
.lede{font-size:clamp(18px,2vw,21px);color:var(--muted);max-width:560px}
.cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.scene{position:relative;flex:1 1 360px;max-width:540px;height:520px;margin:0 auto}
.sun-glow{position:absolute;right:6%;top:6%;width:110px;height:110px;border-radius:50%;background:#f4d98c;animation:glow 4s ease-in-out infinite}
.sun{position:absolute;right:calc(6% + 18px);top:calc(6% + 18px);width:74px;height:74px;border-radius:50%;background:var(--gold)}
@keyframes glow{0%,100%{transform:scale(1);opacity:.55}50%{transform:scale(1.12);opacity:.8}}
.hills{position:absolute;left:0;bottom:0;width:100%;height:240px}
.person{position:absolute;left:50%;bottom:0;width:300px;height:400px;margin-left:-150px;z-index:2}
.person img{display:block;width:300px;height:400px;object-fit:contain}
.hat{position:absolute;left:86px;top:-38px;width:115px;height:91px;transform-origin:30% 95%;animation:sway 2.6s ease-in-out infinite}
@keyframes sway{0%,100%{transform:rotate(-9deg)}50%{transform:rotate(9deg)}}
.bot{position:absolute;bottom:30px;z-index:3;animation:bob 2.2s ease-in-out infinite}
.bot-left{left:0}.bot-right{right:0;animation-delay:-1.1s}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-7px) rotate(4deg)}}
.drift{position:absolute;left:0;bottom:0;width:100%;height:60px;z-index:4}

/* Bands and cards */
.band{margin-top:28px}
.band-inner{background:var(--head);color:#fff;border-radius:24px;padding:28px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px 40px;text-align:center}
.band-inner p{color:#E8DCC6}
.band-title{font-family:var(--sub);color:#fff}
.menorah{width:min(340px,100%);height:auto}
.flame{transform-box:fill-box;transform-origin:50% 100%;animation:flicker 1.2s ease-in-out infinite}
.cglow{animation:cglow 1.8s ease-in-out infinite}
@keyframes flicker{0%,100%{transform:rotate(-5deg) scaleY(1)}20%{transform:rotate(4deg) scaleY(1.1)}45%{transform:rotate(-2deg) scaleY(.92)}70%{transform:rotate(6deg) scaleY(1.06)}85%{transform:rotate(-3deg) scaleY(.97)}}
@keyframes cglow{0%,100%{opacity:.3}50%{opacity:.55}}
.steps-sec{padding-top:44px;padding-bottom:20px;display:flex;flex-direction:column;gap:24px}
.steps-sec>h2{color:var(--teal-text)}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.step,.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px}
.step{display:flex;flex-direction:column;gap:10px}
.num{width:46px;height:46px;border-radius:23px;background:var(--teal);color:#fff;font-weight:700;font-size:20px;display:flex;align-items:center;justify-content:center}
.step p{color:var(--muted)}
.note-card{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px 24px}
.note-card p{color:var(--muted)} .note-card strong{color:var(--text)}
.story-card{background:var(--surface);border:2px solid var(--turq);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:10px}
.story-card p{color:var(--muted)}
.eyebrow-teal{font-family:var(--label);font-size:13px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--teal-text)}
.eyebrow-gold{font-family:var(--label);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-text)}

/* Footer */
.site-footer{margin-top:48px;background:var(--head);color:#F4E9D8}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;padding-top:32px;padding-bottom:36px}
.footer-inner p{margin:4px 0}
.footer-tag{font-family:var(--sub);font-size:24px;color:#fff}
.footer-links{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}
.footer-links a:not(.btn){color:#F4E9D8}
.site-footer .small{color:#E8DCC6}

/* Forms */
.form{display:flex;flex-direction:column;gap:6px;margin-top:20px}
.form h1{font-size:clamp(30px,6vw,40px)}
label{font-weight:700;margin-top:14px}
input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;min-height:52px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);color:var(--text);padding:10px 14px;font:inherit}
textarea{min-height:96px;resize:vertical}
input[type=checkbox]{width:26px;height:26px;accent-color:var(--red);flex:0 0 26px;margin:2px 0 0}
fieldset{border:0;padding:0;margin:18px 0 0;display:flex;flex-direction:column;gap:10px}
legend{font-weight:700;padding:0}
.people-rows{display:flex;flex-direction:column;gap:10px}
.person-row{display:grid;grid-template-columns:1fr 140px;gap:8px}
.person-row label{margin:0}
.optin{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:14px;background:var(--surface);border:1.5px solid var(--gold);margin:18px 0 10px}
.optin label{margin:0;font-weight:400;font-size:16px;color:var(--muted)}
.optin strong{color:var(--text);font-size:17px}
.hp{position:absolute;left:-9999px}
.field-error{color:var(--red);font-weight:600;font-size:15px}
.alert{background:#fde7e3;color:#7a2216;padding:12px 14px;border-radius:12px}
.alert-ok{background:var(--teal-soft);color:var(--teal-text)}
.check{display:flex;gap:10px;align-items:center;font-weight:600}
.copy-row{display:flex;gap:8px}
.copy-row input{flex:1;min-width:0;font-size:15px}
.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* Made page */
.done-head{padding:36px 0 18px;display:flex;flex-direction:column;gap:10px}
.check-badge{width:56px;height:56px;border-radius:28px;background:var(--teal-soft);color:var(--teal-text);display:flex;align-items:center;justify-content:center}
.link-card{display:flex;flex-direction:column;gap:12px;margin:14px 0}
.link-card h2{font-family:var(--body);font-weight:700;font-size:20px}
.link-card-red{border:2px solid var(--red)} .link-card-red h2{color:var(--red)}
.link-card-teal{border:2px solid var(--teal)} .link-card-teal h2{color:var(--teal-text)}
.helper-card{background:var(--gold-soft);border:2px solid var(--gold);display:flex;flex-direction:column;gap:12px;margin:18px 0}
.helper-head{display:flex;align-items:center;gap:14px}
.helper-card h2{font-size:24px}
.helper-card ul{margin:0;padding-left:20px;color:var(--muted)}
.pill-note{padding:10px 12px;border-radius:10px;background:var(--surface);font-size:15px;font-weight:600;color:var(--gold-text)}
.helper-cta{display:flex;align-items:center;gap:14px}
.helper-cta .btn{flex:1}
.free{font-family:var(--sub);font-size:30px;color:var(--red)}

/* Board */
.board-head{position:relative;overflow:hidden;background:var(--head);color:#fff;padding-bottom:6px}
.board-title{position:relative;z-index:4;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:4px;padding-bottom:10px}
.board-title h1{color:#fff;font-size:clamp(32px,5vw,48px)}
.viewer{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#E8DCC6}
.board{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start;padding-top:26px}
.side{flex:1 1 260px;max-width:340px;display:flex;flex-direction:column;gap:18px}
.list{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:18px}
.people-nav{display:flex;flex-direction:column;gap:8px}
.person-tab{display:flex;justify-content:space-between;align-items:center;min-height:54px;padding:0 18px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);color:var(--text);text-decoration:none;font-weight:600}
.person-tab.active{background:var(--red);border-color:var(--red);color:#fff}
.tag-kind{font-size:14px;opacity:.8}
.notes{display:flex;flex-direction:column;gap:10px}
.notes h2{font-family:var(--body);font-weight:700;font-size:18px;color:var(--teal-text)}
.notes label{margin:0}
.list-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.surprise{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:16px;background:var(--gold-soft);border:1.5px solid var(--gold);color:var(--gold-text)}
.surprise h3{font-size:18px}
.empty{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;align-items:start}
.gift{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.gift.is-done{opacity:.85}
.gift-photo{position:relative;height:190px;background:var(--photo);display:flex;align-items:center;justify-content:center;color:var(--muted)}
.gift-photo img{width:100%;height:100%;object-fit:contain;background:#fff}
.badge-top{position:absolute;left:12px;top:12px;height:32px;padding:0 12px;border-radius:16px;background:var(--gold);color:#1C1B3A;font-size:14px;font-weight:700;display:flex;align-items:center;gap:6px}
.gift-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:12px}
.details{color:var(--muted);font-size:16px}
.stores{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.store{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--line);color:var(--text);text-decoration:none}
.store.best{border:1.5px solid var(--gold);background:var(--gold-soft)}
.store.best .store-name{font-weight:700}
.store-price{display:flex;align-items:center;gap:8px;font-weight:700}
.best-tag{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--gold-text)}
.compare{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:12px;border:1.5px solid var(--teal-text);color:var(--teal-text);font-weight:700;text-decoration:none;font-size:16px}
.status{display:flex;flex-direction:column;gap:8px}
.state{padding:12px 14px;border-radius:14px;font-weight:600}
.state-teal{background:var(--teal-soft);color:var(--teal-text)}
.state-gold{background:var(--gold-soft);color:var(--gold-text)}
.gift-tools{display:flex;flex-wrap:wrap;gap:4px 12px;border-top:1px solid var(--line);padding-top:6px}

/* Organizer */
.organizer{padding-top:40px;display:flex;flex-direction:column;gap:18px}
.org-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;align-items:start}
.org-grid .card{display:flex;flex-direction:column;gap:8px}
.org-grid label{margin-top:8px}
.people-manage,.trash{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.people-manage li,.trash li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}
.add-person{display:grid;grid-template-columns:1fr 120px auto;gap:8px;margin-top:10px}

/* Dialogs */
.modal{border:0;border-radius:22px;padding:0;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 24px);background:var(--surface);color:var(--text)}
.modal::backdrop{background:rgba(14,13,34,.55)}
.modal-body{padding:24px;display:flex;flex-direction:column;gap:8px}
.who-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.link-row{display:grid;grid-template-columns:1fr 110px;gap:8px}
.more-stores summary{cursor:pointer;color:var(--teal-text);font-weight:600;padding:10px 0;min-height:44px}
.more-stores .link-row{margin-top:8px}
.photo-row{display:flex;gap:12px;align-items:center}
.photo-row img{width:84px;height:84px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid var(--line)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:14px 20px;border-radius:14px;z-index:50;max-width:calc(100vw - 32px);font-weight:600}

/* Admin, prose, misc */
.admin{padding-top:24px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:18px 0}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;color:var(--muted)}
.stat span{display:block;font-family:var(--sub);font-size:34px;color:var(--text)}
.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;margin:12px 0}
table{border-collapse:collapse;width:100%;font-size:16px}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.prose h2{margin:22px 0 8px;font-size:24px}
.prose p,.prose li{color:var(--muted)}
.prose ul{padding-left:20px}
.center-card{margin-top:40px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}

@media (max-width:640px){
  body{font-size:18px}
  .scene{height:440px;flex-basis:100%}
  .person{width:250px;height:333px;margin-left:-125px}
  .person img{width:250px;height:333px}
  .hat{left:72px;top:-32px;width:96px;height:76px}
  .bot svg{width:70px;height:auto}
  .hero-copy{padding-bottom:12px}
  .person-row{grid-template-columns:1fr 120px}
  .add-person{grid-template-columns:1fr 1fr}
  .add-person .btn{grid-column:1 / -1}
  .side{max-width:none}
  .brand .logo{width:34px;height:34px}
  .wordmark{font-size:21px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important}}
.board-head .lights path{stroke:#E8DCC6}
.note-card svg,.compare svg,.surprise svg,.helper-head svg,.gift-photo svg{flex-shrink:0}
