:root {
  --font-display: "Chubbo", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  --pink: #fbcfd4;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.5;
  background: linear-gradient(var(--pink), transparent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400; /* Chubbo Regular */
}

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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 16px;
}

.hero {
  position: relative;
}

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

/* Liquid: red with a black outline drawn behind the fill, so half of
   stroke-width shows (9 → ~4.5, matching the face's outline). */
.drip path {
  fill: #95281e;
  stroke: #000;
  stroke-width: 9;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke fill;
}

.drip-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.intro,
.bio {
  padding-inline: 1.5rem;
}

/* On load, the face and the headline fill the window so the bottom of
   COUTURE sits 47px above the window's bottom edge: 18px to the caret,
   13px of caret, 16px under it (16px above is the container's top
   padding). Spare height goes between face and word;
   on a short window it just flows. */
.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: calc(100vh - 16px - 47px);
  min-height: calc(100svh - 16px - 47px);
}

.headline {
  margin: auto 0 0;
  /* 132px; on narrow screens shrink so the spaced word (~5.4× its size) fits */
  font-size: min(132px, calc((100vw - 3rem) / 5.5));
  line-height: 1;
  text-align: center;
  letter-spacing: 0.08em;
  padding-left: 0.08em; /* letter-spacing also trails the last letter; this re-centres the word */
  /* Trim the box to the letters, so the gap is measured to the baseline. */
  text-box: trim-both cap alphabetic;
  /* The caret scrolls here: the word stays in view, just under the top. */
  scroll-margin-top: 24px;
}

/* Body copy: 20px gives ~70 characters a line in the 800px column, a
   comfortable reading measure; it eases down to 18px on phones. */
.intro p,
.bio p {
  margin: 2.5rem 0 0;
  font-size: clamp(18px, 16px + 0.5vw, 20px);
  line-height: 1.55;
}

.video {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 2.5rem 1.5rem 0;
  font-family: var(--font-display);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The cup's centre sits under the drip: the hair tip is at 231.5 / 544.46
   = 42.5% across the face. The SVG is 560 units wide with the cup's centre
   at 280, so it spans 70% and starts 35% left of that line. */
.cup-wrap {
  margin: 3rem 0 4rem;
}

.cup {
  display: block;
  width: 70%;
  margin-left: calc(42.5% - 35%);
  overflow: visible;
}

.cup-glass-fill {
  fill: #fff;
}

/* The far side's pattern, seen through the glass behind the juice. */
.cup-facets-back {
  opacity: 0.25;
}

/* Cut-glass lines and highlights sit in front of the juice. */
.cup-facets {
  fill: none;
  stroke: #000;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cup-glints {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.85;
}

.cup-glass {
  fill: none;
  stroke: #000;
  stroke-width: 6;
  stroke-linejoin: round;
  stroke-linecap: round;
}


/* A small caret in the 47px under COUTURE, hinting there's more below.
   Positioned outside the flow so the headline stays put. */
.more {
  position: absolute;
  top: calc(100% + 14px); /* + 4px padding: the caret sits 18px below the word */
  left: 50%;
  translate: -50% 0;
  display: block;
  padding: 4px 8px;
  color: #000;
}

.more svg {
  display: block;
  width: 22px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fades out for good once the page is clicked through or scrolled. */
.more {
  transition: opacity 0.3s ease;
}

.more.is-gone {
  opacity: 0;
  pointer-events: none;
}

.more:focus-visible {
  outline: 3px solid #95281e;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .more svg {
    animation: nudge 2.4s ease-in-out infinite;
  }

  @keyframes nudge {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(3px); }
  }
}

/* Mobile: the face sits flush with the top of the screen. */
@media (max-width: 600px) {
  .container {
    padding-top: 0;
  }

  .masthead {
    min-height: calc(100vh - 47px);
    min-height: calc(100svh - 47px);
  }
}
