/* Shared by every language of the landing (index.html, en/index.html). One file so the two
   translations can never drift apart visually — a copy of the CSS per language always does.

   Los tokens son los del tema oscuro del juego (apps/web/src/index.css): mismo papel, misma
   tinta, y el mismo rojo como único acento. Si el rojo cambia allá, cambialo acá. */
:root {
  color-scheme: dark;
  --bg: #0f0f0e;
  --surface: #171715;
  --fg: #f4f3ee;
  --muted: #a3a29b;
  --subtle: #7a7a74;
  --border: #57564f;
  --accent: #f4505d;
  --accent-ink: #ff7b85;
  --grid: rgba(244, 243, 238, 0.05);
  --font-ui: "Chakra Petch", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, "Consolas", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
  background: var(--bg);
  /* Rejilla apenas visible: la misma que estructura la interfaz del juego. */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--fg);
  font-family: var(--font-ui);
  line-height: 1.6;
}
main {
  width: 100%;
  max-width: 38rem;
}
/* The eyebrow and the language switcher share one line: both are small mono labels, and
   pinning the switcher to the top-right of the text column keeps it out of the headline. */
.topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
/* Plain links, no JS: every language is a real URL that can be shared and indexed. */
.lang {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}
.lang a {
  color: var(--subtle);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lang a:hover,
.lang a:focus-visible {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
/* The current language is marked, not linked — a link to the page you are on is noise. */
.lang [aria-current="true"] {
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
}
.lang .sep {
  color: var(--border);
}
h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lead {
  margin: 0 0 2.5rem;
  max-width: 30rem;
  font-size: 1.05rem;
  color: var(--muted);
}
ul {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}
li {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
li h2 {
  margin: 0 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
a.cta {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
}
a.cta:hover,
a.cta:focus-visible {
  background: var(--accent);
  color: var(--bg);
}
.note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--subtle);
}
footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--subtle);
}
