/* ==========================================================================
   Givington's Holiday Gift 2026 — landing page
   Implements "Givington's Holiday Gift.dc.html" from the Claude Design project
   "Givington's & Polymath Holiday Gift 2026 Landing Pages".

   Colour tokens come from components/fig-tokens.css (loaded first), which is a
   verbatim copy of the design project's generated Figma variables. Everything
   here is page-level composition on top of those tokens.
   ========================================================================== */

/* Westcraft Sans — display face. Not published on Adobe Fonts, so it stays
   self-hosted from the copy in the design project's uploads/.
   Gibson — body face. Loaded from Adobe Fonts kit rwb7ucd, linked in the <head>
   before this file; the kit publishes it under the slug "canada-type-gibson",
   which is why that name leads the stack. It ships 300–700, so every weight the
   design calls for — including the 600 on emphasised runs — is a real face. */
@font-face {
  font-family: 'Westcraft Sans';
  src: url('fonts/WestcraftSans-Clean.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'Westcraft Sans', 'Big Shoulders Display', sans-serif;
  --font-body: 'canada-type-gibson', 'Gibson', 'Hind', sans-serif;

  /* Neutrals the design uses as literals alongside the six Figma tokens. */
  --ink-muted: #5E6E67;   /* form labels, secondary copy */
  --ink-placeholder: #A2ADA8;
  --hairline: rgba(41, 58, 51, 0.12);
  --border: rgba(41, 58, 51, 0.18);
  --danger: #8F2A1B;      /* darkened --red so error text clears AA on white */

  --radius-card: 8px;
  --radius-field: 6px;
  --radius-pill: 999px;
}

/* ---------------- Page shell ---------------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }

p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------------- Shared: pill button ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--cream);
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  /* Asymmetric vertical padding is from the design — it optically centres the
     all-lowercase display face, whose glyphs sit high in the em box. */
  padding: 13px 40px 19px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 160ms ease;
}
.btn:hover { opacity: 0.7; }
.btn:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }

/* ---------------- Shared: white card ---------------- */

.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

/* ---------------- Masthead ---------------- */

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  border-bottom: 1px solid var(--hairline);
}
.masthead__mark { display: block; width: 188px; height: 42px; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 84px) clamp(18px, 5vw, 32px) clamp(56px, 9vw, 92px);
  text-align: center;
}

.hero__snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Hanging ornaments — string, a small gold cap, and a filled ball, swaying from
   the top edge. Sizes, offsets, and timings match the design frame. */
.ornament {
  position: absolute;
  top: -8px;
  z-index: 1;
  transform-origin: top center;
  animation: gvt-sway 6.2s ease-in-out infinite;
}
.ornament__string {
  display: block;
  width: 1px;
  margin: 0 auto;
  background: rgba(41, 58, 51, 0.28);
}
.ornament__cap {
  display: block;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--yellow);
}
.ornament__ball {
  display: block;
  border-radius: var(--radius-pill);
}

.ornament--1 { left: 2.5%;   animation-duration: 5.4s; }
.ornament--2 { left: 8.5%;   animation-duration: 7.1s; animation-delay: 0.6s; }
.ornament--3 { right: 3%;    animation-duration: 6.3s; animation-delay: 0.3s; }
.ornament--4 { left: 15.5%;  animation-duration: 6.8s; animation-delay: 1.4s; }
.ornament--5 { right: 16%;   animation-duration: 5.9s; animation-delay: 0.9s; }
.ornament--6 { right: 9.5%;  animation-duration: 8.0s; animation-delay: 1.1s; }

.ornament--1 .ornament__string { height: clamp(64px, 9vw, 132px); }
.ornament--2 .ornament__string { height: clamp(40px, 5.4vw, 78px); }
.ornament--3 .ornament__string { height: clamp(52px, 7.2vw, 104px); }
.ornament--4 .ornament__string { height: clamp(90px, 13.6vw, 196px); }
.ornament--5 .ornament__string { height: clamp(32px, 4.3vw, 62px); }
.ornament--6 .ornament__string { height: clamp(76px, 11vw, 158px); }

