.flight-home .site-header {
  background: #f3eefa;
  border-bottom-color: #ded2ed;
}

.flight-scene {
  --night-ink: #29204f;
  --plum: #833754;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #f3eefa;
  color: var(--night-ink);
}

.flight-spread {
  position: relative;
  min-height: clamp(32rem, 47vw, 43rem);
  isolation: isolate;
}

.flight-spread::before {
  position: absolute;
  z-index: -2;
  inset: 25% -9% 3% 29%;
  content: '';
  border-radius: 55% 43% 51% 37% / 54% 42% 58% 39%;
  background: #e7def5;
  transform: rotate(-9deg);
}

.flight-spread::after {
  position: absolute;
  z-index: -2;
  inset: auto -19% -12% -12%;
  height: 44%;
  content: '';
  border-radius: 57% 40% 0 0 / 67% 44% 0 0;
  background: #fff6e5;
  transform: rotate(-3deg);
}

.flight-title {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .24em;
  padding-top: clamp(2.15rem, 3.75vw, 3.7rem);
  font-size: clamp(3.25rem, 7.4vw, 7.05rem);
  line-height: .99;
  letter-spacing: -.067em;
}

.flight-title span { white-space: nowrap; }

.flight-trail {
  position: absolute;
  z-index: -1;
  inset: 30% 3% 17% 1%;
  border: 2px dashed #8471a9;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 47%;
  pointer-events: none;
  transform: rotate(-12deg);
}

