:root {
  --forest: #173b34;
  --forest-deep: #0e2924;
  --paper: #f2e8d2;
  --paper-light: #faf5e9;
  --ink: #17322c;
  --muted: #6c766d;
  --mustard: #d6a540;
  --terracotta: #bc6037;
  --indigo: #344b70;
  --line: rgba(23, 50, 44, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-header {
  position: fixed; z-index: 20; inset: 0 0 auto; height: 68px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 4vw, 64px);
  color: var(--paper-light); background: rgba(14, 41, 36, .92); border-bottom: 1px solid rgba(242, 232, 210, .18);
  backdrop-filter: blur(14px);
}
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 700; letter-spacing: 0; }
.site-nav { display: flex; gap: 32px; font-size: 14px; }
.site-nav a { opacity: .78; }
.site-nav a:hover { opacity: 1; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.language-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid rgba(242, 232, 210, .25); border-radius: 6px; }
.language-switch button { min-width: 38px; height: 30px; border: 0; border-radius: 3px; color: inherit; background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.language-switch button[aria-pressed="true"] { color: var(--forest-deep); background: var(--paper-light); }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid currentColor; border-radius: 5px; font-size: 14px; font-weight: 760; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 38px; padding: 0 17px; color: var(--paper-light); }
.button-primary { color: var(--forest-deep); background: var(--mustard); border-color: var(--mustard); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }

.hero { position: relative; min-height: min(850px, calc(100svh - 34px)); display: flex; align-items: center; overflow: hidden; padding: 118px clamp(22px, 7vw, 112px) 76px; color: var(--paper-light); background: var(--forest-deep); }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 64%; background: rgba(8, 31, 27, .48); }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(8, 31, 27, .38); }
.hero-art { position: absolute; inset: 0; background: url("/assets/design-system/world-cities-route-map.png") center/cover no-repeat; filter: sepia(.16) saturate(.75); transform: scale(1.04); }
.hero-content { position: relative; z-index: 2; max-width: 730px; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(68px, 10vw, 150px); line-height: .9; letter-spacing: 0; }
.hero-copy { max-width: 610px; margin: 30px 0 34px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3vw, 43px); line-height: 1.14; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(250, 245, 233, .45); font-size: 14px; font-weight: 700; }
.hero-note { position: absolute; z-index: 2; right: clamp(22px, 5vw, 78px); bottom: 28px; max-width: 310px; margin: 0; text-align: right; font-size: 12px; line-height: 1.5; opacity: .72; }

.how-section, .worlds-section { padding: 100px clamp(22px, 7vw, 112px); }
.how-section { background-color: var(--paper); background-image: url("/assets/design-system/paper-texture.png"); background-size: 620px; }
.section-heading { display: grid; grid-template-columns: minmax(180px, 1fr) 2.2fr; align-items: end; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow { margin: 0 0 8px; color: var(--terracotta); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 48px 0 0; }
.steps li { min-height: 230px; padding: 0 clamp(22px, 3vw, 44px); border-left: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps span, .world-copy > span { display: block; margin-bottom: 52px; color: var(--terracotta); font-size: 12px; font-weight: 800; }
.steps h3 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.steps p { max-width: 310px; margin: 0; color: var(--muted); line-height: 1.55; }

.worlds-section { color: var(--paper-light); background: var(--forest); }
.section-heading-light { border-color: rgba(242, 232, 210, .2); }
.section-heading-light .eyebrow { color: var(--mustard); }
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 48px; }
.world { display: grid; grid-template-rows: minmax(280px, 1fr) auto; min-height: 610px; overflow: hidden; border: 1px solid rgba(242, 232, 210, .24); border-radius: 7px; background: var(--paper); color: var(--ink); }
.world-image { min-height: 300px; background-position: center; background-size: cover; transition: transform .5s ease; }
.world:hover .world-image { transform: scale(1.018); }
.world-cities .world-image { background-image: url("/assets/design-system/world-route-center.png"); }
.world-beer .world-image { background-image: url("/assets/design-system/beer-route-center.png"); }
.world-copy { position: relative; padding: 30px 32px 32px; border-top: 1px solid var(--line); }
.world-copy > span { margin-bottom: 14px; }
.world-copy h3 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; }
.world-copy p { max-width: 440px; min-height: 50px; margin: 0; color: var(--muted); line-height: 1.5; }
.world-copy a { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper-light); border-bottom: 1px solid var(--line); }
.facts p { display: flex; min-height: 145px; flex-direction: column; justify-content: center; margin: 0; padding: 24px clamp(18px, 3vw, 46px); border-right: 1px solid var(--line); }
.facts p:last-child { border-right: 0; }
.facts strong { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; }
.facts span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.final-cta { padding: 110px 22px; text-align: center; color: var(--paper-light); background: var(--terracotta); }
.final-cta .eyebrow { opacity: .75; }
.final-cta h2 { margin: 0 auto 34px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 7vw, 90px); line-height: 1; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 100px; padding: 24px clamp(22px, 5vw, 72px); color: var(--paper); background: var(--forest-deep); }
footer p { margin: 0; font-size: 13px; opacity: .7; }
footer span { justify-self: end; font-size: 12px; opacity: .6; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; height: 62px; }
  .site-nav { display: none; }
  .hero { min-height: calc(100svh - 24px); padding-top: 105px; align-items: flex-end; }
  .hero::before { display: none; }
  .hero::after { background: rgba(8, 31, 27, .62); }
  .hero-art { background-position: 60% center; }
  .hero-note { display: none; }
  .hero-content { width: 100%; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .steps span { margin-bottom: 16px; }
  .world-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts p:nth-child(2) { border-right: 0; }
  .facts p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .site-header { padding: 0 14px; }
  .wordmark { font-size: 20px; }
  .header-actions { gap: 7px; }
  .button-small { min-height: 36px; padding: 0 12px; }
  .language-switch button { min-width: 32px; }
  .hero { min-height: calc(100svh - 18px); padding: 96px 18px 44px; }
  .hero h1 { font-size: clamp(54px, 18vw, 78px); }
  .hero-copy { margin: 22px 0 26px; font-size: 27px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .text-link { align-self: flex-start; }
  .how-section, .worlds-section { padding: 72px 18px; }
  .section-heading h2 { font-size: 42px; }
  .world { min-height: 530px; }
  .world-image { min-height: 270px; }
  .world-copy { padding: 24px 22px; }
  .world-copy h3 { font-size: 29px; }
  .facts p { min-height: 125px; padding: 20px 18px; }
  .facts strong { font-size: 22px; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

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