kitbash Connect agent

Dusk Sky Stadium

Culture · 7 parts · hospitality · restaurant · gradient

A grainy sky fading from near black through teal, moss and yellow to pale grey, one big stadium-shaped picture frame with a thin rose outline, and everything said in narrow serif capitals. Suits restaurants, bathhouses, guesthouses and other places that sell an evening.

Get pack Remix

Whole page

Parts

Sky hero

Gradient sky with grain, a block-letter wordmark where each letter is pushed back in its own direction, serif caps links that go italic on hover, and a stadium frame with a rose outline holding a drawn dusk scene with drifting steam under a headline between two dotted rows. The frame grows in on load. Comes with the address line, a bar that slides in after scrolling, a full-screen phone menu and the fixed round stamp with turning lettering.

Code React For Figma
<header class="hero">
  <div class="hero__sky">
    <div class="hero__top">
      <button class="hero__burger" type="button" aria-expanded="false" aria-label="Open menu">
        <span class="hero__burger-lines" aria-hidden="true"></span>
      </button>
      <a class="hero__mark" href="#" aria-label="Sundog, home">
        <span class="hero__letter" aria-hidden="true">S</span>
        <span class="hero__letter" aria-hidden="true">U</span>
        <span class="hero__letter" aria-hidden="true">N</span>
        <span class="hero__letter" aria-hidden="true">D</span>
        <span class="hero__letter" aria-hidden="true">O</span>
        <span class="hero__letter" aria-hidden="true">G</span>
      </a>
      <nav class="hero__nav" aria-label="Main">
        <a class="hero__link" href="#" data-label="The house">The house</a>
        <a class="hero__link" href="#" data-label="Hot pools">Hot pools</a>
        <a class="hero__link" href="#" data-label="Tea garden">Tea garden</a>
        <a class="hero__link" href="#" data-label="Journal">Journal</a>
        <a class="hero__link" href="#" data-label="Hours">Hours</a>
      </nav>
    </div>

    <div class="hero__frame">
      <svg class="hero__view" viewBox="0 0 1200 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false">
        <defs>
          <linearGradient id="hero-dusk" x1="0" y1="0" x2="0" y2="1">
            <stop class="hero__dusk-high" offset="0" />
            <stop class="hero__dusk-mid" offset="0.4" />
            <stop class="hero__dusk-low" offset="0.68" />
          </linearGradient>
          <linearGradient id="hero-pool" x1="0" y1="0" x2="0" y2="1">
            <stop class="hero__pool-far" offset="0" />
            <stop class="hero__pool-near" offset="1" />
          </linearGradient>
          <filter id="hero-soft"><feGaussianBlur stdDeviation="0.9" /></filter>
          <filter id="hero-haze" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="16" /></filter>
        </defs>
        <g filter="url(#hero-soft)">
          <rect class="hero__dusk" width="1200" height="600" />
          <circle class="hero__halo" cx="952" cy="150" r="128" />
          <circle class="hero__sun" cx="952" cy="150" r="34" />
          <circle class="hero__dog" cx="824" cy="150" r="10" />
          <circle class="hero__dog" cx="1080" cy="150" r="10" />
          <path class="hero__ridge-far" d="M0 334C120 304 220 292 330 320S520 352 640 330 900 282 1030 308 1150 332 1200 318V600H0Z" />
          <path class="hero__ridge-near" d="M0 374C160 352 260 382 420 368S700 394 860 366 1100 374 1200 354V600H0Z" />
          <path class="hero__marsh" d="M0 408C200 396 420 418 600 406S1000 398 1200 412V600H0Z" />
          <path class="hero__channel" d="M150 424C300 414 420 432 560 424S800 416 900 424C800 430 700 428 560 434S300 426 150 424Z" />
          <path class="hero__channel" d="M700 446C800 440 960 448 1090 442 960 452 820 452 700 446Z" />
          <path class="hero__tree" d="M92 470C58 400 70 250 96 176 124 250 132 400 104 470Z" />
          <path class="hero__tree" d="M164 470C140 420 148 310 168 250 190 310 196 420 176 470Z" />
          <path class="hero__tree" d="M246 470C230 430 236 350 250 306 266 350 270 430 256 470Z" />
          <path class="hero__tree" d="M1090 470C1058 404 1068 262 1094 190 1122 262 1130 404 1102 470Z" />
          <path class="hero__tree" d="M1016 470C996 426 1002 330 1020 278 1040 330 1044 426 1026 470Z" />
          <path class="hero__deck" d="M0 462C300 436 900 436 1200 462V600H0Z" />
          <ellipse class="hero__rim" cx="600" cy="530" rx="452" ry="84" />
          <ellipse class="hero__water" cx="600" cy="534" rx="430" ry="72" />
          <ellipse class="hero__glint" cx="880" cy="494" rx="64" ry="6" />
          <ellipse class="hero__glint" cx="872" cy="512" rx="42" ry="5" />
          <ellipse class="hero__glint" cx="884" cy="530" rx="24" ry="4" />
          <path class="hero__bather" d="M452 520a15 15 0 1 1 30 0c14 4 22 12 24 22h-78c2-10 10-18 24-22Z" />
          <path class="hero__bather" d="M642 514a13 13 0 1 1 26 0c12 4 19 11 21 20h-68c2-9 9-16 21-20Z" />
          <path class="hero__bather" d="M706 528a12 12 0 1 1 24 0c11 3 18 10 20 18h-64c2-8 9-15 20-18Z" />
        </g>
        <g class="hero__steam" filter="url(#hero-haze)">
          <ellipse class="hero__puff" cx="330" cy="470" rx="120" ry="34" />
          <ellipse class="hero__puff" cx="620" cy="446" rx="170" ry="30" />
          <ellipse class="hero__puff" cx="900" cy="476" rx="130" ry="32" />
        </g>
      </svg>
      <div class="hero__veil"></div>
      <div class="hero__words">
        <span class="hero__dots" aria-hidden="true"></span>
        <h1 class="hero__title">Hot pools and tea garden above the salt marsh</h1>
        <span class="hero__dots" aria-hidden="true"></span>
      </div>
    </div>

    <p class="hero__address">
      <span class="hero__address-line">14 Larkspur Terrace, lower deck and upper deck, seaward side of Quarry Hill</span>
      <span class="hero__address-line">Port Aldous, North Shore</span>
    </p>
  </div>

  <div class="hero__bar">
    <button class="hero__burger" type="button" aria-expanded="false" aria-label="Open menu">
      <span class="hero__burger-lines" aria-hidden="true"></span>
    </button>
    <a class="hero__bar-mark" href="#" aria-label="Sundog, home">Sundog</a>
    <nav class="hero__bar-nav" aria-label="Main, short"></nav>
  </div>

  <div class="hero__menu" inert>
    <button class="hero__close" type="button" aria-label="Close menu"></button>
    <nav class="hero__menu-nav" aria-label="Main, full screen"></nav>
    <p class="hero__menu-note">Open daily, 7 to 23</p>
  </div>

  <a class="hero__stamp" href="#" aria-label="Book a soak">
    <svg class="hero__stamp-ring" viewBox="0 0 100 100" aria-hidden="true" focusable="false">
      <path id="hero-stamp-circle" d="M50 50m-34 0a34 34 0 1 1 68 0 34 34 0 1 1-68 0" fill="none" />
      <text class="hero__stamp-text"><textPath href="#hero-stamp-circle" textLength="208" lengthAdjust="spacing">Book a soak · hot pools ·</textPath></text>
    </svg>
    <svg class="hero__stamp-sign" viewBox="0 0 40 40" aria-hidden="true" focusable="false">
      <circle cx="20" cy="15" r="5" />
      <path d="M8 15a12 12 0 0 1 24 0M4 15h2M34 15h2M9 25c2.8-2.4 4.6-2.4 7.4 0s4.6 2.4 7.2 0 4.6-2.4 7.4 0M11 31c2.3-2 3.7-2 6 0s3.7 2 6 0 3.7-2 6 0" />
    </svg>
  </a>
</header>