.ornament--1 .ornament__cap { width: 12px; height: 9px; }
.ornament--2 .ornament__cap { width: 10px; height: 8px; }
.ornament--3 .ornament__cap { width: 11px; height: 9px; }
.ornament--4 .ornament__cap { width: 10px; height: 8px; }
.ornament--5 .ornament__cap { width: 11px; height: 9px; }
.ornament--6 .ornament__cap { width: 10px; height: 8px; }

.ornament--1 .ornament__ball { width: clamp(26px, 5.2vw, 74px); height: clamp(26px, 5.2vw, 74px); background: var(--red); }
.ornament--2 .ornament__ball { width: clamp(18px, 3.2vw, 46px); height: clamp(18px, 3.2vw, 46px); background: var(--blue); }
.ornament--3 .ornament__ball { width: clamp(22px, 4.2vw, 60px); height: clamp(22px, 4.2vw, 60px); background: var(--yellow); }
.ornament--4 .ornament__ball { width: clamp(14px, 2.4vw, 34px); height: clamp(14px, 2.4vw, 34px); background: var(--yellow); }
.ornament--5 .ornament__ball { width: clamp(20px, 3.6vw, 52px); height: clamp(20px, 3.6vw, 52px); background: var(--blue); }
.ornament--6 .ornament__ball { width: clamp(16px, 2.7vw, 38px); height: clamp(16px, 2.7vw, 38px); background: var(--red); }

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  animation: gvt-rise 520ms ease-out both;
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(41, 58, 51, 0.65);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 11.5vw, 88px);
  line-height: 0.94;
  letter-spacing: 0.005em;
  color: var(--red);
  margin: 0;
  text-wrap: balance;
}

.hero__lede {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  max-width: 530px;
  margin: 16px auto 0;
  text-wrap: pretty;
}
.hero__title + .hero__lede { margin-top: clamp(24px, 4vw, 34px); }
.hero__lede strong { font-weight: 600; }
.hero__lede--hint { max-width: 620px; margin-top: 28px; text-wrap: initial; }
.hero__hint {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--red);
}

.hero .btn { margin-top: 40px; }

/* ---------------- Teasers ("full" variant only) ---------------- */

.teasers {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 32px) clamp(64px, 9vw, 96px);
}
.teasers__rule { height: 1px; background: var(--yellow); margin-bottom: 64px; }
.teasers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 5vw, 56px);
}
.teaser__rule { height: 2px; width: 52px; background: var(--yellow); margin-bottom: 20px; }
.teaser__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--red);
  margin: 0 0 12px;
}
.teaser__copy { font-size: 17px; line-height: 1.6; }

/* ---------------- Confirm section ---------------- */

.confirm {
  background: var(--blue);
  padding: clamp(56px, 9vw, 88px) clamp(16px, 4vw, 32px) clamp(64px, 9vw, 96px);
}

.confirm__pending { max-width: 860px; margin: 0 auto; }
.confirm__intro { text-align: center; margin-bottom: 44px; }

.confirm__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--charcoal);
  margin: 0;
}

.confirm__copy {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  margin: 18px auto 0;
  max-width: 560px;
}

/* Hand-drawn double underline under "actually". */
.underlined { position: relative; display: inline-block; }
.underlined__stroke {
  position: absolute;
  left: -4%;
  bottom: -5px;
  width: 108%;
  height: 10px;
  overflow: visible;
  pointer-events: none;
  color: var(--red);
}

.confirm__deadline {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* ---------------- Form ---------------- */

.form { padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 48px) clamp(24px, 4vw, 40px); }

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px 24px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field__req { color: var(--red); }

.field__input {
  height: 52px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  background: #FFFFFF;
}
.field__input::placeholder { color: var(--ink-placeholder); }
.field__input:focus { outline: none; border-color: var(--red); }
.field__input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }

