/* Advent Sleigher's website (G310): one night-blue screen that sends people to the stores. The brand's own colours and type
   (G306), the fonts served from this site (no request to Google), and no cookies or tracking of any kind. */
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-latin-wght.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('fonts/barlow-semi-condensed-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('fonts/barlow-semi-condensed-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('fonts/barlow-semi-condensed-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
/* The handwriting on the polaroids, and nowhere else (G313). */
@font-face { font-family: 'Caveat'; src: url('fonts/caveat-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --red: #d42f37; --gold: #f2c14e; --midnight: #121a3d; --deep: #0b1030; --cream: #fff1d6; --city: #3d4687; --snow: #e9ecfa;
  --muted: #b9c0e0; --line: #2c3770; --display: 'Fredoka', system-ui, sans-serif; --text: 'Barlow Semi Condensed', system-ui, sans-serif;
  --hand: 'Caveat', cursive; --paper: #fbf8f1; --ink: #22306a;
  --gutter: clamp(16px, 4vw, 60px); color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--deep); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--snow); font: 500 18px/1.45 var(--text);
  background: radial-gradient(circle at 72% 28%, #26336f 0%, var(--midnight) 52%, var(--deep) 100%) fixed var(--deep);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* The one-line logo (G310 (1)): the mark beside the name, the dot of the i a gold star (G306). Large enough to remember
   for the App Store search, still well under the headline (G313 (3)). */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { width: 68px; }
/* The name is its master file, scaled whole, never set in type (G353). The file has 0.1em of clear space above the type, 0.15em
   below and 0.075em each side (docs/brand/wordmark/make.mjs), taken back here so the name sits where the type did; --f is the
   size the type would be. */
.logo img.wm { --f: clamp(30px, 3.6vw, 42px); width: auto; height: calc(var(--f) * 1.25); max-width: none;
  margin: calc(var(--f) * -.1) calc(var(--f) * -.075) calc(var(--f) * -.15); }

/* The stores (G377): each store is one stack, its QR code above its badge, the same width, in one faint frame, so the two plainly
   lead to the same place; Google Play's stack will stand beside Apple's. Apple's own badge (the white one while it is the page's
   only badge), unaltered, once on the page, a link to the app; its clear space is a quarter of its height (Apple's marketing
   guidelines), which the frame's padding and the gap keep. The QR code is for a visitor at a computer, who cannot get the game
   there; where the page is one column it and the frame go, and the badge stands alone. Until Google Play is live its label
   stands level with Apple's badge. .store is also the 404 page's button. */
.stores { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.shop { display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(11, 16, 48, .45); }
.shop .qr { width: 144px; height: 144px; border-radius: 8px; }
.badge { display: block; border-radius: 8px; }
.badge img { width: 144px; height: auto; }
.stores > .store { margin-bottom: 15px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 2px solid var(--cream);
  border-radius: 12px; font: 600 17px/1.1 var(--text); color: var(--cream); text-decoration: none; white-space: nowrap; }

.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-top: clamp(36px, 7vw, 80px); padding-bottom: clamp(36px, 6vw, 72px); }
.kicker { margin: 0 0 18px; font: 600 15px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
/* The headline on two lines (G310 (2)): "The advent calendar" kept whole, sized to fit its column. */
h1 { margin: 0; font: 700 clamp(34px, 4.2vw, 58px)/1.04 var(--display); color: var(--cream); letter-spacing: -.01em; }
h1 .l1 { white-space: nowrap; }
h1 .l2 { display: block; color: var(--gold); }
.kicker span { white-space: nowrap; }
.lede { margin: 20px 0 28px; max-width: 34em; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.4; }

/* A stack of polaroids (G313 (1)): London on top, Paris and Washington under it with their names, and more towns peeping out with
   theirs hidden. Real frames from the game, with nothing on screen but the town. */
.hero { overflow-x: clip; }
.stack { position: relative; justify-self: center; width: 100%; max-width: 600px; aspect-ratio: 1 / 1.08; }
.pola { position: absolute; width: 56%; margin: 0; padding: 3.2% 3.2% 0; background: var(--paper); border-radius: 3px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 2px 5px rgba(0, 0, 0, .35); }
.pola img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--midnight); }
.pola figcaption { font: 700 clamp(28px, 2.7vw, 42px)/1 var(--hand); color: var(--ink); text-align: center; padding: .28em 0 .5em; transform: rotate(-2deg); }
.h1 { left: 3%; top: 1%; transform: rotate(-15deg); }
.h2 { right: 1%; top: 2%; transform: rotate(13deg); }
.h3 { left: 27%; top: -3%; transform: rotate(5deg); }
.pa { left: 0; top: 26%; transform: rotate(-8deg); }
.ed { right: 0; top: 24%; transform: rotate(8deg); }
.lo { left: 22%; top: 6%; transform: rotate(-2deg); }

/* How it plays (G313 (2)): a real frame of play in a phone, tilted the other way from the stack; since 27 November 2026 (the user's)
   it takes most of the row, as it is the page's one picture of play and the words beside it are short. */
.phone { display: block; width: 100%; max-width: 780px; justify-self: end; border: clamp(6px, .8vw, 9px) solid var(--cream); border-radius: clamp(24px, 3vw, 40px);
  overflow: hidden; transform: rotate(-2deg); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); background: var(--midnight); }
.plays { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(44px, 6.5vw, 70px); padding-bottom: clamp(48px, 7vw, 84px); } /* (padding-top: the gap from the blocks' words to the tilted phone as wide as the polaroids' to them) */
.plays h2 { margin: 0 0 6px; font: 700 26px/1.2 var(--display); color: var(--cream); }
.plays p { margin: 0; max-width: 26em; }

.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(40px, 6vw, 64px); }
.blocks h2 { margin: 0 0 4px; font: 700 26px/1.2 var(--display); color: var(--cream); }
.blocks p { margin: 0; }

