@font-face {
  font-family: Yuji;
  src: url('/fonts/yuji-syuku-title.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Tang;
  src: url('/fonts/brand-serif-sc-bold.woff2') format('woff2');
  unicode-range: U+70EB;
  font-display: swap;
}
:root {
  --ink: #594939;
  --paper: #f8eddb;
  --display: Yuji, Tang, "Yuji Syuku", "Yu Mincho", serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { display: flex; flex-direction: column; }
.hero {
  --hero-height: max(410px, var(--hero-viewport-height, 600px));
  position: relative;
  isolation: isolate;
  min-height: var(--hero-height);
  display: flex;
  align-items: center;
  padding: 24px max(22px, 5.2vw);
  background: #ecd6bc;
  overflow: clip;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; z-index: -3; }
.hero-bowl {
  position: absolute;
  right: 7%;
  bottom: 0;
  width: min(66%, 1050px, calc(var(--hero-height) * .84));
  aspect-ratio: 1574 / 1381;

  z-index: -2;
  pointer-events: none;
}
.hero-bowl > img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 14px 24px #3b160f60); }
.wave-surface, .wave-surface img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wave-surface { visibility: hidden; }
/* An empty alternate image can paint its replacement outline in mobile browsers. */
.wave-surface img:not([src]) { display: none; }
.hero-bowl.surge-ready .wave-surface { visibility: visible; }
.hero-bowl.surge-ready .bowl-poster { filter: brightness(0) blur(15px); opacity: .20; transform: translateY(12px); }
.bowl-steam {
  position: absolute;
  pointer-events: none;
  left: 2%;
  width: 96%;
  top: -42%;
  height: 94%;
  background: url('/previews/bowl-waves/rim-steam-still.webp?v=five-wisps') center / 100% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bowl.in-view .bowl-steam {
    background-image: url('/previews/bowl-waves/rim-steam-loop.webp?v=five-wisps');
  }
}
.ingredient-arc {
  position: absolute;
  left: -8%;
  bottom: 79%;
  width: 115%;
  height: 47%;
  pointer-events: none;
}
.arc-food {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: max(44px, var(--size));
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: zoom-in;
}
.arc-food:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.food-pose {
  display: block;
  width: 100%;
  pointer-events: none;
  transform-origin: var(--x) 50%;
  transform: perspective(350px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--zoom, 1));
  transition: transform .3s ease-out;
}
.arc-food img {
  display: block;
  width: 100%;
  height: auto;
  rotate: var(--angle);
  filter: drop-shadow(1px 6px 4px #522c2329);
}
@media (hover: hover) {
  .arc-food:hover { --zoom: 1.16; z-index: 1; }
}
.arc-food[aria-pressed="true"] { --zoom: 1.5; z-index: 2; cursor: zoom-out; }
@media (prefers-reduced-motion: no-preference) {
  .arc-food.auto-pulse { z-index: 1; }
  .arc-food.auto-pulse img { animation: ingredient-pulse 2.45s ease-in-out; }
  @keyframes ingredient-pulse {
    0%, 100% { scale: 1; }
    46%, 55% { scale: var(--pulse-peak, 1.32); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .food-pose { transition: none; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, #fff2deb8 0%, #ffefda7d 23%, transparent 49%);
}
.copy {
  position: relative;
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  gap: clamp(12px, 1.6vw, 26px);
  margin-top: clamp(4px, 2vw, 28px);
}
.copy h1 {
  margin: 0;
  font: 400 clamp(32px, min(4.4vw, var(--hero-height) / 11), 66px)/1.1 var(--display);
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
}
.title-line span { text-shadow: 0 0 3px #52e0f080, 0 0 8px #8f5df553, 0 2px 5px #07122d55; }
.title-line:first-child span:nth-child(1) { color: #ff4d6d; }
.title-line:first-child span:nth-child(2) { color: #ff9f43; }
.title-line:first-child span:nth-child(3) { color: #ffc34d; }
.title-line:last-child span:nth-child(1) { color: #ffe66d; }
.title-line:last-child span:nth-child(2) { color: #b7ec68; }
.title-line:last-child span:nth-child(3) { color: #57e389; }
.copy p {
  font: 400 clamp(14px, 1.15vw, 19px)/1.65 var(--display);
  margin: .5em 0 0;
  white-space: pre-line;
}
@media (width > 600px) {
  .hero {
    display: grid;
    grid-template-columns: max-content min(52vw, 1050px, calc(var(--hero-height) * .84));
    justify-content: center;
    column-gap: clamp(32px, 4vw, 80px);
    padding-block: 0;
  }
  .copy {
    align-self: center;
    margin-top: 0;
  }
  #tagline {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    column-gap: .72em;
    align-items: start;
    margin: 1.25em 0 0;
    font-size: clamp(15px, 1.25vw, 22px);
    line-height: 1.15;
    letter-spacing: .12em;
    white-space: nowrap;
  }
  #tagline > span {
    grid-row: 1;
    writing-mode: vertical-rl;
  }
  #tagline > :first-child { grid-column: 3; }
  #tagline > :nth-child(2) { grid-column: 2; margin-top: 1.45em; }
  #tagline > :last-child {
    grid-column: 1;
    margin-top: 2.5em;
    font-size: 1.22em;
  }
  #tagline > :last-child::after {
    content: '';
    display: inline-block;
    inline-size: 1.45em;
    block-size: 2px;
    margin-inline-start: .5em;
    vertical-align: middle;
    background: currentColor;
    clip-path: polygon(0 15%, 100% 62%, 9% 100%);
  }
  :lang(en) #tagline {
    display: flex;
    flex-direction: column;
    gap: .65em;
    letter-spacing: .02em;
  }
  :lang(en) #tagline > span { writing-mode: horizontal-tb; margin: 0; }
  :lang(en) #tagline > :nth-child(2) { margin-left: .6em; }
  :lang(en) #tagline > :last-child { margin-left: 1em; font-style: italic; }
  .hero-bowl {
    position: relative;
    right: auto;
    align-self: end;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .arc-food { --pulse-peak: 1.23; }
  .hero {
    --hero-height: max(430px, var(--hero-viewport-height, 560px));
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px 14px 14px;
  }
  .hero-photo { object-position: 56% 70%; }
  .hero-bowl { position: relative; right: auto; bottom: auto; width: min(100%, 500px); margin-top: min(24vw, 120px); }
  .ingredient-arc { left: 0; width: 100%; }
  .bowl-steam { left: 0; width: 100%; top: -40%; height: 92%; }
  .bowl-steam::after {
    content: '';
    position: absolute;
    inset: 8% 8% 0 4%;
    background: inherit;
    transform: scaleX(-1);
    opacity: .46;
    mask-image: linear-gradient(to top, transparent, #000 18%, #000 78%, transparent);
  }
  .hero::before { background: linear-gradient(90deg, #fff2dde4, #fff0d777 38%, transparent 70%); }
  .copy {
    order: 1;
    align-self: center;
    justify-content: center;
    margin: 0;
  }
  .copy h1 {
    position: relative;
    writing-mode: horizontal-tb;
    display: inline-flex;
    align-items: baseline;
    gap: .18em;
    font-size: clamp(29px, 7.5vw, 40px);
    letter-spacing: .015em;
    padding-bottom: .25em;
  }
  .copy .title-line:first-child {
    font-size: .82em;
    letter-spacing: .06em;
  }
  .copy h1::after {
    content: '';
    position: absolute;
    inset-inline: -.12em;
    bottom: -.08em;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #72e6ee 18%, #fff0a8 50%, #eca3dc 82%, transparent);
    box-shadow: 0 0 16px rgba(116,224,235,.64);
  }
  .copy p { display: none; }
}
