/* El mismo mundo que el libro: papel, tinta, una serif y una sola regla.
   Nada de radios, sombras ni degradados. */

@font-face {
  font-family: 'Source Serif 4';
  src: url('./fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('./fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: oklch(98.4% 0.003 240);
  --raised: oklch(99.5% 0.002 240);
  --ink: oklch(23% 0.022 252);
  --ink-muted: oklch(50% 0.018 252);
  --line: oklch(89% 0.01 240);
  --accent: oklch(38% 0.1 255);
  --scrim: oklch(17% 0.02 255);
  --on-photo: oklch(98.5% 0.004 85);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 40px;
  }
}

/* ---------------------------------------------------------------- portada */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 88dvh;
  padding: 28px 24px 32px;
  overflow: hidden;
  color: var(--on-photo);
}

@media (min-width: 768px) {
  .hero {
    min-height: 92dvh;
    padding: 40px;
  }
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in oklch, var(--scrim) 62%, transparent);
}

.hero__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.seal {
  width: 56px;
  height: 58px;
  object-fit: contain;
}

.hero__org {
  margin: 0;
  max-width: 14ch;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--on-photo) 85%, transparent);
}

.hero__body {
  max-width: 34rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 7.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lead {
  margin: 18px 0 0;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--on-photo) 78%, transparent);
}

.hero__note {
  margin: 22px 0 0;
  max-width: 32rem;
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in oklch, var(--on-photo) 88%, transparent);
}

.hero__foot {
  border-top: 1px solid color-mix(in oklch, var(--on-photo) 28%, transparent);
  padding-top: 18px;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-photo);
}

.jump:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ------------------------------------------------------------ transmisiones */

.channels {
  border-top: 1px solid var(--line);
  padding-block: 56px;
}

@media (min-width: 768px) {
  .channels {
    padding-block: 80px;
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    'name'
    'note'
    'go';
  gap: 6px;
  min-height: 76px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 120ms ease;
}

/* On a phone the action goes under the name instead of squeezing it: at 390px
   the two columns cut "MMB · Cochabamba" in half. */
@media (min-width: 640px) {
  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'name go'
      'note go';
    align-items: center;
    gap: 4px 24px;
  }
}

.row:hover {
  border-color: var(--ink-muted);
}

.row__name {
  grid-area: name;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

.row__note {
  grid-area: note;
  font-size: 14px;
  color: var(--ink-muted);
}

.row__go {
  grid-area: go;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.row:hover .row__go {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* -------------------------------------------------------------- administración */

.staff {
  border-top: 1px solid var(--line);
  background: var(--raised);
  padding-block: 48px;
}

.staff__grid {
  display: grid;
  gap: 14px;
}

.staff__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
}

.staff h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.staff__note {
  margin: 0;
  max-width: 66ch;
  font-size: 15px;
  color: var(--ink-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 120ms ease;
}

.button:hover {
  border-color: var(--ink-muted);
}

/* -------------------------------------------------------------------- pie */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 26px;
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot__credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* The ministry wordmark is 800px wide; left to its natural size it pushes the
   footer past the phone's edge. */
.foot__credit img {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.foot__meta {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
