/* TENFLUX — the site's whole stylesheet.
 *
 * No framework, no build step, no JavaScript, no tracker, no cookie, no
 * third-party request of any kind. That last one is not an aesthetic choice:
 * the privacy policy this site hosts says TENFLUX does not track anyone, and a
 * page that pulled a font from someone else's CDN would hand that visitor's IP
 * to a third party while claiming otherwise. So the one webfont is served from
 * this origin, under the SIL Open Font License, whose text sits next to it.
 *
 * Colours are the game's own: ground and wordmark ramp read out of
 * lib/ui/theme/brand.dart and lib/ui/screens/splash_screen.dart.
 */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/assets/BarlowCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #060810;       /* Brand.ground — the Android launch window's colour */
  --surface: #0c1018;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --text: #e7ebf5;
  --muted: #98a0b4;
  --cold: #4fc3f7;         /* TEN accent, and the ramp's cold end */
  --hot: #ff9f43;          /* ballLow, and the ramp's hot end */
  --gold: #ffd166;         /* Palette.ball */
  --measure: 46rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* A very slow cold-to-hot wash, so the page has the game's temperature
     without costing an image. */
  background-image:
    radial-gradient(60rem 40rem at 12% -10%, rgba(79, 195, 247, 0.10), transparent 60%),
    radial-gradient(50rem 35rem at 88% 108%, rgba(255, 159, 67, 0.09), transparent 60%);
  background-attachment: fixed;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* ---- the mark ------------------------------------------------------- */

.mark { text-align: center; margin-bottom: 2.5rem; }

.mark img {
  width: 92px;
  height: 92px;
  display: block;
  margin: 0 auto 1rem;
}

.wordmark {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
  /* The splash screen's ramp, same colours, same stops. */
  background: linear-gradient(90deg, #f2f6ff 0%, #f2f6ff 34%, var(--cold) 63%, var(--hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  text-transform: uppercase;
}

/* ---- type ------------------------------------------------------------ */

h1, h2, h3 { line-height: 1.25; }

h1 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.6rem;
  color: #fff;
}

h2::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  margin-bottom: 0.9rem;
  background: linear-gradient(90deg, var(--cold), var(--hot));
}

p, li { color: var(--text); }
p { margin: 0 0 1rem; }
ul { padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }

strong { color: #fff; }

a {
  color: var(--cold);
  text-underline-offset: 0.2em;
}
a:hover, a:focus-visible { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ---- blocks ---------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
}

.card h2 { margin-top: 0; }

.note {
  border-left: 3px solid var(--cold);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.nav a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.nav a:hover, .nav a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.status {
  display: inline-block;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ground);
  background: var(--gold);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.87rem;
  color: var(--muted);
  text-align: center;
}

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

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  text-decoration: none;
}
.back::before { content: '\2190\00a0'; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