/* Custom chevron — the native select arrow is suppressed with appearance:none. */
.field__select-wrap { position: relative; }
.field__input--select { width: 100%; padding-right: 38px; appearance: none; -webkit-appearance: none; }
.field__chevron {
  position: absolute;
  right: 14px;
  top: 18px;
  width: 16px;
  height: 16px;
  color: var(--charcoal);
  pointer-events: none;
}

.form__error {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--danger);
}

.form__submit { margin-top: 36px; width: 100%; font-size: 20px; padding: 16px 32px 22px; }
.form__submit[disabled] { cursor: progress; opacity: 0.7; }

.form__footnote {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-top: 22px;
  text-align: center;
}
.form__footnote strong { font-weight: 600; }

/* ---------------- Success state ---------------- */

.confirm__done {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 8vw, 72px) clamp(24px, 5vw, 56px);
  animation: gvt-rise 420ms ease-out both;
}
.confirm__done-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1;
  text-transform: lowercase;
  color: var(--red);
  margin: 0;
}
.confirm__done-title:focus { outline: none; }
.confirm__done-copy { font-size: 20px; line-height: 1.6; margin-top: 24px; }
.confirm__done-sub  { font-size: 17px; line-height: 1.6; margin-top: 28px; color: var(--ink-muted); }
.confirm__done-sign {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-top: 34px;
}
.confirm__done-dash { color: var(--yellow); }

/* Address read-back. Left-aligned inside the otherwise-centred card, because
   an address read as a block is easier to check line by line than centred. */
.recap {
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  background: var(--cream);
  padding: 24px 26px;
  text-align: left;
}
.recap__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.recap__address { font-size: 17px; line-height: 1.55; }

.confirm__done-fix {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
  color: var(--ink-muted);
  text-align: left;
}

/* ---------------- Closer ("full" variant only) ---------------- */

.closer {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 88px) clamp(18px, 5vw, 32px) clamp(64px, 9vw, 96px);
  text-align: center;
}
.closer__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5.5vw, 38px);
  line-height: 1.05;
  text-transform: lowercase;
  color: var(--charcoal);
  margin: 0;
}
.closer__copy { font-size: 19px; line-height: 1.65; margin-top: 20px; text-wrap: pretty; }
.closer__rule { height: 1px; background: var(--yellow); margin: 48px auto 0; max-width: 220px; }

/* ---------------- Footer ---------------- */

.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(44px, 7vw, 64px) clamp(18px, 5vw, 32px);
  text-align: center;
}
.footer__icon { display: block; width: 60px; height: auto; margin: 0 auto 26px; }

.footer__tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 4vw, 26px);
  letter-spacing: 0.05em;
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  color: var(--cream);
  text-decoration: none;
}
.footer__social a:hover { color: var(--yellow); opacity: 1; }
.footer__social svg { display: block; }

.footer__legal { font-size: 12px; line-height: 1.7; color: rgba(255, 255, 224, 0.55); margin-top: 14px; }

/* ---------------- Snowfall ---------------- */

.snowflake { position: absolute; top: 0; line-height: 0; }
.snowflake svg { display: block; }

/* Flakes over the centre column fade out partway down so they never sit on top
   of the hero copy; flakes down the far left and right fall the whole way. */
@keyframes gvt-fall {
  0%   { transform: translate3d(0, -40px, 0); }
  100% { transform: translate3d(var(--dx, 0px), 860px, 0); }
}
@keyframes gvt-fall-fade {
  0%   { transform: translate3d(0, -40px, 0); opacity: 0.85; }
  30%  { opacity: 0.85; }
  52%  { opacity: 0; }
  100% { transform: translate3d(var(--dx, 0px), 860px, 0); opacity: 0; }
}
@keyframes gvt-sway {
  0%, 100% { transform: rotate(-2.2deg); }
  50%      { transform: rotate(2.2deg); }
}
@keyframes gvt-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Reduced motion ----------------
   Snow is skipped entirely in app.js; the rest of the motion is stilled here. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ornament,
  .hero__inner,
  .confirm__done { animation: none; }
  .snowflake { animation: none; }
}
