@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/young-serif-latin-400-normal.woff2") format("woff2");
}

:root {
  --canvas: #f6f6ef;
  --sage: #e8efe6;
  --ink: #17201c;
  --muted: #4c5852;
  --forest: #174b37;
  --hero: #142b25;
  --hero-ink: #ffffff;
  --hero-scrim: rgb(8 26 17 / 0.62);
  --line: #c8d3c7;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --sans: Onest, system-ui, sans-serif;
  --serif: "Young Serif", Georgia, serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.65;
}

main {
  flex: 1;
}

a {
  color: var(--forest);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 5px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: var(--gutter);
  z-index: 3;
  padding: 0.5rem 1rem;
  color: var(--forest);
  background: var(--canvas);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.landing {
  min-height: 100svh;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100svh;
  color: var(--hero-ink);
  background: var(--hero);
  text-align: center;
}

.hero-media,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media {
  z-index: -2;
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
}

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

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
}

.hero-video.is-playing {
  opacity: 1;
}

@media (max-width: 600px), (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
    transition: none;
  }
}

/* This scrim keeps white text above 4.5:1 even over a pure white image pixel. */
.hero::after {
  content: "";
  background: var(--hero-scrim);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter) 2rem;
}

.hero-leaf {
  display: block;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.hero-wordmark p {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  font-size: 1.0625rem;
  text-wrap: balance;
}

.open-yosemite {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  color: var(--forest);
  background: var(--canvas);
  text-decoration: none;
  font-weight: 600;
}

.open-yosemite:focus-visible {
  outline-color: var(--hero-ink);
}

[hidden] {
  display: none;
}

.hero-content > .availability {
  margin-top: 2rem;
  font-size: 0.875rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding: 1.5rem var(--gutter);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  gap: 1.75rem;
}

.site-footer a,
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.hero .site-footer a {
  color: var(--hero-ink);
}

.hero .site-footer {
  justify-content: center;
}

.hero .site-footer a:focus-visible {
  outline-color: var(--hero-ink);
}

.site-header {
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--sage);
}

.brand {
  gap: 0.625rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  filter: invert(22%) sepia(18%) saturate(1449%) hue-rotate(104deg) brightness(92%) contrast(91%);
}

.policy {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 3rem var(--gutter) 2rem;
}

.policy h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
}

.effective-date {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.policy section,
.policy > p:not(.effective-date) {
  margin-top: 1.75rem;
}

.policy h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest);
}

.policy section p + p {
  margin-top: 0.75rem;
}

.policy-footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .hero-content {
    padding-block: 3rem 1.5rem;
  }

  .hero-art img {
    object-position: center top;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4rem);
  }

  .hero-wordmark p {
    max-width: 18rem;
    font-size: 1rem;
  }

  .site-footer {
    justify-content: center;
    padding-block: 1rem;
  }

  .policy {
    padding-block: 2.25rem;
  }
}