.foot { margin-top: auto; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 22px; }
.foot a { color: var(--snow); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* Apple's credit line, asked for wherever its badge is used. */
.foot .marks { flex-basis: 100%; font-size: 13px; }

/* The privacy page: one column of plain text. */
.doc .wrap { max-width: 760px; padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.doc h2 { margin: 32px 0 6px; font: 700 24px/1.25 var(--display); color: var(--cream); }
.doc p, .doc li { max-width: 40em; }
.doc .date { color: var(--muted); margin: 0 0 24px; }
/* The map data's note (#88): the file list, a link to each file with its size beside it. */
.doc ul.files { padding-left: 0; list-style: none; }
.doc ul.files li { padding: 4px 0; }
.doc .size { color: var(--muted); overflow-wrap: anywhere; }

/* The press page (G379): the facts beside a short note on the game, then the pictures and the films, and one download. */
.press .intro { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(28px, 4vw, 44px); }
.press .lede { margin-bottom: 24px; }
.store.get { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.store.get span { font-weight: 500; opacity: .75; }
.facts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 56px); }
.facts dl { margin: 0; border-top: 1px solid var(--line); }
.facts dl div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 15px/1.6 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 0; }
.press h2 { margin: 0 0 12px; font: 700 26px/1.2 var(--display); color: var(--cream); }
.about p { margin: 0 0 14px; max-width: 32em; }
.shots, .films { padding-bottom: clamp(36px, 5vw, 56px); }
.press .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.press .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.press .grid img { width: 100%; border-radius: 10px; background: var(--midnight); }
.press .note { margin: 14px 0 0; font-size: 16px; color: var(--muted); max-width: 46em; }
.film { display: block; text-decoration: none; }
.film img { aspect-ratio: 16 / 9; object-fit: cover; object-position: left center; } /* the preview is wider: keep its tag, bottom left */
.film span { display: block; margin-top: 8px; font: 600 18px/1.3 var(--text); color: var(--cream); }
.film em { font-style: normal; font-weight: 500; color: var(--muted); }

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .press .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press .grid.two { grid-template-columns: 1fr; }
  .shop { padding: 0; border: 0; background: none; }
  .shop .qr { display: none; }
  .badge img { width: auto; height: 56px; }
  .stores { align-items: center; }
  .stores > .store { margin-bottom: 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  h1 { font-size: clamp(34px, 8.4vw, 64px); }
  .stack { max-width: 420px; margin-top: 18px; }
  .pola figcaption { font-size: clamp(22px, 6vw, 34px); }
  .blocks, .plays { grid-template-columns: 1fr; }
  .phone { justify-self: center; transform: rotate(-2deg); }
}
@media (max-width: 520px) {
  .top .wrap { min-height: 80px; }
  .logo img { width: 50px; }
  .facts dl div { grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; }
  .lost .store { width: 100%; justify-content: center; white-space: normal; text-align: center; text-wrap: balance; }
  .kicker .dot { display: none; }
  .kicker span { display: block; }
}
@media (max-width: 360px) { h1 .l1 { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* The 404 page: the icon's door, shut, numbered 404, as the calendar has only 24. */
.lost .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  padding-top: clamp(36px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.lost h1 .l2 { display: inline; }
.lost .aside { margin: 26px 0 0; max-width: 30em; font-size: 16px; color: var(--muted); }
.lost .aside a { color: var(--snow); }
.door { justify-self: center; width: 100%; max-width: 340px; height: auto; transform: rotate(3deg); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .55)); }
.door .tag { transform-origin: 244px 250px; animation: swing 3.2s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@media (max-width: 860px) { .lost .wrap { grid-template-columns: 1fr; } .door { max-width: 260px; grid-row: 1; } }
@media (prefers-reduced-motion: reduce) { .door .tag { animation: none; } }
