/* HexaBastion · colores del pack Arcano (ADR-14): los mismos tokens que :core:designsystem.
   Contraste AA verificado: texto 15,2:1, texto atenuado 7,7:1 y blanco sobre el primario 6,7:1. */

:root {
  color-scheme: dark;
  --bg: #0f1117;
  --surface: #171a24;
  --border: #2a2f3f;
  --text: #e8e6f0;
  --muted: #a7a3b8;
  --accent: #5b3fd6;
  --on-accent: #ffffff;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Polytropo Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: fixed;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--accent);
  color: var(--on-accent);
}

a {
  color: #b8a8ff;
}

a:hover,
a:focus-visible {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Language switching: both versions live in the document, CSS shows the active one. */
html[data-lang="es"] .lang-en,
html[data-lang="en"] .lang-es {
  display: none;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand__name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand__by {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9375rem;
  margin-inline-end: auto;
}

.site-nav a,
.site-footer a {
  color: var(--text);
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  min-height: 48px;
  min-width: 52px;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.lang-switch button[aria-pressed="true"]::before {
  content: "✓ ";
}

.hero {
  padding-block: 3.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8125rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.button--soon {
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--muted);
}

.hero__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.section {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.card p {
  margin: 0;
  color: var(--text);
}

.site-footer {
  padding-block: 2rem;
}

.site-footer__inner {
  display: grid;
  gap: 0.75rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Legal pages read better as a single column of prose. */
.prose {
  max-width: 46rem;
}

.prose h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin-block: 2rem 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin-block: 2rem 0.5rem;
}

.prose ul {
  padding-inline-start: 1.25rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: start;
  vertical-align: top;
}

.prose th {
  background: var(--surface);
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose code {
  font-size: 0.9375rem;
}
