:root {
  --ink: #19332f;
  --ink-soft: #526560;
  --cream: #f8f3e9;
  --paper: #fffdf8;
  --orange: #ed7651;
  --orange-light: #f4a06e;
  --orange-text: #9b3f29;
  --mint: #acd6c1;
  --gold: #efc966;
  --line: rgba(25, 51, 47, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::selection,
body *::selection {
  color: var(--ink);
  background: var(--gold);
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--cream);
}

body::-webkit-scrollbar-thumb {
  border: 3px solid var(--cream);
  border-radius: 999px;
  background: var(--ink-soft);
}

a {
  color: inherit;
}

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 25%, rgba(239, 201, 102, 0.22), transparent 20rem),
    var(--cream);
}

.hero::after {
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(237, 118, 81, 0.25);
  border-radius: 50%;
  content: "";
}

.hero__inner {
  position: relative;
  z-index: 2;
  min-height: 680px;
}

.site-header {
  display: flex;
  align-items: center;
  height: 108px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark span {
  color: var(--orange);
}

.hero__content {
  width: min(760px, 78%);
  padding-top: 78px;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 800px;
  font-size: clamp(4rem, 7.8vw, 6rem);
}

h1 em {
  position: relative;
  color: var(--orange-text);
  font-style: normal;
}

h1 em::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 4px;
  height: 9px;
  border-top: 3px solid var(--orange-light);
  border-radius: 50%;
  transform: rotate(-2deg);
  content: "";
}

