:root {
  --sand: #e9d7bd;
  --clay: #9b5d3d;
  --moss: #37533a;
  --charcoal: #23211e;
  --paper: #fbf5ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.earth-hero {
  min-height: 820px;
  padding: 28px clamp(18px, 5vw, 80px) 80px;
  background:
    radial-gradient(circle at 18% 80%, rgba(155, 93, 61, 0.35), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(55, 83, 58, 0.3), transparent 28%),
    linear-gradient(135deg, #f7eddb, #dac19e);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 900;
  letter-spacing: 0.22em;
}

.nav div {
  display: flex;
  gap: 26px;
  color: var(--moss);
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 4px 18px 4px 18px;
  color: white;
  background: var(--moss);
  cursor: pointer;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 0.9fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
}

.tag {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(42px, 6.8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-text p:last-child,
.manifest p,
.directions p,
.model-grid p,
.content-river p {
  color: #5f554a;
  font-size: 18px;
  line-height: 1.78;
}

.hero-text p:last-child {
  max-width: 780px;
  font-size: 21px;
}

.stone-stack {
  display: grid;
  gap: 18px;
}

.stone-stack span {
  display: block;
  padding: 30px;
  border-radius: 44px 14px 44px 14px;
  color: white;
  background: var(--charcoal);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 20px 44px rgba(35, 33, 30, 0.18);
}

.stone-stack span:nth-child(2) {
  margin-left: 56px;
  background: var(--clay);
}

.stone-stack span:nth-child(3) {
  margin-right: 42px;
  background: var(--moss);
}

.stone-stack span:nth-child(4) {
  margin-left: 28px;
  background: #be8c52;
}

.manifest,
.directions,
.model,
.content-river,
.footer {
  padding: 96px clamp(18px, 5vw, 80px);
}

.manifest {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  background: var(--charcoal);
  color: white;
}

.manifest p:last-child {
  color: #dfd2c1;
  font-size: 20px;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #f8efe0;
}

.directions article {
  min-height: 280px;
  padding: 30px;
  border-radius: 40px 12px;
  background: white;
  border: 1px solid rgba(155, 93, 61, 0.22);
}

.directions h3,
.model-grid h3 {
  color: var(--moss);
  font-size: 25px;
}

.model {
  background: linear-gradient(90deg, #e8d2ad 0 38%, #fbf5ea 38% 100%);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.model-grid div {
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 6px solid var(--clay);
}

.model-grid span {
  color: var(--clay);
  font-weight: 900;
}

.content-river {
  color: white;
  background:
    linear-gradient(135deg, rgba(35, 33, 30, 0.92), rgba(55, 83, 58, 0.88)),
    repeating-linear-gradient(45deg, #9b5d3d 0 14px, #be8c52 14px 28px);
}

.content-river p {
  max-width: 1040px;
  color: #f4e9dc;
  font-size: 21px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 44px;
  background: var(--paper);
}

.contact {
  display: grid;
  gap: 12px;
  min-width: min(100%, 410px);
  padding: 30px;
  border-radius: 36px 12px;
  color: white;
  background: var(--moss);
}

.contact a {
  font-size: 25px;
  font-weight: 900;
}

.contact span {
  color: #dce8d8;
  line-height: 1.7;
}

.strata {
  padding: 96px clamp(18px, 5vw, 80px);
  background: #f8efe0;
}

.layer {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  min-height: 120px;
  padding: 28px;
  color: white;
  border-radius: 50px 10px 50px 10px;
  box-shadow: inset 0 -18px 0 rgba(0, 0, 0, 0.08);
}

.layer + .layer {
  margin-top: 8px;
}

.layer b {
  font-size: 28px;
  text-transform: uppercase;
}

.layer span {
  font-size: 19px;
  line-height: 1.65;
}

.layer-one {
  background: #be8c52;
}

.layer-two {
  background: var(--moss);
  margin-left: 5%;
}

.layer-three {
  background: var(--clay);
  margin-left: 12%;
}

.layer-four {
  background: var(--charcoal);
  margin-left: 19%;
}

.field-book {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 38px;
  padding: 96px clamp(18px, 5vw, 80px);
  background: var(--paper);
}

.book-pages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.book-pages article {
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(#d8c5a5 1px, transparent 1px),
    #fffaf0;
  background-size: 100% 30px;
  border: 1px solid rgba(155, 93, 61, 0.25);
  transform: rotate(-1deg);
}

.book-pages article:nth-child(even) {
  transform: rotate(1deg);
}

.book-pages span {
  color: var(--clay);
  font-weight: 900;
  text-transform: uppercase;
}

.book-pages p {
  margin-top: 18px;
  color: #5f554a;
  font-size: 19px;
  line-height: 1.7;
}

.quarry-flow {
  padding: 96px clamp(18px, 5vw, 80px);
  color: white;
  background: var(--charcoal);
}

.flow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.flow-line span {
  padding: 16px 20px;
  border-radius: 999px;
  color: var(--charcoal);
  background: var(--sand);
  font-weight: 900;
  text-transform: uppercase;
}

.flow-line span + span::before {
  content: "→ ";
}

.quarry-flow p {
  max-width: 1000px;
  color: #f4e9dc;
  font-size: 21px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero,
  .manifest,
  .directions,
  .model-grid,
  .footer,
  .field-book,
  .book-pages,
  .layer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .layer {
    margin-left: 0 !important;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav div {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .stone-stack span {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
