/* Julkalender (page-templates/julkalender.php). Wine red, rose and cream, with the site's typefaces. */
.adv {
  --adv-wine: #6b1a2c; --adv-wine-dark: #541222; --adv-gold: #c9a46a;
  --adv-rose: #f4e2dc; --adv-cream: #fbf6f0; --adv-line: #e3cdc4;
  --adv-ink: #5c1526; --adv-muted: #8a6763; --adv-panel: #f8efe8;
  --adv-wall-1: #f1e4d8; --adv-wall-2: #e2cfbf; --adv-wood: #7a5236; --adv-frame: #4b2f1f;
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 88px; color: var(--adv-ink);
}

/* Heading */
.adv-head { text-align: center; margin: 0 auto 44px; max-width: 760px; }
.adv-head__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--adv-gold); margin: 0 0 18px; }
.adv-head__eyebrow span { font-size: 10px; letter-spacing: 0; }
.adv-head__title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 14px; color: var(--adv-ink); }
.adv-head__lead { font-family: var(--font-heading); font-style: italic; font-size: clamp(17px, 2.2vw, 22px); color: var(--adv-muted); margin: 0; }

/* Today's door: the offer on the left, the poster in a room on the right. */
.adv-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--adv-panel); border-radius: 4px; overflow: hidden; margin: 0 0 48px; box-shadow: 0 1px 0 #fff inset, 0 30px 60px -40px #5c152640; }
.adv-feature__body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.adv-feature__body--wide { grid-column: 1 / -1; align-items: center; text-align: center; padding: 72px 32px; }
.adv-feature__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--adv-gold); margin: 0 0 18px; }
.adv-feature__kicker span { margin: 0 6px; }
.adv-feature__deal { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: var(--adv-wine); margin: -4px 0 28px; }
/* The code as a clean white strip: label, code and a copy button. */
.adv-ticket { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; background: #fff; border: 1px solid var(--adv-line); border-radius: 6px; padding: 8px 8px 8px 18px; margin: 0 0 12px; box-shadow: 0 10px 24px -18px #5c152640; }
.adv-ticket__label { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--adv-muted); }
.adv-ticket__code { font-size: 20px; font-weight: 700; letter-spacing: 0.14em; color: var(--adv-ink); padding-left: 16px; border-left: 1px solid var(--adv-line); }
.adv-ticket .adv-ticket__copy { background: var(--adv-rose); border: 0; border-radius: 4px; padding: 10px 14px; cursor: pointer; font-size: 11px; letter-spacing: 0; display: inline-flex; }
.adv-ticket .adv-ticket__copy .adv-code__hint { border: 0; padding: 0; color: var(--adv-wine); font-size: 11px; }
.adv-ticket .adv-ticket__copy:hover { background: #ecd2ca; }
.adv-ticket .adv-ticket__copy.is-copied { background: var(--adv-wine); }
.adv-ticket .adv-ticket__copy.is-copied .adv-code__hint { color: #fff; }
.adv-feature__eyebrow { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1; margin: 0 0 14px; color: var(--adv-ink); }
.adv-feature__offer { display: inline-block; background: var(--adv-wine); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 2px; margin: 0 0 14px; }
.adv-feature__title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 14px; color: var(--adv-ink); }
.adv-feature__text { font-size: 16px; line-height: 1.65; color: var(--adv-muted); margin: 0 0 24px; max-width: 34ch; }
.adv-feature__body--wide .adv-feature__text { max-width: 46ch; }
.adv-feature__code { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--adv-muted); margin: 0 0 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adv-code { font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.14em; color: var(--adv-wine); background: #fff; border: 1.5px dashed var(--adv-wine); border-radius: 4px; padding: 10px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; text-transform: none; transition: background var(--transition-fast); }
.adv-code:hover { background: #fff8f6; }
.adv-code__hint { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--adv-muted); border-left: 1px solid var(--adv-line); padding-left: 12px; }
.adv-code.is-copied .adv-code__hint { color: var(--adv-wine); }
.adv-feature__valid { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--adv-muted); margin: 4px 0 30px; }
.adv-feature__button { display: inline-flex; align-items: center; gap: 10px; background: var(--adv-wine); color: #fff; font-family: var(--font-heading); font-size: 19px; padding: 16px 30px; text-decoration: none; border-radius: 2px; transition: background var(--transition-fast), transform var(--transition-fast); }
.adv-feature__button::after { content: "→"; font-family: var(--font-body); font-size: 16px; transition: transform var(--transition-fast); }
.adv-feature__button:hover, .adv-feature__button:focus-visible { background: var(--adv-wine-dark); color: #fff; }
.adv-feature__button:hover::after { transform: translateX(3px); }

/* The drawn room: a lit wall, a wooden shelf and the poster in a dark wood frame. */
.adv-feature__media { position: relative; min-height: 460px; display: flex; align-items: flex-end; justify-content: center; padding: 48px 32px 64px; background: radial-gradient(120% 90% at 85% 10%, #fbf3ea 0%, var(--adv-wall-1) 38%, var(--adv-wall-2) 100%); overflow: hidden; }
.adv-room__light { position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; background: linear-gradient(115deg, transparent 30%, #fffaf3aa 45%, transparent 60%); transform: rotate(8deg); pointer-events: none; }
.adv-room__shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(#8d6142, var(--adv-wood) 30%, #5e3d27); box-shadow: 0 -8px 18px -8px #3a1f1466; }
.adv-frame { position: relative; z-index: 1; display: block; width: min(62%, 300px); padding: 14px; background: #fff; border: 11px solid var(--adv-frame); box-shadow: 0 2px 0 #6a4630 inset, 0 30px 40px -18px #2a150c88, 0 6px 10px #2a150c33; transform: translateY(-2px); }
.adv-frame__img { display: block; width: 100%; height: auto; }
.adv-feature__media--photo { padding: 0; align-items: stretch; }
.adv-feature__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; display: block; }

/* The 24 doors as cards: opened doors show their poster and offer, the rest only their number. */
.adv-grid__heading { font-family: var(--font-heading); font-weight: 400; font-size: clamp(26px, 3vw, 34px); text-align: center; margin: 0 0 28px; color: var(--adv-ink); }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.adv-card { margin: 0; min-width: 0; }
.adv-card__tile { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--adv-cream); border-radius: 4px; overflow: hidden; margin: 0 0 14px; }
.adv-card--rose .adv-card__tile { background: var(--adv-rose); }
.adv-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; display: block; transition: transform var(--transition-normal); }
a.adv-card__tile:hover .adv-card__photo { transform: scale(1.03); }
.adv-card--past .adv-card__photo { filter: saturate(0.6); opacity: 0.85; }
.adv-card__img { width: 58%; height: auto; display: block; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--adv-frame), 0 18px 24px -12px #3a1f1466; transition: transform var(--transition-normal); }
a.adv-card__tile:hover .adv-card__img { transform: scale(1.03); }
.adv-card__badge { position: absolute; top: 14px; left: 14px; width: 66px; height: 66px; border-radius: 50%; background: var(--adv-wine); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 17px; font-weight: 500; line-height: 1; text-align: center; white-space: nowrap; letter-spacing: -0.01em; box-shadow: 0 6px 14px -6px #5c152655; z-index: 1; }
.adv-card__badge--text { font-size: 14px; letter-spacing: -0.02em; }
.adv-card__closed { position: absolute; z-index: 1; inset: auto 0 0; padding: 10px; background: #fbf6f0e6; color: var(--adv-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.adv-card--past .adv-card__img { filter: saturate(0.6); opacity: 0.8; }
.adv-card--today .adv-card__tile { box-shadow: 0 0 0 2px var(--adv-wine); }
.adv-card__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--adv-muted); margin: 0 0 6px; }
.adv-card--today .adv-card__eyebrow { color: var(--adv-wine); }
.adv-card__title { font-family: var(--font-heading); font-weight: 500; font-size: 19px; line-height: 1.25; margin: 0 0 12px; color: var(--adv-ink); }
.adv-card__button { display: inline-block; background: var(--adv-wine); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 2px; text-decoration: none; }
.adv-card__button:hover, .adv-card__button:focus-visible { background: var(--adv-wine-dark); color: #fff; }
.adv-card__link { font-size: 14px; color: var(--adv-ink); text-decoration: underline; text-underline-offset: 3px; }
/* Locked doors: a large number, a lock and the opening day. */
.adv-card--locked .adv-card__tile { flex-direction: column; gap: 14px; border: 1px solid var(--adv-line); }
.adv-card--locked .adv-card__tile::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--adv-line); border-radius: 2px; pointer-events: none; }
.adv-card__num { font-family: var(--font-heading); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.02em; color: var(--adv-ink); }
.adv-card__lock { color: var(--adv-muted); opacity: 0.7; }
.adv-card__when { font-size: 14px; color: var(--adv-muted); margin: 0; }
.adv-card--empty .adv-card__num { opacity: 0.4; }
/* Coming doors: small numbered doors, eight a row. */
.adv-grid__heading--coming { margin-top: 64px; }
.adv-coming { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.adv-coming__door { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--adv-cream); border: 1px solid var(--adv-line); border-radius: 4px; color: var(--adv-ink); }
.adv-coming__door::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--adv-line); border-radius: 2px; pointer-events: none; }
.adv-coming__door--rose { background: var(--adv-rose); }
.adv-coming__num { font-family: var(--font-heading); font-size: clamp(22px, 2.6vw, 34px); line-height: 1; }
.adv-coming .adv-card__lock { width: 12px; height: 14px; }
.adv-grid__heading--closed { margin-top: 72px; color: var(--adv-muted); }
.adv-grid--closed { opacity: 0.85; }
.adv-foot { text-align: center; font-size: 13px; color: var(--adv-muted); margin: 40px auto 0; max-width: 60ch; }
.adv-content { max-width: 720px; margin: 56px auto 0; line-height: 1.7; }

@media (max-width: 900px) {
  .adv { padding-top: 36px; }
  .adv-feature { grid-template-columns: 1fr; }
  .adv-feature__media { order: -1; min-height: 340px; padding: 32px 24px 52px; }
  .adv-frame { width: min(58%, 240px); padding: 10px; border-width: 9px; }
  .adv-room__shelf { height: 30px; }
  .adv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
  .adv-coming { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 480px) {
  .adv { padding-left: 16px; padding-right: 16px; }
  .adv-head { margin-bottom: 32px; }
  .adv-feature__body { padding: 28px 22px 32px; }
  .adv-feature__button { width: 100%; justify-content: center; }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .adv-coming { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adv-card__badge { top: 10px; left: 10px; width: 52px; height: 52px; font-size: 14px; }
  .adv-card__badge--text { font-size: 11px; }
  .adv-card__title { font-size: 17px; }
}

/* Dark mode: the calendar keeps its wine red, on the site's dark surfaces. */
@media (prefers-color-scheme: dark) {
  .adv { --adv-ink: #f3dcd8; --adv-muted: #c6aaa5; --adv-rose: #3a2729; --adv-cream: #2a231e; --adv-line: #4f3c37; --adv-panel: #2a231e; --adv-wine: #8f2439; --adv-wine-dark: #a52e46; --adv-gold: #d8be90; --adv-wall-1: #3a2f27; --adv-wall-2: #2a221c; }
  .adv-feature { box-shadow: 0 30px 60px -40px #0009; }
  .adv-feature__media { background: radial-gradient(120% 90% at 85% 10%, #463a30 0%, var(--adv-wall-1) 38%, var(--adv-wall-2) 100%); }
  .adv-room__light { background: linear-gradient(115deg, transparent 30%, #ffffff14 45%, transparent 60%); }
  .adv-code { background: #211d18; border-color: #d5788a; color: #f3dcd8; }
  .adv-ticket { background: #211d18; border-color: var(--adv-line); }
  .adv-ticket .adv-ticket__copy { background: #3a2729; }
  .adv-ticket .adv-ticket__copy .adv-code__hint { color: #f3dcd8; }
  .adv-ticket .adv-ticket__copy:hover { background: #4a3234; }
  .adv-code:hover { background: #2a231e; }
  .adv-card__badge { background: var(--adv-wine); color: #fff; }
  .adv-card__closed { background: #2a231ee6; }
  .adv-card--today .adv-card__tile { box-shadow: 0 0 0 2px #d5788a; }
  .adv-card--today .adv-card__eyebrow { color: #e59aa8; }
}
