/* ============================================================
   EMILIO MAILLO — BRAND MANUAL N.001 (D5b · Vermillion)
   Tokens y estilos editoriales globales
   ============================================================ */

:root {
  --vm-paper: #FFFFFF;
  --vm-paper-soft: #FAFAFA;
  --vm-ink: #0A0A0A;
  --vm-ink-soft: #1F1F1F;
  --vm-dim: #8A8A8A;
  --vm-dim-2: #B8B8B8;
  --vm-rule: #0A0A0A;
  --vm-rule-soft: #E8E8E8;
  --vm-rule-hair: #F1F1F1;
  --vm-red: #E1261C;
  --vm-red-ink: #B81C13;

  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

deck-stage { background: #1a1a1a; }

deck-stage > section {
  background: var(--vm-paper);
  color: var(--vm-ink);
  font-family: var(--font-display);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* ---------- Page chrome (común a todas las páginas) ---------- */

.page {
  width: 100%;
  height: 100%;
  padding: 56px 96px 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Presentation 16:9 (1920x1080): generous padding, scaled-down type for fit */
deck-stage[aspect="16/9"] .page {
  padding: 48px 110px 40px;
}
deck-stage[aspect="16/9"] .h-display { font-size: 116px; }
deck-stage[aspect="16/9"] .h-1       { font-size: 70px; }
deck-stage[aspect="16/9"] .h-2       { font-size: 42px; line-height: 1.14; }
deck-stage[aspect="16/9"] .h-3       { font-size: 27px; line-height: 1.22; }
deck-stage[aspect="16/9"] .body      { font-size: 22px; line-height: 1.5; }
deck-stage[aspect="16/9"] .body--lead { font-size: 26px; line-height: 1.45; }
deck-stage[aspect="16/9"] .body--small { font-size: 18px; line-height: 1.5; }
deck-stage[aspect="16/9"] .mono       { font-size: 16px; }
deck-stage[aspect="16/9"] .mono--label { font-size: 14px; }
deck-stage[aspect="16/9"] .mono--meta  { font-size: 15px; }
deck-stage[aspect="16/9"] .page-head   { font-size: 14px; }
deck-stage[aspect="16/9"] .page-foot   { font-size: 13px; }
deck-stage[aspect="16/9"] .section-id  { font-size: 15px; }
deck-stage[aspect="16/9"] .two-col   { grid-template-columns: 280px 1fr; gap: 64px; }
deck-stage[aspect="16/9"] .two-col .col-meta { font-size: 13px; }

/* 16:9 universal: section-id margin + h2 max-width tightening to claw vertical room */
deck-stage[aspect="16/9"] .section-id { margin-bottom: 18px; }

.page--padded-narrow { padding: 64px 120px 56px; }
.page--padded-wide   { padding: 64px 64px 56px; }
.page--no-pad        { padding: 0; }

/* Header bar — meta info en la cabecera de cada página */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--vm-ink);
  padding-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-head .left  { display: flex; gap: 22px; align-items: baseline; }
.page-head .right { color: var(--vm-dim); }
.page-head .red   { color: var(--vm-red); }

/* Footer — folio + edición */
.page-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--vm-rule-hair);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vm-dim);
}

.page-foot .folio { color: var(--vm-ink); }
.page-foot .red { color: var(--vm-red); }

/* ---------- Section identifiers ---------- */

.section-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--vm-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.section-id .num { color: var(--vm-ink); }
.section-id .red { color: var(--vm-red); }

/* ---------- Type primitives ---------- */

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 92px;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
}
.h-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
}
.h-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}
.h-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

.body {
  font-size: 16px;
  line-height: 1.62;
  color: var(--vm-ink);
}
.body--lead {
  font-size: 19px;
  line-height: 1.55;
}
.body--small { font-size: 14px; line-height: 1.55; }

.dim { color: var(--vm-dim); }
.red { color: var(--vm-red); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.mono--label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vm-dim);
}
.mono--meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Rules and dividers ---------- */

.rule       { border: 0; border-top: 1px solid var(--vm-ink); height: 0; margin: 0; }
.rule-soft  { border: 0; border-top: 1px solid var(--vm-rule-soft); height: 0; margin: 0; }
.rule-hair  { border: 0; border-top: 1px solid var(--vm-rule-hair); height: 0; margin: 0; }

/* ---------- Wordmark utilities ---------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.wordmark .dot { color: var(--vm-red); }

/* ---------- Two-column editorial layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.two-col .col-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--vm-dim);
  text-transform: uppercase;
}

/* ---------- Print to PDF ---------- */
@media print {
  deck-stage { background: white; }
  .page-foot { color: #999; }
}
