/* Lokopost site (G-81). Colours are the game's tokens (design/GAME-NOTES.md): light and dark
   follow the device. No webfonts, no scripts: the pages work from the HTML alone. */
:root {
  --bg: #fffaf0;
  --soft: #f3ead0;
  --card: #ffffff;
  --text: #2b2140;
  --muted: #5d5878;
  --ink: #2b2140;
  --accent: #ff7a1a;
  --on-accent: #2b2140;
  --night: #0b1120;
  --on-night: #f6f3ff;
  --sky: #9ab6df;
  --radius: 16px;
  --shadow: 0 4px 0 var(--ink);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a33;
    --soft: #1f1d3d;
    --card: #2a2750;
    --text: #f6f3ff;
    --muted: #b9b4de;
    --ink: #0e0c1f;
    --accent: #ff9a3c;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1.0625rem/1.65 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  overflow-wrap: break-word;
  hyphens: auto;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--text);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  background: var(--accent);
  color: var(--on-accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: 8px;
  top: -4rem;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus {
  top: 8px;
}

/* header */
.site-header {
  background: var(--soft);
  border-bottom: 3px solid var(--ink);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand:hover {
  background: none;
  color: var(--text);
}
.brand span {
  color: var(--accent);
}
.menu,
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.menu a,
.langs a {
  display: inline-block;
  padding: 0.35rem 0;
}
.menu a[aria-current='page'],
.langs a[aria-current='true'] {
  font-weight: 800;
  text-decoration-color: var(--accent);
}
.langs {
  width: 100%;
  font-size: 0.875rem;
  color: var(--muted);
}
.langs a {
  color: var(--muted);
}

/* content */
main {
  padding: 2rem 0 3rem;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(1.9rem, 6.5vw, 3rem);
  font-weight: 900;
}
h2 {
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  margin-top: 2.5rem;
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1rem;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46rem;
}
.updated,
.note {
  color: var(--muted);
  font-size: 0.95rem;
}
.h1-brand {
  display: block;
  color: var(--accent);
}
.hero {
  margin-bottom: 2.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.hero-art {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--soft);
}
.soon {
  display: inline-block;
  margin: 0.25rem 0 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 900;
}
.soon-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.cards li {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}
.cards p {
  margin: 0;
  color: var(--muted);
}
.steps {
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps h3::before {
  content: counter(step);
  display: inline-block;
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.5rem;
  text-align: center;
  line-height: 1.7rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
}
.about {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.about img {
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--soft);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cta h2 {
  margin-top: 0;
}

/* text pages */
.prose {
  max-width: 46rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}
.prose li {
  margin-bottom: 0.6rem;
}
.prose section {
  scroll-margin-top: 1rem;
}
.notice {
  background: var(--soft);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

/* footer */
.site-footer {
  background: var(--night);
  color: var(--on-night);
  padding: 2rem 0;
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--sky);
}
.site-footer a:hover {
  background: var(--sky);
  color: var(--night);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.site-footer p {
  margin: 0 0 0.35rem;
}

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: 1fr 1.1fr;
  }
  .about {
    grid-template-columns: auto 1fr;
  }
  .langs {
    width: auto;
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
