/* The gift pages: the one the gift ads land on, and the one a recipient opens.
   Dark like the ads, with the same oak frame and white mat as the portraits. */

.gift-wrap { width: var(--page); margin: 0 auto; }
.gift-hero h1 em, .gift-how h2 em, .gift-for h2 em { font-weight: 400; }

/* ---- the landing page --------------------------------------------------------- */
.gift-hero {
  background: linear-gradient(rgb(22 30 33 / 0.72), rgb(22 30 33 / 0.86)), #1F2A2E url('/img/gift/xmas_bokeh.jpg') center / cover;
  color: var(--wall); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.gift-hero .gift-wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.gift-hero h1 { color: var(--wall); font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; }
.gift-hero .lede { font-size: 1.2rem; margin: 1.4rem 0 1.8rem; max-width: 32rem; }
.gift-hero .reassure { font-size: 0.95rem; opacity: 0.8; margin: 1rem 0 0; }

.gift-phone { margin: 0; justify-self: center; width: min(100%, 20rem); }
.gift-phone figcaption { font-size: 0.82rem; opacity: 0.75; text-align: center; margin-top: 0.9rem; }
.gift-mail { background: var(--wall); color: var(--ink); border-radius: 28px; border: 8px solid #10181B; padding: 1.3rem 1.1rem 1.2rem; box-shadow: 0 30px 60px rgb(0 0 0 / 0.4); }
.gift-mail p { margin: 0; max-width: none; }
.mail-from { font-size: 0.75rem; color: var(--ink-soft); }
.gift-mail .mail-title { font: 600 1.35rem/1.2 var(--serif); margin-top: 0.35rem; }
.gift-mail .mail-note { font: italic 400 1.02rem/1.45 var(--serif); background: #fff; border-radius: 8px; padding: 0.8rem 0.9rem; margin-top: 0.8rem; }
.mail-teaser { position: relative; overflow: hidden; border-radius: 8px; margin-top: 0.8rem; aspect-ratio: 4 / 3; }
.mail-teaser img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(0.8); transform: scale(1.25); }
.mail-teaser span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; }
.gift-mail .mail-button { background: var(--clay); color: var(--mat); text-align: center; font-weight: 600; font-size: 0.95rem; border-radius: 999px; padding: 0.6rem; margin-top: 0.8rem; }

.gift-how, .gift-for, .gift-price { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.gift-how h2, .gift-for h2 { max-width: 44rem; }
.gift-how .gift-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; margin: 2.2rem 0 0; }
.gift-steps h3 { font-size: 1.3rem; margin: 0 0 0.3rem; }
.gift-steps h3::before { content: counter(gift) '. '; color: var(--clay); font-style: italic; font-weight: 400; }
.gift-steps p { margin: 0; }

.gift-occasions { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.gift-occasions h3 { margin: 1.3rem 0 0.3rem; }
.gift-occasions p { margin: 0; color: var(--ink-soft); }
.gift-price .button { margin-top: 1.6rem; }

/* ---- the recipient's page ----------------------------------------------------- */
.gift-open { width: min(30rem, 100% - 2.5rem); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) 0 0; text-align: center; }
.gift-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--clay); margin: 0 0 0.6rem; max-width: none; }
.gift-open h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.gift-open .gift-note { margin: 1.4rem 0 0; padding: 1.1rem 1.3rem; background: #fff; border: 0; border-radius: 10px; max-width: none; }
.gift-open .gift-note p { font: italic 400 1.2rem/1.5 var(--serif); margin: 0; max-width: none; }

.reveal { position: relative; margin: 1.8rem auto 0; max-width: 24rem; }
.reveal .oak-mat { overflow: hidden; }
.reveal img { transition: filter 1.1s ease, transform 1.1s ease; }
.reveal-cover { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 1.15rem; text-decoration: none; border-radius: 4px; }
.reveal-cover span { background: rgb(31 42 46 / 0.45); border-radius: 999px; padding: 0.7rem 1.3rem; }
.reveal-cover:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.reveal-action { margin: 1.6rem 0 0; max-width: none; }
.gift-after { margin-top: 1.6rem; }
.gift-after:focus { outline: none; }
.gift-after p { max-width: none; }
.gift-more { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 2.4rem; }
.gift-more .button { margin-top: 1.2rem; }
.gift-keep { color: var(--ink-soft); margin-top: 1.6rem; }
.gift-open .fine-note { margin-top: 2rem; }

/* Wrapped: the picture is blurred past recognising and the downloads wait. */
.gift-open:not(.is-open) .reveal img { filter: blur(30px) brightness(0.85); transform: scale(1.15); }
.gift-open:not(.is-open) .gift-after { display: none; }
.gift-open.is-open .reveal-cover, .gift-open.is-open .reveal-action { display: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal img { transition: none; }
}
@media (max-width: 820px) {
  .gift-hero .gift-wrap { grid-template-columns: 1fr; }
  .gift-how .gift-steps, .gift-occasions { grid-template-columns: 1fr; }
  .gift-occasions .oak { max-width: 20rem; }
}
