/* The website (Word Krieg’s journal 020; specs/website.md), as design/website_wide.html, website_wide_two_stores.html, website.html and website_no_store.html draw it: the web's `/`, standing alone on the product's tokens. Structure only: every colour, font, radius and frame is a token; the Lips, the pill's holder and the backdrop are the --frame-* and --art-* properties, and the bed --color-bed, js/identity/pieces.js sets once the studio's pieces are in, `none` until then. */

html, body { margin: 0; min-height: 100%; background: var(--color-page); color: var(--color-text); font-family: var(--font-ui); font-size: var(--font-size-m); }
/* A phone's column: the backdrop every screen has, the liquid's first frame centred at the top, still, pixelated, the bed past it (journal 006, Q2) */
body { background: var(--art-backdrop), var(--color-bed); image-rendering: pixelated; }
body > * { image-rendering: auto; }
/* No tap highlight over the Lips: its rectangle ignores their frame */
html { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }

/* The page shows once the fonts and the studio's pieces are in (website.js), never in a fallback first; without scripts at once (the template's noscript) */
.website { visibility: hidden; position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.website--ready { visibility: visible; }
/* The words centred in the space above the footer */
.website__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px 24px; }
.website__words { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: var(--size-column); }

/* The title: the game's name in the board's face, its words split by the studio's mark, as the home's */
.website__title { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; font-family: var(--font-board); font-weight: 700; font-size: var(--font-size-title); letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; }
.website__mark { display: block; flex: none; image-rendering: pixelated; }
.website__pitch { margin: 0 0 12px; text-align: center; text-wrap: balance; font-size: var(--font-size-l); font-weight: 600; line-height: 1.4; text-shadow: 1px 1px 0 var(--color-icon-shade); }

/* The actions on the Lips, as the home's menu buttons: Play now the primary with its hint; one store and How to play side by side, How to play alone filling the row with none; two stores or more in a row, How to play on a line of its own under them (Word Krieg’s journal 029) */
.website__actions { display: flex; flex-direction: column; gap: 10px; }
.website__links { display: flex; flex-wrap: wrap; gap: 10px; }
.website__links > .lip { flex: 1; min-width: 0; }
.website__links:has(> [data-key="store"] ~ [data-key="store"]) > [data-key="rules"] { flex-basis: 100%; }
.lip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 12px; border-radius: 0; border-style: solid; border-width: 0; image-rendering: pixelated; color: var(--color-text); font-size: var(--font-size-l); font-weight: 700; text-align: center; text-decoration: none; }
.lip--primary { border-image: var(--frame-button-primary); color: var(--color-text-on-colour); }
.lip--primary:active { border-image: var(--frame-button-primary-pressed); padding-top: 14px; }
.lip--secondary { border-image: var(--frame-button-secondary); }
.lip--secondary:active { border-image: var(--frame-button-secondary-pressed); padding-top: 14px; }
.lip__hint { font-size: var(--font-size-xs); font-weight: 500; opacity: 0.75; }

/* Each store's QR code, in the pill's sunk holder, its caption beside it, side by side: on a computer with a fine pointer only */
.website__qrs { display: none; gap: 24px; margin-top: 6px; }
.website__qr { display: flex; align-items: center; gap: 16px; }
.website__qr-box { flex: none; padding: 9px; border-style: solid; border-width: 0; border-image: var(--frame-pill-holder); image-rendering: pixelated; }
.website__qr-code { display: block; width: 87px; height: 87px; fill: var(--color-text); shape-rendering: crispEdges; }
.website__qr-caption { font-size: var(--font-size-s); font-weight: 700; text-shadow: 1px 1px 0 var(--color-icon-shade); }
.website__qr:not(:only-child) .website__qr-caption { max-width: 110px; }

/* The footer at the window's foot: the five flags, the current one ringed as the flag choice's is; the privacy policy, under them where the row has no room for it (Word Krieg’s journal 025, entry 02) */
.website__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; max-width: var(--size-column); margin: 0 auto; padding: 0 16px 16px; }
.website__flags { display: flex; flex-wrap: wrap; gap: 2px; }
.website__flag { position: relative; display: flex; align-items: center; justify-content: center; min-width: 58px; height: 58px; padding: 0 4px; border-style: solid; border-width: 0; image-rendering: pixelated; color: var(--color-text); font-size: var(--font-size-xs); font-weight: 600; text-decoration: none; }
.website__flag--on { border-image: var(--frame-pill-holder); }
.website__flag--on::before { content: ""; position: absolute; inset: -2px; background: var(--color-accent); clip-path: var(--shape-ring-holder); pointer-events: none; }
/* Drawn, a flag is its picture: its name stays for the reader */
.website--ready .website__flag--drawn .website__flag-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.website__privacy { color: var(--color-text-muted); font-size: var(--font-size-xs); font-weight: 600; white-space: nowrap; text-shadow: 1px 1px 0 var(--color-icon-shade); }

/* The phone beside the words on a computer (journal 013, Q1, Q4): a bezel on the device tokens round the frames, 390 × 844 at 0.72, fixed at every window's height; the frames stacked, one shown at a time. Decoration, hidden on a phone, where its lazy frame never loads */
.website__phone { display: none; flex: none; padding: 12px; border-radius: var(--radius-device); background: var(--color-device-island); box-shadow: 0 0 0 2px var(--color-line), var(--shadow-device); }
.website__screen { position: relative; width: 281px; height: 608px; overflow: hidden; border-radius: var(--radius-device-screen); background: var(--color-page); }
.website__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.website__frame[hidden] { display: none; }

/* A computer: the phone and the words side by side, the words left-aligned, on the page alone */
@media (min-width: 900px) {
  body { background: var(--color-page); }
  .website__main { gap: 88px; padding: 24px 32px; }
  .website__phone { display: block; }
  .website__words { width: 420px; max-width: none; flex: none; }
  .website__title { justify-content: flex-start; font-size: 44px; }
  .website__pitch { text-align: left; color: var(--color-text-muted); font-size: 19px; font-weight: var(--font-weight-light); line-height: 1.3; }
  /* Each of the pitch's sentences on a line of its own (the template splits them at the first full stop) */
  .website__sentence { display: block; }
  .website__footer { max-width: 813px; padding: 0 0 24px; }
}
@media (min-width: 900px) and (pointer: fine) {
  .website__qrs { display: flex; }
}
