:root {
  --ink: #14110f;
  --cream: #d9eef6;
  --paper: #f7fcfd;
  --line: rgba(29, 67, 78, .18);
  --muted: #52666d;
  --moss: #283e30;
  --rust: #aa6236;
  --sky: #a8d9ea;
  --blue: #70c7e4;
  --display-font: "Lora", Georgia, serif;
  --body-font: "Nunito Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='8' cy='7' r='3.2' fill='%2314110f'/%3E%3Ccircle cx='15' cy='5' r='3.2' fill='%2314110f'/%3E%3Ccircle cx='21' cy='9' r='3.2' fill='%2314110f'/%3E%3Cpath d='M6.5 20.2c.7-5 4-8 7.7-8 4.1 0 7 3.3 7.7 7.9.3 2-1.1 3.8-3.1 3.8-1.7 0-2.7-.9-4.5-.9s-2.9.9-4.6.9c-2 0-3.5-1.7-3.2-3.7Z' fill='%2314110f'/%3E%3C/svg%3E") 8 8, auto;
}
body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 18px);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body-font);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a,
button,
.nav-dropdown {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='8' cy='7' r='3.2' fill='%23aa6236'/%3E%3Ccircle cx='15' cy='5' r='3.2' fill='%23aa6236'/%3E%3Ccircle cx='21' cy='9' r='3.2' fill='%23aa6236'/%3E%3Cpath d='M6.5 20.2c.7-5 4-8 7.7-8 4.1 0 7 3.3 7.7 7.9.3 2-1.1 3.8-3.1 3.8-1.7 0-2.7-.9-4.5-.9s-2.9.9-4.6.9c-2 0-3.5-1.7-3.2-3.7Z' fill='%23aa6236'/%3E%3C/svg%3E") 8 8, pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .36);
}
.site-header.cover-header {
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255, 255, 255, .85);
}
.site-header.cover-header:not(.dark) .nav {
  border-color: rgba(29, 67, 78, .18);
  background: rgba(247, 252, 253, .78);
  box-shadow: 0 12px 32px rgba(29, 67, 78, .12);
}
.site-header.dark {
  position: sticky;
  color: var(--ink);
  background: rgba(247, 252, 253, .92);
  border-bottom: 1px solid var(--line);
  mix-blend-mode: normal;
  backdrop-filter: blur(12px);
}
.site-header.dark .tabs a.active,
.site-header.dark .tabs a:hover {
  background: rgba(20, 17, 15, .04);
}
.brand,
.nav a,
.menu-button {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.text-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: inherit;
}
.text-brand img {
  width: 2.85rem;
  height: 2.85rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .22));
}
.nav {
  display: flex;
  gap: .85rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: min(1120px, calc(100vw - 250px));
}
.site-header:not(.dark) .nav {
  padding: .32rem .45rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(10, 9, 8, .32);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}
.nav-dropdown {
  position: relative;
}
.tabs a {
  padding: .5rem .22rem .38rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}
.tabs a:hover,
.tabs a.active {
  border-bottom-color: currentColor;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + .65rem);
  left: 50%;
  display: grid;
  min-width: 280px;
  padding: .7rem;
  background: rgba(247, 252, 253, .98);
  color: var(--ink);
  border: 1px solid rgba(29, 67, 78, .28);
  box-shadow: 0 22px 54px rgba(20, 17, 15, .22);
  transform: translateX(-50%) translateY(.35rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
}
.nav-dropdown > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .82;
}
.dropdown-menu a {
  padding: .68rem .75rem;
  border-bottom: 1px solid transparent;
  white-space: normal;
}
.dropdown-menu a:hover {
  background: rgba(20, 17, 15, .05);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
}

