@font-face {
  font-family: Montserrat;
  src: url("./fonts/montserrat-latin-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("./fonts/montserrat-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  color: #282333;
  background: #24202c;
  --purple: #563881;
  --cream: #f8f1e2;
  --butter: #faedc1;
  --butter-accent: #f5dfa0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }

.deck {
  --gutter: 1.25rem;
  --projection-background: #15131a;
  padding: var(--gutter);
}

.stage {
  display: grid;
  gap: var(--gutter);
  max-inline-size: 100rem;
  margin-inline: auto;
}

.deck[data-presenting] {
  min-block-size: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--projection-background);
}

.deck[data-presenting] .stage {
  inline-size: min(100%, calc(100dvh * 16 / 9));
  max-inline-size: none;
}

.deck[data-presenting] .stage:fullscreen {
  inline-size: 100%;
  place-items: center;
  background: var(--projection-background);
}

.stage:fullscreen .slide { inline-size: min(100vw, calc(100dvh * 16 / 9)); }

.slide {
  container-type: inline-size;
  position: relative;
  display: grid;
  align-items: center;
  aspect-ratio: 16 / 9;
  background-color: #fff;
}

.slide-copy {
  margin-inline: 8.25cqw;
  padding-block: 5cqw;
  font-size: 2.4cqw;
  line-height: 1.33;
}

.slide:not(.cover) .slide-copy {
  font-size: 1.92cqw;
  line-height: 1.42;
}

.slide h1, .slide h2, .slide p, .slide dl, .slide dd { margin: 0; }

.slide h2 {
  color: var(--purple);
  font-size: 4.56cqw;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.slide .topic { font-size: 1.76cqw; letter-spacing: 0; }
.support, .slide dd { text-wrap: pretty; }
.slide dt { font-weight: 700; }

.cover, .farewell {
  background: var(--purple) url("./fondo-she.jpg") center / cover;
  color: #fff;
}

.cover-layout {
  display: grid;
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr) 26.5cqw;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 4.25cqw;
  padding: 4.5cqw 7cqw 4.5cqw 8.25cqw;
}

.cover-copy { grid-area: 2 / 1; }

.cover-visual {
  grid-area: 1 / 2 / -1;
  display: grid;
  gap: 1.9cqw;
  align-content: center;
  justify-items: center;
}

.she-logo {
  inline-size: 17.4cqw;
  block-size: auto;
}

.cover-portrait {
  inline-size: 90%;
  block-size: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 1cqw 1cqw 0 var(--butter);
}

.cover h1 {
  font-weight: 400;
  font-size: 5.8cqw;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.cover h1 span { display: block; }
.cover h1 span:last-child { font-size: 7.45cqw; font-weight: 700; }
.cover .speaker { margin-block-start: 3.05cqw; font-size: 1.9cqw; line-height: 1.33; }
.speaker strong { font-size: 2.9cqw; }

.event {
  grid-area: 3 / 1;
  align-self: end;
  font-size: 1.85cqw;
}

.two-mornings { background-color: #fffbf2; }
.two-mornings h2 { text-align: center; }
.two-mornings .slide-copy { margin-inline: 7cqw; }

.morning-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4cqw;
  margin-block-start: 2.8cqw;
}

.morning-photos img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.fatigue {
  background: radial-gradient(ellipse at 88% 34%, #fae8b2, transparent 60%), #fffbef;
}

.fatigue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 33.5cqw;
  align-items: center;
  gap: 6cqw;
}

.slide-photo { border-radius: 2.2cqw; }

.fatigue-photo {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 1.35cqw 1.35cqw 0 var(--butter-accent);
}

.fatigue .fatigue-focus, .reflection .reflection-focus {
  margin-block: 2.8cqw;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.fatigue-focus { font-size: 5.04cqw; }
.fatigue-focus span, .reflection-focus span { display: block; }

.butter-highlight {
  position: relative;
  isolation: isolate;
  color: var(--purple);
}

.butter-highlight::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline: -0.14em;
  inset-block-end: 0.05em;
  block-size: 0.33em;
  border-radius: 0.18em;
  background: var(--butter-accent);
}

.fatigue-focus .butter-highlight { inline-size: fit-content; }

.reflection, .closing { text-align: center; }

.reflection {
  background: radial-gradient(ellipse at 50% 44%, #fff 20%, #f8f4fc 57%, #eadff2 100%);
}

.reflection-focus { font-size: 5.48cqw; }
.reflection-focus .butter-highlight { display: inline-block; font-style: normal; }
.reflection .support { font-size: 1.84cqw; }

.she-story, .she-collage {
  background: var(--cream) url("./papel-crema-she.webp") center / cover;
}

.she-story .contributions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5cqw;
  margin-block-start: 5.4cqw;
}

.contributions > div {
  padding: 1.75cqw 1.8cqw 2.1cqw;
  border-radius: 1.45cqw;
  background: rgb(255 251 239 / 72%);
}

.contributions dt { font-size: 1.8cqw; }
.contributions dd { margin-block-start: 0.85cqw; }

.collage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.85cqw;
  block-size: 45cqw;
  margin-inline: 6.5cqw;
}

.collage-grid img {
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  object-fit: cover;
  object-position: center top;
}

.collage-portrait { grid-row: span 2; }

.work { background-color: #fffdf7; }

.work .work-list {
  display: grid;
  gap: 1.15cqw;
  margin-block-start: 3.55cqw;
}

.work-list > div {
  padding: 1.25cqw 2.15cqw 1.35cqw;
  border-radius: 1.45cqw;
  background: var(--cream);
}

.work-list .work-program { background: var(--butter); }
.work-list dt { color: var(--purple); font-size: 2.16cqw; }
.work-list dd { margin-block-start: 0.32cqw; max-inline-size: 77cqw; }

.closing h2 {
  font-size: 6.88cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.closing .support { margin-block-start: 3.4cqw; font-size: 2.24cqw; }
.closing .contact { margin-block-start: 2.55cqw; }

.contact a {
  display: inline-block;
  vertical-align: top;
}

.instagram-qr {
  display: block;
  inline-size: 19.5cqw;
  block-size: auto;
  border: 1px solid #e8dff4;
  border-radius: 0.65cqw;
}

.farewell-layout {
  display: grid;
  align-self: stretch;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 4.5cqw 7cqw;
}

.farewell-layout .she-logo { justify-self: end; }
.farewell-message { align-self: center; text-align: center; }

.farewell h2 {
  color: inherit;
  font-size: 6.55cqw;
  line-height: 1.06;
}

.farewell .farewell-slogan {
  margin-block-start: 3.3cqw;
  color: var(--butter);
  font-size: 3.2cqw;
  font-weight: 700;
}

.controls {
  position: fixed;
  z-index: 1;
  inset-inline-end: 0.75rem;
  inset-block-end: max(0.75rem, env(safe-area-inset-bottom));
  inline-size: max-content;
  max-inline-size: calc(100% - 1.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #736981;
  border-radius: 0.75rem;
  padding: 0.5rem;
  color: #fff;
  background: #24202c;
  box-shadow: 0 4px 20px rgb(21 19 26 / 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.controls:focus-within,
.deck[data-controls-hovered] .controls,
.deck[data-controls-visible] .controls {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .controls { transition: none; }
}

.controls button {
  min-block-size: 2.75rem;
  padding-inline: 0.875rem;
  border: 1px solid #736981;
  border-radius: 0.375rem;
  font: inherit;
  color: inherit;
  background: #342d41;
  cursor: pointer;
}

.controls button:hover { background: #473958; }
.controls button[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.position { min-inline-size: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
.fullscreen-error { flex-basis: 100%; margin: 0; text-align: center; }
:focus-visible { outline: 3px solid #af8bdf; outline-offset: 4px; }
.stage:focus-visible { outline-offset: -4px; }
