/* The site's display face, Cormorant Garamond (SIL OFL 1.1, fonts/CormorantGaramond-OFL.txt): the
   Winter Holidays pack's own files (theme-pack/packs/winter-holidays/assets/fonts/), unmodified, with
   the pack's unicode-range per subset, so a browser fetches only the subsets a language needs.
   Medium (500) sets the display text, SemiBold (600) the heading text, as the pack's tokens do.
   The face has no Greek: Greek falls back to a local serif, scaled to Cormorant's size. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/closed/cormorant-garamond-medium-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/closed/cormorant-garamond-medium-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/closed/cormorant-garamond-medium-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/closed/cormorant-garamond-semibold-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/closed/cormorant-garamond-semibold-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/closed/cormorant-garamond-semibold-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Greek: a serif already on the device, cut down to Cormorant's smaller x-height. */
@font-face {
  font-family: 'Greek Serif';
  font-weight: 400 600;
  src: local('Georgia'), local('Noto Serif'), local('Times New Roman'), local('DejaVu Serif');
  size-adjust: 86%;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}

/* Colours copied from the Winter Holidays pack's Phase Themes
   (theme-pack/packs/winter-holidays/tokens/phase-themes.css): Day for the light scheme, Night for the dark.
   Type from the same tokens: display, heading, body, label. */
:root {
  --bg: #f5ebdd; /* surface-page */
  --surface: #fff8ec; /* surface-raised */
  --text: #342820; /* text-primary */
  --muted: #5b4638; /* text-secondary */
  --accent: #781f2b; /* accent-base (garnet) */
  --accent-ink: #781f2b; /* accent text on a raised surface */
  --accent-soft: rgb(120 31 43 / 8%);
  --border: #cdbdab; /* border-subtle */
  --border-strong: #8e745c; /* border-strong */
  --focus: #7d6334; /* border-focus */
  --shadow: rgb(52 40 32 / 16%) 0 10px 24px 0; /* elevation-raised */
  --sky-top: #fff8ec;
  --sky-bottom: #ead9c0;
  --sky-star: #b99450;
  --flake: #c9d6df;
  --snow-1: #ffffff;
  --snow-2: #e3ebf0;
  --snow-3: #eef3f6;
  --snow-4: #d6e1e8;
  --tree-glow: rgb(255 214 140 / 35%);
  --ribbon: #781f2b; /* accent-base (garnet) */
  --ribbon-hi: #8e2b38;
  --ribbon-end: #62192a;
  --ribbon-fold: #3a0d15;
  --ribbon-ink: #fff8ec; /* surface-raised */

  --serif: 'Cormorant Garamond', 'Greek Serif', Georgia, 'Noto Serif', serif;
  --sans:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --display-size: clamp(2.75rem, 2.2rem + 2.6vw, 3.25rem); /* display 52px */
  --heading-size: clamp(1.5rem, 1.35rem + 0.7vw, 1.75rem); /* heading 28px */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c211d;
    --surface: #183e32;
    --text: #f5ebdd;
    --muted: #c7b99f;
    --accent: #b99450; /* accent-base (antique gold) */
    --accent-ink: #d0ac67; /* accent-hover: the base is 4.2:1 on surface-raised, this 5.5:1 */
    --accent-soft: rgb(185 148 80 / 14%);
    --border: #385248;
    --border-strong: #638072;
    --focus: #d99742;
    --shadow: rgb(0 0 0 / 36%) 0 10px 24px 0;
    --sky-top: #183e32;
    --sky-bottom: #0f2b24;
    --sky-star: #d99742;
    --flake: #e8eef2;
    --snow-1: #eef3f6;
    --snow-2: #c3d2dc;
    --snow-3: #d3dee6;
    --snow-4: #a9bcca;
    --tree-glow: rgb(255 200 110 / 30%);
    --ribbon: #b99450; /* accent-base (antique gold) */
    --ribbon-hi: #cfab66;
    --ribbon-end: #9a773a;
    --ribbon-fold: #5c441c;
    --ribbon-ink: #0c211d; /* surface-page */
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(var(--space-6), env(safe-area-inset-top))
    max(var(--space-4), env(safe-area-inset-right)) max(var(--space-5), env(safe-area-inset-bottom))
    max(var(--space-4), env(safe-area-inset-left));
  text-align: center;
}
.hero {
  flex: 1;
  width: 100%;
  max-width: 30rem;
  display: grid;
  grid-template-areas: 'intro' 'scene' 'body';
  align-content: center;
  justify-items: center;
}
h1,
.slogan,
.soon,
.ribbon {
  font-family: var(--serif);
  hyphens: manual;
  text-wrap: balance;
}
/* The lock-up (docs/brand/winter-holidays/slogan.md): the wordmark, the slogan under it; then the news. */
.intro {
  grid-area: intro;
  width: 100%;
}
h1 {
  margin: 0;
  font-size: var(--display-size);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.slogan {
  margin: var(--space-2) auto 0;
  max-width: 24ch;
  font-size: var(--heading-size);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.2px;
}
.soon {
  margin: var(--space-4) 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.2px;
  color: var(--accent);
}
.scene {
  grid-area: scene;
  position: relative;
  width: min(100%, 400px);
  margin: var(--space-5) 0 0;
}
.scene svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow));
  border-radius: 20px;
}
/* The greeting on a ribbon across the top of the card, its folded ends tucked behind. */
.say {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: -22px;
  padding: 0 36px;
}
.ribbon {
  position: relative;
  max-width: 100%;
  padding: 7px 20px 9px;
  background: linear-gradient(var(--ribbon-hi), var(--ribbon));
  color: var(--ribbon-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 6px 14px -6px rgb(0 0 0 / 45%);
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.625rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.2px;
  text-align: center;
}
.ribbon p {
  margin: 0;
}
.ribbon::before,
.ribbon::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 12px;
  bottom: -12px;
  width: 38px;
  background: var(--ribbon-end);
}
.ribbon::before {
  left: -28px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
}
.ribbon::after {
  right: -28px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}