.flight-sparks {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.flight-sparks i {
  position: absolute;
  top: 41%;
  left: 14%;
  width: clamp(1.1rem, 3.6vw, 3.5rem);
  aspect-ratio: 1;
  background: #bc7335;
  clip-path: polygon(50% 0, 63% 39%, 100% 50%, 63% 60%, 50% 100%, 38% 60%, 0 50%, 38% 39%);
}

.flight-sparks i:nth-child(2) {
  top: 36%;
  left: 19%;
  width: clamp(.7rem, 1.7vw, 1.5rem);
  background: #8c6da9;
}

.flight-sparks i:nth-child(3) {
  top: 78%;
  left: auto;
  right: 6%;
  width: clamp(.8rem, 2vw, 2rem);
  background: #c1873e;
}

.flight-dragon {
  position: absolute;
  z-index: 1;
  inset: clamp(8rem, 11.9vw, 10.75rem) -.3rem 1.15rem auto;
  width: min(80%, 58rem);
  display: block;
  pointer-events: none;
}

.flight-dragon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.flight-invitation {
  position: absolute;
  z-index: 3;
  left: clamp(0rem, 2.5vw, 2.5rem);
  bottom: clamp(2.15rem, 5vw, 4.3rem);
  max-width: 16rem;
}

.flight-invitation p {
  margin-bottom: .7rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 650;
}

.flight-invitation .site-button { background: var(--night-ink); }
.flight-invitation .site-button:hover { background: var(--plum); }

.flight-grades {
  position: relative;
  z-index: 3;
  background: #fff6e5;
  border-bottom: 1px solid #e7d5b4;
}

.flight-grades-inner {
  display: grid;
  grid-template-columns: minmax(max-content, .62fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem clamp(1rem, 4.4vw, 4rem);
  padding-block: .55rem 1.6rem;
}

.flight-grades h2 {
  margin-left: clamp(0rem, 2.5vw, 2.5rem);
  font-size: clamp(1.6rem, 3vw, 2.65rem);
}

.flight-bookmarks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}

.flight-bookmarks a {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .3rem;
  min-height: 46px;
  padding: .45rem .2rem .55rem;
  border-radius: 1.25rem 1.25rem .3rem .3rem;
  border: 1px solid #abcab5;
  border-bottom-width: 3px;
  background: #e0efdc;
  color: var(--night-ink);
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.flight-bookmarks a:nth-child(2) { background: #f6dfeb; border-color: #d8afc7; }
.flight-bookmarks a:nth-child(3) { background: #f8e6aa; border-color: #deb962; }
.flight-bookmarks a:nth-child(4) { background: #e7dff7; border-color: #c5b1e6; }
.flight-bookmarks a:hover { background: #fff9ef; border-color: var(--night-ink); }
.flight-bookmarks strong { font: 400 clamp(1.3rem, 2.5vw, 2rem)/1 var(--heading); }

@media (prefers-reduced-motion: no-preference) {
  .flight-dragon.flight-ready {
    animation: dragon-flight 4.6s ease-in-out;
  }
}

@keyframes dragon-flight {
  0%, 100% { transform: translate(0, 0); }
  34% { transform: translate(9px, -10px); }
  70% { transform: translate(-5px, 3px); }
}

@media (min-width: 681px) and (max-width: 1000px) {
  .flight-spread { min-height: clamp(32rem, 63vw, 39rem); }
  .flight-dragon { inset: 7rem 0 5.4rem auto; width: 87%; }
  .flight-invitation { bottom: 1.6rem; max-width: none; display: flex; align-items: center; gap: 1rem; }
  .flight-invitation p { margin-bottom: 0; }
}

@media (max-width: 680px) {
  .flight-spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 0;
    padding-block: clamp(1.8rem, 5vw, 2.9rem) 1.6rem;
  }

  .flight-spread::before { inset: 24% -14% 12% -9%; }
  .flight-spread::after { inset: auto -17% -28%; height: 55%; }

  .flight-title {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 0;
    font-size: clamp(2.6rem, 11vw, 4.9rem);
    text-align: center;
  }

  .flight-title span + span { margin-left: .38em; }
  .flight-trail { inset: 29% 1% 25%; }
  .flight-sparks i { top: 36%; left: 4%; }
  .flight-sparks i:nth-child(2) { top: 32%; left: 10%; }
  .flight-sparks i:nth-child(3) { top: 68%; right: 5%; }

  .flight-dragon {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: .6rem;
  }

  .flight-dragon img { height: auto; object-position: center; }
  .flight-invitation { position: relative; inset: auto; max-width: none; margin-top: .65rem; text-align: center; }
  .flight-invitation p { margin-bottom: .46rem; }
  .flight-grades-inner { grid-template-columns: minmax(0, 1fr); gap: .65rem; padding-block: .65rem 1.2rem; }
  .flight-grades h2 { text-align: center; margin-left: 0; }
  .flight-bookmarks { gap: .28rem; }
  .flight-bookmarks a { font-size: .82rem; }
}

.reading-scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #29204f;
  background: #e6efde;
}

.reading-scene::before {
  position: absolute;
  z-index: -2;
  inset: auto -12% -26%;
  height: 64%;
  content: '';
  border-radius: 54% 47% 0 0 / 65% 53% 0 0;
  background: #d1e3c7;
  transform: rotate(-4deg);
}

.reading-spread { padding-block: clamp(2.6rem, 5.7vw, 5.25rem) clamp(1.5rem, 4vw, 3.5rem); }

.reading-title {
  position: relative;
  z-index: 2;
  margin-inline: auto;
  max-width: 15ch;
  font-size: clamp(2.7rem, 6.45vw, 6rem);
  line-height: 1.01;
  letter-spacing: -.06em;
  text-align: center;
  text-wrap: balance;
}

.reading-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(21rem, 35vw, 30.5rem);
  place-items: end center;
}

.reading-stage::before {
  position: absolute;
  z-index: -2;
  inset: 7% 27% 4%;
  content: '';
  border-radius: 55% 45% 46% 52% / 56% 52% 40% 43%;
  background: #f9e5b6;
  transform: rotate(-8deg);
}

.reading-path {
  position: absolute;
  z-index: -1;
  inset: 17% 10% 16% 8%;
  border: 2px dashed #73886d;
  border-right-color: transparent;
  border-top-color: transparent;
  border-radius: 52%;
  transform: rotate(-8deg);
}

.reading-children {
  display: block;
  width: min(57%, 42.5rem);
}

.reading-children img { width: 100%; height: auto; }

.reading-links {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.reading-links a {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  min-height: 50px;
  padding: .56rem .95rem;
  border: 1px solid #ad9bc7;
  border-radius: 1.5rem 1.5rem .4rem 1.5rem;
  background: #ebe2f7;
  color: #29204f;
  box-shadow: 0 3px 0 #ae9bc4;
  font-weight: 760;
  text-decoration: none;
  pointer-events: auto;
}

.reading-links a:first-child { top: 48%; left: 6%; }

.reading-links a:nth-child(2) {
  top: 26%;
  right: 2%;
  border-color: #ccc59a;
  background: #faf0cd;
  box-shadow: 0 3px 0 #c0b482;
}

.reading-links a:nth-child(3) {
  top: 66%;
  right: 6%;
  border-color: #cd9db3;
  background: #f6e4ec;
  box-shadow: 0 3px 0 #c99cae;
}

.reading-links a:hover { border-color: #29204f; background: #fff9ec; }

@media (min-width: 850px) {
  .reading-title { max-width: none; }
}

@media (max-width: 849px) {
  .reading-stage { min-height: 0; padding-top: 1rem; }
  .reading-stage::before { inset: 6% 13% 13%; }
  .reading-path { inset: 17% 3% 20%; }
  .reading-children { width: min(94%, 32rem); }
  .reading-links {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin: .75rem 0 .6rem;
  }
  .reading-links a { position: static; min-height: 45px; font-size: .94rem; padding: .42rem .72rem; }
}
