/* Calendar invitations, doors, and correspondence */
.status-line {
  min-height: 1.4em;
}
.share-code {
  display: block;
  margin-block: 0.15rem 0.07rem;
  color: var(--pine);
  font: 650 clamp(1.35rem, 2.25vw, 1.78rem)/1.32 ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.07em;
  word-spacing: 0.08em;
  white-space: nowrap;
  user-select: all;
}
.letter-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.list-item a {
  color: inherit;
}
.list-item strong {
  overflow-wrap: anywhere;
}
.theme-holly {
  --door-color: #932f2e;
}
.theme-evergreen {
  --door-color: #305642;
}
.theme-frost {
  --door-color: #3b5e6d;
}
.gallery .eyebrow {
  display: none;
}
.public-postcards {
  margin-top: 1.5rem;
}
.public-postcards .btn {
  margin-top: 0.55rem;
}
.danger-link {
  color: var(--red-dark);
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.muted-copy {
  color: var(--muted);
}
.dialog .error:not([hidden]) {
  margin: 0.75rem 0;
}
.board-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 1.95rem 0 0.9rem;
}
.board-tools .board-heading,
.board-tools .text-btn {
  margin: 0;
}
.returning-mail {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 1rem;
}
.door .door-seal {
  position: absolute;
  top: 0.48rem;
  right: 0.52rem;
  width: clamp(1.7rem, 3.2vw, 2.75rem);
  height: auto;
  border-radius: 2px;
}
.door .door-signature {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 0.89rem/1.18 var(--sans);
  margin-top: auto;
}
.seal-art {
  display: block;
  object-fit: contain;
}
.letter-seal {
  float: right;
  width: clamp(3rem, 5.6vw, 4.1rem);
  height: auto;
  margin: 0 1.8rem 0.5rem 0.6rem;
  border-radius: 3px;
  transform: rotate(3deg);
}

/* Stamp picker */
.seal-choices {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}
.seal-choice {
  position: relative;
  display: grid;
  grid-template-rows: 3rem auto;
  justify-items: center;
  align-content: start;
  gap: 0.3rem;
  min-width: 0;
  min-height: 5.5rem;
  padding: 0.4rem 0.24rem;
  border: 1px solid var(--rule-dark);
  border-radius: 4px;
  background: var(--paper);
  color: var(--pine);
  text-align: center;
  text-wrap: balance;
  font: 600 0.94rem/1.13 var(--sans);
  cursor: pointer;
}
.seal-choice img {
  width: 3rem;
  height: 3rem;
  border-radius: 2px;
}
.seal-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seal-choice:hover {
  border-color: var(--pine-soft);
}
.seal-choice:has(input:checked) {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
  background: #f8ecda;
}
.seal-choice:has(input:checked)::after {
  content: '';
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--paper-light);
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3.1 3L13 4.3'/%3E%3C/svg%3E") center / 82% no-repeat;
  pointer-events: none;
}
.seal-choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  padding-block: 0.25rem;
  font: 500 1rem/1.35 var(--sans);
  cursor: pointer;
}
.check-line input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.12rem 0 0;
  accent-color: var(--red);
}
#dialog-body > #note-form {
  gap: 0.86rem;
  margin-top: 1rem;
}
#note-form .field,
#note-form .check-line {
  margin: 0;
}
#note-form .hint {
  margin: 0.18rem 0 0;
}
#note-form textarea {
  min-height: 5.5rem;
}
#note-form button[type='submit'] {
  margin-top: 0.25rem;
}
.dialog:has(#note-form) {
  width: min(42rem, calc(100% - 1.25rem));
  max-width: calc(100% - 1.25rem);
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
}
.dialog:has(#note-form) #dialog-body {
  padding: clamp(1.15rem, 3.4vw, 2rem);
}
#return-choice select {
  width: 100%;
}
#restore-owner {
  margin-top: 1rem;
}
.calendar-faq {
  max-width: 50rem;
  margin: clamp(2.3rem, 4.5vw, 3.6rem) 0 0;
}
.calendar-faq h2 {
  margin-bottom: 0.9rem;
  font: 500 clamp(1.7rem, 2.65vw, 2.3rem)/1.15 var(--serif);
  letter-spacing: -0.035em;
}
.calendar-faq details {
  border-top: 1px solid var(--rule);
}
.calendar-faq summary {
  padding: 0.8rem 0;
  cursor: pointer;
  font-weight: 600;
}
.calendar-faq p {
  max-width: 66ch;
  margin: 0 0 0.9rem;
  color: var(--pine-soft);
}

