:root {
  --ink: #143f46;
  --deep: #0b2f38;
  --night: #092b35;
  --gold: #d79a2b;
  --gold-pale: #efc978;
  --paper: #f7f0e3;
  --cream: #fffaf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: white;
  color: var(--deep);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  position: fixed;
  padding-block: 14px;
  background: rgba(6, 36, 44, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--gold-pale);
  font-size: 20px;
}

.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.site-header nav a {
  position: relative;
  padding-block: 8px;
  opacity: 0.86;
  transition: opacity 0.2s ease;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--gold-pale);
  content: "";
  transition: transform 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  opacity: 1;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: white;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  min-height: 820px;
  height: 100vh;
  max-height: 1060px;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  transform: scale(1.01);
  background: url("assets/images/farmer-dog-sturgeon-moon.png") center 48% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 30, 38, 0.94) 0%, rgba(5, 35, 42, 0.76) 42%, rgba(5, 30, 35, 0.18) 75%),
    linear-gradient(0deg, rgba(6, 30, 35, 0.65), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 90vw);
  margin-left: 8vw;
  padding-top: 44px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6.4vw, 91px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.author-line {
  margin: 22px 0 0;
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero-line {
  max-width: 560px;
  margin: 30px 0 0;
  color: #f2e4c7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.button-gold {
  background: var(--gold);
  color: #102f35;
}

.button-gold:hover,
.button-gold:focus-visible {
  background: var(--gold-pale);
}

.text-link {
  padding-block: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

.text-link span {
  margin-left: 10px;
  color: var(--gold-pale);
}

.hero-note {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 36px;
  color: white;
  text-align: right;
}

.hero-note p {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.note-rule {
  display: block;
  width: 105px;
  height: 1px;
  margin-left: auto;
  background: var(--gold);
}

.book-intro {
  padding: 120px 8vw 112px;
  background: var(--cream);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: 9vw;
  max-width: 1300px;
  margin: 0 auto;
}

.intro-grid h2,
.section-heading h2,
.preorder-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.intro-grid h2 em {
  color: var(--gold);
  font-weight: 400;
}

.intro-copy {
  color: #31565a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.82;
}

.intro-copy p:first-child {
  margin-top: 6px;
}

.book-intro blockquote {
  max-width: 910px;
  margin: 98px auto 0;
  padding: 38px 6vw;
  border-top: 1px solid #d8c8ab;
  border-bottom: 1px solid #d8c8ab;
  color: #1a555b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 40px);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.story-section {
  padding: 120px 5vw 132px;
  background: var(--paper);
}

.section-heading {
  display: flex;
  max-width: 1400px;
  align-items: end;
  justify-content: space-between;
  gap: 5vw;
  margin: 0 auto 64px;
}

.section-heading h2 {
  font-size: clamp(42px, 4.4vw, 64px);
}

.section-aside {
  max-width: 390px;
  margin: 0 0 4px;
  color: #527076;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.story-card {
  border: 1px solid #e2d5c0;
  background: var(--cream);
}

.story-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.68 / 1;
  background: var(--deep);
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-card:hover img {
  transform: scale(1.035);
}

.story-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  background: var(--gold);
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.story-body {
  padding: 32px 34px 38px;
}

.story-body h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.1vw, 35px);
  font-weight: 400;
  line-height: 1.2;
}

.story-body p {
  max-width: 600px;
  margin: 18px 0 0;
  color: #527076;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
}

.reader-section {
  padding: 0 5vw 120px;
  background: var(--paper);
}

.reader-card {
  max-width: 1400px;
  margin: auto;
  padding: 58px 5vw 64px;
  background: #e8dfcd;
  text-align: center;
}

.reader-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.reader-list span {
  padding: 14px 20px;
  border: 1px solid rgba(20, 63, 70, 0.24);
  background: rgba(255, 250, 240, 0.52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.preorder-section {
  position: relative;
  display: grid;
  min-height: 680px;
  place-items: center;
  overflow: hidden;
  padding: 100px 24px;
  background: var(--night);
  color: white;
  text-align: center;
}

.preorder-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.preorder-content h2 {
  font-size: clamp(46px, 5.5vw, 76px);
}

.preorder-content > p:not(.section-kicker):not(.microcopy) {
  max-width: 640px;
  margin: 28px auto 34px;
  color: #d7e1dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
}

.section-kicker.light {
  color: var(--gold-pale);
}

.microcopy {
  margin: 16px 0 0;
  color: #9fb4b1;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.preorder-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.75;
}

.moon {
  position: absolute;
  top: -145px;
  left: calc(50% - 155px);
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #fff8d3 0, #eac77c 56%, #b87b25 100%);
  box-shadow: 0 0 100px rgba(239, 201, 120, 0.25);
}

.reeds {
  position: absolute;
  bottom: -20px;
  width: 260px;
  height: 400px;
  opacity: 0.42;
  background: repeating-linear-gradient(78deg, transparent 0 19px, #7fa29d 20px 22px, transparent 23px 38px);
}

.reeds-left {
  left: -50px;
  transform: rotate(-7deg);
}

.reeds-right {
  right: -50px;
  transform: rotate(7deg) scaleX(-1);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 5vw;
  background: #06242c;
  color: #acc0bc;
  font-size: 12px;
  line-height: 1.6;
}

footer p {
  margin: 0;
}

.footer-title {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 860px) {
  .site-header {
    padding: 20px 22px;
  }

  .site-header.scrolled {
    padding-block: 12px;
  }

  .menu-button {
    display: block;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(6, 36, 44, 0.98);
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
  }

  .site-header nav.is-open {
    max-height: 230px;
    opacity: 1;
  }

  .site-header nav a {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-header nav a::after {
    display: none;
  }

  .hero {
    min-height: 760px;
    max-height: 900px;
  }

  .hero-image {
    background-image: url("assets/images/stories-beneath-sturgeon-moon.png");
    background-position: center 44%;
  }

  .hero-content {
    width: auto;
    margin: 0 24px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 30, 38, 0.92), rgba(5, 35, 42, 0.64)),
      linear-gradient(0deg, rgba(6, 30, 35, 0.7), transparent);
  }

  .hero-note {
    display: none;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .book-intro {
    padding: 88px 24px;
  }

  .book-intro blockquote {
    margin-top: 58px;
  }

  .section-heading {
    display: block;
  }

  .section-aside {
    margin-top: 26px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-section {
    padding: 88px 20px;
  }

  .reader-section {
    padding: 0 20px 88px;
  }

  footer {
    display: block;
  }

  footer > p {
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .story-body {
    padding: 26px 24px 30px;
  }

  .moon {
    top: -100px;
    left: calc(50% - 115px);
    width: 230px;
    height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
