:root {
  color-scheme: light;
  --paper: #fff8ec;
  --paper-soft: #f9eedf;
  --ink: #29231e;
  --porch-wood: #4d3011;
  --porch-light: #e7b071;
  --orange: #cb5819;
  --gold: #e5a32b;
  --blue: #0759b6;
  --teal: #286b6d;
  --coral: #e28056;
  --olive: #74613e;
  --night: #050506;
  --night-blue: #0f2735;
  --moon: #f4f1ea;
  --echoes-purple: #922bd6;
  --echoes-cyan: #18bed1;
  --echoes-amber: #c47a24;
  --max-width: 1180px;
  --edge: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(4.5rem, 9vw, 8rem);
  --grain: rgba(77, 48, 17, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 24rem) 0 0 / 100% 100% fixed,
    radial-gradient(circle at 12% 4%, rgba(229, 163, 43, 0.28), transparent 22rem),
    linear-gradient(135deg, var(--paper-soft), var(--paper) 48%, #f3dbc3);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 40;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - (var(--edge) * 2), var(--max-width));
  margin: 0.8rem auto 0;
  padding: 0.7rem 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 236, 0.92), rgba(249, 238, 223, 0.82)),
    rgba(255, 248, 236, 0.86);
  border-bottom: 1px solid rgba(77, 48, 17, 0.24);
  box-shadow: 0 0.8rem 1.8rem rgba(77, 48, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark__seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  aspect-ratio: 1;
  color: var(--paper);
  font-weight: 900;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0.18rem 0.18rem 0 var(--gold);
}

.brand-mark__text strong,
.brand-mark__text span {
  display: block;
}

.brand-mark__text strong {
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.1;
}

.brand-mark__text span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.45rem);
}

.primary-nav a,
.site-footer a,
.story-jump a,
.email-link,
.morethanmetal-link {
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.28em;
}

.primary-nav a {
  font-size: 0.95rem;
  font-weight: 900;
}

.primary-nav a:not(:hover):not(.is-active) {
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 2.7rem;
  aspect-ratio: 1;
  padding: 0;
  background: transparent;
  border: 0;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  margin: auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
  content: "";
}

.nav-toggle__bars::before {
  transform: translateY(-0.42rem);
}

.nav-toggle__bars::after {
  transform: translateY(0.3rem);
}

.nav-open .nav-toggle__bars {
  transform: rotate(45deg);
}

.nav-open .nav-toggle__bars::before {
  opacity: 0;
}

.nav-open .nav-toggle__bars::after {
  transform: translateY(-0.12rem) rotate(90deg);
}

main {
  overflow: hidden;
}

.house-shell,
.site-footer {
  width: min(100% - (var(--edge) * 2), var(--max-width));
  margin-inline: auto;
}

section,
.dusk-passage {
  position: relative;
  isolation: isolate;
}

