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

:root {
  color-scheme: dark;
  --ink: #eef1e8;
  --muted: #aeb9ae;
  --forest: #10241e;
  --deep: #09110f;
  --moss: #8fae83;
  --paper: #d9d3bf;
  --line: rgba(238, 241, 232, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(101, 131, 110, 0.22), transparent 30rem),
    var(--deep);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

a {
  color: inherit;
}

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

.wordmark {
  font-family: 'Newsreader', serif;
  font-size: 1.45rem;
  text-decoration: none;
}

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

.site-links a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

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

.hero {
  position: relative;
  width: min(1420px, calc(100% - 3rem));
  min-height: 78vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--forest);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, rgba(4, 11, 9, 0.92) 0%, rgba(4, 11, 9, 0.44) 52%, rgba(4, 11, 9, 0.05) 100%),
    linear-gradient(0deg, rgba(4, 11, 9, 0.62), transparent 55%);
}

.hero img {
  width: 100%;
  height: 78vh;
  min-height: 620px;
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 7vw, 7rem);
  bottom: clamp(2rem, 8vw, 7rem);
  width: min(760px, calc(100% - 3rem));
}

.eyebrow,
.section-number {
  margin: 0 0 1rem;
  color: var(--moss);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.5rem, 8.6vw, 8.6rem);
  line-height: 0.84;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 620px;
  margin: 2rem 0;
  color: #d7ddd5;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}

.hero-link {
  display: inline-flex;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(238, 241, 232, 0.38);
  border-radius: 999px;
  text-decoration: none;
}

.hero-link:hover {
  background: var(--ink);
  color: var(--deep);
}

.story {
  width: min(1180px, calc(100% - 3rem));
  margin: 9rem auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.6fr);
  gap: clamp(3rem, 8vw, 9rem);
}

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

h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.prose {
  color: #c8d0c8;
  font-family: 'Newsreader', serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.68;
}

.prose p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.rhythm-panel {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto 9rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(25, 53, 44, 0.72), rgba(12, 24, 21, 0.84));
}

.rhythm-panel > div:first-child p:last-child {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
}

.rhythm-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

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

.rhythm-button:hover,
.rhythm-button.active {
  background: var(--paper);
  color: var(--deep);
}

.rhythm-result {
  max-width: 850px;
  margin: 0;
  font-family: 'Newsreader', serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.5;
}

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

.footer-links a {
  text-decoration: none;
}

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

  .hero img {
    min-height: 680px;
  }

  .story {
    grid-template-columns: 1fr;
    margin: 6rem auto;
  }

  .story-heading {
    position: static;
  }

  footer {
    flex-direction: column;
  }
}
