@font-face {
  font-family: "Milkbar";
  src: url("../fonts/TAYMilkbarRegular.woff2") format("woff2"),
       url("../fonts/TAYMilkbarRegular.woff") format("woff"),
       url("../fonts/TAYMilkbarRegular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #9FABC8;   /* placeholder background — swap for hero image later */
  --color-live: #F2EFE6; /* headline + caption text */
}

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

html {
  height: 100vh;
  height: 100dvh; /* fallback for browsers without lvh support */
  height: 100lvh; /* matches .hero's sizing so this ancestor never clips it early */
  overflow: hidden;
  background-color: var(--color-bg);
}

body {
  height: 100vh;
  height: 100dvh; /* fallback for browsers without lvh support */
  height: 100lvh; /* matches .hero's sizing so this ancestor never clips it early */
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--color-bg);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* fallback for browsers without lvh support */
  height: 100lvh; /* the largest possible viewport size, so the box never shrinks after Safari's chrome changes state and clips already-placed flowers */
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  touch-action: none; /* stops native scroll/zoom/callout gestures from interrupting the finger-drag trail */
}

/* When artwork is ready: add class="hero hero--image" to the section in index.html
   and set the url below. Keeps --color-bg as a fallback while the image loads. */
.hero--image {
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero__trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__trail-image {
  position: absolute;
  width: 135px;
  height: auto;
  aspect-ratio: 244 / 242; /* reserves the correct box size before the image finishes loading, so centering never shifts */
  will-change: transform, opacity;
}

/* Desktop only: trail images 50% bigger (202.5px vs 135px on mobile). */
@media (min-width: 701px) {
  .hero__trail-image {
    width: 202.5px;
  }
}

.hero__nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20; /* sits above the trail images */
  padding: 1.75rem 4vw;
}

.hero__nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  width: 100%;
}

.hero__nav-list a {
  font-family: "Milkbar", "Helvetica Neue", sans-serif;
  font-weight: normal;
  font-size: 1.25rem; /* medium: well below the headline, well above the 0.7rem caption row */
  letter-spacing: 0.3em; /* same tracking value as the bottom caption row */
  text-transform: uppercase;
  color: var(--color-live);
  text-decoration: none;
  white-space: nowrap;
}

.hero__nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-live);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* Mobile only: collapse the row behind a hamburger toggle. */
@media (max-width: 700px) {
  .hero__nav {
    text-align: right; /* Option C: hamburger icon top-right */
  }

  .hero__nav-toggle {
    display: inline-block;
  }

  .hero__nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background-color: var(--color-bg);
    padding: 0.75rem 4vw 1rem;
  }

  .hero__nav-list.is-open {
    display: flex;
  }
}

.hero__headline {
  padding: 0 4vw;
}

.hero__headline h1 {
  font-family: "Milkbar", "Helvetica Neue", sans-serif;
  font-weight: normal;
  color: var(--color-live);
  line-height: 0.9;
}

.hero__headline h1 .fit-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  white-space: nowrap;
  /* Fallback size in case JS hasn't run yet; the inline script in index.html
     resizes this to exactly fill the container's width (never via letter-spacing). */
  font-size: clamp(3rem, 9vw, 12rem);
}

.hero__headline h1 .word {
  display: inline-block;
  white-space: nowrap;
}

/* Mobile only: let "Kelly" and "Martin" stack onto their own left-aligned
   lines instead of squeezing both words onto one line. Both words still
   share a single font-size (set in index.html's fit script) — it's derived
   from "Martin" alone, since that becomes the limiting factor once it's
   the one stretched to fill the screen width. */
@media (max-width: 700px) {
  .hero__headline h1 .fit-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
}

.hero__dek {
  width: 100%;
  padding: 1.5rem 4vw 2.5rem;
}

.hero__dek p {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: 0.7rem; /* same size as the homepage caption row */
  letter-spacing: 0.3em; /* same tracking as the homepage caption row */
  text-transform: uppercase;
  line-height: 1.8; /* extra breathing room since tracking makes this wrap across several lines */
  color: var(--color-live);
}

.hero__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 4vw 2.5rem;
}

.hero__caption span {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-live);
  white-space: nowrap;
}

/* Resets the link to look identical to the plain text around it —
   no underline, no color/weight change, in any state. */
.hero__caption-link,
.hero__caption-link:visited,
.hero__caption-link:hover,
.hero__caption-link:active {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}