section::before,
section::after,
.dusk-passage::before,
.dusk-passage::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.eyebrow,
.book-note {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--teal);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.05rem;
  color: var(--orange);
  font-size: clamp(4rem, 10vw, 9rem);
  text-shadow:
    0.045em 0.045em 0 var(--gold),
    0 0.12em 0.35em rgba(77, 48, 17, 0.12);
}

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5.8vw, 5.2rem);
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.6vw, 3.7rem);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-house {
  min-height: clamp(40rem, 82vh, 56rem);
  padding-block: clamp(4rem, 8vw, 7rem) 8rem;
  background:
    radial-gradient(circle at 16% 78%, rgba(203, 88, 25, 0.18), transparent 18rem),
    linear-gradient(90deg, transparent 0 68%, rgba(77, 48, 17, 0.09) 68% 68.4%, transparent 68.4%),
    linear-gradient(90deg, rgba(77, 48, 17, 0.07) 1px, transparent 1px) 0 0 / 4.6rem 100%,
    radial-gradient(circle at 82% 18%, rgba(224, 148, 40, 0.3), transparent 18rem),
    linear-gradient(#fff4df, #f2d0ac 72%, #c9935b);
}

.hero-house::before {
  inset: auto 0 7.8rem;
  height: 8rem;
  background:
    linear-gradient(90deg, rgba(77, 48, 17, 0.14) 1px, transparent 1px) 0 0 / 3.6rem 100%,
    linear-gradient(180deg, rgba(255, 248, 236, 0.04), rgba(77, 48, 17, 0.12));
  opacity: 0.8;
}

.hero-house::after {
  inset: auto 0 0;
  height: 8.5rem;
  background:
    linear-gradient(90deg, rgba(77, 48, 17, 0.18) 1px, transparent 1px) 0 0 / 4.8rem 100%,
    radial-gradient(circle at 18% 15%, rgba(229, 163, 43, 0.24), transparent 16rem),
    linear-gradient(#c9935b, #8e5b32);
  border-top: 5px solid rgba(77, 48, 17, 0.24);
}

.arrival-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(15rem, 0.34fr);
  align-items: center;
  min-height: clamp(31rem, 63vh, 43rem);
  gap: clamp(2rem, 6vw, 5rem);
}

.arrival-copy {
  position: relative;
  max-width: 48rem;
}

.arrival-lede {
  max-width: 32rem;
  margin-bottom: 1.55rem;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
}

.story-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-weight: 900;
}

.chaos-sign {
  position: relative;
  justify-self: end;
  width: min(100%, 17rem);
  margin: 0;
  transform: rotate(3deg);
  filter: drop-shadow(0.45rem 0.65rem 0 rgba(40, 107, 109, 0.2)) drop-shadow(0 1.2rem 1.6rem rgba(41, 35, 30, 0.18));
}

.chaos-sign::before {
  position: absolute;
  inset: -1.2rem auto auto -1.1rem;
  z-index: -1;
  width: 7rem;
  height: 2.2rem;
  background: rgba(255, 250, 241, 0.58);
  transform: rotate(-14deg);
  content: "";
}

.chaos-sign img {
  width: 100%;
  height: auto;
}

.gerald-world {
  padding-block: var(--section-space) clamp(5rem, 9vw, 8rem);
  color: var(--porch-wood);
  background:
    linear-gradient(90deg, rgba(77, 48, 17, 0.12) 1px, transparent 1px) 0 0 / 5.25rem 100%,
    repeating-linear-gradient(90deg, rgba(77, 48, 17, 0.035) 0 0.18rem, transparent 0.18rem 2.8rem),
    radial-gradient(circle at 82% 16%, rgba(255, 248, 215, 0.88), transparent 8rem),
    radial-gradient(circle at 72% 34%, rgba(229, 163, 43, 0.2), transparent 22rem),
    radial-gradient(circle at 5% 84%, rgba(226, 128, 86, 0.18), transparent 12rem),
    linear-gradient(180deg, rgba(255, 242, 216, 0.82), rgba(255, 242, 216, 0.96)),
    radial-gradient(circle at 18% 10%, rgba(229, 163, 43, 0.32), transparent 20rem),
    linear-gradient(#fff3d7, #e7b071 74%, #c9935b);
}

.gerald-world::before {
  inset: 0 0 auto;
  height: 8rem;
  background:
    repeating-linear-gradient(90deg, var(--porch-wood) 0 2.5rem, #6f4419 2.5rem 2.72rem);
  clip-path: polygon(0 0, 100% 0, 96% 58%, 90% 44%, 84% 58%, 78% 44%, 72% 58%, 66% 44%, 60% 58%, 54% 44%, 48% 58%, 42% 44%, 36% 58%, 30% 44%, 24% 58%, 18% 44%, 12% 58%, 6% 44%, 0 58%);
  opacity: 0.22;
  filter: drop-shadow(0 1rem 1rem rgba(77, 48, 17, 0.12));
}

.gerald-world::after {
  inset: auto 0 0;
  height: clamp(8rem, 15vw, 13rem);
  background:
    linear-gradient(90deg, rgba(255, 248, 236, 0.08) 1px, transparent 1px) 0 0 / 4.3rem 100%,
    linear-gradient(180deg, transparent, rgba(77, 48, 17, 0.18));
  opacity: 0.72;
}

.gerald-room {
  position: relative;
}

.porch-lantern {
  position: absolute;
  inset: clamp(0.5rem, 3vw, 2rem) 4% auto auto;
  width: clamp(3rem, 7vw, 5rem);
  height: clamp(6rem, 11vw, 8rem);
  opacity: 0.76;
  pointer-events: none;
}

.porch-lantern::before,
.porch-lantern::after {
  position: absolute;
  content: "";
}

.porch-lantern::before {
  inset: 0 18% auto;
  height: 68%;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 239, 161, 0.95), rgba(229, 163, 43, 0.45) 32%, transparent 56%),
    linear-gradient(90deg, transparent 44%, rgba(77, 48, 17, 0.55) 44% 56%, transparent 56%),
    linear-gradient(rgba(77, 48, 17, 0.76), rgba(77, 48, 17, 0.76)) 0 0 / 100% 0.28rem no-repeat,
    linear-gradient(rgba(77, 48, 17, 0.76), rgba(77, 48, 17, 0.76)) 0 100% / 100% 0.28rem no-repeat;
  border: 0.22rem solid rgba(77, 48, 17, 0.7);
  border-radius: 0.45rem;
  box-shadow:
    0 0 2.8rem rgba(229, 163, 43, 0.46),
    0 2rem 4rem rgba(229, 163, 43, 0.22);
}

