/*
 * Estilos de la web de MiDecimo (midecimo.palmnorthprojects.com).
 * Mismo estilo "Noche y oro" que la app. Los colores salen de src/theme/theme.ts.
 */

/* Tipografías servidas desde nuestra propia web (no desde Google), para no
   pasar datos de los visitantes a terceros. */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk_700Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --background: #0b1020;
  --surface: #141b2e;
  --line: #232c45;
  --text: #f4f1ea;
  --text-muted: #9aa3b8;
  --text-soft: #a6aec2;
  --gold: #e9c46a;
  --on-gold: #1a1405;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* --- Cabecera con el logo ------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.brand-ball {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 15px;
}

.gold {
  color: var(--gold);
}

/* --- Textos ---------------------------------------------------------------- */
h1,
h2 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: 40px;
  margin: 40px 0 16px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 8px;
  color: var(--gold);
}

p,
li {
  color: var(--text-soft);
}

strong {
  color: var(--text);
}

a {
  color: var(--gold);
}

.updated {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Tarjetas y botones ---------------------------------------------------- */
.card {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--text);
  color: var(--background);
  font-weight: 700;
  text-decoration: none;
}

.code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  letter-spacing: 6px;
  color: var(--gold);
}

/* --- Pie de página --------------------------------------------------------- */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  margin-right: 16px;
}
