/* christmaslightsbingo.com. Colours mirror src/features/ui/tokens.ts. Fonts are
   self-hosted (fonts/, SIL OFL): no CDN, no third-party requests. */

@font-face {
  font-family: 'Agbalumo';
  src: url('/fonts/Agbalumo_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/Roboto_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/Roboto_700Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --sky-top: #1B2735;
  --sky-bottom: #090A0F;
  --surface-sheet: #1E3C5A;
  --candy-red: #D62B32;
  --evergreen: #17803F;
  --gold: #FECA57;
  --ink: #FFFFFF;
  --ink-muted: #FFFFFFB3;
  --display: 'Agbalumo', 'Snell Roundhand', cursive;
  --body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sky-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  /* The app's sky: sky-top at bottom-centre fading to sky-bottom. */
  background: radial-gradient(ellipse at bottom, var(--sky-top) 0%, var(--sky-bottom) 100%) fixed;
  background-color: var(--sky-bottom);
}

main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 16px 32px;
  text-align: center;
}

.title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.15;
  /* The app's Title: 30px red/green stripes at 45deg, clipped to the glyphs. */
  color: var(--candy-red);
  background: repeating-linear-gradient(45deg, var(--candy-red) 0 30px, var(--evergreen) 30px 60px);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title a {
  color: inherit;
  text-decoration: none;
  -webkit-text-fill-color: transparent;
}

.tagline {
  margin: 0 auto 32px;
  max-width: 28em;
  font-size: 20px;
}

.lead {
  margin: 0 auto 16px;
  max-width: 28em;
}

.muted {
  color: var(--ink-muted);
}

.code-label {
  margin: 24px 0 4px;
  color: var(--ink-muted);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(44px, 14vw, 72px);
  letter-spacing: 0.12em;
  color: var(--gold);
  /* letter-spacing trails the last glyph; pull it back so the code stays centred. */
  margin-right: -0.12em;
  user-select: all;
}

.badge {
  display: inline-block;
  margin: 8px 0 24px;
  line-height: 0;
}

.badge img {
  width: 180px;
  height: auto;
}

footer {
  padding: 16px 16px 32px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-muted);
}

a {
  color: var(--ink);
}

footer a {
  color: var(--ink-muted);
}

/* The privacy policy: a readable long-form column. */
.prose {
  text-align: left;
}

.prose h1 {
  text-align: center;
}

.prose h2 {
  margin: 32px 0 8px;
  font-size: 20px;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

[hidden] {
  display: none !important;
}