.hero {
  min-height: 92svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.cover-hero {
  min-height: 100svh;
  color: var(--ink);
  background: #d7edf5;
}
.cover-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/book-cover-hero.jpg") center / cover no-repeat;
  filter: blur(18px) saturate(1.06);
  opacity: 0;
  transform: scale(1.08);
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(.95) contrast(1.04);
  transform: scale(1.02);
}
.cover-hero > .hero-cover-image {
  object-fit: cover;
  object-position: center 43%;
  padding: 0;
  filter: none;
  transform: none;
  background: transparent;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, .78), rgba(10, 9, 8, .24) 58%, rgba(10, 9, 8, .08)),
    linear-gradient(0deg, rgba(10, 9, 8, .68), transparent 48%);
}
.cover-hero::after {
  background:
    linear-gradient(180deg, rgba(247, 252, 253, .04) 0%, rgba(247, 252, 253, 0) 42%, rgba(247, 252, 253, .82) 100%),
    linear-gradient(90deg, rgba(247, 252, 253, .35), rgba(247, 252, 253, 0) 18%, rgba(247, 252, 253, 0) 82%, rgba(247, 252, 253, .35));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1320px);
  padding: 7rem clamp(1rem, 5vw, 4rem) clamp(2rem, 6vw, 4.5rem);
}
.cover-hero-content {
  width: 100%;
  padding: 0 clamp(1rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 2vw, 1.5rem);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: .7rem clamp(.85rem, 2vw, 1.35rem);
  border: 1px solid rgba(29, 67, 78, .16);
  border-radius: 999px;
  background: rgba(247, 252, 253, .86);
  box-shadow: 0 18px 42px rgba(29, 67, 78, .16);
  backdrop-filter: blur(10px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5.5rem);
  align-items: center;
}
.hero-logo {
  width: min(100%, 980px);
  max-height: 46svh;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .32));
}
.hero-book-cover {
  width: min(100%, 620px);
  max-height: 74svh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow:
    0 32px 76px rgba(0, 0, 0, .46),
    0 0 0 1px rgba(255, 255, 255, .24);
  transform: rotate(-.6deg);
}
.series-line {
  margin: .45rem 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, .84);
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.cover-hero .series-line {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.75vw, 1.35rem);
  white-space: nowrap;
}
.cover-hero .buy-book-button {
  margin-top: 0;
}
.hero-book-cta {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.3rem);
  margin-top: clamp(1rem, 2vw, 1.6rem);
}
.hero-book-cta .buy-book-button {
  margin-top: 0;
}
.hero-book-cta img {
  width: clamp(4.8rem, 9vw, 7.4rem);
  border-radius: 6px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .3),
    0 0 0 1px rgba(255, 255, 255, .28);
  transform: rotate(1.5deg);
}
.buy-book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(3.35rem, 5vw, 4.5rem);
  margin-top: clamp(1rem, 2vw, 1.6rem);
  padding: 0 clamp(1.35rem, 3.2vw, 2.45rem);
  border: 2px solid #75c8df;
  border-radius: 999px;
  background: #f7cf73;
  color: var(--ink);
  font: 800 clamp(.88rem, 1.55vw, 1.18rem) var(--body-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: default;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, .22),
    0 0 0 5px rgba(255, 255, 255, .18),
    inset 0 -3px 0 rgba(123, 82, 28, .18);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.buy-book-button:hover {
  background: #ffd982;
  border-color: #93d7e9;
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .24),
    0 0 0 5px rgba(255, 255, 255, .22),
    inset 0 -3px 0 rgba(123, 82, 28, .16);
}
.eyebrow,
.label {
  display: block;
  margin-bottom: .9rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dark-text { color: var(--rust); }
h1 {
  margin: 0;
  max-width: 980px;
  font-family: var(--display-font);
  font-size: clamp(4.2rem, 12vw, 12.5rem);
  line-height: .78;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.6rem;
}
.hero-bottom p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.02rem;
  line-height: 1.55;
}
.text-link {
  display: inline-block;
  color: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
  padding-bottom: .25rem;
}

.compass-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.7rem);
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 5vw, 5rem);
  background: var(--paper);
}
.compass-divider::before,
.compass-divider::after {
  content: "";
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 67, 78, .24));
}
.compass-divider::after {
  background: linear-gradient(270deg, transparent, rgba(29, 67, 78, .24));
}
.compass-divider img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  opacity: .72;
}

.page-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  padding: .75rem;
  background: var(--ink);
}
.photo-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.preview-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #222;
}
.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72) saturate(.9);
  transition: transform .45s ease, filter .45s ease;
}
.preview-card:hover img {
  transform: scale(1.04);
  filter: brightness(.88) saturate(1);
}
.preview-card span,
.preview-card strong {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 1;
}
.preview-card span {
  top: 1.2rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.preview-card strong {
  bottom: 1.2rem;
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: .9;
}
.photo-home .preview-card strong {
  font-size: clamp(1.85rem, 3vw, 3.4rem);
}

.page {
  min-height: 75svh;
}
.page-hero {
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}
.page-hero.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.page-hero h1,
.page-title h1,
.author-page h1,
.book-copy h1 {
  font-family: var(--display-font);
  font-size: clamp(2.35rem, 4.8vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
  text-transform: none;
}
.page-hero img {
  width: 100%;
  min-height: 620px;
  object-fit: cover;
}
.statement-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.statement-block p {
  margin: 0;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--paper);
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  line-height: .95;
}
.page-next {
  padding: 2rem clamp(1rem, 5vw, 5rem);
}

.book-page {
  background: var(--moss);
  color: #fff;
}
.book-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  min-height: 76svh;
}
.book-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}
.book-copy p {
  max-width: 480px;
  margin: 1rem 0 2rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
}
.book-photos {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: .7rem;
  padding: .7rem;
}
.book-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 620px;
}
.three-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .22);
}
.three-card-row div {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(0, 0, 0, .16);
}
.three-card-row span {
  color: rgba(255, 255, 255, .56);
  font-weight: 800;
}
.three-card-row strong {
  display: block;
  margin-top: .75rem;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: .9;
}

