.ig-home {
  margin-top: 2.2rem;
}

.ig-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin-bottom: .9rem;
}

.ig-heading h2,
.ig-page h1,
.ig-reader h2 {
  font-family: 'Abril Fatface', Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
}

.ig-heading h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}

.ig-all,
.ig-action {
  color: var(--red);
  font: 600 .86rem/1.4 'Space Grotesk', sans-serif;
  text-underline-offset: .2em;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ig-grid li {
  display: flex;
  min-width: 0;
}

.ig-tile {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .28rem;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.ig-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #ece4d7;
}

.ig-series {
  margin-top: .25rem;
  color: #5b5147;
  font: 600 .7rem/1.4 'Space Grotesk', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ig-title {
  font-size: clamp(.92rem, 1.55vw, 1.18rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ig-tile:hover .ig-action,
.ig-tile:focus-visible .ig-action {
  text-decoration: underline;
}

.ig-page {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(1.3rem, 4vw, 3rem) clamp(1rem, 5vw, 3.75rem) 3rem;
}

.ig-page h1 {
  margin-bottom: clamp(1.1rem, 2.8vw, 1.9rem);
  font-size: clamp(2rem, 5vw, 4rem);
}

.ig-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 4.5vw;
  border-bottom: 1px solid var(--red);
}

.ig-masthead img {
  display: block;
  width: auto;
  height: clamp(3rem, 6vw, 4.5rem);
}

.ig-masthead .ig-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ig-reader {
  box-sizing: border-box;
  width: min(37rem, calc(100% - 1.25rem));
  max-height: calc(100% - 1.25rem);
  padding: clamp(.8rem, 2vw, 1.25rem);
  margin: auto;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.ig-reader::backdrop {
  background: rgb(28 25 22 / 75%);
}

.ig-reader-header,
.ig-reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
}

.ig-reader h2 {
  margin: .15rem 0 0;
  font-size: clamp(1.35rem, 4vw, 1.95rem);
}

.ig-slide {
  display: block;
  width: 100%;
  height: min(62vh, 38rem);
  height: min(62dvh, 38rem);
  margin: .7rem auto;
  object-fit: contain;
  touch-action: pan-y;
}

.ig-reader button {
  min-height: 44px;
  padding: .3rem .65rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  font: 600 .86rem/1.4 'Space Grotesk', sans-serif;
  cursor: pointer;
}

.ig-reader button[aria-disabled="true"] {
  color: #6d6359;
  cursor: default;
}

.ig-reader-position {
  font: 600 .86rem/1.4 'Space Grotesk', sans-serif;
  font-variant-numeric: tabular-nums;
}

.ig-transcript {
  border-top: 1px solid var(--rule);
  margin-top: .65rem;
}

.ig-transcript summary {
  padding: .75rem 0;
  color: var(--red);
  font: 600 .86rem/1.4 'Space Grotesk', sans-serif;
  cursor: pointer;
}

.ig-transcript p {
  margin: 0 0 .55rem;
  font-size: .94rem;
  line-height: 1.65;
  white-space: pre-line;
}

@media (max-width: 650px) {
  .ig-page .ig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ig-home .ig-grid {
    column-gap: .55rem;
  }

  .ig-home .ig-title {
    font-size: .84rem;
  }

  .ig-home .ig-action {
    font-size: .75rem;
  }
}