.hero__intro {
  max-width: 650px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

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

.grid {
  position: absolute;
  display: block;
  width: 156px;
  height: 156px;
  opacity: 0.6;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
}

.grid--one {
  top: 172px;
  right: 11%;
  transform: rotate(5deg);
}

.grid--one::after {
  position: absolute;
  top: 52px;
  left: 52px;
  width: 52px;
  height: 52px;
  background: rgba(172, 214, 193, 0.7);
  content: "";
}

.grid--two {
  right: 29%;
  bottom: -79px;
  opacity: 0.35;
  transform: rotate(-8deg);
}

.route {
  position: absolute;
  display: block;
  border: 2px dashed rgba(25, 51, 47, 0.17);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
}

.route--one {
  top: 94px;
  right: -35px;
  width: 315px;
  height: 185px;
  transform: rotate(18deg);
}

.route--two {
  bottom: 55px;
  left: -80px;
  width: 235px;
  height: 145px;
  transform: rotate(145deg);
}

.discovery-mark {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  background: var(--gold);
  transform: rotate(45deg);
}

.discovery-mark--one {
  top: 355px;
  right: 7%;
}

.discovery-mark--two {
  bottom: 104px;
  left: 12%;
  width: 9px;
  height: 9px;
  background: var(--mint);
}

.hero__trail {
  position: absolute;
  right: 1%;
  bottom: 52px;
  display: flex;
  align-items: center;
  width: 280px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.trail__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 2px solid var(--orange);
  border-radius: 50%;
}

.trail__line {
  flex: 1;
  border-top: 1px dashed rgba(25, 51, 47, 0.35);
}

.trail__label {
  margin-inline: 10px;
  white-space: nowrap;
}

.trail__diamond {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.first-book {
  position: relative;
  overflow: hidden;
  padding: 138px 0 144px;
  background: var(--paper);
}

.first-book::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.first-book__inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(72px, 10vw, 145px);
  align-items: center;
}

.book-art {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
}

.book-art__field {
  position: absolute;
  width: min(100%, 430px);
  aspect-ratio: 0.82;
  background: var(--mint);
  transform: rotate(-4deg) translate(-14px, 5px);
  opacity: 0.42;
}

.book-art::before {
  position: absolute;
  top: 9%;
  right: 2%;
  width: 106px;
  height: 106px;
  border: 2px solid var(--gold);
  transform: rotate(12deg);
  content: "";
}

.book-art::after {
  position: absolute;
  bottom: 6%;
  left: 0;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(237, 118, 81, 0.13);
  content: "";
}

.book-cover {
  position: relative;
  z-index: 2;
  width: min(78%, 365px);
  margin: 0;
  border: 1px solid rgba(25, 51, 47, 0.22);
  background: var(--ink);
  box-shadow: 18px 20px 0 rgba(237, 118, 81, 0.16);
  transform: rotate(1.5deg);
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.book-art__marker {
  position: absolute;
  z-index: 3;
  right: 7%;
  bottom: 12%;
  width: 13px;
  height: 13px;
  background: var(--orange);
  transform: rotate(45deg);
}

.book-copy {
  max-width: 625px;
}

.book-copy__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  margin-bottom: 30px;
  color: var(--orange-text);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-origin {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.product-origin::before {
  width: 34px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
}

.status span {
  width: 8px;
  height: 8px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}

.book-copy h2 {
  font-size: clamp(3.2rem, 5.4vw, 5.2rem);
}

.book-copy h2 em {
  color: var(--orange-text);
  font-style: normal;
}

.book-copy__lead {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.72;
}

.book-copy__concept {
  margin: 28px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.24rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
}

.book-facts {
  display: flex;
  gap: clamp(34px, 5vw, 70px);
  margin: 38px 0 0;
  padding: 28px 0;
  border-block: 1px solid var(--line);
}

.book-facts div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}

.book-facts dt {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.book-facts dd {
  max-width: 9rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.3;
  text-transform: uppercase;
}

.about {
  padding: 130px 0 140px;
  background: var(--cream);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: center;
}

.about__visual {
  position: relative;
  display: grid;
  min-height: 410px;
  place-items: center;
}

.about__visual::before,
.about__visual::after {
  position: absolute;
  content: "";
}

.about__visual::before {
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(172, 214, 193, 0.52);
}

.about__visual::after {
  top: 18px;
  left: 5%;
  width: 58px;
  height: 58px;
  border: 2px solid var(--gold);
  transform: rotate(18deg);
}

.puzzle-card {
  position: relative;
  z-index: 1;
  width: 270px;
  height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 18px 20px 0 rgba(237, 118, 81, 0.14);
  transform: rotate(-4deg);
}

.puzzle-card__corner {
  color: var(--orange-text);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
}

.puzzle-card__maze {
  position: relative;
  height: 205px;
  margin-top: 18px;
  border: 1px solid rgba(25, 51, 47, 0.2);
  background-image:
    linear-gradient(rgba(25, 51, 47, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 51, 47, 0.11) 1px, transparent 1px);
  background-size: 34px 34px;
}

.maze__start,
.maze__finish {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.maze__start {
  bottom: 10px;
  left: 10px;
  background: var(--orange);
}

.maze__finish {
  top: 10px;
  right: 10px;
  border: 3px solid var(--gold);
}

.maze__path {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 188px;
  height: 160px;
  border-top: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  clip-path: polygon(0 76%, 58% 76%, 58% 38%, 23% 38%, 23% 0, 100% 0, 100% 100%, 0 100%);
}

.puzzle-card__key {
  position: absolute;
  right: 27px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--orange);
  border-radius: 50%;
}

.puzzle-card__key::after {
  position: absolute;
  top: 11px;
  left: 5px;
  width: 2px;
  height: 18px;
  background: var(--orange);
  content: "";
}

.about__copy {
  max-width: 600px;
}

.section-label {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label::before {
  width: 34px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.about h2 {
  font-size: clamp(3rem, 5.5vw, 5rem);
}

.about__copy > p:not(.section-label) {
  max-width: 570px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.about__copy .about__final {
  margin-top: 22px;
  color: var(--orange-text);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.site-footer {
  padding: 38px 0;
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
  font-size: 0.82rem;
}

.site-footer__inner {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer__name {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .first-book__inner {
    grid-template-columns: minmax(270px, 0.8fr) minmax(360px, 1.2fr);
    gap: 54px;
  }

  .book-art {
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 40px, 680px);
  }

  .hero,
  .hero__inner {
    min-height: 620px;
  }

  .site-header {
    height: 88px;
  }

  .hero__content {
    width: 100%;
    padding-top: 72px;
  }

  .grid--one {
    top: 105px;
    right: -70px;
    opacity: 0.35;
  }

  .hero__trail {
    right: 20px;
    bottom: 42px;
  }

  .first-book {
    padding: 100px 0 110px;
  }

  .first-book__inner,
  .about__inner {
    grid-template-columns: 1fr;
  }

  .first-book__inner {
    gap: 68px;
  }

  .book-copy {
    grid-row: 1;
  }

  .book-art {
    grid-row: 2;
    min-height: 620px;
  }

  .about {
    padding: 100px 0;
  }

  .about__inner {
    gap: 80px;
  }

  .about__visual {
    order: 2;
  }

  .about__copy {
    order: 1;
  }
}

@media (max-width: 520px) {
  .shell {
    width: calc(100% - 32px);
  }

  .hero,
  .hero__inner {
    min-height: 590px;
  }

  .wordmark {
    font-size: 1.5rem;
  }

  .hero__content {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(3.35rem, 16.5vw, 4.35rem);
  }

  .hero__intro {
    margin-top: 30px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .grid--one {
    top: 90px;
    right: -105px;
  }

  .discovery-mark--one {
    top: 300px;
    right: 9%;
  }

  .hero__trail {
    right: 16px;
    bottom: 36px;
    width: 220px;
    font-size: 0.72rem;
  }

  .trail__label {
    margin-inline: 8px;
  }

  .first-book {
    padding: 82px 0 92px;
  }

  .book-copy__meta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .book-copy h2 {
    font-size: clamp(2.9rem, 14.2vw, 4.15rem);
  }

  .book-copy__lead {
    margin-top: 28px;
    font-size: 1.04rem;
  }

  .book-copy__concept br {
    display: none;
  }

  .book-facts {
    gap: 24px;
  }

  .book-facts div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .book-facts dt {
    font-size: 2rem;
  }

  .book-art {
    min-height: 520px;
  }

  .book-art__field {
    width: 86%;
  }

  .book-cover {
    width: min(75%, 310px);
    box-shadow: 12px 14px 0 rgba(237, 118, 81, 0.16);
  }

  .book-art::before {
    width: 76px;
    height: 76px;
  }

  .about {
    padding: 82px 0 90px;
  }

  .about__inner {
    gap: 60px;
  }

  .about__visual {
    min-height: 370px;
  }

  .about__visual::before {
    width: 280px;
    height: 280px;
  }

  .about__visual::after {
    left: 0;
    width: 44px;
    height: 44px;
  }

  .puzzle-card {
    width: 235px;
    height: 300px;
  }

  .puzzle-card__maze {
    height: 178px;
    background-size: 29px 29px;
  }

  .maze__path {
    width: 157px;
    height: 134px;
  }

  .site-footer {
    padding: 32px 0;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

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