:root {
  --forest: #173f35;
  --forest-dark: #0e2c25;
  --leaf: #2f6751;
  --gold: #c59a49;
  --gold-pale: #ead8ae;
  --cream: #fbf5e7;
  --paper: #fffaf0;
  --cacao: #6a2d24;
  --coffee: #773d26;
  --ink: #2d251d;
  --muted: #6d6255;
  --line: rgba(23, 63, 53, 0.18);
  --shadow: 0 24px 60px rgba(35, 27, 17, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgba(89, 62, 30, 0.08) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  z-index: 10;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--forest-dark);
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  padding: 0.7rem clamp(1.1rem, 4vw, 4.5rem);
  color: var(--forest-dark);
  background: rgba(251, 245, 231, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.brand img,
.footer-brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.brand strong {
  color: var(--forest);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.35rem;
  height: 2px;
  background: var(--gold);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-button > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 0.25rem 0;
  background: var(--forest);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(25rem, 1.12fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
  min-height: calc(100vh - 4.75rem);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 6vw, 7rem);
  background:
    linear-gradient(100deg, rgba(255, 250, 240, 0.97) 0 51%, rgba(232, 215, 173, 0.42) 51%),
    var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  left: -10rem;
  bottom: -12rem;
  border: 1px solid rgba(197, 154, 73, 0.35);
  transform: rotate(45deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--leaf);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  color: var(--forest-dark);
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  color: var(--forest-dark);
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 1rem;
  color: var(--forest-dark);
  font-size: clamp(2rem, 3vw, 3.3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 em,
h3 em {
  color: var(--cacao);
  font-weight: 400;
}

.hero-intro {
  max-width: 39rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: var(--paper);
  background: var(--forest);
  box-shadow: 0 12px 25px rgba(23, 63, 53, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--forest-dark);
}

.button-secondary {
  color: var(--forest-dark);
  border-color: var(--forest);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--paper);
  background: var(--forest);
}

.text-link {
  color: var(--forest);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.87rem;
  font-weight: 800;
  text-underline-offset: 0.3rem;
}

.signature-line {
  margin: 2.25rem 0 0;
  color: var(--cacao);
  font-size: 0.95rem;
  font-style: italic;
}

.book-display {
  position: relative;
  min-height: 41rem;
}

.sun-disc {
  position: absolute;
  width: 33rem;
  height: 33rem;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: linear-gradient(145deg, #e6be69, #f7e8bc);
  box-shadow: inset 0 0 0 1px rgba(116, 74, 25, 0.12);
  transform: translate(-50%, -50%);
}

.cover {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 0.65rem solid var(--paper);
  border-radius: 0.2rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cover img {
  height: 100%;
}

.cover-back {
  width: min(48%, 18rem);
  aspect-ratio: 4 / 5;
  top: 2.3rem;
  right: 3%;
  transform: rotate(6deg);
}

.cover-front {
  width: min(55%, 20rem);
  aspect-ratio: 4 / 5;
  left: 5%;
  bottom: 2.2rem;
  transform: rotate(-5deg);
}

.leaf-note {
  position: absolute;
  right: 0;
  bottom: 2rem;
  padding: 0.55rem 1rem;
  color: var(--forest-dark);
  background: var(--gold-pale);
  font-size: 0.83rem;
  font-style: italic;
  transform: rotate(-2deg);
  box-shadow: 0 8px 20px rgba(53, 35, 14, 0.12);
}

.promise {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.25rem 2rem;
  color: var(--paper);
  background: var(--forest-dark);
  text-align: center;
}

.promise p {
  margin: 0;
}

.promise strong {
  color: var(--gold-pale);
  font-weight: 400;
  font-style: italic;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 6vw, 7rem);
}

.books-section {
  background: var(--paper);
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.section-heading p:last-child {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.book-grid {
  display: grid;
  gap: clamp(5rem, 11vw, 9rem);
  max-width: 78rem;
  margin: 0 auto;
}

.book-card {
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.book-card-reverse .book-art {
  grid-column: 2;
  grid-row: 1;
}

.book-card-reverse .book-details {
  grid-column: 1;
  grid-row: 1;
}

.book-art {
  position: relative;
  max-width: 26rem;
  justify-self: center;
}

.book-art::before {
  content: "";
  position: absolute;
  inset: 8% -8% -5% 10%;
  z-index: -1;
  background: var(--gold-pale);
  transform: rotate(3deg);
}

.book-art.coffee::before {
  background: #d8c3a0;
  transform: rotate(-3deg);
}

.book-art.banana::before {
  background: #f3dfa0;
  transform: rotate(2deg);
}

.book-cover-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.book-cover-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.pepita-cover-source {
  width: 200%;
  max-width: none;
  transform: translateX(-50%);
}

.book-number {
  position: absolute;
  right: -1.2rem;
  bottom: 1.5rem;
  padding: 0.55rem 0.85rem;
  color: var(--paper);
  background: var(--cacao);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-details {
  max-width: 35rem;
}

.book-details > p:not(.book-kicker) {
  margin-bottom: 1.7rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.book-kicker {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.coming-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  color: var(--paper);
  background: var(--forest);
}

.coming-next h2 {
  color: var(--paper);
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.coming-next h2 em {
  color: var(--gold-pale);
}

.coming-next .eyebrow {
  color: var(--gold-pale);
}

.coming-next p:last-child {
  max-width: 43rem;
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
}

.coming-mark {
  color: transparent;
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(234, 216, 174, 0.45);
}

.coming-label {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(234, 216, 174, 0.5);
  color: var(--gold-pale);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  background:
    linear-gradient(90deg, rgba(234, 216, 174, 0.46), transparent 45%),
    var(--cream);
}

.about-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 30rem);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(197, 154, 73, 0.45);
  border-radius: 50%;
}

.about-emblem::before,
.about-emblem::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(23, 63, 53, 0.2);
  border-radius: 50%;
}

.about-emblem::before {
  inset: 9%;
}

.about-emblem::after {
  inset: 21%;
}

.about-emblem img {
  width: 28%;
}

.about-emblem span {
  position: absolute;
  color: var(--forest);
  font-size: 0.88rem;
  font-style: italic;
}

.about-emblem span:nth-of-type(1) {
  top: 10%;
}

.about-emblem span:nth-of-type(2) {
  right: 5%;
  bottom: 23%;
}

.about-emblem span:nth-of-type(3) {
  left: 5%;
  bottom: 23%;
}

.about-copy {
  max-width: 40rem;
}

.about-copy .lead {
  color: var(--forest);
  font-size: 1.3rem;
}

.about-copy > p:not(.eyebrow):not(.lead) {
  color: var(--muted);
}

blockquote {
  margin: 2rem 0 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold);
  color: var(--cacao);
  font-size: 1.3rem;
  font-style: italic;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.2rem, 7vw, 8rem);
  color: var(--paper);
  background: var(--forest-dark);
}

.contact-copy h2 {
  max-width: 14ch;
  color: var(--paper);
}

.contact-copy > p:last-child {
  max-width: 42rem;
  color: rgba(255, 250, 240, 0.72);
}

.contact-copy .eyebrow {
  color: var(--gold-pale);
}

.contact-card {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(234, 216, 174, 0.4);
  background: rgba(255, 250, 240, 0.06);
}

.contact-card p {
  margin-bottom: 0.7rem;
  color: var(--gold-pale);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card a {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--paper);
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  overflow-wrap: anywhere;
  text-underline-offset: 0.35rem;
}

.contact-card .facebook-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(234, 216, 174, 0.55);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.contact-card .facebook-link:hover,
.contact-card .facebook-link:focus-visible {
  border-color: var(--gold-pale);
  color: var(--forest-dark);
  background: var(--gold-pale);
}

.facebook-link svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.contact-card span {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  color: rgba(255, 250, 240, 0.6);
  white-space: nowrap;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1.2rem, 6vw, 7rem);
  color: var(--muted);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(1.3rem);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    background: var(--cream);
  }

  .hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .book-display {
    width: min(100%, 42rem);
    margin: 0 auto;
  }

  .book-card,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .book-card-reverse .book-art,
  .book-card-reverse .book-details {
    grid-column: auto;
    grid-row: auto;
  }

  .book-card-reverse .book-art {
    order: 0;
  }

  .book-card-reverse .book-details {
    order: 1;
  }

  .book-details {
    text-align: center;
    margin: 0 auto;
  }

  .coming-next {
    grid-template-columns: auto 1fr;
  }

  .coming-label {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.2rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .book-display {
    min-height: 28rem;
  }

  .sun-disc {
    width: 24rem;
    height: 24rem;
  }

  .cover-back {
    width: 46%;
    top: 1rem;
    right: 2%;
  }

  .cover-front {
    width: 54%;
    left: 4%;
    bottom: 1rem;
  }

  .leaf-note {
    right: 1rem;
    bottom: 0;
  }

  .book-card {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .book-art {
    width: min(85%, 22rem);
  }

  .coming-next {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .coming-mark {
    font-size: 6rem;
  }

  .coming-label {
    grid-column: auto;
    justify-self: center;
  }

  .about-emblem {
    width: min(90%, 25rem);
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: 0.72rem;
  }

  .book-display {
    min-height: 24rem;
  }

  .leaf-note {
    font-size: 0.72rem;
  }
}
