@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400.v24.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600.v24.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #fffdf5;
  --footer: #fff6c9;
  --ink: #161616;
  --muted: #424252;
  --accent: #ffca24;
  --accent-hover: #f4b900;
  --white: #ffffff;
  --page-gutter: clamp(1.25rem, 3vw, 3rem);
  --content-width: 94rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
main {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.site-header {
  padding-inline: clamp(1.25rem, 4.75vw, 4.5rem);
}

main {
  padding-inline: var(--page-gutter);
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: clamp(5rem, 6vw, 6rem);
}

.brand-mark {
  width: clamp(8.6rem, 10vw, 9.4rem);
  height: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(31.5rem, 37vw, 36.5rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(1.6rem, 3vw, 2.75rem);
  background: #2d241e;
  color: var(--white);
}

.hero__media,
.hero__media img,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  z-index: -2;
}

.hero__media img {
  object-fit: cover;
  object-position: center 48%;
}

.hero__scrim {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.08) 8%, rgba(8, 7, 6, 0.18) 40%, rgba(8, 7, 6, 0.68) 100%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.22), transparent 28%, transparent 72%, rgba(8, 7, 6, 0.2));
}

.hero__content {
  align-self: center;
  width: min(68rem, 88%);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 4rem);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
}

.hero h1,
.farewell h2,
.hero p,
.farewell p,
.site-footer p {
  margin-top: 0;
}

.hero h1 {
  max-width: 66rem;
  margin-inline: auto;
  margin-bottom: clamp(1.25rem, 2vw, 1.7rem);
  font-size: clamp(3rem, 4.8vw, 4.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero p {
  max-width: 57rem;
  margin-inline: auto;
  margin-bottom: 0;
  font-size: clamp(1.12rem, 1.65vw, 1.5rem);
  line-height: 1.5;
  text-wrap: balance;
}

.farewell {
  max-width: 58rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 3.5vw, 3.5rem) 1rem clamp(2rem, 3vw, 3rem);
  text-align: center;
}

.farewell h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 2.75vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
  text-wrap: balance;
}

.farewell p {
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  text-wrap: balance;
}

.primary-action {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.primary-action:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.site-footer {
  background: var(--footer);
}

.site-footer__inner {
  display: flex;
  width: min(100%, var(--content-width));
  min-height: 7.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 4.75vw, 4.5rem);
}

.site-footer__mark {
  width: clamp(8.2rem, 10vw, 9.4rem);
  height: auto;
}

.site-footer__copy {
  text-align: right;
}

.site-footer p {
  margin-bottom: 0.22rem;
  color: #292932;
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.5;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .site-header__inner {
    min-height: 7.2rem;
  }

  .brand-mark {
    width: 9.2rem;
  }

  .hero {
    min-height: 43rem;
    border-radius: 1.7rem;
  }

  .hero__media img {
    object-position: 54% center;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(8, 7, 6, 0.05) 10%, rgba(8, 7, 6, 0.18) 35%, rgba(8, 7, 6, 0.78) 100%),
      linear-gradient(90deg, rgba(8, 7, 6, 0.24), transparent 42%, transparent 70%, rgba(8, 7, 6, 0.18));
  }

  .hero__content {
    align-self: end;
    width: 100%;
    padding: 4rem 1.9rem 3.6rem;
    text-align: left;
  }

  .hero h1 {
    margin-bottom: 1.3rem;
    font-size: clamp(2.45rem, 12vw, 3.4rem);
    line-height: 1.12;
    text-wrap: pretty;
  }

  .hero p {
    font-size: 1.08rem;
    line-height: 1.55;
    text-wrap: pretty;
  }

  .farewell {
    padding: 4.6rem 0.3rem 4.8rem;
  }

  .farewell h2 {
    font-size: clamp(2.35rem, 10.8vw, 3rem);
  }

  .farewell p {
    font-size: 1.08rem;
    line-height: 1.65;
  }

  .primary-action {
    width: min(100%, 23rem);
    min-height: 4rem;
    font-size: 1.12rem;
  }

  .site-footer__inner {
    min-height: 9.5rem;
    justify-content: center;
    padding-block: 2.8rem;
  }

  .site-footer__mark {
    display: none;
  }

  .site-footer__copy {
    text-align: center;
  }

  .site-footer p {
    font-size: 0.9rem;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: 42rem;
  }

  .hero__content {
    padding-inline: 1.55rem;
  }
}

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

  .primary-action {
    transition: none;
  }
}
