:root {
  color-scheme: light;
  --ink: #182018;
  --muted: #5f675e;
  --paper: #f7f3eb;
  --surface: #fffdf8;
  --leaf: #5f7b51;
  --leaf-deep: #2f4930;
  --lime: #dbe9a9;
  --apricot: #efb477;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --shadow: 0 24px 70px rgb(40 50 35 / 10%);
  --radius-small: 0.8rem;
  --radius-medium: 1.4rem;
  --radius-large: 2.5rem;
  --content: min(1160px, calc(100vw - 2.5rem));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__inner {
  width: var(--content);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: 2.1rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0.65rem;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-navigation a,
.site-footer a {
  text-decoration: none;
}

.site-navigation a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--leaf-deep);
  border-radius: 999px;
  background: var(--leaf-deep);
  color: white;
  font-weight: 720;
  text-decoration: none;
}

.button--small {
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
}

.language-link {
  color: var(--muted);
}

.menu-toggle {
  display: none;
}

.story-section {
  display: grid;
  min-height: min(76vh, 52rem);
  place-items: center;
  padding: clamp(5rem, 10vw, 10rem) 0;
  border-bottom: 1px solid var(--line);
}

.story-section:nth-child(4n + 2) {
  background: var(--surface);
}

.story-section:nth-child(4n + 3) {
  background: var(--leaf-deep);
  color: #f8f7ef;
}

.story-section:nth-child(4n) {
  background: var(--lime);
}

.story-section__inner {
  width: min(56rem, calc(100vw - 2.5rem));
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-section:nth-child(4n + 3) .eyebrow {
  color: var(--lime);
}

h1,
h2 {
  max-width: 14ch;
  margin: 0 auto;
  font-family: inherit;
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
}

h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.6rem);
}

.story-section__text {
  max-width: 42rem;
  margin: 2rem auto 0;
  color: inherit;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.not-found {
  display: flex;
  width: var(--content);
  min-height: 68vh;
  margin: 0 auto;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.not-found h1 {
  margin: 0;
  text-align: left;
}

.not-found p:not(.eyebrow) {
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.release-preview-notice {
  display: flex;
  width: var(--content);
  margin: 1.5rem auto 0;
  padding: 1rem 1.2rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  border: 1px solid color-mix(in srgb, var(--leaf) 35%, var(--line));
  border-radius: var(--radius-medium);
  background: color-mix(in srgb, var(--lime) 38%, white);
  color: var(--ink);
}

.release-preview-notice span {
  color: var(--muted);
}

.consent-panel {
  position: fixed;
  z-index: 20;
  right: max(1rem, calc((100vw - 1160px) / 2));
  bottom: 1rem;
  left: max(1rem, calc((100vw - 1160px) / 2));
  display: grid;
  padding: clamp(1.25rem, 3vw, 2rem);
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  border: 1px solid color-mix(in srgb, white 18%, transparent);
  border-radius: var(--radius-large);
  background: #162116;
  box-shadow: 0 24px 70px rgb(8 15 8 / 34%);
  color: white;
}

.consent-panel__copy {
  max-width: 50rem;
}

.consent-panel__copy .eyebrow {
  color: var(--lime);
}

.consent-panel__copy h2 {
  max-width: none;
  margin: 0;
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  text-align: left;
}

.consent-panel__copy p:last-child,
.consent-panel__details p {
  margin: 0.8rem 0 0;
  color: #d8ded5;
}

.consent-panel a {
  color: white;
}

.consent-panel form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.consent-choice {
  min-width: 8rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid #d8ded5;
  border-radius: 999px;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.consent-choice:hover,
.consent-choice:focus-visible {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.consent-panel--settings {
  position: static;
  width: var(--content);
  margin: 2rem auto;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.consent-panel__details {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.consent-panel__details summary {
  font-weight: 750;
  cursor: pointer;
}

.consent-panel__details p {
  color: var(--muted);
}

.consent-panel__details form {
  max-width: 22rem;
  margin-top: 1rem;
}

.consent-panel__details .consent-choice {
  border-color: var(--leaf-deep);
  color: var(--leaf-deep);
}

.site-footer {
  padding: 4rem 0;
  background: #121912;
  color: #f4f4ec;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2fr auto;
  align-items: start;
  gap: 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
}

.site-footer p {
  margin: 0;
  color: #aeb8aa;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 720;
  }

  .menu-toggle__lines,
  .menu-toggle__lines::before {
    display: block;
    width: 1.3rem;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .menu-toggle__lines::before {
    translate: 0 -6px;
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 1.2rem max(1.25rem, calc((100vw - 1160px) / 2));
    align-items: stretch;
    flex-direction: column;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-navigation[data-open="true"] {
    display: flex;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .consent-panel {
    grid-template-columns: 1fr;
  }

  .release-preview-notice {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .consent-panel {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    padding: 1.1rem;
    border-radius: var(--radius-medium);
  }

  .consent-panel__copy h2 {
    font-size: 1.55rem;
  }

  .consent-panel__copy p:last-child {
    font-size: 0.88rem;
  }

  .consent-choice {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
