:root {
  --ink: #17211f;
  --muted: #5f6963;
  --paper: #f8f3e6;
  --panel: #fffaf0;
  --trail: #d84f32;
  --moss: #286b55;
  --fern: #6da56f;
  --gold: #e2a63a;
  --line: rgba(23, 33, 31, 0.14);
  --shadow: 0 24px 70px rgba(26, 38, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Avenir Next, Candara, Trebuchet MS, sans-serif;
  background:
    radial-gradient(circle at 82% 8%, rgba(226, 166, 58, 0.32), transparent 30rem),
    linear-gradient(135deg, #f8f3e6 0%, #edf2df 54%, #dfead1 100%);
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  padding: 24px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(23, 33, 31, 0.2);
}

nav {
  display: flex;
  gap: 10px;
}

nav a,
.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 250, 240, 0.62);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

nav a:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 107, 85, 0.5);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 48px;
  align-items: center;
  min-height: 620px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--trail);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  color: #34413d;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button.primary {
  color: #fffaf0;
  background: var(--ink);
  border-color: var(--ink);
}

.button.ghost {
  background: transparent;
}

.quest-board {
  position: relative;
  display: grid;
  gap: 18px;
  transform: rotate(-1.5deg);
}

.quest-board::before {
  content: "";
  position: absolute;
  inset: -28px 18px auto auto;
  width: 155px;
  height: 155px;
  background: repeating-linear-gradient(135deg, rgba(40, 107, 85, 0.14) 0 10px, transparent 10px 20px);
  border-radius: 50%;
  z-index: -1;
}

.map-card,
.quest-list article,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
}

.map-card {
  padding: 30px;
}

.stage-label {
  display: inline-block;
  margin-bottom: 16px;
  color: #fffaf0;
  background: var(--moss);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 900;
}

.map-card h2 {
  font-family: Georgia, Cambria, serif;
  font-size: 2.5rem;
}

.path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.path span {
  height: 12px;
  border-radius: 999px;
  background: rgba(40, 107, 85, 0.22);
}

.path .active {
  background: var(--trail);
}

.quest-list {
  display: grid;
  gap: 12px;
}

.quest-list article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px;
}

.quest-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fffaf0;
  background: var(--trail);
  border-radius: 50%;
  font-weight: 900;
}

.quest-list h3,
.details-grid h3 {
  margin-bottom: 6px;
}

.quest-list p,
.details-grid p,
.content-panel p,
.content-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.feature-strip,
.split-section,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.feature-strip article {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 250, 240, 0.7);
}

.feature-strip article:nth-child(2) {
  background: var(--ink);
  color: #fffaf0;
}

.feature-strip article:nth-child(2) p {
  color: rgba(255, 250, 240, 0.72);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  padding: 96px 0;
}

.split-section h2,
.page-hero h1 {
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  line-height: 0.98;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 32px;
}

.page-shell {
  padding: 72px 0 96px;
}

.page-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.page-hero p {
  color: #34413d;
  font-size: 1.16rem;
  line-height: 1.65;
}

.content-panel {
  max-width: 880px;
  margin-top: 16px;
  padding: 26px;
  box-shadow: 0 14px 42px rgba(26, 38, 33, 0.09);
}

.content-panel ul {
  margin: 0;
  padding-left: 22px;
}

.site-footer {
  padding: 28px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  margin-left: 14px;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .hero,
  .split-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header,
  .site-footer {
    display: flex;
  }

  .hero,
  .split-section,
  .feature-strip,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    margin-top: 44px;
  }

  .quest-board {
    transform: none;
  }

  .feature-strip {
    margin-top: 56px;
  }
}

@media (max-width: 520px) {
  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: 3.45rem;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .quest-list article {
    grid-template-columns: 1fr;
  }
}
