/* Pocket Pool site. Colours from new-assets/branding/palette.json (Billiard Green #17C278). */

@font-face {
  font-family: "Saira Condensed";
  src: url("/fonts/SairaCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #F4F2EB;
  --surface: #FFFFFF;
  --text: #191D1C;
  --text-2: #555E56;
  --border: #D4D6CB;
  --accent: #17C278;
  --accent-ink: #0E7A4B; /* the accent darkened for text on the light background (4.8:1) */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111714;
    --surface: #1C2520;
    --text: #F4F2EB;
    --text-2: #B1BDB2;
    --border: #3B4940;
    --accent-ink: #17C278;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
}

.icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-family: "Saira Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(48px, 12vw, 80px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.lead {
  margin: 12px 0 28px;
  font-size: 20px;
  color: var(--text-2);
}

.modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.modes li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: "Saira Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.status {
  margin: 0;
  font-weight: 600;
  color: var(--accent-ink);
}

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

footer {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

footer p { margin: 0; }

/* Text pages (privacy) */
main.doc {
  align-items: stretch;
  justify-content: flex-start;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

main.doc h1 { font-size: clamp(40px, 10vw, 56px); }
main.doc .lead { margin-bottom: 8px; font-size: 16px; }
main.doc h2 { margin: 28px 0 6px; font-size: 20px; }
main.doc p, main.doc ul { margin: 0 0 10px; }
main.doc li { margin-bottom: 6px; }
