/* Base común de la web (landing, 404 y /j/): los mismos tokens que la app (app/src/styles/tokens.css).
   Una fiesta en una furgoneta de noche, alumbrada por una sola bombilla ámbar. La página /j/ la lleva
   dentro de su <style>; el resto la enlaza. Solo se embebe la letra de titulares (la que da carácter);
   el texto corrido va con la del sistema, que en Windows es Segoe UI. */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/big-shoulders-display.075292b1.woff2) format("woff2");
}

@font-face {
  font-family: "Big Shoulders Stencil";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/big-shoulders-stencil-800.b7a60bc1.woff2) format("woff2");
}

:root {
  --ink-0: #110c09;
  --ink-1: #19120e;
  --ink-2: #231a14;
  --ink-3: #31251c;
  --line: rgb(255 214 160 / 0.09);
  --line-strong: rgb(255 214 160 / 0.16);
  --cream: #f6e7cf;
  --dust: #b8a189;
  --dust-2: #9a8571;
  --amber: #ffb020;
  --amber-hi: #ffc85a;
  --amber-deep: #c27800;
  --amber-ink: #241503;
  --amber-tint: rgb(255 176 32 / 0.12);
  --mint: #7fe0a1;
  --mint-tint: rgb(127 224 161 / 0.12);
  --ember: #ff6a52;

  --font-display: "Big Shoulders Display", "Bahnschrift", "Arial Narrow", sans-serif;
  --font-stencil: "Big Shoulders Stencil", var(--font-display);
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, ui-monospace, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--cream);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--amber-hi);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--amber);
  color: var(--amber-ink);
}

/* Marca: caja con gorro + nombre, enlaza a la portada. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.brand svg {
  flex: none;
}

/* Botones: el primario es una tecla física ámbar con su canto, como en la app. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  color: var(--cream);
  font: 650 16px/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.35);
  transition:
    transform 120ms var(--ease-out),
    box-shadow 120ms,
    background 120ms;
}

.btn:hover {
  background: var(--ink-3);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  color: var(--amber-ink);
  box-shadow:
    0 3px 0 var(--amber-deep),
    0 6px 18px rgb(255 176 32 / 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffd27a, var(--amber-hi));
  box-shadow:
    0 3px 0 var(--amber-deep),
    0 8px 26px rgb(255 176 32 / 0.32);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--amber-deep);
}

.btn svg {
  flex: none;
}

/* Pie: el aviso de no afiliación siempre a la vista. */
.site-footer {
  color: var(--dust-2);
  font-size: 13.5px;
  text-align: center;
}

.site-footer a {
  color: var(--dust);
}

/* Invítame a un café: píldora discreta del pie (landing y /j/). La taza se enciende en ámbar al pasar. */
.site-footer .coffee-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--ink-1);
  color: var(--cream);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color 120ms,
    background 120ms,
    box-shadow 120ms;
}

.site-footer .coffee-link svg {
  flex: none;
  color: var(--amber);
}

.site-footer .coffee-link:hover {
  border-color: rgb(255 176 32 / 0.45);
  background: var(--ink-2);
  box-shadow: 0 0 18px rgb(255 176 32 / 0.16);
}

.site-footer .coffee-link:focus-visible {
  border-radius: var(--r-pill);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