<style>
  .hero {
    position: relative;
  }

  /* Sky: one tall gradient, grain on top, a dark wash that lifts while the frame grows. */
  .hero__sky {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: start;
    justify-items: center;
    min-height: min(75vw, 46rem);
    padding: var(--space-m) var(--gutter) var(--space-xl);
    overflow: clip;
    background: var(--sky);
  }
  .hero__sky::before,
  .hero__sky::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .hero__sky::before {
    z-index: 2;
    background: var(--ink);
    opacity: 0;
  }
  .hero__sky::after {
    z-index: 3;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
  }

  .hero__top {
    position: relative;
    display: grid;
    justify-items: center;
    width: 100%;
  }

  /* Wordmark: block letters, each pushed back in its own direction like a row of cut stones. */
  .hero__mark {
    display: flex;
    align-items: center;
    gap: 0.16em;
    min-height: var(--tap);
    color: var(--stone);
    font-family: var(--font-mark);
    font-size: clamp(2.25rem, 5.2vw, 4.7rem);
    font-weight: 400;
    line-height: var(--leading-tight);
    text-decoration: none;
  }
  .hero__letter {
    --hero-push-x: 0em;
    --hero-push-y: 0.014em;
    display: block;
    text-shadow:
      calc(var(--hero-push-x) * 1) calc(var(--hero-push-y) * 1) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 2) calc(var(--hero-push-y) * 2) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 3) calc(var(--hero-push-y) * 3) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 4) calc(var(--hero-push-y) * 4) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 5) calc(var(--hero-push-y) * 5) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 6) calc(var(--hero-push-y) * 6) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 7) calc(var(--hero-push-y) * 7) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 8) calc(var(--hero-push-y) * 8) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 9) calc(var(--hero-push-y) * 9) 0 var(--stone-shade),
      calc(var(--hero-push-x) * 10) calc(var(--hero-push-y) * 10) 0 var(--stone-shade);
  }
  .hero__letter:nth-child(1) { --hero-push-x: -0.016em; --hero-push-y: 0.009em; }
  .hero__letter:nth-child(2) { --hero-push-x: 0.007em; --hero-push-y: 0.015em; }
  .hero__letter:nth-child(3) { --hero-push-x: 0.016em; --hero-push-y: 0.008em; }
  .hero__letter:nth-child(4) { --hero-push-x: -0.008em; --hero-push-y: 0.015em; }
  .hero__letter:nth-child(5) { --hero-push-x: -0.017em; --hero-push-y: 0.006em; }
  .hero__letter:nth-child(6) { --hero-push-x: 0.015em; --hero-push-y: 0.011em; }
  .hero__mark:focus-visible,
  .hero__bar-mark:focus-visible,
  .hero__link:focus-visible,
  .hero__burger:focus-visible,
  .hero__close:focus-visible,
  .hero__stamp:focus-visible {
    outline: var(--line-focus) solid currentColor;
    outline-offset: var(--line-focus);
  }

  /* Links: serif capitals that lean into italics on hover. A hidden italic copy holds the width so nothing shifts. */
  .hero__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: clamp(0rem, 1.1vw, 1rem);
    margin-top: var(--space-m);
  }
  .hero__link {
    display: inline-grid;
    place-content: center;
    place-items: center;
    min-height: 3.75rem;
    padding: 0.2em var(--space-s) 0;
    color: var(--mist);
    font-family: var(--font-display);
    font-size: var(--text-l);
    line-height: var(--leading-tight);
    text-decoration: none;
    white-space: nowrap;
  }
  .hero__link::after {
    content: attr(data-label);
    height: 0;
    overflow: hidden;
    font-style: italic;
    visibility: hidden;
  }
  .hero__link:hover,
  .hero__link:focus-visible {
    font-style: italic;
  }

  /* Frame: a stadium with a thin rose outline. The picture inside is drawn, softened and washed dark for the headline. */
  .hero__frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1200 / 583;
    margin-top: var(--space-s);
    overflow: hidden;
    border: var(--line-frame) solid var(--rose);
    border-radius: var(--radius-frame);
    background: var(--teal);
  }
  .hero__view,
  .hero__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero__veil {
    background: var(--veil);
  }
  .hero__dusk { fill: url(#hero-dusk); }
  .hero__dusk-high { stop-color: color-mix(in oklab, var(--teal) 62%, var(--mist)); }
  .hero__dusk-mid { stop-color: color-mix(in oklab, var(--rose) 58%, var(--sun)); }
  .hero__dusk-low { stop-color: color-mix(in oklab, var(--sun) 72%, var(--mist)); }
  .hero__halo {
    fill: none;
    stroke: var(--mist);
    stroke-width: 3;
    opacity: 0.4;
  }
  .hero__sun { fill: var(--mist); }
  .hero__dog { fill: var(--mist); opacity: 0.7; }
  .hero__ridge-far { fill: color-mix(in oklab, var(--teal) 58%, var(--rose)); }
  .hero__ridge-near { fill: color-mix(in oklab, var(--teal) 72%, var(--moss)); }
  .hero__marsh { fill: color-mix(in oklab, var(--moss) 72%, var(--ink)); }
  .hero__channel { fill: color-mix(in oklab, var(--sun) 60%, var(--rose)); opacity: 0.85; }
  .hero__tree { fill: color-mix(in oklab, var(--ink) 62%, var(--moss)); }
  .hero__deck { fill: color-mix(in oklab, var(--ink) 78%, var(--teal)); }
  .hero__rim { fill: color-mix(in oklab, var(--stone-shade) 62%, var(--ink)); }
  .hero__water { fill: url(#hero-pool); }
  .hero__pool-far { stop-color: color-mix(in oklab, var(--rose) 46%, var(--sun)); }
  .hero__pool-near { stop-color: var(--teal); }
  .hero__glint { fill: var(--mist); opacity: 0.75; }
  .hero__bather { fill: var(--ink); }
  .hero__puff { fill: var(--mist); opacity: 0.4; }

  .hero__words {
    position: relative;
    display: grid;
    justify-items: center;
    gap: clamp(0.9rem, 1.7vw, 1.5rem);
    padding: 0 6%;
    color: var(--mist);
    text-align: center;
  }
  .hero__title {
    max-width: 13.5em;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: 400;
    line-height: var(--leading-tight);
    text-wrap: balance;
  }
  .hero__dots {
    --hero-dot: clamp(0.5rem, 0.83vw, 0.75rem);
    width: calc(var(--hero-dot) * 17.52);
    height: var(--hero-dot);
    background: radial-gradient(circle closest-side, currentColor 92%, transparent) 0 0 / calc(var(--hero-dot) * 2.92) 100% repeat-x;
  }

  .hero__address {
    display: grid;
    justify-items: center;
    max-width: 44em;
    margin: var(--space-m) 0 0;
    color: var(--ink-soft);
    font-size: var(--text-m);
    line-height: var(--leading-tight);
    text-align: center;
    text-wrap: balance;
  }

  /* Bar: slides in once the big wordmark and links have scrolled away. */
  .hero__bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    height: var(--bar-height);
    padding: 0 clamp(1rem, 2.8vw, 2.5rem);
    background: var(--mist);
    transform: translateY(-101%);
    visibility: hidden;
    transition: transform var(--time-fade) var(--ease-intro), visibility 0s var(--time-fade);
  }
  .hero.is-stuck .hero__bar {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .hero__bar-mark {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--stone-shade);
    font-family: var(--font-mark);
    font-size: 1.5rem;
    letter-spacing: 0.16em;
    line-height: var(--leading-tight);
    text-decoration: none;
    transition: color var(--time) var(--ease);
  }
  .hero__bar-mark:hover {
    color: var(--ink);
  }
  /* The links join the bar's own row: wordmark and last link take equal shares, so the rest sit dead centre. */
  .hero__bar-nav {
    display: contents;
  }
  .hero__bar-mark,
  .hero__bar .hero__link:last-child {
    flex: 1 0 0;
  }
  .hero__bar .hero__link {
    min-height: var(--tap);
    color: var(--ink);
    font-size: var(--text-xs);
  }
  .hero__bar .hero__link:last-child {
    justify-items: end;
    padding-right: 0;
  }

  .hero__burger,
  .hero__close {
    display: none;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    color: var(--mist);
    cursor: pointer;
  }
  .hero__bar .hero__burger {
    color: var(--ink);
  }
  .hero__burger-lines {
    width: 1.5rem;
    height: 1.125rem;
    background: linear-gradient(currentColor, currentColor) top / 100% var(--line-focus) no-repeat, linear-gradient(currentColor, currentColor) center / 100% var(--line-focus) no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% var(--line-focus) no-repeat;
  }
  .hero__close::before,
  .hero__close::after {
    content: "";
    grid-area: 1 / 1;
    width: 1.625rem;
    height: var(--line-focus);
    background: currentColor;
    rotate: 45deg;
  }
  .hero__close::after {
    rotate: -45deg;
  }

  /* Phone menu: the top of the sky fills the screen, links rise in one after another. */
  .hero__menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    padding: var(--space-s) var(--gutter) var(--space-l);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(var(--ink), var(--teal) 28%, var(--moss));
    color: var(--mist);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--time-fade) var(--ease), visibility 0s var(--time-fade);
  }
  .hero.is-open .hero__menu {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .hero__close {
    display: grid;
    justify-self: start;
  }
  .hero__menu-nav {
    display: grid;
    align-content: center;
    justify-items: center;
  }
  .hero__menu .hero__link {
    min-height: 4rem;
    font-size: var(--display-l);
    opacity: 0;
    translate: 0 1rem;
    transition: opacity var(--time-fade) var(--ease), translate var(--time-fade) var(--ease-intro);
  }
  .hero.is-open .hero__menu .hero__link {
    opacity: 1;
    translate: 0 0;
  }
  .hero.is-open .hero__menu .hero__link:nth-child(1) { transition-delay: calc(var(--stagger) * 2); }
  .hero.is-open .hero__menu .hero__link:nth-child(2) { transition-delay: calc(var(--stagger) * 3); }
  .hero.is-open .hero__menu .hero__link:nth-child(3) { transition-delay: calc(var(--stagger) * 4); }
  .hero.is-open .hero__menu .hero__link:nth-child(4) { transition-delay: calc(var(--stagger) * 5); }
  .hero.is-open .hero__menu .hero__link:nth-child(5) { transition-delay: calc(var(--stagger) * 6); }
  .hero__menu-note {
    margin: 0;
    font-size: var(--text-s);
  }

  /* Stamp: stays in the corner of the screen, its lettering turns slowly. */
  .hero__stamp {
    position: fixed;
    right: clamp(1rem, 2.8vw, 2.5rem);
    bottom: clamp(1rem, 2.8vw, 2.5rem);
    z-index: 30;
    display: grid;
    place-items: center;
    width: var(--stamp-size);
    height: var(--stamp-size);
    border-radius: 50%;
    background: var(--rose);
    color: var(--ink);
    transition: scale var(--time) var(--ease), background-color var(--time) var(--ease);
  }
  .hero__stamp:hover,
  .hero__stamp:focus-visible {
    background: var(--sun);
    scale: 1.08;
  }
  .hero__stamp-ring,
  .hero__stamp-sign {
    grid-area: 1 / 1;
  }
  .hero__stamp-ring {
    width: 100%;
    height: 100%;
  }
  .hero__stamp-text {
    fill: currentColor;
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 400;
    text-transform: none;
  }
  .hero__stamp-sign {
    width: 36%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
  }

  @keyframes hero-grow {
    from { transform: scale(0.5); }
  }
  @keyframes hero-arrive {
    from { opacity: 0; }
  }
  @keyframes hero-lift {
    from { opacity: 0.55; }
  }
  @keyframes hero-spin {
    to { rotate: 1turn; }
  }
  @keyframes hero-drift {
    from { transform: translate(-28px, 6px); }
    to { transform: translate(28px, -10px); }
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero__frame {
      animation: hero-grow var(--time-intro) var(--ease-intro) both;
    }
    .hero__sky::before {
      animation: hero-lift var(--time-intro) var(--ease) both;
    }
    .hero__top,
    .hero__words,
    .hero__address {
      animation: hero-arrive var(--time-fade) var(--ease) calc(var(--time-intro) * 0.55) both;
    }
    .hero__stamp-ring {
      animation: hero-spin var(--time-spin) linear infinite;
    }
    .hero__steam {
      animation: hero-drift calc(var(--time-spin) / 2) ease-in-out infinite alternate;
    }
  }

  @media (max-width: 59.99rem) {
    .hero__frame {
      aspect-ratio: 1.6;
    }
  }

  /* Phones: links move behind the burger once the script is running, the frame stands upright. */
  @media (max-width: 47.99rem) {
    .hero__sky {
      padding-top: var(--space-s);
    }
    .hero.is-ready .hero__nav,
    .hero__bar-nav {
      display: none;
    }
    .hero.is-ready .hero__burger {
      display: grid;
    }
    .hero__top .hero__burger {
      position: absolute;
      left: 0;
      top: 0;
    }
    .hero__nav {
      margin-top: var(--space-xs);
    }
    .hero__nav .hero__link {
      min-height: var(--tap);
      padding-inline: var(--space-xs);
    }
    .hero__frame {
      aspect-ratio: 0.7;
      margin-top: var(--space-m);
    }
    .hero__title {
      max-width: 7.2em;
    }
    .hero__bar {
      justify-content: center;
    }
    .hero__bar-mark {
      flex: none;
    }
    .hero__bar .hero__burger {
      position: absolute;
      left: clamp(1rem, 2.8vw, 2.5rem);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__bar,
    .hero__bar-mark,
    .hero__menu,
    .hero__menu .hero__link,
    .hero__stamp {
      transition-duration: 0s;
      transition-delay: 0s;
    }
    .hero__menu .hero__link {
      translate: 0 0;
    }
  }
</style>

<script>
  (() => {
    const copyLinksInto = (target, links) => {
      links.forEach((link) => target.append(link.cloneNode(true)));
    };

    const watchForLeavingTop = (root) => {
      const top = root.querySelector(".hero__top");
      const observer = new IntersectionObserver(([entry]) => {
        root.classList.toggle("is-stuck", !entry.isIntersecting && entry.boundingClientRect.bottom <= 0);
      });
      observer.observe(top);
    };

    const wireMenu = (root) => {
      const menu = root.querySelector(".hero__menu");
      const closeButton = root.querySelector(".hero__close");
      const burgers = root.querySelectorAll(".hero__burger");
      let opener = null;

      const setOpen = (open) => {
        root.classList.toggle("is-open", open);
        menu.inert = !open;
        burgers.forEach((burger) => burger.setAttribute("aria-expanded", String(open)));
      };
      const close = () => {
        if (!root.classList.contains("is-open")) return;
        setOpen(false);
        if (opener) opener.focus();
      };

      burgers.forEach((burger) => {
        burger.addEventListener("click", () => {
          opener = burger;
          setOpen(true);
          closeButton.focus();
        });
      });
      closeButton.addEventListener("click", close);
      menu.addEventListener("click", (event) => {
        if (event.target.closest(".hero__link")) close();
      });
      root.addEventListener("keydown", (event) => {
        if (event.key === "Escape") close();
      });
    };

    document.querySelectorAll(".hero").forEach((root) => {
      const links = root.querySelectorAll(".hero__nav .hero__link");
      copyLinksInto(root.querySelector(".hero__bar-nav"), links);
      copyLinksInto(root.querySelector(".hero__menu-nav"), links);
      watchForLeavingTop(root);
      wireMenu(root);
      root.classList.add("is-ready");
    });
  })();
</script>

Colour cards

Two flat cards, teal with yellow type and yellow with teal type: an engraved line sign, a small sans label, a serif title, one serif line and an italic link. Hover draws an outline in the text colour. On phones the cards become a snapping rail with the next one peeking in.

Code React For Figma
<section class="decks" aria-label="Two decks">
  <ul class="decks__list">
    <li class="decks__item">
      <a class="decks__card decks__card--deep" href="#">
        <svg class="decks__sign" viewBox="0 0 80 80" aria-hidden="true" focusable="false">
          <path d="M28 25c-4-5 4-8 0-14M40 23c-4-6 4-9 0-16M52 25c-4-5 4-8 0-14" />
          <ellipse cx="40" cy="36" rx="26" ry="7" />
          <path d="M14 36v26c0 4 11.6 7 26 7s26-3 26-7V36" />
          <path d="M14 51c0 4 11.6 7 26 7s26-3 26-7M30 36c3-1.5 6-1.5 9 0s6 1.5 9 0" />
          <path class="decks__hatch" d="M20 41v9M26 42.5v9.5M32 43v10M38 43.5v10M44 43.5v10M50 43v10M56 42.5v9.5M62 41v9M20 56v9M26 58v9M32 59v9M38 59.5v9M44 59.5v9M50 59v9M56 58v9M62 56v9" />
        </svg>
        <span class="decks__label">Lower deck</span>
        <strong class="decks__title">Hot pools</strong>
        <span class="decks__line">Three stone pools, open to the sky in every season.</span>
        <span class="decks__more">Step in</span>
      </a>
    </li>
    <li class="decks__item">
      <a class="decks__card decks__card--bright" href="#">
        <svg class="decks__sign" viewBox="0 0 80 80" aria-hidden="true" focusable="false">
          <path d="M70 27c-2-3 2-5 0-9M40 23.5V20" />
          <circle cx="40" cy="26" r="2.5" />
          <path d="M22 47c0-11 8-17 18-17s18 6 18 17-8 19-18 19-18-8-18-19Z" />
          <path d="M27 34.5c4-3 22-3 26 0M57.5 43c6-1 9-5 10-11l4 1c0 9-5 17-13.5 20M22.5 41c-8-1-12 3-12 8s5 9 12.5 8M31 69h18" />
          <path class="decks__hatch" d="M27 50c1 6 5 11 11 12M31 46c1 6 4 10 9 11M36 43c1 4 3 7 6 8M49 60c3-2 5-5 5.5-9M51 54c1-2 1.5-4 1.5-6" />
        </svg>
        <span class="decks__label">Upper deck</span>
        <strong class="decks__title">Tea garden</strong>
        <span class="decks__line">A long table where you and the kettle take your time.</span>
        <span class="decks__more">Sit down</span>
      </a>
    </li>
  </ul>
</section>

<style>
  .decks {
    padding: calc(var(--section-space) / 2) var(--gutter);
  }
  .decks__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .decks__item {
    display: grid;
  }

  /* Card: one flat colour, text in the other. The border is the card's own colour until hover turns it into an outline. */
  .decks__card {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: clamp(21rem, 32vw, 29rem);
    padding: var(--space-xl) var(--space-l);
    overflow: hidden;
    border: var(--line-frame) solid transparent;
    border-radius: var(--radius-card);
    text-align: center;
    text-decoration: none;
    transition: border-color var(--time) var(--ease);
  }
  .decks__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
  }
  .decks__card--deep {
    background-color: var(--teal);
    color: var(--sun);
  }
  .decks__card--bright {
    background-color: var(--sun);
    color: var(--teal);
  }
  .decks__card:hover,
  .decks__card:focus-visible {
    border-color: currentColor;
    outline: none;
  }

  /* Sign: a small engraving, thin outline with finer hatching. */
  .decks__sign {
    width: clamp(5rem, 7vw, 6.25rem);
    margin-bottom: var(--space-m);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .decks__hatch {
    stroke-width: 0.7;
  }

  .decks__label {
    font-size: var(--text-s);
    line-height: var(--leading-tight);
  }
  .decks__title {
    margin-top: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--display-m);
    font-weight: 400;
    line-height: var(--leading-tight);
  }
  .decks__line {
    max-width: 21em;
    margin-top: var(--space-s);
    font-family: var(--font-display);
    font-size: var(--text-m);
    line-height: var(--leading-tight);
    text-wrap: balance;
  }
  .decks__more {
    margin-top: var(--space-m);
    font-size: var(--text-xs);
    font-style: italic;
    text-decoration: underline var(--line-thin) transparent;
    text-underline-offset: 0.3em;
    transition: text-decoration-color var(--time) var(--ease);
  }
  .decks__card:hover .decks__more,
  .decks__card:focus-visible .decks__more {
    text-decoration-color: currentColor;
  }

  /* Phones: a rail that snaps card by card, the next one showing at the edge. */
  @media (max-width: 39.99rem) {
    .decks__list {
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: 84%;
      margin-inline: calc(var(--gutter) * -1);
      padding-inline: var(--gutter);
      overflow-x: auto;
      scroll-padding-inline: var(--gutter);
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }
    .decks__item {
      scroll-snap-align: start;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .decks__card,
    .decks__more {
      transition-duration: 0s;
    }
  }
</style>

Statement with pictures

One long sentence in widely spaced serif capitals with small pill-framed pictures set in the line like words, then a short paragraph in condensed sans and an outline button that fills on hover. The pictures open from their middle when the sentence comes into view.

Code React For Figma
<section class="statement">
  <h2 class="statement__title">
    At Sundog
    <span class="statement__chip" aria-hidden="true">
      <svg class="statement__view" viewBox="0 0 200 120" preserveAspectRatio="xMidYMid slice" focusable="false">
        <defs>
          <linearGradient id="statement-sky" x1="0" y1="0" x2="0" y2="1">
            <stop class="statement__sky-high" offset="0" />
            <stop class="statement__sky-low" offset="0.62" />
          </linearGradient>
          <filter id="statement-soft"><feGaussianBlur stdDeviation="0.7" /></filter>
        </defs>
        <g filter="url(#statement-soft)">
          <rect class="statement__sky" width="200" height="120" />
          <ellipse class="statement__cloud" cx="62" cy="40" rx="44" ry="11" />
          <ellipse class="statement__cloud" cx="96" cy="50" rx="34" ry="8" />
          <ellipse class="statement__cloud" cx="158" cy="34" rx="30" ry="8" />
          <path class="statement__copse" d="M0 76c10-9 18-7 26-2 6-12 18-12 24-1 8-6 16-5 22 1 8-14 22-13 28 0 8-8 20-8 26-1 10-10 22-9 28 0 8-7 18-7 24 0 6-6 14-6 22-1v20H0Z" />
          <path class="statement__reeds" d="M0 90l6-9 5 8 6-12 5 11 7-10 5 9 6-13 6 12 6-9 5 8 7-12 5 11 6-10 6 9 5-12 7 12 5-9 6 8 6-11 6 10 5-9 7 9 5-12 6 12 6-10 5 9 7-11 5 10 6-8 6 9 5-10 8 11v40H0Z" />
          <path class="statement__blades" d="M12 120l5-22M34 120l-3-26M58 120l6-24M84 120l-2-28M108 120l5-24M132 120l-4-26M156 120l6-23M182 120l-3-26" />
        </g>
      </svg>
    </span>
    the hot spring meets the cold air of the north shore.
    <span class="statement__chip" aria-hidden="true">
      <svg class="statement__view" viewBox="0 0 200 120" preserveAspectRatio="xMidYMid slice" focusable="false">
        <g filter="url(#statement-soft)">
          <rect class="statement__table" width="200" height="120" />
          <circle class="statement__warmth" cx="52" cy="26" r="62" />
          <ellipse class="statement__shade" cx="112" cy="98" rx="62" ry="12" />
          <path class="statement__bowl" d="M58 62h88c0 26-18 40-44 40S58 88 58 62Z" />
          <ellipse class="statement__brim" cx="102" cy="62" rx="44" ry="11" />
          <ellipse class="statement__tea" cx="102" cy="63" rx="37" ry="7.5" />
          <path class="statement__stem" d="M104 62c8-18 22-30 44-38" />
          <path class="statement__leaf" d="M118 42c-10-6-12-14-8-22 10 4 14 12 8 22ZM130 33c-2-12 4-18 14-20 2 10-2 18-14 20ZM126 44c10-4 18 0 22 8-10 4-18 2-22-8ZM141 28c8-8 18-8 26-2-8 8-18 8-26 2Z" />
        </g>
      </svg>
    </span>
  </h2>
  <p class="statement__text">The water rises under Quarry Hill, cools on its way down the rock and reaches you warm, with nothing added and nothing taken out.</p>
  <a class="statement__button" href="#">About the house</a>
</section>

<style>
  .statement {
    display: grid;
    justify-items: center;
    padding: calc(var(--section-space) / 2) var(--gutter);
    text-align: center;
  }

  /* One long sentence in serif capitals, words set apart, with small framed pictures sitting in the line like words. */
  .statement__title {
    max-width: 18.5em;
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 400;
    line-height: 1.62;
    word-spacing: 0.14em;
    text-wrap: balance;
  }
  .statement__chip {
    display: inline-block;
    width: 3.2em;
    height: 1.94em;
    margin: -0.5em 0.2em;
    overflow: hidden;
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-chip);
    vertical-align: middle;
  }
  .statement__view {
    display: block;
    width: 100%;
    height: 100%;
  }
  .statement__sky { fill: url(#statement-sky); }
  .statement__sky-high { stop-color: color-mix(in oklab, var(--teal) 38%, var(--mist)); }
  .statement__sky-low { stop-color: color-mix(in oklab, var(--rose) 34%, var(--mist)); }
  .statement__cloud { fill: var(--mist); opacity: 0.85; }
  .statement__copse { fill: color-mix(in oklab, var(--teal) 55%, var(--moss)); }
  .statement__reeds { fill: color-mix(in oklab, var(--moss) 78%, var(--ink)); }
  .statement__blades {
    fill: none;
    stroke: color-mix(in oklab, var(--sun) 55%, var(--moss));
    stroke-width: 1.4;
  }
  .statement__table { fill: color-mix(in oklab, var(--rose) 52%, var(--sun)); }
  .statement__warmth { fill: var(--mist); opacity: 0.45; }
  .statement__shade { fill: var(--teal); opacity: 0.28; }
  .statement__bowl { fill: var(--mist); }
  .statement__brim { fill: color-mix(in oklab, var(--mist) 82%, var(--teal)); }
  .statement__tea { fill: color-mix(in oklab, var(--moss) 70%, var(--sun)); }
  .statement__stem {
    fill: none;
    stroke: var(--teal);
    stroke-width: 2;
  }
  .statement__leaf { fill: color-mix(in oklab, var(--moss) 80%, var(--teal)); }

  .statement__text {
    max-width: 24em;
    margin: var(--space-l) 0 0;
    color: var(--ink-soft);
    font-size: var(--text-m);
    text-wrap: balance;
  }
  .statement__button {
    display: inline-flex;
    align-items: center;
    min-height: 3.125rem;
    margin-top: var(--space-l);
    padding: 0 var(--space-m);
    border: var(--line-thin) solid var(--ink);
    border-radius: var(--radius-button);
    color: var(--ink);
    font-size: var(--text-xs);
    font-weight: 400;
    text-decoration: none;
    transition: background-color var(--time) var(--ease), color var(--time) var(--ease);
  }
  .statement__button:hover,
  .statement__button:focus-visible {
    background: var(--ink);
    color: var(--mist);
  }
  .statement__button:focus-visible {
    outline: var(--line-focus) solid var(--ink);
    outline-offset: var(--line-focus);
  }

  /* With the script running, each picture opens from its middle when the sentence comes into view. */
  .statement.is-armed .statement__chip {
    clip-path: inset(0 50% round var(--radius-chip));
    transition: clip-path var(--time-intro) var(--ease-intro);
  }
  .statement.is-armed .statement__chip:last-child {
    transition-delay: calc(var(--stagger) * 4);
  }
  .statement.is-armed.is-in .statement__chip {
    clip-path: inset(0 0 round var(--radius-chip));
  }

  @media (max-width: 39.99rem) {
    .statement__title {
      line-height: 1.5;
      word-spacing: 0.08em;
    }
    .statement__chip {
      width: 2.9em;
      height: 1.6em;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .statement.is-armed .statement__chip {
      clip-path: none;
      transition: none;
    }
    .statement__button {
      transition-duration: 0s;
    }
  }
</style>

<script>
  (() => {
    const openWhenSeen = (root) => {
      const observer = new IntersectionObserver(([entry]) => {
        if (!entry.isIntersecting) return;
        root.classList.add("is-in");
        observer.disconnect();
      }, { threshold: 0.25 });
      root.classList.add("is-armed");
      observer.observe(root.querySelector(".statement__title"));
    };

    document.querySelectorAll(".statement").forEach(openWhenSeen);
  })();
</script>

Reed ribbon

A wide yellow pill printed with oversized rose reeds and a halftone fringe, crossed by two lines of italic serif capitals that drift against each other and speed up with the scroll. Stands still under reduced motion.

Code React For Figma
<section class="ribbon" aria-label="What to expect">
  <div class="ribbon__field">
    <svg class="ribbon__plants" viewBox="0 0 1200 560" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false">
      <defs>
        <pattern id="ribbon-dots-rose" width="8" height="8" patternUnits="userSpaceOnUse" patternTransform="rotate(38)">
          <circle class="ribbon__dot-rose" cx="4" cy="4" r="2.7" />
        </pattern>
        <pattern id="ribbon-dots-sun" width="8" height="8" patternUnits="userSpaceOnUse" patternTransform="rotate(38)">
          <circle class="ribbon__dot-sun" cx="4" cy="4" r="2.4" />
        </pattern>
        <g id="ribbon-reeds">
          <path d="M-40 600Q145 267 450 40 265 373-40 600Z" />
          <path d="M60-40Q171 91 200 260 89 129 60-40Z" />
          <path d="M230 620Q195 273 300-60 335 287 230 620Z" />
          <path d="M420 620Q528 328 760 120 652 412 420 620Z" />
          <path d="M520-60Q784 150 940 450 676 240 520-60Z" />
          <path d="M604 620C594 400 600 200 636-40h18C624 200 618 400 632 620Z" />
          <path d="M790 620Q828 259 1000-60 962 301 790 620Z" />
          <path d="M1010 620Q1083 379 1260 200 1187 441 1010 620Z" />
          <path d="M880-40Q1099 28 1260 190 1041 122 880-40Z" />
        </g>
      </defs>
      <use class="ribbon__fringe" href="#ribbon-reeds" transform="translate(30 16)" />
      <use class="ribbon__solid" href="#ribbon-reeds" />
      <use class="ribbon__fringe ribbon__fringe--inner" href="#ribbon-reeds" transform="translate(-14 -8)" />
      <path class="ribbon__rib" d="M-40 600Q200 310 450 40M60-40Q132 112 200 260M230 620Q262 280 300-60M420 620Q586 366 760 120M520-60Q734 198 940 450M790 620Q892 280 1000-60M1010 620Q1132 408 1260 200M880-40Q1072 78 1260 190" />
    </svg>
    <p class="ribbon__row">
      <span class="ribbon__track">
        <span class="ribbon__set">
          <span class="ribbon__phrase">Warm all winter</span>
          <span class="ribbon__phrase">Fed by the Quarry Hill spring</span>
          <span class="ribbon__phrase">Open to the sky</span>
        </span>
        <span class="ribbon__set" aria-hidden="true">
          <span class="ribbon__phrase">Warm all winter</span>
          <span class="ribbon__phrase">Fed by the Quarry Hill spring</span>
          <span class="ribbon__phrase">Open to the sky</span>
        </span>
      </span>
    </p>
    <p class="ribbon__row" aria-hidden="true">
      <span class="ribbon__track">
        <span class="ribbon__set">
          <span class="ribbon__phrase">Fed by the Quarry Hill spring</span>
          <span class="ribbon__phrase">Open to the sky</span>
          <span class="ribbon__phrase">Warm all winter</span>
        </span>
        <span class="ribbon__set">
          <span class="ribbon__phrase">Fed by the Quarry Hill spring</span>
          <span class="ribbon__phrase">Open to the sky</span>
          <span class="ribbon__phrase">Warm all winter</span>
        </span>
      </span>
    </p>
  </div>
</section>

<style>
  .ribbon {
    padding: calc(var(--section-space) / 2) var(--gutter);
  }

  /* Field: a wide pill, yellow, with oversized reeds printed in rose and a halftone fringe. */
  .ribbon__field {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    aspect-ratio: 1200 / 556;
    overflow: hidden;
    border-radius: var(--radius-frame);
    background: var(--sun);
  }
  .ribbon__field::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
  }
  .ribbon__plants {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
  }
  .ribbon__solid {
    fill: var(--rose);
  }
  .ribbon__fringe {
    fill: url(#ribbon-dots-rose);
  }
  .ribbon__fringe--inner {
    fill: url(#ribbon-dots-sun);
    opacity: 0.55;
  }
  .ribbon__rib {
    fill: none;
    stroke: var(--sun);
    stroke-width: 3;
    opacity: 0.7;
  }
  .ribbon__dot-rose {
    fill: var(--rose);
  }
  .ribbon__dot-sun {
    fill: var(--sun);
  }

  /* Lines: italic serif capitals running off both ends, the two rows moving against each other. */
  .ribbon__row {
    display: flex;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-style: italic;
    line-height: 1.5;
    white-space: nowrap;
  }
  .ribbon__track {
    display: flex;
    flex: none;
    transform: translate3d(-9%, 0, 0);
    will-change: transform;
  }
  .ribbon__row + .ribbon__row .ribbon__track {
    transform: translate3d(-31%, 0, 0);
  }
  .ribbon__set {
    display: flex;
    flex: none;
  }
  .ribbon__phrase {
    padding-right: 0.85em;
  }

  @media (max-width: 47.99rem) {
    .ribbon__field {
      aspect-ratio: 1.25;
    }
  }
</style>

<script>
  (() => {
    const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)");
    const tokenNumber = (root, name) => parseFloat(getComputedStyle(root).getPropertyValue(name)) || 0;
    const wrap = (distance, loop) => ((distance % loop) + loop) % loop;

    const drift = (root) => {
      const tracks = [...root.querySelectorAll(".ribbon__track")];
      const pxPerMs = tokenNumber(root, "--drift-speed") / 1000;
      const pxPerScrolledPx = tokenNumber(root, "--drift-scroll");
      const loops = new Map();
      let drifted = 0;
      let lastTick = 0;
      let frame = 0;

      const measure = () => tracks.forEach((track) => loops.set(track, track.scrollWidth / 2));
      const place = () => {
        const travelled = drifted + window.scrollY * pxPerScrolledPx;
        tracks.forEach((track, index) => {
          const loop = loops.get(track);
          const offset = wrap(travelled, loop);
          const x = index % 2 ? offset - loop : -offset;
          track.style.transform = `translate3d(${x.toFixed(1)}px, 0, 0)`;
        });
      };
      const tick = (now) => {
        drifted += (now - (lastTick || now)) * pxPerMs;
        lastTick = now;
        place();
        frame = requestAnimationFrame(tick);
      };
      const start = () => {
        if (frame || reducedMotion.matches) return;
        lastTick = 0;
        frame = requestAnimationFrame(tick);
      };
      const stop = () => {
        cancelAnimationFrame(frame);
        frame = 0;
      };

      const sizes = new ResizeObserver(measure);
      tracks.forEach((track) => sizes.observe(track));
      measure();
      new IntersectionObserver(([entry]) => (entry.isIntersecting ? start() : stop())).observe(root);
    };

    document.querySelectorAll(".ribbon").forEach(drift);
  })();
</script>

Fret tiles

Two square tiles with big radii, each a fade between two colours with a soft picture printed in the same two, a stepped fret border drawn to fit by the script, a serif title, one line and an italic link. The picture grows slightly on hover.

Code React For Figma
<section class="tiles" aria-label="Where to go">
  <ul class="tiles__list">
    <li class="tiles__item">
      <a class="tiles__tile tiles__tile--dusk" href="#">
        <svg class="tiles__view" viewBox="0 0 600 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false">
          <defs>
            <filter id="tiles-soft" x="-10%" y="-10%" width="120%" height="120%"><feGaussianBlur stdDeviation="3.2" /></filter>
            <filter id="tiles-haze" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="22" /></filter>
          </defs>
          <g filter="url(#tiles-soft)">
            <path class="tiles__dark" d="M0 0h600v150C520 200 470 150 400 190S250 170 190 210 60 190 0 230Z" opacity="0.5" />
            <ellipse class="tiles__light" cx="300" cy="452" rx="262" ry="132" opacity="0.5" />
            <ellipse class="tiles__dark-line" cx="300" cy="452" rx="262" ry="132" stroke-width="26" opacity="0.5" />
            <ellipse class="tiles__light-line" cx="330" cy="462" rx="78" ry="28" stroke-width="5" opacity="0.6" />
            <ellipse class="tiles__light-line" cx="330" cy="466" rx="138" ry="54" stroke-width="4" opacity="0.4" />
            <ellipse class="tiles__light-line" cx="330" cy="470" rx="196" ry="84" stroke-width="3" opacity="0.25" />
            <path class="tiles__dark" d="M304 440a27 27 0 1 1 54 0c24 6 38 20 42 38H262c4-18 18-32 42-38Z" opacity="0.8" />
            <path class="tiles__light-line" d="M96 470V350c0-44 56-44 56 0M152 482V362" stroke-width="9" opacity="0.7" />
            <path class="tiles__dark" d="M440 600c10-70 60-120 160-140v140Z" opacity="0.45" />
          </g>
          <g filter="url(#tiles-haze)">
            <ellipse class="tiles__light" cx="210" cy="356" rx="150" ry="34" opacity="0.26" />
            <ellipse class="tiles__light" cx="430" cy="340" rx="130" ry="30" opacity="0.2" />
          </g>
        </svg>
        <span class="tiles__fret" aria-hidden="true">
          <svg class="tiles__fret-line" focusable="false"><path class="tiles__fret-path" /></svg>
        </span>
        <span class="tiles__words">
          <strong class="tiles__title">Hot pools</strong>
          <span class="tiles__line">Soak until the lamps come on along the rail.</span>
          <span class="tiles__more">See the pools</span>
        </span>
      </a>
    </li>
    <li class="tiles__item">
      <a class="tiles__tile tiles__tile--noon" href="#">
        <svg class="tiles__view" viewBox="0 0 600 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false">
          <g filter="url(#tiles-soft)">
            <path class="tiles__dark" d="M40 60c50-34 104-30 150 6-54 30-106 28-150-6ZM250 30c56-22 108-8 144 36-58 18-108 6-144-36ZM430 110c44-40 96-48 150-22-42 42-94 50-150 22ZM120 170c34-44 82-60 140-46-30 48-78 64-140 46ZM330 190c48-30 98-28 142 8-50 28-98 26-142-8Z" opacity="0.22" />
            <ellipse class="tiles__dark" cx="300" cy="446" rx="270" ry="128" opacity="0.3" />
            <ellipse class="tiles__light-line" cx="300" cy="446" rx="246" ry="112" stroke-width="4" opacity="0.4" />
            <path class="tiles__dark" d="M196 420c-34-4-50 12-50 30s18 32 52 26ZM372 420l66-38 14 18-66 50Z" opacity="0.6" />
            <ellipse class="tiles__dark" cx="290" cy="440" rx="96" ry="60" opacity="0.72" />
            <ellipse class="tiles__light-line" cx="290" cy="428" rx="56" ry="30" stroke-width="5" opacity="0.55" />
            <ellipse class="tiles__light" cx="290" cy="420" rx="14" ry="9" opacity="0.7" />
            <ellipse class="tiles__dark" cx="474" cy="486" rx="46" ry="26" opacity="0.62" />
            <ellipse class="tiles__light" cx="474" cy="482" rx="34" ry="17" opacity="0.6" />
            <ellipse class="tiles__dark" cx="140" cy="506" rx="42" ry="24" opacity="0.62" />
            <ellipse class="tiles__light" cx="140" cy="502" rx="31" ry="16" opacity="0.6" />
          </g>
          <g filter="url(#tiles-haze)">
            <ellipse class="tiles__light" cx="300" cy="330" rx="90" ry="30" opacity="0.35" />
          </g>
        </svg>
        <span class="tiles__fret" aria-hidden="true">
          <svg class="tiles__fret-line" focusable="false"><path class="tiles__fret-path" /></svg>
        </span>
        <span class="tiles__words">
          <strong class="tiles__title">Tea garden</strong>
          <span class="tiles__line">Six teas, one soup and bread from the stone oven.</span>
          <span class="tiles__more">See the table</span>
        </span>
      </a>
    </li>
  </ul>
</section>

<style>
  .tiles {
    padding: calc(var(--section-space) / 2) var(--gutter);
  }
  .tiles__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Tile: a square with a two-colour fade and a picture printed in the same two colours. */
  .tiles__tile {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-tile);
    text-decoration: none;
  }
  .tiles__tile--dusk {
    background: linear-gradient(var(--teal) 50%, var(--sun) 96%);
    color: var(--sun);
  }
  .tiles__tile--noon {
    background: linear-gradient(var(--sun) 28%, var(--moss));
    color: var(--teal);
  }
  .tiles__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
  }
  .tiles__view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: scale var(--time-intro) var(--ease-intro);
  }
  .tiles__tile:hover .tiles__view,
  .tiles__tile:focus-visible .tiles__view {
    scale: 1.04;
  }
  .tiles__dark { fill: var(--teal); }
  .tiles__light { fill: var(--sun); }
  .tiles__dark-line,
  .tiles__light-line {
    fill: none;
    stroke-linecap: round;
  }
  .tiles__dark-line { stroke: var(--teal); }
  .tiles__light-line { stroke: var(--sun); }

  /* Fret: a stepped line running round the tile. Plain border until the script has drawn the steps. */
  .tiles__fret {
    position: absolute;
    inset: clamp(1rem, 2vw, 1.75rem);
    border: var(--line-fret) solid currentColor;
    font-size: var(--fret-step);
  }
  .tiles__fret.is-drawn {
    border-color: transparent;
  }
  .tiles__fret-line {
    position: absolute;
    inset: calc(var(--line-fret) * -1);
    width: calc(100% + var(--line-fret) * 2);
    height: calc(100% + var(--line-fret) * 2);
    overflow: visible;
  }
  .tiles__fret-path {
    fill: none;
    stroke: currentColor;
    stroke-width: var(--line-fret);
    stroke-linejoin: miter;
  }

  .tiles__words {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: start;
    justify-items: center;
    padding: 17% 13% 0;
    text-align: center;
  }
  .tiles__title {
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 400;
    line-height: 0.9;
  }
  .tiles__line {
    max-width: 16em;
    margin-top: var(--space-s);
    font-family: var(--font-display);
    font-size: var(--text-m);
    line-height: var(--leading-tight);
    text-wrap: balance;
  }
  .tiles__more {
    margin-top: var(--space-l);
    font-family: var(--font-display);
    font-size: var(--text-s);
    font-style: italic;
    line-height: var(--leading-tight);
  }
  .tiles__tile:hover .tiles__more,
  .tiles__tile:focus-visible .tiles__more {
    font-style: normal;
  }
  .tiles__tile:focus-visible {
    outline: var(--line-focus) solid var(--ink);
    outline-offset: var(--line-focus);
  }

  @media (max-width: 39.99rem) {
    .tiles__list {
      grid-template-columns: minmax(0, 1fr);
    }
    .tiles__words {
      padding-top: 19%;
    }
    .tiles__more {
      margin-top: var(--space-m);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .tiles__view {
      transition: none;
    }
    .tiles__tile:hover .tiles__view,
    .tiles__tile:focus-visible .tiles__view {
      scale: 1;
    }
  }
</style>

<script>
  (() => {
    const EDGES = [
      { along: [1, 0], inward: [0, 1] },
      { along: [0, 1], inward: [-1, 0] },
      { along: [-1, 0], inward: [0, -1] },
      { along: [0, -1], inward: [1, 0] },
    ];
    const line = ([x, y], length) => `l${(x * length).toFixed(2)} ${(y * length).toFixed(2)}`;

    /* An odd number of runs, so every edge starts and ends on the outside and the corners match. */
    const oddRuns = (length, step) => {
      const runs = Math.max(3, Math.round(length / step));
      return runs % 2 ? runs : runs + 1;
    };
    const steppedEdge = ({ along, inward }, length, step) => {
      const runs = oddRuns(length, step);
      return Array.from({ length: runs }, (_, index) => {
        const isLast = index === runs - 1;
        const turn = index % 2 ? -step : step;
        return line(along, length / runs) + (isLast ? "" : line(inward, turn));
      }).join("");
    };
    const steppedFrame = (width, height, step) =>
      `M0 0${EDGES.map((edge) => steppedEdge(edge, edge.along[0] ? width : height, step)).join("")}Z`;

    const drawFret = (fret) => {
      const svg = fret.querySelector(".tiles__fret-line");
      const path = fret.querySelector(".tiles__fret-path");
      const stroke = parseFloat(getComputedStyle(path).strokeWidth);
      const step = parseFloat(getComputedStyle(fret).fontSize);
      const { width, height } = svg.getBoundingClientRect();
      if (!width || !height) return;
      svg.setAttribute("viewBox", `${-stroke / 2} ${-stroke / 2} ${width} ${height}`);
      path.setAttribute("d", steppedFrame(width - stroke, height - stroke, step));
      fret.classList.add("is-drawn");
    };

    document.querySelectorAll(".tiles").forEach((root) => {
      const redraw = new ResizeObserver((entries) => entries.forEach((entry) => drawFret(entry.target)));
      root.querySelectorAll(".tiles__fret").forEach((fret) => redraw.observe(fret));
    });
  })();
</script>

Feed row

A serif handle with a sans label over four soft-cornered square pictures drawn in the palette (a poster, reeds at dusk, a pool floor, a tea table). Each rounds into a circle on hover. Two by two on phones.

Code React For Figma
<section class="follow">
  <p class="follow__head">
    <a class="follow__handle" href="#">@sundog.pools</a>
    <span class="follow__label">Follow the steam</span>
  </p>
  <ul class="follow__grid">
    <li class="follow__item">
      <a class="follow__shot" href="#" aria-label="Post: late soak on Fridays, pools open until one">
        <svg class="follow__view" viewBox="0 0 300 300" aria-hidden="true" focusable="false">
          <rect class="follow__rose" width="300" height="300" />
          <circle class="follow__sun" cx="150" cy="236" r="96" />
          <circle class="follow__ring" cx="150" cy="236" r="128" />
          <text class="follow__poster-big" x="150" y="92" text-anchor="middle">LATE</text>
          <text class="follow__poster-big" x="150" y="136" text-anchor="middle">SOAK</text>
          <text class="follow__poster-small" x="150" y="166" text-anchor="middle">Fridays · open till one</text>
          <text class="follow__poster-mark" x="150" y="262" text-anchor="middle">SUNDOG</text>
        </svg>
      </a>
    </li>
    <li class="follow__item">
      <a class="follow__shot" href="#" aria-label="Post: reeds on the marsh at dusk">
        <svg class="follow__view" viewBox="0 0 300 300" aria-hidden="true" focusable="false">
          <defs>
            <linearGradient id="follow-dusk" x1="0" y1="0" x2="0" y2="1">
              <stop class="follow__dusk-high" offset="0" />
              <stop class="follow__dusk-low" offset="0.75" />
            </linearGradient>
            <filter id="follow-soft"><feGaussianBlur stdDeviation="0.9" /></filter>
          </defs>
          <g filter="url(#follow-soft)">
            <rect class="follow__dusk" width="300" height="300" />
            <circle class="follow__moon" cx="214" cy="176" r="30" />
            <path class="follow__far" d="M0 214c40-14 80-10 120-2s90 6 180-10v98H0Z" />
            <path class="follow__water" d="M0 232c60-6 120 4 180-2s90-4 120-2v72H0Z" />
            <path class="follow__reed" d="M34 300C40 220 50 150 74 84 62 160 56 226 52 300ZM78 300c2-70 6-130 0-196 16 60 18 130 16 196ZM120 300c-4-60 2-120 26-176-12 62-12 120-10 176ZM176 300c-2-50-10-96-30-140 30 40 44 90 46 140ZM226 300c0-66 10-124 34-180-12 62-16 120-18 180ZM268 300c-2-44 4-84 20-120-6 44-6 82-6 120Z" />
            <path class="follow__plume" d="M74 84c-12-18-10-40 2-58 10 20 8 40-2 58ZM78 104c-14-12-18-30-12-48 14 14 18 30 12 48ZM146 124c-8-20-2-40 14-54 6 20 2 40-14 54ZM260 120c-10-18-6-38 8-52 8 18 6 38-8 52Z" />
          </g>
        </svg>
      </a>
    </li>
    <li class="follow__item">
      <a class="follow__shot" href="#" aria-label="Post: a slice of lemon floating in the hottest pool">
        <svg class="follow__view" viewBox="0 0 300 300" aria-hidden="true" focusable="false">
          <defs>
            <pattern id="follow-floor" width="60" height="60" patternUnits="userSpaceOnUse" patternTransform="rotate(12)">
              <rect class="follow__floor-a" width="60" height="60" />
              <rect class="follow__floor-b" width="30" height="30" />
              <rect class="follow__floor-b" x="30" y="30" width="30" height="30" />
            </pattern>
          </defs>
          <g filter="url(#follow-soft)">
            <rect class="follow__floor" width="300" height="300" />
            <circle class="follow__ripple" cx="164" cy="150" r="52" />
            <circle class="follow__ripple" cx="164" cy="150" r="92" />
            <circle class="follow__ripple" cx="164" cy="150" r="140" />
            <circle class="follow__peel" cx="164" cy="150" r="34" />
            <circle class="follow__flesh" cx="164" cy="150" r="27" />
            <path class="follow__pith" d="M164 123v54M137 150h54M145 131l38 38M183 131l-38 38" />
          </g>
        </svg>
      </a>
    </li>
    <li class="follow__item">
      <a class="follow__shot" href="#" aria-label="Post: three bowls of tea on the long table">
        <svg class="follow__view" viewBox="0 0 300 300" aria-hidden="true" focusable="false">
          <g filter="url(#follow-soft)">
            <rect class="follow__cloth" width="300" height="300" />
            <path class="follow__stripe" d="M-20 70 320 10v26L-20 96ZM-20 190l340-60v26L-20 216ZM-20 300l340-60v26L-20 326Z" />
            <ellipse class="follow__cast" cx="104" cy="118" rx="58" ry="52" />
            <ellipse class="follow__cast" cx="214" cy="174" rx="50" ry="46" />
            <ellipse class="follow__cast" cx="112" cy="232" rx="44" ry="40" />
            <circle class="follow__cup" cx="96" cy="108" r="52" />
            <circle class="follow__brew" cx="96" cy="108" r="40" />
            <circle class="follow__cup" cx="206" cy="166" r="45" />
            <circle class="follow__brew follow__brew--dark" cx="206" cy="166" r="34" />
            <circle class="follow__cup" cx="106" cy="224" r="39" />
            <circle class="follow__brew" cx="106" cy="224" r="29" />
            <path class="follow__sprig" d="M226 60c-18 6-30 18-36 36M214 66c-2-12 4-20 14-24 2 10-2 20-14 24ZM204 76c-10-6-12-16-8-26 10 6 14 16 8 26ZM200 82c10-2 18 2 22 12-10 2-18-2-22-12Z" />
          </g>
        </svg>
      </a>
    </li>
  </ul>
</section>

<style>
  .follow {
    padding: calc(var(--section-space) / 2) var(--gutter);
  }
  .follow__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 var(--space-s);
    margin: 0 0 var(--space-m);
  }
  .follow__handle {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--text-l);
    line-height: var(--leading-tight);
    text-decoration: none;
  }
  .follow__handle:hover,
  .follow__handle:focus-visible {
    font-style: italic;
  }
  .follow__handle:focus-visible,
  .follow__shot:focus-visible {
    outline: var(--line-focus) solid var(--ink);
    outline-offset: var(--line-focus);
  }
  .follow__label {
    color: var(--ink-soft);
    font-size: var(--text-m);
  }

  .follow__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Shot: a soft-cornered square that rounds into a circle under the pointer. */
  .follow__shot {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-card);
    transition: border-radius var(--time-fade) var(--ease-intro);
  }
  .follow__shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
  }
  .follow__shot:hover,
  .follow__shot:focus-visible {
    border-radius: 50%;
  }
  .follow__view {
    display: block;
    width: 100%;
    height: 100%;
  }

  .follow__rose { fill: var(--rose); }
  .follow__sun { fill: var(--sun); }
  .follow__ring {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1;
  }
  .follow__poster-big,
  .follow__poster-mark {
    fill: var(--ink);
    font-family: var(--font-mark);
  }
  .follow__poster-big {
    font-size: 44px;
    letter-spacing: 0.06em;
  }
  .follow__poster-mark {
    font-size: 15px;
    letter-spacing: 0.2em;
  }
  .follow__poster-small {
    fill: var(--ink);
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 400;
  }

  .follow__dusk { fill: url(#follow-dusk); }
  .follow__dusk-high { stop-color: var(--teal); }
  .follow__dusk-low { stop-color: color-mix(in oklab, var(--rose) 70%, var(--sun)); }
  .follow__moon { fill: var(--mist); }
  .follow__far { fill: color-mix(in oklab, var(--teal) 70%, var(--rose)); }
  .follow__water { fill: color-mix(in oklab, var(--rose) 45%, var(--teal)); }
  .follow__reed { fill: color-mix(in oklab, var(--ink) 70%, var(--moss)); }
  .follow__plume { fill: color-mix(in oklab, var(--ink) 45%, var(--moss)); }

  .follow__floor { fill: url(#follow-floor); }
  .follow__floor-a { fill: var(--teal); }
  .follow__floor-b { fill: color-mix(in oklab, var(--teal) 78%, var(--mist)); }
  .follow__ripple {
    fill: none;
    stroke: var(--mist);
    stroke-width: 3;
    opacity: 0.4;
  }
  .follow__peel { fill: var(--sun); }
  .follow__flesh { fill: color-mix(in oklab, var(--sun) 62%, var(--mist)); }
  .follow__pith {
    fill: none;
    stroke: var(--sun);
    stroke-width: 2.5;
  }

  .follow__cloth { fill: var(--sun); }
  .follow__stripe { fill: color-mix(in oklab, var(--sun) 76%, var(--mist)); }
  .follow__cast { fill: var(--moss); opacity: 0.45; }
  .follow__cup { fill: var(--mist); }
  .follow__brew { fill: color-mix(in oklab, var(--moss) 74%, var(--sun)); }
  .follow__brew--dark { fill: color-mix(in oklab, var(--teal) 70%, var(--moss)); }
  .follow__sprig {
    fill: var(--teal);
    stroke: var(--teal);
    stroke-width: 2;
    stroke-linecap: round;
  }

  @media (max-width: 47.99rem) {
    .follow__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .follow__shot {
      transition-duration: 0s;
    }
  }
</style>

Style

  • --ink #252427
  • --ink-soft #3a393b
  • --teal #05495a
  • --moss #5d8530
  • --sun #dbc44b
  • --mist #e3e8e2
  • --rose #ff9a98
  • --stone #d2d2ce
  • --stone-shade #68696c
  • --veil rgba(20, 20, 24, 0.34)

Type

  • Instrument Serif 400, roman and italic, always capitals for headlines, navigation, card titles, ribbon lines, stands in for a licensed light, narrow editorial serif with a sharp italic
  • Roboto Condensed 300 and 400, always capitals for addresses, labels, paragraphs, buttons, fine print, stands in for a licensed light condensed grotesk
  • Gasoek One, pushed back with stacked shadows for wordmark only, stands in for a custom wordmark of chunky stone-block letters with slit counters, each seen from its own angle

Motion

  • On load the picture frame grows from half size to full over 1.1s on a fast-start, long-settle curve while a dark wash lifts off the sky; wordmark, links, headline and address fade in over 0.5s once the frame is most of the way there.
  • Steam in the hero picture drifts sideways and back, 8s each way, so the frame feels like footage and not a still.
  • Serif links switch from roman to italic on hover with no transition; a hidden italic copy holds their width so nothing shifts.
  • Once the big wordmark and links have scrolled away, a pale bar with a small flat wordmark slides down from the top in 0.5s. On phones the links live in a full-screen menu and rise in 60ms apart.
  • The lettering on the round stamp turns once every 16s; on hover the stamp grows 8% and turns from rose to yellow in 0.2s.
  • The two ribbon lines move against each other: a slow constant drift of 26px a second, plus half a pixel for every pixel the page scrolls.
  • Small pictures inside the statement open from their middle like curtains over 1.1s when the sentence comes into view.
  • Colour cards show an outline in their text colour on hover, the outline button fills with ink, feed pictures round from soft squares into circles: all hovers 0.2s ease except the rounding, 0.5s.

Rules

  • Everything is capitals. Hierarchy comes from the face and the size, never from weight or case.
  • Two voices: a narrow serif for anything with a name or a claim, a light condensed grotesk for facts such as addresses, floor labels and buttons.
  • Serif capitals are set solid, line height 1, centred. Italic is the only emphasis and the only hover state for serif links.
  • The hero is a single top-to-bottom gradient: ink, teal at 11%, moss at 29%, yellow at 58%, the page's pale grey from 87%, so it lands on the page with no edge.
  • Pictures never have square corners: a stadium with a 6px rose outline for the hero, 48 to 64px radii for cards and tiles, small pills with a 1px ink outline inside a sentence.
  • Colour blocks pair exactly two colours: teal with yellow text or yellow with teal text. Tile pictures are printed in those same two colours over a fade between them.
  • A stepped fret line, one stroke in the text colour, runs inside picture tiles with every corner starting and ending on the outside.
  • Film grain lies over every coloured surface, blended as overlay at about a third strength.
  • The headline over the hero picture sits between two rows of six dots.
  • The page ends the way it began: the pale grey warms into a rose glow behind a flat black wordmark and oversized serif links.
  • One round rose stamp with lettering on a circle stays fixed in the bottom right corner on every screen.
base.css
@import url("https://fonts.googleapis.com/css2?family=Gasoek+One&family=Instrument+Serif:ital@0;1&family=Roboto+Condensed:ital,wght@0,300;0,400;1,300;1,400&display=swap");

:root {
  --ink: #252427; /* text, thin outlines, top of the sky */
  --ink-soft: #3a393b; /* address lines and other second-level text */
  --teal: #05495a; /* upper sky, dark cards, text on yellow */
  --moss: #5d8530; /* middle of the sky, lower half of yellow tiles */
  --sun: #dbc44b; /* low sky, yellow cards, text on teal */
  --mist: #e3e8e2; /* page background, text over pictures */
  --rose: #ff9a98; /* frame outline, stamp, footer glow, ribbon plants */
  --stone: #d2d2ce; /* face of the block wordmark */
  --stone-shade: #68696c; /* sides of the block wordmark, small wordmark in the bar */
  --veil: rgba(20, 20, 24, 0.34); /* dark wash between a picture and the headline on it */

  --sky: linear-gradient(var(--ink), var(--teal) 11%, var(--moss) 29%, var(--sun) 58%, var(--mist) 87%); /* hero background, top to bottom */
  --glow: linear-gradient(var(--mist), var(--rose) 36%, color-mix(in srgb, var(--rose) 45%, var(--mist)) 72%, var(--rose)); /* footer background */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='3 0 0 0 -1 3 0 0 0 -1 3 0 0 0 -1 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); /* film grain tile, laid over colour with overlay blending */
  --grain-strength: 0.14; /* opacity of the grain layer */

  --font-display: "Instrument Serif", "Times New Roman", serif; /* narrow light serif, always capitals: headlines, navigation, card titles */
  --font-text: "Roboto Condensed", "Arial Narrow", sans-serif; /* light condensed grotesk, always capitals: addresses, labels, buttons */
  --font-mark: "Gasoek One", "Arial Black", sans-serif; /* block letters with slit counters: wordmark only */

  --display-xl: clamp(2.6rem, 5.42vw, 4.875rem); /* hero headline, ribbon lines */
  --display-l: clamp(2.1rem, 4.3vw, 3.875rem); /* statement, tile titles */
  --display-m: clamp(1.9rem, 3.35vw, 3rem); /* card titles, footer links */
  --display-s: clamp(1.5rem, 2.5vw, 2.25rem); /* footer tagline */
  --text-l: clamp(1.25rem, 2.05vw, 1.875rem); /* hero navigation, handle */
  --text-m: clamp(1.125rem, 1.67vw, 1.5rem); /* address, paragraph, serif lines on cards */
  --text-s: clamp(1.0625rem, 1.4vw, 1.25rem); /* labels above titles */
  --text-xs: 1rem; /* buttons, bar links, text links */
  --text-xxs: 0.8125rem; /* fine print */
  --leading-tight: 1; /* serif capitals */
  --leading-text: 1.2; /* condensed sans */

  --gutter: clamp(1rem, 9.9vw - 1.4rem, 7.5rem); /* side padding of the page */
  --gap: clamp(1rem, 1.67vw, 1.5rem); /* between cards and tiles */
  --space-xs: 0.5rem; /* between a label and its title */
  --space-s: 1rem; /* between lines of one block */
  --space-m: 1.5rem; /* between blocks inside a card */
  --space-l: 2.5rem; /* card padding, above buttons */
  --space-xl: clamp(3rem, 5.5vw, 5rem); /* top and bottom padding of cards */
  --section-space: clamp(4rem, 8.3vw, 7.5rem); /* vertical room between sections */
  --tap: 2.75rem; /* smallest height of anything tappable */
  --bar-height: 4rem; /* bar that slides in after the hero */
  --stamp-size: 5.375rem; /* round stamp */

  --radius-frame: clamp(8.5rem, 19vw, 17.25rem); /* big picture frame and ribbon */
  --radius-tile: clamp(2.5rem, 4.45vw, 4rem); /* square picture tiles */
  --radius-card: clamp(2rem, 3.35vw, 3rem); /* colour cards, small pictures */
  --radius-chip: 0.58em; /* pictures set inside a line of text, relative to the type around them */
  --radius-button: 1.25rem; /* outline button */
  --line-frame: clamp(4px, 0.42vw, 6px); /* rose outline of the hero frame, hover outline of cards */
  --line-fret: clamp(3px, 0.28vw, 4px); /* stepped border inside tiles */
  --fret-step: clamp(0.625rem, 0.97vw, 0.875rem); /* length of one step of the stepped border */
  --line-thin: 1px; /* outlines of buttons and small pictures */
  --line-focus: 2px; /* focus rings */

  --ease: ease; /* every hover */
  --time: 0.2s; /* every hover */
  --ease-intro: cubic-bezier(0.22, 1, 0.36, 1); /* frame growing, things opening */
  --time-intro: 1.1s; /* hero frame growing to size */
  --time-fade: 0.5s; /* text arriving after the frame, menu items */
  --time-spin: 16s; /* one turn of the stamp lettering */
  --stagger: 0.06s; /* wait between menu items */
  --drift-speed: 26; /* ribbon lines, pixels per second while the page is still */
  --drift-scroll: 0.5; /* ribbon lines, pixels moved for every pixel scrolled */
}

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-m);
  font-weight: 300;
  line-height: var(--leading-text);
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

For your agent

Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("dusk-sky-stadium"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect