/* Wirdie's holding page, in the game's own look (identity sheet wirdie.md §5):
   the hole's picture as the ground, smoked green-black glass over it, Inter, the white drawn wordmark, white text.
   Picture: Castle Rush hole 1, day (prototype/walk/site/h1/day/1.jpg; hole-wide.webp is the same picture cut wide, for phones on their side). Glass and rim: prototype/gen/game_template.html :root.
   Wordmark: prototype/brand/final-2026-11-11, used whole. Fonts are served from this folder; nothing loads from elsewhere. */

@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --green: #17301F;                    /* wordmark ink and the night icon's course green */
  --card: rgba(16, 28, 22, .5);        /* the game's glass, at its pill strength so white text holds over a bright sky */
  --rim: rgba(255, 255, 255, .28);
  --rim-hi: rgba(255, 255, 255, .6);
  --sub: #E6ECE7;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--green); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px max(12px, env(safe-area-inset-bottom));
  background: var(--green) url(hole.webp) center 28% / cover no-repeat;
  color: #fff;
  font: 400 16px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* the hole card: the game's bottom card, glass over the picture */
main {
  width: 100%;
  max-width: 416px;
  padding: 34px 28px 26px;
  border-radius: 44px;
  border: 1px solid var(--rim);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--rim-hi);
  text-align: center;
}

h1 { margin: 0; }

/* the dimpled wordmark is for 200 points wide and up (brand README); this one never drops below 220 */
.mark { display: block; width: 236px; height: auto; margin: 0 auto; }

.line {
  margin: 22px 0 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.by { margin: 18px 0 0; font-size: 14px; }

.by a {
  color: var(--sub);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 236, 231, .45);
  padding-bottom: 1px;
}
.by a:hover { border-bottom-color: var(--sub); }
.by a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

@media (min-width: 720px) {
  body { padding: 48px 24px; }
  main { max-width: 460px; padding: 44px 40px 34px; }
  .mark { width: 280px; }
  .line { font-size: 23px; }
}

/* a laptop or a wide tablet: the page stays phone-shaped, as the game does on a laptop (game_template.html, min-aspect-ratio 62/100):
   the picture is the height of the window, never stretched past its own pixels, with the game's dark sides around it */
@media (min-aspect-ratio: 62/100) and (min-height: 501px) {
  html { background: #0b1510; }
  body { background: #0b1510 url(hole.webp) center top / auto 100% no-repeat; padding-bottom: 12px; }
  main { max-width: min(460px, calc(100vh * 1320 / 2868 - 24px)); max-width: min(460px, calc(100svh * 1320 / 2868 - 24px)); padding: 36px 24px 28px; }
  .mark { width: min(280px, calc(100vh * 1320 / 2868 - 120px)); }
}

/* a phone on its side: the same picture cut wide, and a smaller card so the hole shows */
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  body { background-image: url(hole-wide.webp); background-position: center 30%; padding: 12px; }
  main { max-width: 360px; padding: 18px 24px 16px; border-radius: 32px; }
  .mark { width: 200px; }
  .line { margin-top: 12px; font-size: 18px; }
  .by { margin-top: 10px; }
}