.porch-lantern::after {
  inset: 67% 42% 0;
  background: rgba(77, 48, 17, 0.68);
}

.porch-signboard {
  position: absolute;
  inset: 8rem 0 auto auto;
  width: 9rem;
  padding: 0.75rem 0.8rem;
  color: var(--porch-wood);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, rgba(77, 48, 17, 0.12) 1px, transparent 1px) 0 0 / 1.25rem 100%,
    #d6a46a;
  border-block: 0.18rem solid rgba(77, 48, 17, 0.5);
  box-shadow: 0 0.55rem 1rem rgba(77, 48, 17, 0.18);
  transform: rotate(2deg);
  pointer-events: none;
}

.porch-signboard::before,
.porch-signboard::after {
  position: absolute;
  top: -1.6rem;
  width: 1px;
  height: 1.6rem;
  background: rgba(77, 48, 17, 0.5);
  content: "";
}

.porch-signboard::before {
  left: 24%;
}

.porch-signboard::after {
  right: 24%;
}

.porch-flowers {
  position: absolute;
  inset: auto auto 2.5rem -1rem;
  display: flex;
  gap: 0.45rem;
  pointer-events: none;
}

.porch-flowers span {
  width: clamp(1.8rem, 4vw, 3rem);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, var(--gold) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 18%, var(--coral) 0 17%, transparent 18%),
    radial-gradient(circle at 82% 50%, #d76518 0 17%, transparent 18%),
    radial-gradient(circle at 50% 82%, #2f7c7e 0 17%, transparent 18%),
    radial-gradient(circle at 18% 50%, #e28056 0 17%, transparent 18%);
  filter: drop-shadow(0 0.35rem 0.2rem rgba(77, 48, 17, 0.18));
}

.porch-flowers span:nth-child(2) {
  transform: translateY(0.9rem) scale(0.84);
}

.porch-flowers span:nth-child(3) {
  transform: translateY(0.2rem) scale(1.08);
}

.porch-intro {
  position: relative;
  max-width: 52rem;
  margin: 0 0 clamp(2rem, 5vw, 4rem) clamp(0rem, 7vw, 6rem);
}

.porch-intro::before {
  position: absolute;
  inset: -1rem auto auto -2.5rem;
  width: 5.5rem;
  height: 1rem;
  background: rgba(116, 97, 62, 0.25);
  transform: rotate(-7deg);
  content: "";
}

.porch-intro .eyebrow {
  color: var(--blue);
}

.porch-intro h2,
.published-book__copy h3 {
  color: var(--orange);
}

.porch-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(15rem, 0.32fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(0rem, 2vw, 1rem) 5rem;
}

.porch-stage::before {
  position: absolute;
  inset: 0 -2.5rem 2.4rem;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 16%, rgba(229, 163, 43, 0.28), transparent 12rem),
    linear-gradient(90deg, var(--grain) 1px, transparent 1px) 0 0 / 3.2rem 100%,
    repeating-linear-gradient(90deg, rgba(77, 48, 17, 0.08) 0 0.12rem, transparent 0.12rem 2.8rem),
    linear-gradient(135deg, rgba(255, 248, 236, 0.28), rgba(255, 248, 236, 0.04)),
    linear-gradient(180deg, rgba(142, 91, 50, 0.4), rgba(77, 48, 17, 0.1));
  clip-path: polygon(0 6%, 100% 0, 98% 94%, 2% 100%);
  box-shadow: inset 0 1rem 2.2rem rgba(255, 248, 236, 0.22), inset 0 -1.5rem 2.4rem rgba(77, 48, 17, 0.18);
  content: "";
}

.porch-stage::after {
  position: absolute;
  inset: auto -3rem 2.35rem;
  z-index: -1;
  height: 2rem;
  background:
    linear-gradient(90deg, rgba(255, 248, 236, 0.08) 1px, transparent 1px) 0 0 / 4rem 100%,
    linear-gradient(90deg, #4a2a10, #a06835 38%, #5b3515 76%, #3e220d);
  box-shadow: 0 1.2rem 1.7rem rgba(77, 48, 17, 0.28), inset 0 0.32rem 0 rgba(255, 248, 236, 0.12);
  content: "";
}

.published-book__cover::after,
.discovery-book::after {
  position: absolute;
  z-index: -1;
  height: 1rem;
  background: rgba(77, 48, 17, 0.28);
  filter: blur(0.45rem);
  content: "";
}

.published-book__cover::after {
  inset: auto 6% -0.65rem;
}

.published-book {
  display: grid;
  grid-template-columns: minmax(15rem, 0.47fr) minmax(0, 0.53fr);
  align-items: center;
  gap: clamp(1.25rem, 3.2vw, 3rem);
}

.published-book__cover {
  position: relative;
  margin: 0;
  transform: rotate(-2.6deg);
}

.cover-explorer {
  position: relative;
  width: min(100%, 25rem);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 35%;
  cursor: pointer;
  outline-offset: 0.6rem;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 180ms ease, filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.cover-explorer::before,
.cover-explorer::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.cover-explorer::before {
  background:
    linear-gradient(90deg, rgba(41, 35, 30, 0.22), transparent 5%, transparent 92%, rgba(255, 248, 236, 0.16)),
    linear-gradient(110deg, transparent 0 54%, rgba(255, 248, 236, 0.2) 55%, transparent 63%);
  opacity: 0.36;
  mix-blend-mode: multiply;
}

.cover-explorer::after {
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.34), transparent 13rem),
    linear-gradient(115deg, transparent 12%, rgba(255, 248, 236, 0.18) 43%, transparent 58%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

.cover-explorer:hover::after,
.cover-explorer:focus-visible::after,
.cover-explorer.is-touching::after {
  opacity: 0.78;
}

.published-book__cover img {
  position: relative;
  z-index: 1;
  width: min(100%, 25rem);
  height: auto;
  box-shadow:
    0.65rem 0.85rem 0 rgba(7, 89, 182, 0.18),
    0 1.4rem 2.8rem rgba(77, 48, 17, 0.34),
    -0.28rem 0 0 rgba(41, 35, 30, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.published-book__cover:hover img,
.published-book__cover:focus-within img,
.published-book.is-lit .published-book__cover img {
  transform: translateY(-0.35rem) rotate(1deg);
  box-shadow: 0.75rem 0.95rem 0 rgba(7, 89, 182, 0.2), 0 1.7rem 3rem rgba(77, 48, 17, 0.34);
}

.cover-explorer:active img,
.cover-explorer.is-touching img {
  transform: translateY(-0.18rem) scale(0.992);
}

.published-book__copy {
  max-width: 31rem;
}

.published-book__copy h3 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.book-note {
  color: var(--teal);
}

.purchase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}

.purchase-links a {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.82rem;
  color: var(--paper);
  font-weight: 900;
  text-decoration: none;
  background:
    linear-gradient(180deg, #0d67c8, var(--blue));
  box-shadow: 0.22rem 0.22rem 0 var(--gold), 0 0.7rem 1.2rem rgba(7, 89, 182, 0.16);
  transition: transform 160ms ease;
}

.purchase-links a:hover,
.purchase-links a:focus-visible {
  transform: translateY(-2px);
}

.gerald-discoveries {
  display: grid;
  align-items: end;
  gap: 1.5rem;
}

.discovery-book {
  position: relative;
  max-width: 13.25rem;
  margin: 0;
}

.discovery-book::after {
  inset: auto 10% -0.55rem;
}

.discovery-book--porch {
  justify-self: start;
  transform: rotate(3.5deg);
}

.discovery-book--farm {
  justify-self: end;
  transform: rotate(-4deg);
}

.discovery-book summary {
  display: grid;
  gap: 0.55rem;
  cursor: pointer;
  list-style: none;
}

.discovery-book summary::-webkit-details-marker {
  display: none;
}

.discovery-book img {
  width: 100%;
  height: auto;
  box-shadow: 0 0.9rem 1.6rem rgba(77, 48, 17, 0.26), -0.18rem 0 0 rgba(41, 35, 30, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.discovery-book summary:hover img,
.discovery-book summary:focus-visible img,
.discovery-book[open] img {
  transform: translateY(-0.45rem) rotate(-1deg);
  box-shadow: 0 1.2rem 1.9rem rgba(77, 48, 17, 0.28);
}

.discovery-book span {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
}

.discovery-book p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
}

.dusk-passage {
  height: clamp(6rem, 11vw, 10rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 26%, rgba(229, 163, 43, 0.34), transparent 12rem),
    radial-gradient(circle at 84% 34%, rgba(244, 241, 234, 0.2), transparent 11rem),
    linear-gradient(90deg, rgba(255, 248, 236, 0.12) 1px, transparent 1px) 0 0 / 4rem 100%,
    linear-gradient(180deg, #e7b071 0%, #9d6f68 35%, #5d4b68 62%, #08151c 100%);
}

.dusk-passage::before {
  inset: auto 0 0;
  height: 2rem;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.16) 1px, transparent 1px) 0 0 / 3rem 100%;
}

.dusk-sun,
.dusk-moon {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
}

.dusk-sun {
  inset: 1.4rem auto auto 9%;
  width: clamp(2.6rem, 6vw, 4.5rem);
  background: rgba(229, 163, 43, 0.56);
  box-shadow: 0 0 2.4rem rgba(229, 163, 43, 0.38);
}

.dusk-moon {
  inset: 1.2rem 9% auto auto;
  width: clamp(3.5rem, 8vw, 6rem);
  background: rgba(244, 241, 234, 0.82);
  box-shadow: 0 0 3rem rgba(244, 241, 234, 0.44);
}

.echoes-world {
  padding-block: var(--section-space);
  color: var(--moon);
  background:
    linear-gradient(90deg, rgba(244, 241, 234, 0.035) 1px, transparent 1px) 0 0 / 5rem 100%,
    radial-gradient(circle at 50% 6%, rgba(244, 241, 234, 0.06), transparent 23rem),
    radial-gradient(circle at 18% 18%, rgba(146, 43, 214, 0.24), transparent 20rem),
    radial-gradient(circle at 86% 22%, rgba(24, 190, 209, 0.17), transparent 22rem),
    linear-gradient(135deg, var(--night), #08151c 46%, var(--night-blue));
}

.echoes-world::before {
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(24, 190, 209, 0.08), transparent 18rem),
    radial-gradient(circle at 42% 78%, rgba(146, 43, 214, 0.08), transparent 16rem);
}

.echoes-room {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(13rem, 0.36fr) minmax(14rem, 0.42fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: 36rem;
}

.echoes-window {
  position: absolute;
  inset: 0 2rem auto auto;
  width: min(20vw, 12rem);
  aspect-ratio: 1.2;
  background:
    linear-gradient(90deg, transparent 48%, rgba(244, 241, 234, 0.28) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(244, 241, 234, 0.28) 48% 52%, transparent 52%),
    radial-gradient(circle at 70% 30%, rgba(244, 241, 234, 0.54), transparent 1.4rem),
    linear-gradient(145deg, rgba(24, 190, 209, 0.18), rgba(146, 43, 214, 0.16));
  border: 3px solid rgba(244, 241, 234, 0.18);
  opacity: 0.68;
  box-shadow: 0 0 3rem rgba(244, 241, 234, 0.06), inset 0 0 2rem rgba(24, 190, 209, 0.08);
}

.echoes-lamp {
  position: absolute;
  inset: auto auto 4rem 4%;
  width: 8rem;
  height: 9rem;
  opacity: 0.45;
}

.echoes-lamp::before,
.echoes-lamp::after {
  position: absolute;
  content: "";
}

.echoes-lamp::before {
  inset: 0 1.7rem auto;
  height: 2.2rem;
  background: var(--echoes-amber);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 1.8rem rgba(196, 122, 36, 0.5));
}

.echoes-lamp::after {
  inset: 2.2rem 3.75rem 0;
  background: rgba(244, 241, 234, 0.3);
  border-radius: 999px;
}

.echoes-intro {
  max-width: 44rem;
}

.echoes-intro .eyebrow,
.book-note--echoes {
  color: var(--echoes-cyan);
}

.echoes-intro h2,
.echoes-note h3 {
  color: var(--moon);
  text-shadow: 0 0 1.5rem rgba(24, 190, 209, 0.18);
}

.echoes-book {
  justify-self: center;
  margin: 0;
  transform: rotate(-2deg);
}

.echoes-book img {
  width: min(100%, 19rem);
  height: auto;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(244, 241, 234, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.echoes-book:hover img,
.echoes-book:focus-within img,
.echoes-world.is-visible .echoes-book img {
  transform: translateY(-0.22rem);
}

.echoes-note {
  max-width: 25rem;
  align-self: end;
  padding-bottom: 3rem;
}

.beyond-world {
  min-height: clamp(28rem, 58vh, 38rem);
  padding-block: clamp(4.5rem, 9vw, 7rem);
  color: #f8efe1;
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 122, 36, 0.24), transparent 18rem),
    radial-gradient(circle at 82% 76%, rgba(229, 163, 43, 0.2), transparent 16rem),
    linear-gradient(90deg, rgba(248, 239, 225, 0.05) 1px, transparent 1px) 0 0 / 4.5rem 100%,
    linear-gradient(180deg, #08151c 0%, #15120f 42%, #6d3f1e 100%);
  box-shadow: inset 0 1.4rem 2rem rgba(0, 0, 0, 0.22);
}

.beyond-world::before {
  inset: 0 0 auto;
  height: 7rem;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.08), transparent),
    repeating-linear-gradient(90deg, transparent 0 3.6rem, rgba(244, 241, 234, 0.08) 3.6rem 3.72rem);
}

.beyond-world::after {
  inset: auto 0 0;
  height: 8rem;
  background:
    radial-gradient(circle at 20% 55%, rgba(229, 163, 43, 0.2), transparent 16rem),
    linear-gradient(180deg, transparent, rgba(255, 248, 236, 0.2));
}

.beyond-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(15rem, 0.38fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.beyond-copy {
  position: relative;
  max-width: 43rem;
}

.beyond-copy::before {
  position: absolute;
  inset: -1.4rem auto auto -2.2rem;
  width: 7rem;
  height: 0.75rem;
  background: rgba(203, 88, 25, 0.72);
  box-shadow: 8rem 1.3rem 0 rgba(229, 163, 43, 0.26);
  transform: rotate(-4deg);
  content: "";
}

.beyond-copy .eyebrow {
  color: #f36f35;
}

.beyond-copy h2 {
  max-width: 9ch;
  color: #fff8ec;
  font-size: clamp(3rem, 8vw, 7rem);
  text-shadow:
    0.045em 0.045em 0 rgba(203, 88, 25, 0.82),
    0 0.18em 0.5em rgba(0, 0, 0, 0.32);
}

.beyond-copy p:not(.eyebrow) {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

.morethanmetal-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #ffe0a0;
  font-weight: 900;
}

.morethanmetal-link:hover,
.morethanmetal-link:focus-visible {
  color: #ffffff;
}

.metal-mark {
  position: relative;
  justify-self: end;
  display: grid;
  width: min(100%, 20rem);
  aspect-ratio: 1.08;
  place-items: center;
  padding: 2rem;
  color: #fff8ec;
  text-align: center;
  text-transform: uppercase;
  background:
    radial-gradient(circle, rgba(248, 239, 225, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(203, 88, 25, 0.55), rgba(41, 35, 30, 0.38));
  border: 0.22rem solid rgba(248, 239, 225, 0.2);
  box-shadow:
    0.8rem 1rem 0 rgba(203, 88, 25, 0.24),
    0 1.8rem 3.6rem rgba(0, 0, 0, 0.34),
    inset 0 0 0 0.5rem rgba(0, 0, 0, 0.18);
  transform: rotate(2deg);
}

.metal-mark::before,
.metal-mark::after {
  position: absolute;
  content: "";
}

.metal-mark::before {
  inset: 1rem;
  border: 1px solid rgba(248, 239, 225, 0.22);
}

.metal-mark::after {
  inset: auto 14% -0.9rem;
  height: 1rem;
  background: rgba(0, 0, 0, 0.32);
  filter: blur(0.5rem);
}

.metal-mark span,
.metal-mark strong {
  position: relative;
  z-index: 1;
  display: block;
  font-weight: 900;
  line-height: 0.92;
}

.metal-mark span {
  color: #f36f35;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
}

.metal-mark strong {
  font-size: clamp(3.4rem, 7vw, 6rem);
  text-shadow: 0.05em 0.05em 0 rgba(0, 0, 0, 0.32);
}

.closing-page {
  min-height: clamp(31rem, 62vh, 42rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(224, 148, 40, 0.24), transparent 18rem),
    radial-gradient(circle at 12% 88%, rgba(40, 107, 109, 0.12), transparent 16rem),
    linear-gradient(90deg, rgba(77, 48, 17, 0.09) 1px, transparent 1px) 0 0 / 4.8rem 100%,
    linear-gradient(#fff8ec, #e6bd8d 72%, #7e4d24);
  box-shadow: inset 0 1rem 2rem rgba(77, 48, 17, 0.08);
}

.closing-layout {
  position: relative;
  max-width: min(100% - (var(--edge) * 2), 48rem);
  padding-block: clamp(1rem, 3vw, 2rem);
}

.closing-layout::after {
  position: absolute;
  inset: auto -10vw -5rem;
  z-index: -1;
  height: 5rem;
  background:
    linear-gradient(var(--porch-wood), var(--porch-wood)) 0 1rem / 100% 0.45rem no-repeat,
    repeating-linear-gradient(90deg, transparent 0 3.6rem, rgba(77, 48, 17, 0.28) 3.6rem 3.95rem);
  opacity: 0.42;
  content: "";
}

.closing-layout::before {
  position: absolute;
  inset: -1rem auto auto -2.5rem;
  width: 6rem;
  height: 1.1rem;
  background: rgba(116, 97, 62, 0.24);
  transform: rotate(-7deg);
  content: "";
}

.closing-layout h2 {
  color: var(--orange);
}

.email-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal);
}

@media (max-width: 1080px) {
  .arrival-grid,
  .porch-stage,
  .published-book,
  .echoes-room,
  .beyond-layout {
    grid-template-columns: 1fr;
  }

  .chaos-sign {
    justify-self: start;
    width: min(100%, 13rem);
  }

  .porch-stage {
    padding-bottom: 3rem;
  }

  .gerald-discoveries {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .discovery-book {
    width: min(48%, 13rem);
  }

  .echoes-note {
    align-self: auto;
    padding-bottom: 0;
  }

  .metal-mark {
    justify-self: start;
    width: min(100%, 15rem);
  }

  .porch-signboard {
    display: none;
  }

  .porch-stage::before {
    inset-inline: -1rem;
  }
}

@media (max-width: 900px) {
  .js-enabled .nav-toggle {
    display: grid;
    place-items: center;
  }

  .js-enabled .primary-nav {
    position: fixed;
    inset: 4.7rem var(--edge) auto;
    display: grid;
    gap: 0;
    padding: 0.85rem 1rem;
    background: var(--paper);
    border: 1px solid rgba(41, 35, 30, 0.18);
    box-shadow: 0 1rem 2rem rgba(41, 35, 30, 0.12);
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .js-enabled body.nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    padding-block: 0.6rem;
  }

  .echoes-window,
  .echoes-lamp,
  .porch-lantern {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --edge: 0.75rem;
  }

  .brand-mark__seal {
    width: 2.35rem;
  }

  .brand-mark__text strong {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.65rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  h3 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

  .hero-house,
  .gerald-world,
  .echoes-world,
  .beyond-world,
  .closing-page {
    min-height: auto;
    padding-block: clamp(3.25rem, 13vw, 4.75rem);
  }

  .hero-house::after,
  .hero-house::before,
  .chaos-sign::before,
  .world-map::before,
  .closing-layout::before,
  .closing-layout::after,
  .beyond-copy::before,
  .porch-flowers {
    display: none;
  }

  .arrival-grid,
  .porch-stage,
  .echoes-room {
    min-height: auto;
  }

  .story-jump,
  .purchase-links,
  .gerald-discoveries {
    flex-direction: column;
    align-items: flex-start;
  }

  .published-book__cover,
  .discovery-book,
  .echoes-book {
    transform: none;
  }

  .published-book__cover img {
    width: min(100%, 20rem);
  }

  .cover-explorer {
    width: min(100%, 20rem);
  }

  .discovery-book {
    width: min(100%, 13rem);
  }

  .echoes-book {
    justify-self: start;
  }

  .echoes-book img {
    width: min(100%, 17rem);
  }

  .metal-mark {
    width: min(100%, 12rem);
    padding: 1.25rem;
    transform: none;
  }

  .purchase-links a {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .cover-explorer,
  .published-book__cover img,
  .discovery-book img,
  .echoes-book img {
    transition: none;
  }

  .cover-explorer {
    transform: none !important;
  }

  .cover-explorer:active img,
  .cover-explorer.is-touching img,
  .published-book__cover:hover img,
  .published-book__cover:focus-within img,
  .published-book.is-lit .published-book__cover img,
  .discovery-book summary:hover img,
  .discovery-book summary:focus-visible img,
  .discovery-book[open] img,
  .echoes-book:hover img,
  .echoes-book:focus-within img,
  .echoes-world.is-visible .echoes-book img {
    transform: none;
  }
}
