@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Literata:opsz,wght@7..72,500;7..72,600&display=swap');

:root {
  --ink: #15243a;
  --paper: #f3efe6;
  --ochre: #ca8738;
  --green: #657c68;
  --cream: #fbf8f0;
  --muted: #6d7477;
  --line: rgba(21, 36, 58, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

a {
  color: inherit;
}

.site-header {
  width: min(1420px, calc(100% - 3rem));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: 'Literata', serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.site-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-links a,
.footer-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.site-links a:hover,
.site-links a[aria-current='page'] {
  color: var(--ochre);
}

.hero {
  position: relative;
  width: min(1420px, calc(100% - 3rem));
  height: 79vh;
  min-height: 720px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.5rem;
}

.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 26, 43, 0.92), rgba(11, 26, 43, 0.45) 55%, rgba(11, 26, 43, 0.08)),
    linear-gradient(0deg, rgba(11, 26, 43, 0.72), transparent 58%);
}

.hero-copy {
  position: absolute;
  left: clamp(1.5rem, 7vw, 7rem);
  bottom: clamp(2rem, 7vw, 6rem);
  max-width: 850px;
  color: var(--cream);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: #efb466;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: 'Literata', serif;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 8.2vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.hero-copy > p:nth-of-type(2) {
  max-width: 700px;
  margin: 2rem 0;
  color: #dce2e4;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-link {
  display: inline-flex;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: var(--ochre);
  color: #152034;
  font-weight: 700;
  text-decoration: none;
}

.intro {
  width: min(1160px, calc(100% - 3rem));
  margin: 9rem auto;
  display: grid;
  grid-template-columns: 0.75fr 1.35fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.intro-heading {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.intro-heading span {
  display: block;
  margin-bottom: 1rem;
  color: var(--ochre);
  font-size: 0.74rem;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.prose {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
}

.prose p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.58;
}

.phrase-path {
  width: min(1160px, calc(100% - 3rem));
  margin: 0 auto 9rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--cream);
}

.phrase-heading {
  max-width: 850px;
}

.phrase-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 3rem 0 2rem;
}

.phrase-button {
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.phrase-button:hover,
.phrase-button.active {
  background: var(--green);
  color: var(--cream);
}

.phrase-result {
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--ink);
  color: var(--cream);
}

.phrase-result span {
  color: #efb466;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.phrase-result h3 {
  max-width: 850px;
  margin: 1rem 0;
  font-size: clamp(2.3rem, 4.7vw, 4.7rem);
  line-height: 0.98;
}

.phrase-result p {
  max-width: 700px;
  color: #cbd5dc;
  line-height: 1.72;
}

.routes {
  width: min(1420px, calc(100% - 3rem));
  margin: 0 auto 8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.routes a {
  min-height: 300px;
  padding: 2rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.routes a:hover {
  background: var(--ochre);
}

.routes span {
  font-size: 0.74rem;
  font-weight: 700;
}

.routes strong {
  font-family: 'Literata', serif;
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  font-weight: 500;
  line-height: 1;
}

footer {
  width: min(1420px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .site-header {
    padding: 1.25rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro-heading {
    position: static;
  }

  .routes {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