.dark-page {
  background: var(--ink);
  color: #fff;
}
.gallery-page {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
}
.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.gallery-head h1 {
  font-size: clamp(3rem, 8vw, 9rem);
}
.gallery-head p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  line-height: 1.5;
}
.masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: .7rem;
}
.tile {
  grid-column: span 3;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: #2c2723;
}
.tile.wide { grid-column: span 6; }
.tile.big {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 540px;
}
.tile.tall {
  grid-row: span 2;
  min-height: 540px;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.12) saturate(.9);
  transition: transform .5s ease, filter .5s ease;
}
.tile:hover img {
  transform: scale(1.04);
  filter: grayscale(0) saturate(1.04);
}

.photo-carousel-section {
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
}
.photo-carousel {
  position: relative;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid rgba(29, 67, 78, .2);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(29, 67, 78, .18);
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  background: var(--ink);
  scroll-snap-align: center;
}
.carousel-slide img {
  width: 100%;
  height: clamp(360px, 58vw, 660px);
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}
.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 5vw, 3.6rem);
  height: clamp(2.75rem, 5vw, 3.6rem);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(20, 17, 15, .62);
  color: #fff;
  font: 700 clamp(1.8rem, 3vw, 2.6rem) var(--display-font);
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.carousel-button:hover {
  background: rgba(170, 98, 54, .92);
}
.carousel-button.prev { left: clamp(.8rem, 2vw, 1.4rem); }
.carousel-button.next { right: clamp(.8rem, 2vw, 1.4rem); }
.photo-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  max-width: 1080px;
  margin: .8rem auto 0;
  background: transparent;
}
.photo-links a {
  position: relative;
  display: grid;
  gap: .45rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(29, 67, 78, .16);
  border-radius: 8px;
  background: rgba(247, 252, 253, .92);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(29, 67, 78, .1);
}
.photo-links a::after {
  content: "↗";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
}
.photo-links span {
  color: var(--rust);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.photo-links strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}
.photo-links a:hover {
  border-color: rgba(170, 98, 54, .28);
  background: #fff;
  transform: translateY(-2px);
}

