/* Krono Puzzle site styles. Colors follow the Krono Puzzle design tokens.
   System fonts only: the site loads no font, script, or image from any host. */

:root {
  --bg: #ECEEF3;
  --surface: #FFFFFF;
  --surface2: #F5F6F9;
  --text: #14163A;
  --text-muted: #5E6480;
  --line: #DCE0EA;
  --brand: #2D35E8;
  --on-brand: #FFFFFF;
  --best: #FFD43B;
  --on-best: #14163A;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0E2B;
    --surface: #171A3D;
    --surface2: #22264F;
    --text: #EEF0FF;
    --text-muted: #A7ACD0;
    --line: #2A2E5A;
    --brand: #8C93FF;
    --on-brand: #0C0E2B;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.wordmark {
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark span { color: var(--brand); }

.lang-switch ul, .site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switch a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

main { padding: 2rem 0 3rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; font-weight: 800; }
h2 { font-size: 1.375rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.125rem; margin: 1.5rem 0 0.25rem; }

.meta { color: var(--text-muted); margin: 0 0 1.5rem; }

.release {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.hero {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  margin: 0 0 2rem;
}
.hero h1 { margin-bottom: 0.25rem; }
.hero p { margin: 0.25rem 0 0; }
.hero a { color: var(--on-brand); }

.contact {
  font-weight: 700;
  word-break: break-all;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 1.5rem 0 2.5rem;
}