.ribbon p::before,
.ribbon p::after {
  content: '';
  position: absolute;
  top: 100%;
  width: 10px;
  height: 12px;
  background: var(--ribbon-fold);
}
.ribbon p::before {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.ribbon p::after {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.sk1 {
  stop-color: var(--sky-top);
}
.sk2 {
  stop-color: var(--sky-bottom);
}
.sky-star path {
  fill: var(--sky-star);
}
.card-edge {
  stroke: var(--border);
}
.sn1 {
  stop-color: var(--snow-1);
}
.sn2 {
  stop-color: var(--snow-2);
}
.sn3 {
  stop-color: var(--snow-3);
}
.sn4 {
  stop-color: var(--snow-4);
}
.tg1 {
  stop-color: var(--tree-glow);
}
.tg2 {
  stop-color: var(--tree-glow);
  stop-opacity: 0;
}
.body {
  grid-area: body;
  width: 100%;
  margin-top: var(--space-6);
}
.body p {
  margin: 0 auto;
  max-width: 36ch;
  text-wrap: pretty;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.55;
}
.surprise {
  margin-top: var(--space-3) !important;
  color: var(--muted);
}
.contact {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.contact-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.1px;
  color: var(--muted);
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: var(--space-2) 20px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.15s;
}
.mail:hover {
  background: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mail svg {
  flex: none;
  width: 20px;
  height: 20px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.tw1,
.tw2,
.tw3 {
  animation: twinkle 2.4s ease-in-out infinite;
}
.tw2 {
  animation-delay: -0.8s;
}
.tw3 {
  animation-delay: -1.6s;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.star-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.75;
  }
}
.snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.snow i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--flake);
  opacity: 0.9;
  animation: fall var(--d) linear var(--delay) infinite;
}
/* The flakes' own places, sizes and delays (they were inline `style` attributes). */
.snow i:nth-child(1) {
  --x: 43%;
  --s: 5px;
  --d: 15s;
  --delay: -10s;
}
.snow i:nth-child(2) {
  --x: 8%;
  --s: 4px;
  --d: 17s;
  --delay: -1s;
}
.snow i:nth-child(3) {
  --x: 48%;
  --s: 4px;
  --d: 17s;
  --delay: -3s;
}
.snow i:nth-child(4) {
  --x: 6%;
  --s: 4px;
  --d: 15s;
  --delay: -6s;
}
.snow i:nth-child(5) {
  --x: 10%;
  --s: 5px;
  --d: 10s;
  --delay: -8s;
}
.snow i:nth-child(6) {
  --x: 56%;
  --s: 4px;
  --d: 10s;
  --delay: -3s;
}
.snow i:nth-child(7) {
  --x: 82%;
  --s: 4px;
  --d: 15s;
  --delay: -0s;
}
.snow i:nth-child(8) {
  --x: 30%;
  --s: 4px;
  --d: 17s;
  --delay: -13s;
}
.snow i:nth-child(9) {
  --x: 19%;
  --s: 6px;
  --d: 15s;
  --delay: -2s;
}
.snow i:nth-child(10) {
  --x: 71%;
  --s: 4px;
  --d: 13s;
  --delay: -8s;
}
.snow i:nth-child(11) {
  --x: 89%;
  --s: 5px;
  --d: 10s;
  --delay: -9s;
}
.snow i:nth-child(12) {
  --x: 75%;
  --s: 5px;
  --d: 14s;
  --delay: -1s;
}
.snow i:nth-child(13) {
  --x: 72%;
  --s: 4px;
  --d: 9s;
  --delay: -9s;
}
.snow i:nth-child(14) {
  --x: 28%;
  --s: 7px;
  --d: 17s;
  --delay: -6s;
}
.snow i:nth-child(15) {
  --x: 42%;
  --s: 7px;
  --d: 16s;
  --delay: -5s;
}
.snow i:nth-child(16) {
  --x: 40%;
  --s: 5px;
  --d: 11s;
  --delay: -11s;
}
@keyframes fall {
  from {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(14px, 55vh, 0);
  }
  to {
    transform: translate3d(-8px, 112vh, 0);
  }
}

/* A wide window: the illustration beside the words. */
@media (min-width: 60rem) and (min-height: 32rem) {
  main {
    padding-top: max(var(--space-7), env(safe-area-inset-top));
  }
  .hero {
    max-width: 62rem;
    grid-template-columns: minmax(0, 27rem) minmax(0, 28rem);
    grid-template-areas: 'scene intro' 'scene body';
    grid-template-rows: auto auto;
    column-gap: 64px;
    align-content: center;
    justify-content: center;
    justify-items: start;
    text-align: start;
  }
  .intro {
    align-self: end;
  }
  .slogan {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
  .soon {
    font-size: 1.375rem;
  }
  .scene {
    width: 100%;
    margin: 0;
    align-self: center;
    padding-top: var(--space-6);
  }
  .body {
    margin-top: var(--space-5);
  }
  .body p {
    margin: 0;
    max-width: 34em;
  }
  .lead {
    font-size: 1.25rem;
  }
  .surprise {
    font-size: 1.0625rem;
  }
  .contact {
    align-items: flex-start;
    margin-top: var(--space-6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tw1,
  .tw2,
  .tw3,
  .star-glow {
    animation: none;
  }
  .snow {
    display: none !important;
  }
  .mail {
    transition: none;
  }
}

/* What the closed page adds to the holding page (Engine#1438): the pass form after the contact line,
   the language menu at the foot, and the test site's variant, which has the words and no scene. */
.pass {
  width: 100%;
  max-width: 24rem;
  margin: var(--space-6) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: start;
}
.pass label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.1px;
  color: var(--muted);
}
.pass-row {
  display: flex;
  gap: var(--space-2);
}
.pass input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.pass input[aria-invalid='true'] {
  border-color: var(--accent);
}
.pass button {
  min-width: 48px;
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1.5px solid var(--ribbon);
  border-radius: 999px;
  background: var(--ribbon);
  color: var(--ribbon-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pass button:disabled {
  cursor: progress;
  opacity: 0.7;
}
.body .pass .pass-message,
.body .pass .pass-note {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.body .pass .pass-message {
  color: var(--accent-ink);
  font-weight: 600;
}
.body .pass .pass-note {
  color: var(--muted);
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.foot {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--muted);
}
.foot[hidden] {
  display: none;
}
.foot select {
  min-height: 44px;
  max-width: 14rem;
  padding: 0 var(--space-3);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.hero.plain {
  grid-template-areas: 'intro' 'body';
}
@media (min-width: 60rem) and (min-height: 32rem) {
  .hero.plain {
    max-width: 30rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'intro' 'body';
    justify-items: center;
    text-align: center;
  }
  .hero.plain .intro {
    align-self: auto;
  }
  .hero.plain .body p {
    margin: 0 auto;
  }
  .hero:not(.plain) .pass {
    margin-left: 0;
  }
}
