@font-face {
  font-family: "Alfa Slab One";
  src: url("fonts/AlfaSlabOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/NunitoSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/NunitoSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sunflower: #F2B40A;
  --ink: #111111;
  --cream: #FFF6E3;
  --cobalt: #1C4BC4;
  --white: #FFFFFF;
  --gutter: clamp(1.5rem, 6vw, 6rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background: var(--cream);
  color: var(--ink);
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

.frame {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

header {
  background: var(--cream);
  flex: 0 0 auto;
}

header .frame {
  padding-top: clamp(1.5rem, 3.2vw, 2.5rem);
  padding-bottom: clamp(1.1rem, 2vw, 1.6rem);
}

h1 {
  margin: 0;
  width: min(100%, 20rem);
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  line-height: 0;
}

h1 img {
  display: block;
  width: 100%;
  height: auto;
}

.accent {
  height: 2px;
  background: var(--sunflower);
  width: 100%;
}

.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.hero-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 28rem;
}

.hero-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 50%;
  position: absolute;
  inset: 0;
}

.hero-copy {
  position: absolute;
  left: 58%;
  right: clamp(1.5rem, 5vw, 4.5rem);
  top: 52%;
  transform: translateY(-50%);
  max-width: 30rem;
  color: var(--ink);
  z-index: 1;
}

.hero-copy h2 {
  margin: 0;
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 1.2rem + 3.2vw, 3.75rem);
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}

.flourish {
  display: block;
  width: 3.5rem;
  height: 4px;
  margin: 1.15rem 0 1.35rem;
  background: var(--sunflower);
  position: relative;
}

.flourish::after {
  content: "";
  position: absolute;
  right: -0.45rem;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--cobalt);
  transform: translateY(-50%) rotate(12deg);
}

.hero-copy p {
  margin: 0 0 0.85em;
  font-size: 1.25rem; /* 20px */
  line-height: 1.55;
  color: var(--ink);
  max-width: none;
  text-wrap: pretty;
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

footer {
  flex: 0 0 auto;
  margin-top: auto;
  background: var(--cream);
  color: var(--ink);
}

footer .frame {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

footer p {
  margin: 0;
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 800px) {
  .hero-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-stage img {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(16.5rem, 62vw, 24rem);
    flex: 0 0 auto;
    object-position: 12% 50%;
  }

  .hero-copy {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    max-width: none;
    padding: 1.5rem var(--gutter) 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-copy h2 {
    font-size: clamp(2.35rem, 9vw, 2.85rem);
  }

  .hero-copy p {
    font-size: 1.125rem; /* 18px */
    max-width: 28rem;
  }

  footer .frame {
    padding-top: 1.25rem;
    padding-bottom: 1.35rem;
  }

  footer p {
    font-size: 1rem; /* 16px */
  }
}

@media (max-width: 600px) {
  header .frame {
    padding-top: 1.35rem;
    padding-bottom: 1rem;
  }

  h1 {
    width: min(100%, 17.5rem);
  }
}
