@font-face {
  font-family: "EB Garamond";
  src: url("assets/eb-garamond.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  background: #f7f0db;
  color: #2f4937;
  font-family: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  padding: clamp(32px, 5vh, 56px) 20px 24px;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand img {
  display: block;
  width: clamp(190px, 22vw, 250px);
  height: auto;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  margin: clamp(36px, 6vh, 64px) 0 28px;
  font-size: clamp(40px, 6.5vw, 82px);
  line-height: 0.99;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.app-store {
  display: block;
  line-height: 0;
}

.app-store img {
  display: block;
  width: 180px;
  height: auto;
}

.christmas-art {
  display: block;
  width: min(440px, 82vw);
  height: auto;
  margin-top: clamp(28px, 4vh, 44px);
}

a { color: inherit; text-underline-offset: 3px; }

a:focus-visible { outline: 3px solid #7a1f29; outline-offset: 5px; }

.site-footer {
  margin: 48px auto 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.site-footer a { display: inline-block; padding: 10px 0; }
.site-footer p { margin: 8px 0 0; }

.legal-page {
  display: block;
  max-width: 42rem;
  margin: 48px auto 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 58px);
  line-height: 1.1;
}

.legal-page h2 {
  margin: 32px 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
}

.legal-page p { margin: 12px 0; font-size: 21px; line-height: 1.5; }
.legal-page .updated { font-size: 17px; margin-bottom: 28px; }

@media (max-width: 480px) {
  body { padding-inline: 14px; }
  h1 { margin-bottom: 24px; }
  .app-store img { width: 162px; }
}

/* Homepage-only motion. Information pages retain their static presentation. */
.homepage { isolation: isolate; }
.homepage .brand, .homepage h1, .homepage .app-store, .homepage .site-footer { position: relative; z-index: 2; }
#homepage-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.christmas-stage {
  position: relative;
  width: calc(100% + 40px);
  height: min(396.8px, calc((100vw - 40px) * .64));
  margin-top: clamp(24px, 4vh, 40px);
  overflow: hidden;
}
.christmas-stage .christmas-art {
  position: absolute;
  height: 100%;
  width: auto;
  margin: 0;
  left: 50%;
  transform: translateX(-50%);
}
#christmas-scene {
  display: none;
  position: absolute;
  height: 100%;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
}
.motion-ready #christmas-scene { display: block; }
.motion-ready .christmas-art { visibility: hidden; }
.homepage .site-footer { margin-top: 24px; }
@media (max-width: 600px) {
  .christmas-stage { height: calc(100vw - 40px); }
}
@media (max-width: 480px) {
  .christmas-stage { width: calc(100% + 28px); height: calc(100vw - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  #homepage-snow { visibility: hidden; }
}

.order-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #f7f0db;
}

.order-page .brand a {
  display: inline-block;
}

.order-landing {
  width: min(100%, 34rem);
  margin: clamp(40px, 7vh, 72px) auto 0;
  padding: clamp(28px, 6vw, 44px);
  border: 1px solid rgba(47, 73, 55, 0.14);
  border-radius: 28px;
  background: #fffaf0;
  box-shadow: 0 18px 48px rgba(47, 73, 55, 0.09);
}

.order-art {
  display: block;
  width: 94px;
  height: auto;
  margin: 0 auto 16px;
}

.order-landing [hidden] { display: none; }
.order-reference {
  margin: 0 0 8px;
  font: 600 14px/1.4 system-ui, sans-serif;
  color: #765746;
}
.order-qr {
  width: 164px;
  height: 164px;
  image-rendering: pixelated;
}
.order-support {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font: 600 15px/1.4 system-ui, sans-serif;
}

.order-landing h1 {
  margin: 0;
  font-size: clamp(36px, 9vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.order-status {
  min-height: 1.5em;
  margin: 18px 0 24px;
  color: #52675b;
  font-size: 20px;
  line-height: 1.45;
}

.order-open-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 16px;
  background: #2b4d3d;
  color: #fffaf0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.order-open-button:hover { background: #203d30; }
.order-open-button:active { transform: translateY(1px); }

.order-help {
  margin: 22px 0 0;
  color: #52675b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.order-page .site-footer {
  margin-top: 36px;
}

@media (max-width: 480px) {
  .order-page { padding-top: 28px; }
  .order-landing {
    margin-top: 32px;
    padding: 28px 20px 30px;
    border-radius: 22px;
  }
}