.game-page {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 26rem),
    linear-gradient(180deg, rgba(168, 217, 234, .62), rgba(247, 252, 253, .96) 54%, rgba(217, 238, 246, .86));
}
.game-hero {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(5.5rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
}
.game-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .25rem;
}
.game-title h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--display-font);
  font-size: clamp(2.25rem, 5.6vw, 6.1rem);
  font-weight: 600;
  line-height: .95;
  text-transform: none;
}
.game-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
  gap: clamp(.9rem, 2vw, 1.25rem);
  align-items: stretch;
}
.game-canvas-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 1px solid rgba(29, 67, 78, .24);
  border-radius: 8px;
  background: #b9e4f1;
  box-shadow:
    0 28px 68px rgba(29, 67, 78, .2),
    inset 0 0 0 1px rgba(255, 255, 255, .45);
}
#buckleyGame {
  display: block;
  width: 100%;
  height: 100%;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .8rem;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(247, 252, 253, .78), rgba(247, 252, 253, .46)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 19rem);
  text-align: center;
  transition: opacity .18s ease, visibility .18s ease;
}
.game-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.game-overlay img {
  width: clamp(5.4rem, 13vw, 8rem);
  filter: drop-shadow(0 12px 20px rgba(29, 67, 78, .18));
}
.game-overlay strong {
  font-family: var(--display-font);
  font-size: clamp(2rem, 4.5vw, 4.7rem);
  font-weight: 600;
  line-height: .95;
}
.game-overlay span {
  max-width: 360px;
  color: var(--muted);
  font-weight: 800;
}
.game-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid rgba(29, 67, 78, .18);
  border-radius: 8px;
  background: rgba(247, 252, 253, .9);
  box-shadow: 0 18px 42px rgba(29, 67, 78, .12);
}
.game-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.game-score-grid div {
  min-height: 5.1rem;
  padding: .85rem;
  border: 1px solid rgba(29, 67, 78, .14);
  border-radius: 8px;
  background: #fff;
}
.game-score-grid span {
  display: block;
  color: var(--rust);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.game-score-grid strong {
  display: block;
  margin-top: .2rem;
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 1;
}
.game-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.game-button,
.touch-controls button {
  min-height: 2.9rem;
  border: 1px solid rgba(20, 17, 15, .16);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 900 .74rem var(--body-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(20, 17, 15, .14);
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}
.game-button:hover,
.touch-controls button:hover,
.touch-controls button:active {
  background: var(--rust);
  transform: translateY(-1px);
}
.game-button.secondary {
  background: #fff;
  color: var(--ink);
}
.game-button.secondary:hover {
  background: #f7cf73;
}
.touch-controls {
  display: grid;
  gap: .55rem;
  justify-items: center;
  padding-top: .35rem;
}
.touch-controls > button {
  width: min(100%, 6.2rem);
}
.touch-controls div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  width: 100%;
}
.touch-controls button {
  width: 100%;
  background: #275f6f;
}

.links-page,
.author-page {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}
.page-title {
  max-width: 1220px;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem) 2rem;
  margin-inline: auto;
  margin-bottom: 0;
}
.page-title.with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.page-title.with-image img {
  width: 100%;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
}
.home-started {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
  background: var(--paper);
  scroll-margin-top: 4.5rem;
}
.home-copy {
  max-width: 760px;
  order: 2;
}
.home-copy h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4.15vw, 4.75rem);
  font-weight: 500;
  line-height: 1.04;
}
.home-copy p {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.75;
}
.home-copy p:first-of-type {
  margin-top: 1.35rem;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2.6vw, 2.8rem);
  line-height: 1.2;
}
.home-image {
  order: 1;
}
.home-image img {
  width: 100%;
  min-height: clamp(480px, 72vw, 760px);
  object-fit: cover;
  object-position: center;
}
.social-preview-section {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.social-preview-copy h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2.4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
}
.social-preview-copy p {
  max-width: 430px;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.social-icon-links {
  display: flex;
  gap: .7rem;
  margin-top: 1.6rem;
}
.social-icon-links a {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.social-icon-links a:hover {
  background: var(--rust);
}
.social-icon-links svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}
.tiktok-embed-wrap {
  display: grid;
  justify-items: center;
  min-height: 520px;
  padding: 0;
  background: transparent;
  border: 0;
}
.tiktok-embed {
  width: min(100%, 640px) !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: 0 !important;
}
.exact-copy {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(3rem, 7vw, 6rem);
}
.exact-copy.two-col {
  columns: 2 360px;
  column-gap: clamp(2rem, 6vw, 5rem);
}
.exact-copy p {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  line-height: 1.7;
}
.exact-copy p:first-child {
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3vw, 3.4rem);
  line-height: 1.02;
}
.exact-copy a {
  overflow-wrap: anywhere;
}
.intro-copy p:first-child {
  font-family: var(--body-font);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  line-height: 1.7;
}
.product-page {
  background:
    linear-gradient(180deg, rgba(247, 252, 253, .96), rgba(217, 238, 246, .72) 42%, rgba(247, 252, 253, .98)),
    var(--cream);
}
.resource-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}
.favorite-hub,
.product-list {
  display: grid;
  gap: clamp(.9rem, 1.8vw, 1.15rem);
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
}
.favorite-hub-item,
.product-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.8rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(247, 252, 253, .99)),
    var(--paper);
  box-shadow: 0 12px 30px rgba(29, 67, 78, .09);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.favorite-hub-item::before,
