/* Farpoint Lab: el mismo aspecto que la app (fondo, tinta, verde azulado, ámbar).
   Letra grande, mucho contraste y pensado para leerse bien en el móvil. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/Baloo2.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #EEF4F2;
  --surface: #FFFFFF;
  --ink: #13343B;
  --muted: #35565C;
  --line: #CBDCD8;
  --teal: #1F6F78;
  --teal-dark: #17565D;
  --amber: #F2A541;
  --amber-soft: #FDF0DA;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.2rem; /* 19,2 px: cuerpo nunca por debajo de 18 px */
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus { left: 12px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }

/* Cabecera */
header.site { padding: 18px 0 8px; }
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.brand {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { color: var(--teal); }
nav { display: flex; flex-wrap: wrap; gap: 0 6px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
}
nav a:hover { background: #fff; }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Títulos */
h1, h2, h3 { font-family: "Baloo 2", system-ui, sans-serif; line-height: 1.15; }
h2 { font-size: 1.9rem; font-weight: 800; margin: 56px 0 14px; }
h3 { font-size: 1.4rem; font-weight: 800; margin: 28px 0 8px; }

.hero { padding: 36px 0 12px; }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 12px 0 16px;
}
.hero .lead { font-size: 1.35rem; color: var(--muted); max-width: 34em; margin: 0; }
.hero-game { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero-game img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 6px 18px rgba(19, 52, 59, .18); }
.hero-game > div { flex: 1 1 320px; }

/* Tarjetas, etiquetas y botones */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .card-head { display: flex; gap: 16px; align-items: center; }
.card .card-head img { width: 72px; height: 72px; border-radius: 18px; }

.tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--amber-soft);
  color: var(--ink);
  border: 2px solid var(--amber);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 1rem;
  font-weight: 700;
}
.button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  min-height: 56px;
  margin-top: 8px;
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 999px;
  padding: 0 28px;
}
.button:hover { color: var(--ink); filter: brightness(.94); }
.button.secondary { background: var(--surface); border: 3px solid var(--teal); color: var(--teal-dark); }

.note { font-size: 1.05rem; color: var(--muted); margin: 4px 0 0; }

/* Listas */
.features, .steps { padding-left: 1.3em; }
.features li, .steps li { margin: 10px 0; }

/* Postales de ejemplo */
.postales { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.postales figure { margin: 0; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; }
.postales figcaption { padding: 12px 16px 14px; font-weight: 700; }
.postales figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 1.05rem; }

.placeholder {
  border: 3px dashed var(--teal);
  border-radius: 22px;
  background: var(--surface);
  padding: 28px 24px;
  color: var(--muted);
}

/* Textos legales */
article.legal {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  margin: 24px 0;
}
article.legal h1 { font-size: 2.2rem; margin: 0 0 8px; line-height: 1.15; }
article.legal h2 { font-size: 1.5rem; margin: 36px 0 8px; }
article.legal h3 { font-size: 1.2rem; margin: 22px 0 6px; }
article.legal p, article.legal li { max-width: 40em; }
article.legal li { margin: 6px 0; }
.meta { color: var(--muted); margin: 0 0 12px; }
.toc { background: var(--ground); border-radius: 14px; padding: 14px 20px; margin: 18px 0; }
.toc ul { margin: 6px 0 0; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 1.05rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
th { background: var(--ground); }
.table-scroll { overflow-x: auto; }

footer.site { margin-top: 72px; padding: 32px 0 56px; border-top: 2px solid var(--line); color: var(--muted); font-size: 1.05rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer.site nav a { min-height: 48px; padding: 0 8px; }

@media (max-width: 520px) {
  body { font-size: 1.15rem; }
  nav a { padding: 0 8px; }
  .hero-game img { width: 96px; height: 96px; border-radius: 22px; }
}

@media print {
  header.site nav, footer.site nav, .skip { display: none; }
  article.legal { border: none; padding: 0; }
}
