/* Thanksgiving through Christmas band for the Immersive site. Hidden by sale-clock.js after Dec 31, 2026.
   2026-11-18 (sprint 2026-11-18-holiday-room-2021-natural): Matt's own living room on Christmas morning 2021, a natural edit
   (about 2/3 stop darker, nothing else). No scrim over the photo: the only gradient sits where the card is. The card sits on
   the rug on a phone and by the armchair on desktop. Photo: img/holiday/living-room-2021n-*, EXIF stripped, mantel photos removed. */
html.sale-over [data-sale] { display: none !important; }
.holiday-sec { padding: clamp(.5rem, 2vw, 1.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.holiday {
  --edge: 11, 11, 14;            /* the room's dawn shadow; the photo fades into this */
  position: relative; overflow: hidden; isolation: isolate;
  background: rgb(var(--edge));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line-strong));
  border-radius: var(--r-lg);
}

/* The room */
.holiday-room { display: block; position: relative; aspect-ratio: 4 / 5; }
.holiday-room img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.holiday-room::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--edge), 0) 0%, rgba(var(--edge), 0) 68%, rgba(var(--edge), .8) 90%, rgb(var(--edge)) 100%);
}

/* The card in the room */
.holiday-card {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem;
  margin: -34% .75rem .75rem;
  padding: clamp(1.25rem, 5vw, 2rem);
  background: rgba(14,13,17,.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  border-radius: calc(var(--r-lg) - 8px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.holiday-kicker { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-label); letter-spacing: .02em; color: var(--gold-2); }
.holiday-h { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.015em; margin: .5rem 0 0; max-width: 20ch; color: #f6f1ea; }
.holiday-h em { font-style: italic; color: var(--gold-2); padding-right: .08em; }
.holiday-p { color: #d6d0c8; max-width: 54ch; margin-top: .75rem; }
.holiday-terms { font-size: var(--fs-label); line-height: 1.55; color: #c9c2b9; }
.holiday-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.holiday-ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-sm); overflow: hidden; margin: 0; background: rgba(0,0,0,.22); }
.holiday-ledger div { padding: .8rem 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.holiday-ledger div + div { border-left: 1px solid rgba(255,255,255,.16); }
.holiday-ledger dt { font-size: var(--fs-micro); color: #c9c2b9; letter-spacing: .02em; }
.holiday-ledger dd { margin: .2rem 0 0; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: #f6f1ea; }
.holiday-ledger .now dd { color: var(--gold-2); }
.holiday-ledger .then dd { color: #c9c2b9; font-weight: 700; }
.holiday .nowrap { white-space: nowrap; }
.holiday .btn { justify-content: center; }

@media (max-width: 374px) {
  .holiday-card { margin-inline: .5rem; padding: 1.1rem; }
  .holiday-ledger div { padding: .7rem .75rem; }
  .holiday-ledger dd { font-size: 1.3rem; }
  .holiday .btn { padding-inline: .75rem; gap: .5rem; font-size: .9rem; }
  .holiday .btn-arrow { flex-shrink: 0; }
}

/* Desktop: the room on the left (tree and fire), the card by the armchair on the right */
@media (min-width: 900px) {
  .holiday { display: grid; align-items: center; justify-items: end; min-height: clamp(560px, 44vw, 660px); padding: clamp(1.75rem, 3.2vw, 2.75rem); }
  .holiday-room { position: absolute; inset: 0 30% 0 0; aspect-ratio: auto; z-index: 0;
    -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 24%); mask-image: linear-gradient(270deg, transparent 0, #000 24%); }
  .holiday-room img { object-position: 30% 45%; }
  .holiday-room::after { background: linear-gradient(270deg, rgba(var(--edge), .45) 0%, rgba(var(--edge), 0) 26%); }
  .holiday-card { margin: 0; max-width: 31rem; }
  .holiday-h { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.4rem); }
  .holiday-ledger dd { font-size: 1.85rem; }
}

/* Day theme: the photo is the same; the band edge and the card turn to warm paper (no dark strip on phones). */
html[data-theme="day"] .holiday { --edge: 244, 238, 228; border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
@media (min-width: 900px) {
  html[data-theme="day"] .holiday-room::after { background: none; }
}
html[data-theme="day"] .holiday-card { background: rgba(255,251,244,.94); border-color: color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: 0 24px 60px -24px rgba(40,24,6,.40); }
html[data-theme="day"] .holiday-h { color: #17130e; }
html[data-theme="day"] .holiday-p { color: #3d342a; }
html[data-theme="day"] .holiday-terms,
html[data-theme="day"] .holiday-ledger dt,
html[data-theme="day"] .holiday-ledger .then dd { color: #52483d; }
html[data-theme="day"] .holiday-ledger { border-color: rgba(60,40,10,.18); background: rgba(255,255,255,.5); }
html[data-theme="day"] .holiday-ledger div + div { border-left-color: rgba(60,40,10,.18); }
html[data-theme="day"] .holiday-ledger dd { color: #17130e; }
html[data-theme="day"] .holiday-kicker,
html[data-theme="day"] .holiday-h em,
html[data-theme="day"] .holiday-ledger .now dd { color: #7a5514; }
/* Day theme button in the band: white label on the day teal, same as every other main button in day theme (6.6:1). */
html[data-theme="day"] .holiday .btn-primary { color: #fff; }
/* Under 375 px the button words wrap to a second line instead of being cut off. */
@media (max-width: 374px) {
  .holiday .btn { white-space: normal; text-align: center; line-height: 1.25; text-wrap: balance; }
  .holiday .btn-roll { height: auto; overflow: visible; text-wrap: balance; }
  .holiday .btn-roll > span { transform: none !important; }
  .holiday .btn-roll > span::after { display: none; }
}
