/* gift.css: the Christmas gift page (/willowbrook/gift/), the printable gift card (/willowbrook/gift/card/) and the
   small gift band on /willowbrook/. Uses the Willowbrook page's tokens (x.css, wb.css). */

/* the gift page hero: the harbour with its lanterns, words at the bottom */
.gfh { position: relative; min-height: 88vh; min-height: 88svh; display: grid; align-items: end; overflow: hidden; color: #fff; background: #23384a; }
.gfh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gfh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,30,.25) 0%, rgba(8,18,30,0) 30%, rgba(8,18,30,.45) 58%, rgba(6,14,24,.88) 100%); }
.gfh-in { position: relative; padding: 120px 0 clamp(56px, 9vh, 100px); display: grid; gap: 18px; }
.gfh-k { font-family: var(--f-hand); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--pen); transform: rotate(-2deg); transform-origin: left; }
.gfh .xh1 { text-shadow: 0 10px 50px rgba(0,0,0,.35); }
.gfh .xh1 em { font-style: normal; color: var(--pen); }
.gfh-sub { max-width: 46ch; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); line-height: 1.5; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.gfh-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 1.05rem; }
.gfh-price b { font-family: var(--f-display); font-size: 2.4rem; font-variation-settings: 'opsz' 48, 'wdth' 90, 'wght' 800; }
.gfh-price s { opacity: .7; font-size: 1.4rem; }
.gfh-deal { padding: 4px 12px; border-radius: 999px; background: var(--pen); color: var(--ink); font-weight: 700; font-size: .95rem; }
.gfh-note { font-size: .95rem; opacity: .9; }
.gfh-note b { color: var(--pen); }

.gfwhy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.gfwhy-grid .ticks { margin-top: 24px; }
.gfwhy-pic img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .gfwhy-grid { grid-template-columns: 1fr; } }

.gfover { text-align: center; }
.gfover p { margin: 14px 0 24px; color: var(--ink-2); }

/* the band on /willowbrook/ (hidden after gift_until by gift.js) */
.gband { padding: clamp(28px, 4vw, 44px) 0; background: #1F3346; color: #fff; }
.gband-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.gband-text { display: grid; gap: 6px; max-width: 60ch; }
.gband-k { font-family: var(--f-hand); font-size: 1.6rem; color: var(--pen); line-height: 1; }
.gband-h { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1; font-variation-settings: 'opsz' 48, 'wdth' 90, 'wght' 780; }
.gband p { opacity: .88; }
.gband .xbtns { margin: 0; }

/* the printable card */
.gcard-wrap { padding: clamp(110px, 14vw, 150px) 0 70px; background: var(--paper); }
.gcard-tools { display: grid; gap: 14px; margin-bottom: 28px; }
.gcard-tools h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; font-variation-settings: 'opsz' 72, 'wdth' 86, 'wght' 800; }
.gcard-tools p { color: var(--ink-2); max-width: 62ch; }
.gcard-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
.gcard-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.gcard-form label.wide { grid-column: 1 / -1; }
.gcard-form input, .gcard-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.gcard-form textarea { min-height: 84px; resize: vertical; }
.gcard-form .hint { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
@media (max-width: 640px) { .gcard-form { grid-template-columns: 1fr; } }

.gcard { width: min(100%, 760px); aspect-ratio: 1.414 / 1; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.gcard-front { position: relative; color: #fff; display: grid; align-content: end; padding: 7%; background: #1F3346 url('/img/willowbrook/wb-2710/harbour-lanterns-card-864.webp') center/cover; }
.gcard-front::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,30,0) 35%, rgba(8,18,30,.85) 100%); }
.gcard-front > * { position: relative; }
.gcard-front small { font-family: var(--f-hand); font-size: clamp(1rem, 2.6vw, 1.5rem); color: var(--pen); }
.gcard-front b { display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 5vw, 3rem); line-height: .95; font-variation-settings: 'opsz' 72, 'wdth' 86, 'wght' 800; }
.gcard-front span { font-size: clamp(.7rem, 1.6vw, .95rem); opacity: .9; }
.gcard-inside { padding: 6%; display: grid; align-content: space-between; gap: 8px; font-size: clamp(.62rem, 1.5vw, .92rem); color: var(--ink); }
.gcard-to { font-family: var(--f-hand); font-size: clamp(1.2rem, 3.2vw, 2rem); line-height: 1.05; }
.gcard-msg { font-family: var(--f-hand); font-size: clamp(1rem, 2.4vw, 1.5rem); line-height: 1.15; white-space: pre-wrap; min-height: 2.3em; }
.gcard-from { font-family: var(--f-hand); font-size: clamp(1rem, 2.4vw, 1.5rem); text-align: right; }
.gcard-how { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 4px; }
.gcard-how b { font-weight: 700; }
.gcard-key { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; border-bottom: 1px solid var(--ink-2); min-height: 1.4em; }
.gcard-key:empty::after { content: '\00a0'; }
.gcard-foot { font-size: .8em; color: var(--ink-2); }
@media (max-width: 640px) {
  .gcard { aspect-ratio: auto; grid-template-columns: 1fr; }
  .gcard-front { min-height: 240px; }
  .gcard-inside { font-size: .9rem; gap: 14px; }
  .gcard-to { font-size: 1.9rem; } .gcard-msg, .gcard-from { font-size: 1.45rem; }
}

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body > :not(main), .gcard-tools { display: none !important; }
  .gcard-wrap { padding: 0; background: none; }
  .gcard-inside { font-size: 10pt; } .gcard-to { font-size: 24pt; } .gcard-msg, .gcard-from { font-size: 17pt; } .gcard-front b { font-size: 36pt; } .gcard-front small { font-size: 17pt; } .gcard-front span { font-size: 11pt; }
  .gcard { position: static; margin: 0; aspect-ratio: 1.414 / 1; grid-template-columns: 1fr 1fr; width: 262mm; max-width: none; border-radius: 0; box-shadow: none; outline: 1px dashed #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
