/* =====================================================================
   Deck — Escalando Accesibilidad en el Handoff
   Sho design system. 1920×1080. Editorial-brutalist.
   ===================================================================== */

@import url("colors_and_type.css");

/* TYPE_SCALE / SPACING — committed up-front for slide composition.
   At 1920×1080, web defaults are too small. */
:root {
  --t-eyebrow: 26px;
  --t-small:   28px;
  --t-body:    34px;
  --t-subtitle:44px;
  --t-title:   88px;
  --t-display:140px;
  --t-mega:    220px;

  --pad-x: 120px;
  --pad-y-top: 110px;
  --pad-y-bottom: 96px;
  --gap-title: 56px;
  --gap-item:  28px;
}

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--fg-1);
  font-family: var(--font-sans);
  overflow: hidden;
}

.seo-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

deck-stage {
  background: transparent;
}

deck-stage > section {
  background: var(--bg-base);
  color: var(--fg-1);
  position: relative;
  overflow: hidden;
}

/* ===== Slide frame ===== */
.frame {
  position: absolute;
  inset: 0;
  /* Reserve room for chrome-top (48 + 24 + gap) and chrome-bottom */
  padding: 150px var(--pad-x) 140px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* ===== Chrome: page-number / brand line ===== */
.chrome-top {
  position: absolute;
  top: 48px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  z-index: 2;
}
.chrome-top > span,
.chrome-bottom > span,
.chrome-brand-row span { white-space: nowrap; }

.chrome-brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.chrome-bottom {
  position: absolute;
  bottom: 48px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  z-index: 2;
}

/* ===== Eyebrow ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
}

/* ===== Titles ===== */
.title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--t-title);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.title-display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
  text-transform: uppercase;
}

.subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-subtitle);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-2);
  margin: 0;
  max-width: 1500px;
  text-wrap: pretty;
}

.body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--fg-1);
  margin: 0;
  max-width: 1300px;
  text-wrap: pretty;
}

/* ===== Mono accents ===== */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.slash {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.25em;
}

/* ===== Primary mark ===== */
.is-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0;
}

.green { color: var(--primary); }
.muted { color: var(--fg-2); }

/* ===== Cards & dividers ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card .card-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
}

.card .card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.card .card-body {
  font-family: var(--font-sans);
  font-size: 26px;
  line-height: 1.45;
  color: var(--fg-2);
  margin: 0;
}

/* hairline grid */
.grid-hairline {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.grid-hairline > * {
  background: var(--surface);
}

/* numeric slot */
.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0;
  color: var(--primary);
}

/* tags / chips */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-1);
  background: var(--surface);
  white-space: nowrap;
}
.tag .dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 999px;
}
.tag.solid {
  background: var(--fg-1);
  color: var(--bg-base);
  border-color: var(--fg-1);
}
.tag.green {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* divider section */
.section-divider {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.section-divider .section-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fg-2);
}
.section-divider .section-display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 220px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* signature noise overlay (toggle via tweaks) */
.with-noise deck-stage > section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 5;
}
.dark.with-noise deck-stage > section::after {
  mix-blend-mode: screen;
  opacity: 0.4;
}

/* Tweaks visibility */
.hidden { display: none !important; }
