/* Local illustrations and system fonts keep the seasonal layer lightweight. */
:root {
  --ink: #34584c;
  --accent: #b94e49;
  --muted: #6d736b;
  --line: #e6e4df;
  --soft: #edf2e9;
  --radius: 22px;
  --page: #fff9fa;
  --hero: #fcece5;
  --hero-end: #fff5e9;
  --shadow: 0 7px 24px #503f3d08;
  background: var(--page);
  color: #37473f;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
}
body {
  background: radial-gradient(ellipse at 92% 10%, #f3dfeb70, transparent 42%),
    radial-gradient(ellipse at 0% 60%, #e6efdf70, transparent 40%);
}
html[data-season=christmas] {
  --ink: #264d42;
  --accent: #a94759;
  --muted: #66756b;
  --line: #dfe7df;
  --soft: #eaf1e7;
  --page: #f7faf6;
  --hero: #e8f0e4;
  --hero-end: #f7f8ed;
}
html[data-season=christmas] body {
  background: radial-gradient(ellipse at 100% 0%, #eddde280, transparent 45%),
    radial-gradient(ellipse at 0% 60%, #dae8da80, transparent 50%);
}
.festive-lights { display: none; }
[data-season=christmas] .festive-lights {
  display: flex;
  position: absolute;
  inset: -16px 0 auto;
  justify-content: space-around;
  height: 32px;
  border-bottom: 1px solid #728b6e;
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}
.festive-lights i {
  width: 7px; height: 10px; margin-top: 25px;
  border-radius: 3px 3px 60% 60%; background: #efca79;
  box-shadow: 0 0 10px 3px #edc46938; transform: rotate(12deg);
  animation: glow 3s ease-in-out 2 alternate;
}
.festive-lights i:nth-child(3n) { background: #c97f87; animation-delay: .6s; transform: rotate(-12deg); }
.festive-lights i:nth-child(3n + 2) { background: #8fae8c; animation-delay: 1.2s; }
.site-header { height: 108px; }
.brand { font-weight: 800; letter-spacing: -1px; }
.brand-icon { background: var(--accent); transform: rotate(-7deg); border-radius: 13px 13px 15px 10px; }
nav .profile { background: #fff; border: 1px solid var(--line); box-shadow: 3px 3px 0 var(--soft); }
nav .badge { background: transparent; color: var(--muted); font-style: italic; font-family: Georgia, serif; font-size: .95rem; }
button, .button { border-radius: 12px; transition: transform .15s, box-shadow .15s, background .15s; }
button:not(.text-button):not(.close):not(.item-image):hover, .button:hover { transform: translateY(-2px); box-shadow: 0 4px 10px #34584c12; }
.hero-copy > button, .auth-form button[type=submit] { background: var(--accent); box-shadow: 0 4px 0 #713b4415; }
.hero-copy > button { padding: 1rem 1.35rem; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: #a96d3b; }
#main { margin-top: 8px; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.8rem, 5.1vw, 4.35rem); letter-spacing: -2.2px; line-height: 1.06; }
h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.8rem; }
h3 { letter-spacing: -.25px; }
[data-season-copy=authTitle], [data-season-copy=heroTitle] { white-space: pre-line; }
.eyebrow { font-size: .76rem; letter-spacing: 1.6px; color: var(--accent); }
.hero { position: relative; grid-template-columns: 1.1fr 1fr; min-height: 380px; border: 1px solid #fff; border-radius: 30px; background: linear-gradient(115deg, var(--hero), var(--hero-end)); box-shadow: var(--shadow); margin-bottom: 40px; }
.hero-copy { padding: 48px 10px 46px 46px; z-index: 1; }
.hero-copy .eyebrow { text-transform: none; font-size: .9rem; letter-spacing: .2px; }
.hero-copy h1 { margin-bottom: 20px; max-width: 550px; }
.hero-copy p { max-width: 410px; font-size: 1rem; margin-bottom: 25px; color: #5c6e60; }
.hero-art { overflow: visible; background: transparent; min-width: 0; padding: 12px 12px 40px 0; }
.celebration-art { width: 100%; max-width: 520px; position: relative; }
.celebration-art img { width: 100%; height: auto; display: block; }
.celebration-art .christmas-art { display: none; }
[data-season=christmas] .celebration-art .everyday-art { display: none; }
[data-season=christmas] .celebration-art .christmas-art { display: block; }
.handwritten-note { position: absolute; right: 44px; bottom: 28px; font-family: Georgia, serif; font-style: italic; font-size: 1.2rem; letter-spacing: -.3px; color: #795950; transform: rotate(-6deg); }
.handwritten-note::before { content: '♡'; margin-right: 8px; color: var(--accent); font-style: normal; }
.hero .handwritten-note::after { content: ''; display: block; border-bottom: 2px solid #d99d8a88; border-radius: 50%; height: 8px; margin-left: 26px; }
[data-season=christmas] .handwritten-note { color: #82535a; }
.section-heading h2 .badge { font-family: 'Trebuchet MS', sans-serif; font-weight: 500; vertical-align: middle; margin-left: 6px; }
.tabs { background: #fff8; border: 1px solid var(--line); border-radius: 40px; padding: 4px; gap: 2px; }
.tabs button { padding: .6rem .9rem; font-size: .85rem; }
.tabs button:hover { transform: none!important; }
.list-card { box-shadow: var(--shadow); border-color: #fff; position: relative; }
.list-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 14px 30px #34584c12; }
.list-card-art { height: 140px; background: #e5eddc; overflow: hidden; }
.list-card-art::before, .list-card-art::after { content: ''; width: 160px; height: 160px; position: absolute; border: 1px solid #fff9; border-radius: 50%; left: -55px; top: -85px; }
.list-card-art::after { left: auto; top: auto; right: -58px; bottom: -95px; width: 200px; height: 200px; border-width: 20px; border-color: #fff5; }
.list-card:nth-child(3n+2) .list-card-art { background: #f9dfd8; }
.list-card:nth-child(3n+3) .list-card-art { background: #e9e2f2; }
.list-card-art .card-motif { width: 68px; height: 68px; background: #fff8; border: 1px solid #fffb; border-radius: 22px; font-size: 2.4rem; display: grid; place-items: center; transform: rotate(-9deg); box-shadow: 6px 7px 0 #34584c08; }
.list-card:nth-child(2n) .card-motif { transform: rotate(9deg); }
.card-motif .christmas-motif { display: none; }
[data-season=christmas] .card-motif .everyday-motif { display: none; }
[data-season=christmas] .card-motif .christmas-motif { display: inline; }
.list-card-art .card-motif > span { font-size: inherit; }
.list-card h3 { font-size: 1.17rem; }
.badge { font-size: .78rem; }
.new-list-card { border: 2px dashed #c6cfc3; background: #fff6; min-height: 290px; font-size: 1rem; color: #66775e; }
.new-list-card > span { background: #f8e2d9; color: #a56457; width: 54px; height: 54px; transform: rotate(-7deg); border-radius: 18px; }
.empty { background: #fff9; padding: 45px 24px; border-color: #cdd8c6; }
.empty::before { content: '✧'; display: block; font-size: 2.9rem; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.empty h3 { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; }
.site-footer { font-size: .85rem; padding-top: 28px; }
.site-footer > span { font-family: Georgia, serif; font-style: italic; font-size: .95rem; }
.auth { border-radius: 30px; box-shadow: 0 16px 60px #34584c08; border-color: #fff; grid-template-columns: 1.08fr 1fr; }
.auth-story { background: linear-gradient(145deg, #34584c, #28483e); padding: 42px 38px 20px; display: flex; flex-direction: column; }
.auth-story h1 { color: #fff6ea; font-size: clamp(2.8rem, 4.5vw, 3.75rem); line-height: 1.1; margin-bottom: 20px; }
.auth-story p { color: #dae5d8; font-size: .95rem; max-width: 390px; margin-bottom: 0; }
.auth-story .eyebrow { color: #efc77e; }
.auth-story .celebration-art { width: 100%; max-width: 360px; align-self: center; margin-top: auto; }
.auth-story .handwritten-note { position: static; display: block; align-self: flex-end; color: #f4d5bd; margin: -10px 5px 12px; font-size: 1rem; }
.auth-story .handwritten-note::before { color: #f0c177; }
[data-season=christmas] .auth-story { background: radial-gradient(circle at 0 0, #49745e, transparent 70%), #294b3f; }
.auth-form { padding: 44px; }
.auth-form h2 { font-size: 2rem; }
.auth-form > p { color: var(--muted); }
.auth-form .help { font-size: .82rem; }
input, textarea, select { background-color: #fffe; border-color: #d9e0d4; border-radius: 12px; }
input:focus, textarea:focus, select:focus { border-color: #819b7b; }
.auth-form input { padding: .95rem 1rem; }
.field { margin-bottom: 20px; }
.list-heading { position: relative; background: linear-gradient(115deg, var(--hero), var(--hero-end)); border: 1px solid #fff; border-radius: 24px; padding: 32px; gap: 24px; box-shadow: var(--shadow); }
.list-heading > div:first-child { min-width: 0; }
.list-heading h1 { font-size: 2.8rem; margin-bottom: 12px; }
.list-heading .eyebrow { margin-bottom: 12px; }
.list-heading > .actions { flex-shrink: 0; max-width: 40%; }
.list-season-note { font-family: Georgia, serif; font-style: italic; font-size: .95rem; margin-top: 14px; color: #795b4e; }
.notice { position: relative; background: #edf2e9; border: 1px solid #e1e9dc; border-radius: 14px; padding: 16px 20px 16px 46px; color: #4e6555; }
.notice::before { content: '♡'; position: absolute; left: 18px; top: 13px; font-size: 1.35rem; color: #926c5a; }
.panel { background: #fffc; border-color: #fff; box-shadow: var(--shadow); position: relative; border-top: 5px solid #dda598; }
[data-season=christmas] .panel { border-top-color: #b66e79; }
.panel h2 { font-size: 1.55rem; }
.panel h3 { font-size: 1rem; }
.panel > p { font-size: .95rem; }
.panel .divider { margin: 22px 0; }
.item-card { border-color: #fff; box-shadow: var(--shadow); border-radius: 20px; }
.item-image { background: #f0f3ec; height: 180px; }
.item-placeholder { background: radial-gradient(circle at 50% 50%, #fff8 0 40px, transparent 41px), #f4e8e2; color: #bb8377; }
.item-card:nth-child(3n+2) .item-placeholder { background-color: #e8eddf; color: #6f8963; }
.item-card:nth-child(3n+3) .item-placeholder { background-color: #eee7f2; color: #94779e; }
.item-placeholder .mini-gift { width: 55px; height: 44px; position: relative; border: 2px solid currentColor; border-radius: 5px; transform: rotate(-8deg); }
.mini-gift::before { content: ''; position: absolute; left: -6px; right: -6px; top: -7px; height: 12px; border: 2px solid currentColor; background: #fff5; border-radius: 3px; }
.mini-gift::after { content: ''; position: absolute; left: 23px; top: -7px; bottom: 0; border-left: 5px solid currentColor; }
.item-content { padding: 21px; }
.item-content h3 { font-size: 1.13rem; }
.item-content .price { font-size: 1.1rem; }
.item-card.claimed { opacity: 1; background: #f4f6f1; }
.claim-label { background: #e6eedf; border-radius: 9px; padding: 8px 10px; }
dialog { border: 1px solid #fff; box-shadow: 0 30px 100px #243e3333; background: #fffdfb; }
dialog::backdrop { background: #263e375c; }
.dialog-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.7rem; }
.close { border-radius: 50%; width: 36px; height: 36px; padding: 0; flex: 0 0 auto; }
.offline { background: #fff9; border: 1px solid #fff; border-radius: 26px; box-shadow: var(--shadow); }
@keyframes glow { to { box-shadow: 0 0 14px 5px #eac86b60; } }
@media (max-width: 1000px) {
  .hero-copy { padding: 38px 10px 36px 32px; }
  .hero-copy h1 { font-size: 3.25rem; }
  .auth-form { padding: 32px; }
  .list-heading { flex-direction: column; }
  .list-heading > .actions { max-width: 100%; }
}
@media (max-width: 640px) {
  .site-header { height: 88px; }
  .brand { font-size: 1.12rem; }
  nav .badge { display: none; }
  #main { margin-top: 8px; }
  .hero { grid-template-columns: 1fr; border-radius: 24px; margin-bottom: 30px; }
  .hero-copy { padding: 28px 26px 0; }
  .hero-copy h1 { font-size: clamp(2.55rem, 9vw, 3.5rem); letter-spacing: -1.5px; }
  .hero-copy .eyebrow { font-size: .8rem; margin-bottom: 15px; }
  .hero-copy p { font-size: .95rem; margin-bottom: 20px; }
  .hero-art { display: flex; max-height: 220px; padding: 0 18px 22px; justify-content: flex-end; }
  .hero-art .celebration-art { max-width: 285px; margin-top: -12px; }
  .hero-art .handwritten-note { right: auto; left: 25px; bottom: 23px; font-size: .95rem; max-width: 90px; line-height: 1.4; }
  .hero-art .handwritten-note::after { display: none; }
  .section-heading h2 { font-size: 1.65rem; }
  .tabs { max-width: 100%; }
  .tabs button { padding: .55rem .75rem; }
  .list-card-art { height: 116px; }
  .new-list-card { min-height: 130px; }
  .auth { border-radius: 24px; grid-template-columns: 1fr; }
  .auth-story { padding: 28px 26px 0; }
  .auth-story h1 { font-size: 2.75rem; letter-spacing: -1.5px; }
  .auth-story p { font-size: .92rem; }
  .auth-story .celebration-art { max-width: 255px; margin: -8px -8px -22px auto; }
  .auth-story .handwritten-note { align-self: flex-start; margin: -28px 0 26px; max-width: 100px; line-height: 1.4; }
  .auth-form { padding: 30px 26px; }
  .auth-form h2 { font-size: 1.8rem; }
  .list-heading { padding: 24px; gap: 20px; }
  .list-heading h1 { font-size: 2.25rem; }
  .list-workspace { flex-direction: column; }
  .list-workspace > section { order: 1; }
  .list-workspace > aside { order: 2; }
  .list-heading > .actions { gap: 8px; }
  .list-heading > .actions button { padding: .75rem .85rem; }
  .item-image { height: 190px; }
  .site-footer { font-size: .85rem; }
  .site-footer > span { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .festive-lights i { animation: none; }
  .list-card:hover, button:hover, .button:hover { transform: none; }
}