.product-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--blue), #f7cf73 52%, var(--rust));
}
.favorite-hub-item:hover,
.product-item:hover {
  border-color: rgba(170, 98, 54, .28);
  box-shadow: 0 18px 42px rgba(29, 67, 78, .13);
  transform: translateY(-2px);
}
.product-item:nth-child(even) {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}
.favorite-hub-item:last-child,
.product-item:last-child {
  border-bottom: 1px solid var(--line);
}
.favorite-hub-item img,
.product-item img {
  width: 100%;
  height: clamp(160px, 20vw, 260px);
  object-fit: contain;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 14px 18px rgba(29, 67, 78, .16));
}
.product-item.product-scene img {
  height: clamp(190px, 22vw, 280px);
  object-fit: cover;
  border-radius: 8px;
  filter: none;
}
.page-title.with-image img.product-art {
  object-fit: contain;
  height: clamp(180px, 24vw, 260px);
  min-height: 0;
  max-height: 260px;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 18px 22px rgba(29, 67, 78, .18));
}
.favorite-hub-item h2,
.product-item h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2.25vw, 2.45rem);
  font-weight: 500;
  line-height: 1.06;
}
.favorite-hub-item p,
.product-item p,
.product-item li {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(.96rem, 1.25vw, 1.06rem);
  line-height: 1.62;
}
.favorite-hub-item p,
.product-item p {
  margin: 1rem 0 0;
}
.product-item ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}
.product-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: .66rem .95rem;
  border: 1px solid rgba(20, 17, 15, .12);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 24px rgba(20, 17, 15, .12);
}
.favorite-hub-item:hover h2,
.product-item a:hover {
  color: var(--rust);
}
.product-item a:hover {
  background: #fff;
  border-color: rgba(170, 98, 54, .36);
}
.resource-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.resource-card img {
  width: 150px;
  height: 104px;
  object-fit: cover;
}
.resource-card strong {
  display: block;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: .94;
}
.resource-card span {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.author-image {
  min-height: 640px;
  background: url("images/4o2a1828.jpg") center / cover no-repeat;
}
.author-page p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.65;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.socials a {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
  padding-bottom: .25rem;
}
.updates {
  display: grid;
  place-items: center;
  min-height: 44svh;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(3rem, 7vw, 6rem) 1rem;
  background: var(--paper);
  text-align: center;
}
.updates h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: .8;
  text-transform: uppercase;
}
.updates p {
  max-width: 420px;
  margin: 1rem auto 1.8rem;
  color: var(--muted);
  line-height: 1.55;
}
.updates-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  width: min(100%, 560px);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
}
.updates-form input,
.updates-form button {
  min-height: 3.4rem;
  border: 0;
  background: transparent;
  font: inherit;
}
.updates-form input { padding: 0 1rem; }
.updates-form button {
  padding: 0 1.2rem;
  border-left: 1px solid var(--line);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.updates-form button:hover {
  background: var(--ink);
  color: #fff;
}
.form-status {
  min-height: 1.4rem;
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.3rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a { text-decoration: none; }

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-book-cover {
    width: min(92vw, 520px);
    max-height: 58svh;
  }
  .page-preview-grid,
  .home-started,
  .social-preview-section,
  .game-panel,
  .favorite-hub-item,
  .product-item,
  .page-hero.split,
  .page-title.with-image,
  .statement-block,
  .book-layout,
  .author-layout,
  .exact-copy.two-col {
    grid-template-columns: 1fr;
    columns: 1;
  }
  .book-photos img,
  .home-image img,
  .page-hero img,
  .author-image { min-height: 460px; }
  .tile,
  .tile.wide,
  .tile.big { grid-column: span 6; }
  .preview-card { min-height: 300px; }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.65rem, 10.8vw, 3.45rem);
  }
  .menu-button { display: block; }
  .hero-actions {
    flex-wrap: wrap;
    border-radius: 8px;
  }
  .hero-book-cta {
    flex-wrap: wrap;
  }
  .product-item:nth-child(even) > img {
    order: 0;
  }
  .cover-hero .series-line {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
  .nav {
    position: fixed;
    inset: 3.8rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--ink);
    color: #fff;
    mix-blend-mode: normal;
    max-width: none;
  }
  .nav-dropdown {
    display: grid;
  }
  .dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: .35rem 0 0 .7rem;
    background: transparent;
    color: inherit;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown-menu a {
    padding: .5rem .2rem;
    color: rgba(255, 255, 255, .76);
    font-size: .64rem;
  }
  .site-header.dark .dropdown-menu a {
    color: rgba(20, 17, 15, .72);
  }
  .site-header.dark .nav {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .nav.visible { display: flex; }
  .book-photos {
    grid-template-columns: 1fr;
  }
  .gallery-head {
    display: block;
  }
  .gallery-head p { margin-top: 1rem; }
  .tile,
  .tile.wide,
  .tile.big,
  .tile.tall {
    grid-column: span 12;
    min-height: 320px;
  }
  .photo-links {
    grid-template-columns: 1fr;
  }
  .hero-bottom {
    display: block;
  }
  .hero-bottom .text-link { margin-top: 1.2rem; }
  .hero-logo {
    width: 100%;
    max-width: 680px;
    max-height: 34svh;
  }
  .resource-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .resource-card img {
    width: 92px;
    height: 76px;
  }
  .updates-form { grid-template-columns: 1fr; }
  .updates-form button {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
