/* The three covers use the artwork and type treatments of their destinations. */
.home-hero {
  --section-gap: clamp(1.35rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "brand" "tagline" "install" "lead" "covers";
}
.home-identity { grid-area: brand; align-self: center; }
.home-hero .tagline { grid-area: tagline; margin-block: 0; text-wrap: balance; }
.wish-marker {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding-inline: .12em;
  white-space: nowrap;
  color: var(--deep);
  background: transparent;
  text-shadow: none;
}
.wish-marker::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .08em -.1em .04em;
  background: linear-gradient(100deg, #ffeb85, #d6f683);
  clip-path: polygon(2% 10%, 35% 5%, 71% 8%, 100% 2%, 98% 92%, 62% 96%, 26% 93%, 0 100%);
  transform: rotate(-1.8deg);
}
@media (forced-colors: active) {
  .wish-marker { background: Mark; color: MarkText; }
  .wish-marker::before { display: none; }
}
.home-hero .lead { grid-area: lead; margin-bottom: var(--section-gap); }
.home-install {
  grid-area: install;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .85rem 1.15rem;
  margin-block: var(--section-gap);
}
.home-install .buttons { flex-basis: 100%; }
.home-install :is(.chip, .more) { margin: 0; }
.home-hero .isle { display: none; width: clamp(4rem, 8vw, 6.3rem); height: auto; }
.home-hero .mark { width: min(100%, 26.5rem); }

.game-covers {
  grid-area: covers;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.6rem, 1.3vw, 1rem);
  min-width: 0;
  text-align: left;
}
.game-cover {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 3px solid var(--deep);
  border-radius: .9rem;
  box-shadow: 0 4px 0 var(--deep), 0 8px 16px #0d14402b;
  text-decoration: none;
  line-height: 1.15;
}
.game-cover:focus-visible { outline-offset: 4px; }
.cover-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: .45rem;
  padding: .75rem clamp(.65rem, 1.5vw, 1.2rem) .85rem;
}
.cover-title { display: block; }
.cover-action {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: .19em;
}
.game-cover:where(:hover, :focus-visible) .cover-action { text-decoration-thickness: 2px; }

.comic-cover {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  width: 100%;
  aspect-ratio: 3;
  min-height: clamp(10.5rem, 20vw, 15.5rem);
  background: #ffedb9;
  color: #252033;
}
.comic-cover .cover-copy {
  position: relative;
  isolation: isolate;
  justify-content: center;
  gap: clamp(.8rem, 1.6vw, 1.4rem);
  padding: clamp(.85rem, 2.1vw, 1.7rem);
}
.comic-cover .cover-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30% 0 0 30%;
  background: radial-gradient(#a88658 1px, transparent 1.3px) 0 0 / 6px 6px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.comic-cover .cover-title {
  font-size: clamp(2.1rem, 4.35vw, 4rem);
  font-weight: 900;
  font-style: italic;
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.comic-cover .cover-title em {
  display: block;
  color: #ff96a4;
  -webkit-text-stroke: .038em #252033;
  paint-order: stroke fill;
  text-shadow: .045em .045em 0 #252033;
}
.comic-frames {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  border-left: 3px solid #252033;
  background: #252033;
}
.comic-frames > span, .cover-scene { position: relative; display: block; overflow: hidden; }
.comic-frames img, .cover-scene img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comic-frames img { object-position: 50% 35%; }
.comic-frames .before-frame {
  z-index: 1;
  margin-right: -.7rem;
  background: #252033;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 100%, 0 100%);
}
.before-frame img {
  object-position: 50% 58%;
  clip-path: polygon(0 0, calc(100% - 3px) 0, calc(100% - .7rem - 3px) 100%, 0 100%);
}

.cover-scene { width: 100%; aspect-ratio: 1.95; }
.atlas-cover-link { background: #eef2e7; color: #233b2e; }
.atlas-cover-link .cover-title {
  font: 400 clamp(1.6rem, 2.8vw, 2.6rem)/1 "STIX Two Text", "Iowan Old Style", Georgia, serif;
  letter-spacing: -.06em;
}
.atlas-cover-link .cover-title em { color: #486b50; }
.weather-cover { --division: 48%; background: #14222a; color: #f6f5e9; }
.weather-cover .cover-title { font-size: clamp(1.3rem, 2.15vw, 2.06rem); font-weight: 900; line-height: 1.02; letter-spacing: -.045em; }
.weather-cover .cover-title em { color: #f6d28f; font-style: normal; white-space: nowrap; }
.weather-cover .night-side { clip-path: inset(0 0 0 var(--division)); }
.weather-cover .cover-scene::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--division);
  width: 2px;
  background: #fff8e4;
  transform: translateX(-50%);
}

.animata-note {
  margin-top: 2rem;
  padding-block: clamp(1.35rem, 3vw, 2rem);
}
.animata-note h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.animata-note dfn { font-style: normal; font-weight: 900; }
.footnoted-term { white-space: nowrap; }
.footnoted-term sup { font-size: .75em; line-height: 0; }
.footnoted-term a { padding: .2em .12em; }
.animata-note p:last-child { margin-bottom: 0; }
.animata-note a { white-space: nowrap; text-underline-offset: .2em; }
.animata-note .x-follow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .45rem 1.05rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}
.home-footnotes {
  margin-top: 1.25rem;
  padding-top: .85rem;
  font-size: .875rem;
  line-height: 1.5;
}
.home-footnotes ol { margin: 0; padding-inline-start: 1.5em; }
.home-footnotes li { scroll-margin-block-start: 1rem; }
.home-footnotes li:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.footnote-source { margin: .35rem 0 0; font-size: .8125rem; }
@media screen {
  .animata-note { color: var(--paper); background: #1c2d53; border-color: var(--deep); box-shadow: 0 5px 0 var(--deep); }
  .animata-note a { color: #e3f58c; }
  .animata-note .x-follow { color: #fff; background: #000; border-color: #8793a8; }
  .animata-note .x-follow:hover { border-color: #fff; }
  .home-footnotes { color: #e4edfc; border-top: 1px solid #ffffff40; }
  .home-footnotes li:target::marker { color: var(--gold); }
  .footnote-source { color: #ceddf2; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .weather-cover .night-side { transition: clip-path 480ms ease; }
  .weather-cover .cover-scene::after { transition: left 480ms ease; }
  .weather-cover:where(:hover, :focus-visible) { --division: 66%; }
}

@media (min-width: 48rem) {
  .home-hero .isle { display: block; }
  .home-hero {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-areas: "brand tagline" "brand lead" "install install" "covers covers";
    column-gap: 2rem;
  }
  .home-hero .tagline { align-self: end; margin: 0 0 .6rem; text-align: left; }
  .home-hero .lead { align-self: start; margin: 0; text-align: left; }
}
@media (max-width: 31rem) {
  .home-hero { padding-top: 1rem; }
  .home-hero .mark { width: min(100%, 20rem); }
  .home-install .chip { padding-inline: .5rem; font-size: .875rem; }
  .comic-cover { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); min-height: clamp(10.5rem, 47vw, 13.5rem); }
  .comic-cover .cover-title { font-size: clamp(1.5rem, 7.6vw, 2.15rem); }
  .comic-frames { grid-template-columns: 1fr; }
  .comic-frames .before-frame { display: none; }
  .cover-scene { aspect-ratio: 1.6; }
}