@media (max-width: 680px) {
  .seal-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .seal-choice {
    grid-template-rows: 2.7rem auto;
    min-height: 4.95rem;
    font-size: 0.97rem;
  }
  .seal-choice img {
    width: 2.7rem;
    height: 2.7rem;
  }
}
@media (max-width: 440px) {
  .door .door-seal {
    top: 0.4rem;
    right: 0.4rem;
    width: clamp(1.45rem, 6.6vw, 1.8rem);
  }
  .door .door-signature {
    font-size: 0.85rem;
  }
}
@media (forced-colors: active) {
  .seal-choice:has(input:checked) {
    border: 2px solid Highlight;
  }
  .seal-choice:has(input:checked)::after {
    display: none;
  }
  .seal-choice input {
    inset: 0.25rem 0.25rem auto auto;
    width: 1rem;
    height: 1rem;
    opacity: 1;
  }
}

/* The snowy village and its paper Advent calendar */
.hero.winter-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 0;
  color: var(--pine);
  background: #e7efd6;
  border-bottom: 1px solid #c9d7bd;
}
.winter-hero .hero-art, .winter-hero .hero-art picture {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.winter-hero .hero-art img {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mask-image: linear-gradient(transparent, black 16%);
}
.winter-hero .hero-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4.4vw, 4rem);
  padding-block: clamp(1.65rem, 2.8vw, 2.75rem) clamp(5.1rem, 12.4vw, 16rem);
  container-type: normal;
}
.hero-content { min-width: 0; max-width: 39rem; container-type: inline-size; }
.winter-hero .hero-title {
  font: 400 clamp(2.12rem, 10.8cqi, 4.2rem)/1.06 var(--display);
  letter-spacing: -.054em;
}
.winter-hero .hero-title em {
  margin-top: .09em;
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.03em;
}
.winter-hero .hero-desc { max-width: 33ch; color: var(--pine-soft); }
.winter-hero .actions { gap: .65rem; margin-top: 1.4rem; }
.winter-hero .btn.secondary { background: #fffcf1; border-color: #799484; }
.winter-hero .btn.secondary:hover { background: #fff; border-color: var(--pine); }
.winter-hero .hero-meta { margin-top: .85rem; color: var(--pine-soft); }
.winter-hero .returning-mail { color: var(--red-dark); font-weight: 650; text-underline-offset: .2em; }

.hero-calendar, .day-grid {
  border: .39rem solid transparent;
  border-radius: 1.08rem;
  background: linear-gradient(#fff9e9, var(--calendar-paper, #fff5dc)) padding-box,
    repeating-linear-gradient(135deg, var(--ribbon-ink, #c54643) 0 8px, #fff5d9 8px 14px, #43806d 14px 21px, #fff5d9 21px 27px) border-box;
  box-shadow: 0 2px 0 #88694255, 0 10px 24px -13px #264b3f70;
}
.hero-calendar {
  width: min(100%, 33.5rem);
  justify-self: end;
  container-type: inline-size;
  padding: clamp(.56rem, 1vw, .92rem) clamp(.65rem, 1.12vw, 1rem) .7rem;
  color: var(--pine);
}
.preview-heading {
  display: grid;
  place-items: center;
  aspect-ratio: 3.95;
  margin: 0 0 .55rem;
  background: url('/art/calendar-friends.webp') no-repeat center / auto 100%;
}
.preview-heading h2 {
  margin-top: .38em;
  color: var(--red-dark);
  font: 400 clamp(1.42rem, 8cqi, 2.55rem)/1 var(--display);
  letter-spacing: -.055em;
}
.preview-doors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.22rem, 1.32cqi, .44rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.preview-door {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.75rem;
  aspect-ratio: 1.23;
  padding: 0;
  border: 1px solid #c3c8a4;
  border-radius: .5rem;
  background: #e3ecd3;
  color: #294f3e;
  font: 400 clamp(1.1rem, 5.4cqi, 1.68rem)/1 var(--display);
  font-variant-numeric: lining-nums;
  box-shadow: 0 1px 0 #b29d6c55;
}
.preview-door::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed currentColor;
  border-radius: .32rem;
  opacity: .32;
  pointer-events: none;
}
.preview-doors li:nth-child(3n+1) > span { background: #fae0cb; color: #794431; border-color: #debca0; }
.preview-doors li:nth-child(3n) > span { background: #f8e7b7; color: #67491e; border-color: #d7bf87; }
.preview-doors li:nth-child(7n+4) > span { background: #dce9e8; color: #34585d; border-color: #abc7c6; }
.preview-door:has(img) { align-items: start; justify-items: start; }
.preview-door:has(img) .day-number {
  position: relative;
  z-index: 1;
  margin: .31em 0 0 .4em;
  font-size: .84em;
}
.preview-door img {
  position: absolute;
  right: 7%;
  bottom: 7%;
  width: 52%;
  height: 61%;
  object-fit: contain;
}
button.preview-door {
  border-color: #9b3336;
  background: #b53d42;
  color: #fffae9;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
button.preview-door::before { opacity: .62; }
button.preview-door img { width: 57%; height: 58%; transform: rotate(-7deg); }
button.preview-door:hover {
  transform: translateY(-2px) rotate(-2deg);
  background: #9e3035;
  box-shadow: 0 3px 4px #84312e40;
}
.hero-calendar button:focus-visible { z-index: 1; outline: 3px solid var(--focus); outline-offset: 2px; }
.calendar-instruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .65rem;
  color: var(--pine-soft);
  font-size: clamp(.87rem, 3.35cqi, 1rem);
  font-weight: 550;
  line-height: 1.25;
  text-align: center;
}
.calendar-instruction .icon { color: var(--red); }
.maker-grid .hero-calendar { justify-self: center; }

@media (max-width: 760px) {
  .winter-hero .hero-copy { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; padding-block: 1.5rem clamp(4.8rem, 21.5vw, 10rem); }
  .hero-content { max-width: 34rem; }
  .winter-hero .hero-calendar { justify-self: start; }
  .winter-hero .hero-title { font-size: clamp(1.95rem, 9.15cqi, 3.55rem); }
  .winter-hero .hero-desc { max-width: 35ch; margin-top: .7rem; font-size: 1.07rem; line-height: 1.36; }
  .winter-hero .actions { gap: .48rem; margin-top: .95rem; }
  .winter-hero .actions .btn { min-height: 2.85rem; padding-inline: .72rem; }
  .winter-hero .hero-meta { margin-top: .62rem; }
  .hero-calendar { padding: .4rem .55rem .6rem; border-width: .3rem; border-radius: .9rem; }
  .preview-heading { margin-bottom: .4rem; }
}
@media (max-width: 360px) {
  .winter-hero .actions .btn { flex: 0 1 auto; gap: .25rem; padding-inline: .46rem; }
  .preview-door::before { inset: 2px; }
}

/* Christmas stationery and task controls */
.masthead { background: #fffaf0; }
.inbox-shortcut { display: inline-flex; justify-content: center; gap: .4rem; width: auto; padding-inline: .82rem; border-radius: .65rem; color: var(--pine); background: #e7eedd; border-color: #b6c9ae; text-decoration: none; font-size: 1rem; font-weight: 650; }
.nav-code, .nav-toggle { border-radius: .65rem; }
.nav-code .short-code { display: none; }
body:not([data-page='home']) > main {
  background: radial-gradient(ellipse at right top, #e9efda, transparent 65%) top / 100% 25rem no-repeat;
}
.section-head h2, .page-head h1, .paper h2, .board-heading, .calendar-faq h2, .dialog h2 {
  font-family: var(--display);
  font-weight: 400;
}
.page-head h1 em, .paper h2 em { font-family: var(--serif); }
.home-sections .section-head { align-items: baseline; }
.home-sections .section-head p { font-size: 1rem; color: var(--pine-soft); }
.home-sections .home-steps { border-top: 0; }
.home-steps .step-stamp {
  padding: .25rem;
  border: 1px dashed #b8ad84;
  border-radius: 25% 22% 24% 20%;
  background: #f6e9c9;
  transform: rotate(-5deg);
}
.home-steps .step:nth-child(2) .step-stamp { background: #e2eddd; transform: rotate(4deg); }
.home-steps .step:nth-child(3) .step-stamp { background: #f9e3d4; transform: rotate(-3deg); }
.home-sections .gallery { padding-block: clamp(2rem, 3.5vw, 3.1rem) clamp(2.6rem, 5vw, 4.1rem); }
.card-tile { padding: clamp(.35rem, .7vw, .55rem); border-radius: .85rem; border-color: #ccbea4; box-shadow: 0 3px 0 #d9c9a650; }
.card-tile .card-art { border: 1px solid #d3c7b2; border-radius: .5rem; }
.card-tile .tile-caption { padding: .75rem .55rem .38rem; }
.card-tile .tile-tag { color: var(--red); }
.card-tile:hover .tile-tag .icon { color: var(--red); }
.inner > .page-head {
  position: relative;
  isolation: isolate;
  padding-right: clamp(6.5rem, 13vw, 10rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed #bcc7a9;
}
body[data-page='create'], body[data-page='inbox'] { --letterhead-art: url('/art/post-robin.webp'); }
body[data-page='games'] { --letterhead-art: url('/art/post-gingerbread.webp'); }
body[data-page='composer'], body[data-page='card'] { --letterhead-art: url('/art/post-gift.webp'); }
.inner > .page-head::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: .6rem;
  top: -.25rem;
  width: clamp(4.1rem, 7.4vw, 6.9rem);
  aspect-ratio: 1;
  border: 1px dashed #b59764;
  border-radius: .32rem;
  background: var(--letterhead-art, url('/art/post-envelope.webp')) center / 78% 78% no-repeat, #fff1d1;
  box-shadow: 0 0 0 3px #fff7e3, 0 0 0 4px #cab68d, 1px 4px 3px 3px #694a3920;
  transform: rotate(7deg);
}
.inner > .page-head > p:not(.eyebrow) { max-width: 58ch; }
#inbox .page-head h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); }
.paper { box-shadow: 0 3px 0 #bdab8040; }
.calendar-form { display: grid; gap: 1.05rem; align-content: start; }
.calendar-form .field, .calendar-form .form-actions { margin: 0; }
.calendar-form .hint { margin: -.35rem 0 0; }
#dialog-body > .calendar-form { padding: 0; border: 0; box-shadow: none; background: none; }
#code-form { max-width: 100%; }
#code-form input { font-family: var(--sans); }
#code-form .field, #code-form .btn { margin: 0; }
.field small { font-size: .91rem; font-weight: 450; color: var(--muted); }
.address-fields, .mail-shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.address-fields { margin-top: 1.05rem; }
#suggest-greeting { justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 0; min-height: 2.75rem; }
#suggest-greeting .icon { width: 1rem; }
.mobile-preview { display: none; }
.preview-dialog > img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.card-reader .preview-field, .card-preview .preview-field { background: #fff6df; border-top: 1px dashed #c5a77a; }
.card-reader .preview-message { padding: 0; }
.card-actions { margin-block: .9rem .2rem; }
form[aria-busy='true'] button[type='submit'] { cursor: progress; }
.stamp-picker, .share-options { color: var(--pine); }
.stamp-picker summary, .share-options summary { min-height: 2.75rem; padding-block: .45rem; cursor: pointer; font-weight: 600; }
.stamp-picker { border-block: 1px solid var(--rule); }
.stamp-picker summary { list-style-position: inside; }
.stamp-summary { display: inline-flex; align-items: center; gap: .55rem; vertical-align: middle; }
.stamp-summary img { width: 2rem; height: 2rem; }
.stamp-summary strong { margin-left: .38rem; color: var(--muted); font-size: .94rem; font-weight: 450; }
.stamp-picker fieldset { padding-bottom: .65rem; }
#note-form .check-line { min-height: 2.75rem; align-items: center; padding: .35rem 0; }
#note-form .check-line input { margin-top: 0; }
#note-form .hint { line-height: 1.3; }
.dialog { border-color: #af9876; border-radius: .9rem; }
.note-letter {
  border-top: 0;
  background: repeating-linear-gradient(125deg, #b94545 0 9px, #fff0d2 9px 16px, #477263 16px 25px, #fff0d2 25px 32px) top / 100% 5px no-repeat, #fff8e8;
}
.note-letter .letter-text { line-height: 1.6; }
.inbox-actions { margin-top: 1.1rem; }
.invite-strip {
  display: flex; justify-content: space-between; align-items: start; gap: .55rem 1.25rem;
  padding: .9rem 1.12rem; background: #eaf1df; border: 1px dashed #a7baa0; border-radius: .75rem;
}
.invite-code { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .85rem; color: var(--pine-soft); }
.invite-code .share-code { margin: 0; font-size: 1.19rem; }
.share-options .mini-actions { margin: .35rem 0 .25rem; }
.board-tools .hint { margin: .25rem 0 0; }
.day-grid {
  --ribbon-ink: var(--door-color);
  --calendar-paper: color-mix(in srgb, var(--door-color) 13%, #fffae9);
  padding: clamp(.65rem, 1.3vw, 1rem);
}
.day-grid .door { border-radius: .68rem; }
.day-grid .door::before { border-radius: .43rem; }
.day-grid .door > span:first-child { font-family: var(--display); font-weight: 400; }
.door:not(.filled) { background: #e7eedb; }
.door:not(.filled):nth-child(3n+1) { background: #f9e3d0; }
.door:not(.filled):nth-child(3n) { background: #f8eac4; }
.door .door-motif { position: absolute; top: 8%; right: 8%; width: 34%; height: 49%; object-fit: contain; }
.door.ready { box-shadow: inset 0 0 0 3px var(--door-color), inset 0 0 0 4px #d1ba89; }
.door:not(.filled):disabled { opacity: .74; }
.door:disabled:hover { transform: none; }
#write-alternative .btn { margin-block: .3rem; }
#card .card-actions { max-width: 100%; }
@media (max-width: 920px) {
  .inbox-shortcut { display: inline-flex; min-height: 2.75rem; }
}
@media (max-width: 760px) {
  .mobile-preview { display: inline-flex; }
  .card-composer > .card-preview { display: none; }
  .mail-shelves { grid-template-columns: 1fr; }
  #create-card .selection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  #create-card .template-choice { padding: 3px; }
  #create-card .template-choice span { padding-inline: .13rem; font-size: .9rem; }
  .inner > .page-head { padding-right: 0; }
  .inner > .page-head::after { width: 3.6rem; top: -.2rem; }
  .inner > .page-head h1, #inbox .page-head > .eyebrow { padding-right: 4.5rem; }
  .inner > .page-head p:not(.eyebrow) { margin-top: .7rem; }
  .home-steps .section-head { flex-wrap: wrap; gap: .2rem .75rem; }
  .home-steps .section-head .btn { padding-left: 0; }
  .invite-strip { flex-wrap: wrap; }
  .invite-code { gap: .25rem .6rem; }
}
@media (max-width: 440px) {
  .header-inner { width: calc(100% - 1.4rem); }
  .header-inner .brand { width: clamp(7rem, 36vw, 10.4rem); }
  .header-actions { gap: .3rem; }
  .header-actions .inbox-shortcut { padding-inline: .4rem; }
  .inbox-shortcut .icon, .nav-code .long-code { display: none; }
  .nav-code .short-code { display: inline; }
  .nav-code { min-width: 2.75rem; padding-inline: .3rem; }
  .address-fields { gap: .5rem; }
  #create-card .form-actions .btn { padding-inline: .7rem; }
  #create-card .form-actions .icon { display: none; }
  .day-grid .door { padding-inline: .48rem; }
  .day-grid .door small { font-size: .83rem; }
}
@media (max-width: 360px) {
  .hero.winter-hero .actions .btn { flex: 0 1 auto; }
  .stamp-summary { gap: .3rem; }
  .card-composer .form-actions > .btn { flex: 1 1 100%; }
}
@media (forced-colors: active) {
  .hero-calendar, .day-grid, .preview-door, .door { border: 1px solid CanvasText; }
  button.preview-door { text-decoration: underline; }
  .preview-door:has(img) .day-number { background: Canvas; color: CanvasText; }
}

/* A postcard can be sent as written or personalized in place. */
.home-game-link { display: flex; align-items: center; gap: .7rem; padding-block: .85rem; border-top: 1px solid var(--rule); }
.home-game-link img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.home-game-link a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.card-fields {
  display: grid;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 1.05rem;
}
.card-fields .field { margin: 0; }
.card-designs summary, .card-names summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.9rem;
  list-style: none;
  cursor: pointer;
}
.card-designs summary::-webkit-details-marker, .card-names summary::-webkit-details-marker { display: none; }
.card-designs summary:focus-visible, .card-names summary:focus-visible { outline-offset: 2px; }
.card-designs summary { color: var(--pine); }
.card-designs:not([open]) summary { padding: .4rem .65rem .4rem .4rem; border: 1px solid var(--rule); border-radius: 4px; background: #faf6e9; }
#chosen-thumb { width: 4.5rem; height: 3rem; object-fit: cover; border-radius: 2px; }
.chosen-caption { display: grid; gap: .12rem; min-width: 0; }
.design-prompt, .names-optional { color: var(--muted); font-size: .91rem; }
.chosen-caption strong { font: 500 1.18rem/1.14 var(--serif); }
.design-toggle { margin-left: auto; color: var(--red); font-weight: 650; font-size: .98rem; }
.card-designs[open] :is(#chosen-thumb, #chosen-name, .change-design), .card-designs:not([open]) .close-design { display: none; }
.card-designs[open] .design-prompt { color: var(--pine); font-weight: 650; font-size: 1.05rem; }
.card-designs[open] summary { margin: -.4rem 0 .14rem; }
.greeting-heading { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.greeting-heading label { color: var(--pine); font-weight: 650; }
.greeting-heading #suggest-greeting { flex: none; padding: .35rem 0 .35rem .25rem; }
.greeting-field textarea { font: 400 1.15rem/1.45 var(--serif); min-height: 6.4rem; background: #fffdf6; }
.card-names { border-block: 1px solid var(--rule); }
.card-names summary { font-weight: 600; }
.card-names summary::after {
  content: ''; flex: none; width: .52rem; height: .52rem; margin-right: .2rem;
  border: solid var(--pine); border-width: 0 1.5px 1.5px 0; transform: translateY(-.14rem) rotate(45deg);
}
.card-names[open] summary::after { transform: translateY(.14rem) rotate(225deg); }
.names-optional { margin-left: auto; font-weight: 450; }
#names-label { min-width: 0; overflow-wrap: anywhere; }
.card-names .address-fields { margin: .1rem 0 .85rem; }
.card-names .address-fields:has(#card-to-field[hidden]) { grid-template-columns: 1fr; }
.composer-actions { margin-top: 1rem; }
.destination-actions:not([hidden]), .preview-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.destination-actions:not([hidden]) { margin-top: .65rem; }
#dialog-body:has(.preview-dialog) { padding: 0; }
.preview-actions { padding: 1rem 1.25rem; border-top: 1px solid var(--rule); }
.receipt-options { margin-top: .4rem; }
.receipt-feedback:empty { display: none; }
#card .receipt-feedback:not(:empty) { display: block; margin-top: .65rem; color: var(--pine); font-weight: 600; }
@media (max-width: 760px) {
  .home-sections .gallery { padding-block: 1.3rem 1.45rem; border-top: 0; }
  .home-sections .gallery .section-head { margin: 0 0 .75rem; }
  .home-sections .section-head h2 { font-size: clamp(1.55rem, 6.2vw, 2rem); }
  .home-sections .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.35rem, 1.8vw, .85rem); }
  .home-sections .card-tile { padding: .24rem; }
  .home-sections .card-art { aspect-ratio: 1.35; }
  .home-sections .card-tile .tile-caption { padding: .48rem .12rem .25rem; }
  .home-sections .tile-title { font-size: clamp(.99rem, 3.85vw, 1.27rem); line-height: 1.08; letter-spacing: -.025em; }
  .home-sections .tile-tag { display: none; }
  .home-sections .home-steps { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
  .stationery-editor { padding-block: 1.12rem 2rem; }
  .stationery-editor > .composer-head { padding-bottom: .7rem; margin-bottom: .8rem; }
  .stationery-editor > .composer-head h1 { font-size: clamp(1.85rem, 7vw, 2.75rem); line-height: 1.08; padding-right: 2.5rem; }
  .stationery-editor > .composer-head::after { width: 2.2rem; top: -.15rem; }
  .stationery-editor > .composer-head p { margin-top: .38rem; font-size: 1rem; line-height: 1.35; }
  .card-fields { gap: .7rem; }
  .greeting-field { gap: .18rem; }
  .greeting-field textarea { font-size: 1.09rem; line-height: 1.4; min-height: 6rem; max-height: 14rem; field-sizing: content; }
  #create-card { padding: .9rem; }
  #create-card .selection-grid { gap: .42rem; }
  #create-card .template-choice { border-radius: 3px; }
  #create-card .composer-actions { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .5rem; }
  #create-card .composer-actions .btn, .preview-actions .btn { min-height: 3rem; }
  .preview-actions .btn { flex: 1 1 7.8rem; }
  #card .card-actions .primary { min-height: 3rem; }
}
@media (max-width: 350px) {
  .winter-hero .actions .btn { font-size: .97rem; }
  .winter-hero .actions .icon { display: none; }
  .stationery-editor { padding-top: .85rem; }
  .stationery-editor > .composer-head h1 { font-size: 1.65rem; padding-right: 1.4rem; }
  .stationery-editor > .composer-head::after { width: 2.1rem; height: 1.35rem; }
  #create-card { padding: .7rem; }
  .card-designs summary { gap: .45rem; }
  #chosen-thumb { width: 3.25rem; height: 2.5rem; }
  .chosen-caption strong { font-size: 1.07rem; }
  #create-card .composer-actions { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  #create-card .composer-actions .btn { font-size: 1rem; padding: .5rem .3rem; }
}
