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

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-var-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@layer reset, base, layout, responsive;

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

  html {
    min-width: 320px;
    background: #72bde8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body,
  h1,
  p {
    margin: 0;
  }
}

@layer base {
  :root {
    --ink: #13202a;
    --soft-ink: #344550;
    --paper: #fff9ec;
    --soft-paper: #f8efe0;
    --sky: #72bde8;
    --pale-sky: #d7f0ff;
    --gold: #dca739;
    --pale-gold: #fff1b9;
    --tan: #d4c8b0;
    --outline: 3px solid var(--ink);
    color-scheme: light;
    font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
    color: var(--ink);
  }

  body {
    min-height: 100svh;
    overflow-x: hidden;
    background: var(--sky);
  }

  .skip-link {
    position: fixed;
    z-index: 10;
    inset: 1rem auto auto 1rem;
    padding: 0.7rem 1rem;
    border: 2px solid var(--paper);
    background: var(--ink);
    color: var(--paper);
    font-weight: 650;
    transform: translateY(-200%);
  }

  .skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--gold);
    outline-offset: 3px;
  }
}

@layer layout {
  .stage {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: clamp(1.25rem, 2.2vw, 2rem);
    isolation: isolate;
  }

  .stage::before,
  .stage::after {
    position: fixed;
    z-index: -1;
    content: "";
    background: var(--gold);
    border: var(--outline);
  }

  .stage::before {
    top: clamp(1rem, 4vw, 3rem);
    right: clamp(-2.5rem, 2vw, 2rem);
    width: clamp(8rem, 16vw, 14rem);
    height: clamp(4rem, 9vw, 7rem);
    transform: rotate(5deg);
  }

  .stage::after {
    bottom: clamp(-2rem, 1vw, 1rem);
    left: clamp(-3rem, 2vw, 2rem);
    width: clamp(10rem, 20vw, 18rem);
    height: clamp(5rem, 10vw, 9rem);
    background: var(--ink);
    transform: rotate(-4deg);
  }

  .poster {
    width: min(100%, 72rem);
    overflow: hidden;
    border: var(--outline);
    background: var(--paper);
    box-shadow: 12px 12px 0 var(--ink);
    animation: poster-arrival 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .masthead {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem clamp(1.25rem, 3vw, 2.5rem);
    border-bottom: var(--outline);
    background: var(--paper);
  }

  .wordmark {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 650;
    line-height: 1;
  }

  .descriptor {
    color: var(--soft-ink);
    font-size: 0.9rem;
    font-weight: 600;
  }

  .hero {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: var(--soft-paper);
  }

  .hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 941;
    object-fit: cover;
  }

  .hero-copy {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 44%;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
  }

  h1 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(4rem, 7.6vw, 6rem);
    font-weight: 650;
    line-height: 0.88;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .hero-copy p {
    max-width: 23ch;
    margin-top: clamp(1.25rem, 2.5vw, 2rem);
    color: var(--soft-ink);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    line-height: 1.35;
    text-wrap: pretty;
  }

  .status {
    display: grid;
    min-height: 5.25rem;
    grid-template-columns: auto minmax(4rem, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 1rem clamp(1.25rem, 3vw, 2.5rem);
    border-top: var(--outline);
    background: var(--gold);
  }

  .status strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 620;
    line-height: 1;
  }


  .current-line {
    position: relative;
    height: 3px;
    background: var(--ink);
  }

  .current-line::before,
  .current-line::after {
    position: absolute;
    top: 50%;
    width: 0.85rem;
    aspect-ratio: 1;
    border: 3px solid var(--ink);
    background: var(--pale-sky);
    content: "";
    transform: translateY(-50%) rotate(45deg);
  }

  .current-line::before {
    left: 0;
  }

  .current-line::after {
    right: 0;
  }

  @keyframes poster-arrival {
    from {
      opacity: 0.01;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@layer responsive {
  @media (max-width: 700px) {
    .stage {
      align-items: start;
      padding: 0.9rem 1.05rem 1.05rem 0.9rem;
    }

    .stage::before {
      top: -2rem;
      right: -3rem;
    }

    .stage::after {
      bottom: -3rem;
      left: -4rem;
    }

    .poster {
      box-shadow: 8px 8px 0 var(--ink);
    }

    .masthead {
      min-height: 3.75rem;
      padding: 0.85rem 1rem;
    }

    .descriptor {
      max-width: 9rem;
      text-align: right;
    }

    .hero {
      display: grid;
      grid-template-rows: auto auto;
    }

    .hero-copy {
      position: static;
      grid-row: 1;
      width: 100%;
      min-height: 13.5rem;
      padding: 2rem 1.15rem 1.75rem;
      background: var(--paper);
      border-bottom: var(--outline);
    }

    h1 {
      font-size: clamp(3.4rem, 17vw, 4.25rem);
    }

    .hero-copy p {
      max-width: 19ch;
      margin-top: 1rem;
      font-size: 1.1rem;
    }

    .hero-image {
      grid-row: 2;
      height: min(40svh, 20rem);
      min-height: 18rem;
      aspect-ratio: auto;
      object-fit: cover;
      object-position: 72% center;
    }

    .status {
      min-height: 5.5rem;
      grid-template-columns: 1fr auto;
      gap: 0.75rem 1rem;
      padding: 0.95rem 1rem;
    }

    .status strong {
      font-size: clamp(1.7rem, 8vw, 2.1rem);
    }

    .current-line {
      grid-column: 1 / -1;
      grid-row: 2;
    }
  }

  @media (max-height: 760px) and (min-width: 701px) {
    .stage {
      padding-block: 1rem;
    }

    .poster {
      width: min(100%, 68rem);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}