:root {
  color-scheme: light;
  --paper: #fcf9f8;
  --plum: #372533;
  --rose: #884159;
  --pink: #f7ecee;
  --rule: #dec5cb;
  --gutter: clamp(18px, 6vw, 72px);
  --serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f0e8e9;
  color: var(--plum);
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.7;
}
.page { max-width: 1160px; margin: 0 auto; background: var(--paper); }
img { display: block; width: 100%; height: auto; }
p { line-break: strict; text-wrap: pretty; }

/* Keep a scroll-linked reveal in previews that do not run JavaScript. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.reveal-ready) [data-reveal] {
      animation: var(--reveal-animation, reveal-on-scroll) linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes reveal-on-scroll {
  from { opacity: 0.15; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes tilt-on-scroll {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(var(--reveal-tilt)); }
}

.hero {
  display: grid;
  isolation: isolate;
  background: #fbefec;
}
.hero::before {
  content: "";
  grid-area: 1 / 1 / 3 / -1;
  align-self: stretch;
  z-index: -1;
  margin-bottom: 78px;
  background: radial-gradient(ellipse 85% 170px at 98% 0, #79545a, transparent 74%), #372632;
}
.hero-heading {
  grid-area: 1 / 1;
  container-type: inline-size;
  z-index: 1;
  margin-bottom: -46px;
  padding: 30px 16px 10px;
  color: #fff7ed;
}
.hero-heading .eyebrow { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #f5c9b8; }
.hero-heading .eyebrow::after { content: ""; width: 42px; height: 1px; background: #d29c89; }
h1 {
  margin: 0;
  font: 700 clamp(27px, 10vw - 4px, 51px)/1.34 var(--serif);
  font-size: min(9.8cqi, 51px);
}
h1 span { display: block; white-space: nowrap; }
h1 span + span { color: #ffdbcf; }
.hero-photo { grid-area: 2 / 1; margin: 0; }
.hero-image { position: relative; box-shadow: 0 18px 29px -21px #513543a0; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #372632, #37263280 15%, transparent 37%);
  pointer-events: none;
}
.hero-photo figcaption { margin: 8px var(--gutter) 0 0; color: var(--rose); font-size: 14px; text-align: right; }
.hero-action { grid-area: 3 / 1; padding: 12px 16px 40px; }
.hero-intro { margin: 0; max-width: 32em; word-break: auto-phrase; }
.hero-welcome { margin: 8px 0 18px; color: var(--rose); font-weight: 700; }
.button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 66px;
  padding: 12px clamp(13px, 4vw, 24px);
  border-radius: 999px;
  background: linear-gradient(180deg, #98485f, #77374e);
  box-shadow: inset 0 1px #d193a3, inset 0 -3px #663047, 0 4px 10px #63294336;
  color: white;
  font-size: clamp(18px, 5vw, 21px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}
.button span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #fff7ed66;
  border-radius: 50%;
  font-size: 1.1em;
}
.button:hover { background: linear-gradient(180deg, #8e3e56, #6f2e46); }
.button:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.highlights, .gallery, .host-story, .next {
  padding: clamp(50px, 9vw, 90px) var(--gutter);
}
.highlights { background: radial-gradient(ellipse at 12% 35%, #f5e3db 0%, transparent 46%), #fffdfb; }
.gallery {
  background: url("images/gallery-teacup.svg") left clamp(12px, 4vw, 48px) bottom -12px / clamp(152px, 24vw, 280px) auto no-repeat,
              radial-gradient(ellipse at 100% 15%, #604052, transparent 62%), #342532;
  color: #fff8f7;
  scroll-margin-top: 10px;
}
.gallery:focus-visible { outline: 2px solid #efb7c7; outline-offset: -5px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font: 700 13px/1.6 Georgia, serif;
  letter-spacing: 0.17em;
}
.gallery .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #efb7c7;
}
.gallery .eyebrow::after {
  content: "";
  width: min(24vw, 92px);
  height: 1px;
  background: #efb7c780;
}
h2 {
  margin: 0 0 12px;
  font: 700 clamp(29px, 7.2vw, 42px)/1.4 var(--serif);
  word-break: auto-phrase;
  text-wrap: balance;
  line-break: strict;
}
.highlight-photos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  margin-bottom: 18px;
  isolation: isolate;
}
.highlight-photos img { object-fit: cover; }
.highlight-heading {
  grid-area: 2 / 1 / 3 / 8;
  z-index: 1;
  margin: -22px 8px 0 -4px;
  padding: 13px 8px 5px 13px;
  border-top: 2px solid #b67f84;
  background: #fff8f1;
  box-shadow: 0 9px 20px -14px #4c303b6b;
}
.highlight-heading .eyebrow { margin-bottom: 5px; font-size: 11px; letter-spacing: 0.12em; }
.highlight-heading h2 { margin: 0; font-size: clamp(24px, 5.8vw, 35px); text-wrap: wrap; }
.highlight-food {
  grid-area: 2 / 8 / 3 / -1;
  z-index: 1;
  margin-top: clamp(-34px, -6vw, -20px);
  aspect-ratio: 1;
  border: 5px solid #fffdfb;
  border-radius: 2px;
  object-position: center 88%;
  filter: brightness(1.11);
  transform: rotate(4deg);
  box-shadow: 0 9px 25px #4c303b34;
}
.highlight-group {
  grid-area: 1 / 1 / 2 / 12;
  aspect-ratio: 3 / 2;
  object-position: center 54%;
  filter: brightness(1.15) contrast(0.97);
  border-radius: 2px;
  outline: 1px solid #a67870;
  outline-offset: -1px;
  box-shadow: 0 11px 22px -12px #4c303b68;
}
.highlight-list { list-style: none; padding: 0; margin: 0; }
.highlight-list li {
  padding: 16px 0 18px;
  border-top: 1px solid var(--rule);
}
.highlight-list li:last-child { padding-bottom: 0; }
.highlight-list h3 {
  margin: 0 0 6px;
  color: var(--rose);
  font: 700 clamp(22px, 6vw, 28px)/1.45 var(--serif);
  word-break: auto-phrase;
  line-break: strict;
}
.highlight-list p { margin: 0; line-height: 1.6; word-break: auto-phrase; }
.highlight-list p span { white-space: nowrap; }

.gallery-intro { max-width: 28em; margin: 0 0 32px; color: #f4e4e9; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 42px) clamp(3px, 1vw, 9px);
  align-items: start;
}
.gallery-grid figure { min-width: 0; margin: 0; }
.gallery-event { grid-column: 1 / 11; }
.gallery-event:nth-child(2) { grid-column: 3 / -1; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.gallery-event img {
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 22px #20141f60;
}
.gallery-event figcaption {
  margin: 0;
  padding: 8px 0 0 12px;
  border-left: 1px solid #efb7c7a0;
}
.gallery-grid .tokyo-photo { object-position: center 59%; }
.gallery-grid .fourth-photo { object-position: center 82%; }
.gallery-grid .sixth-photo { object-position: center 62%; }
.gallery-grid .gallery-food { grid-column: 2 / 6; }
.gallery-grid .gallery-muffin { grid-column: 7 / -1; }
.gallery-food img, .gallery-muffin img {
  --reveal-animation: tilt-on-scroll;
  width: 90%;
  margin: 0 auto 9%;
  border: 4px solid #f6ebe8;
  box-shadow: 0 8px 18px #1e141d80;
}
.gallery-food img { object-position: center 69%; --reveal-tilt: -20deg; }
.gallery-muffin img { object-position: center 72%; --reveal-tilt: 20deg; }
figcaption { margin-top: 7px; font-size: 17px; line-height: 1.5; }
.gallery-food figcaption, .gallery-caption-note { word-break: keep-all; }
.photo-index { margin-right: 0.35em; color: #efb7c7; font-family: Georgia, serif; }
.gallery-caption-note { display: block; margin-top: 3px; color: #f4e4e9; font-size: 16px; }

.host-story h2 { font-size: clamp(28px, 6.4vw, 38px); }
.host-story h2 span { white-space: nowrap; }
.host-story { background: linear-gradient(155deg, #f7edf0, var(--paper) 70%); }
.host-lead {
  position: relative;
  justify-self: end;
  margin: -54px 0 0;
  padding: 15px 19px;
  border-left: 2px solid #b77587;
  background: #fff9f7;
  box-shadow: 0 12px 28px #67435420;
  color: var(--rose);
  font: 700 clamp(22px, 5.3vw, 31px)/1.45 var(--serif);
}
.host-lead span { display: block; }
.host-layout { display: grid; gap: 22px; align-items: start; margin-top: 25px; }
.host-portrait { margin: 0; width: min(70%, 300px); }
.host-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 39%;
  border-radius: 96px 96px 3px 3px;
  box-shadow: 10px -8px #e4c5cd;
}
.host-portrait figcaption { color: var(--rose); }
.host-copy { max-width: 34em; font-size: 20px; line-height: 1.75; }
.host-copy p { margin: 0; }
.host-copy p + p { margin-top: 1em; }

.next {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(68px, 10vw, 105px);
  background: linear-gradient(145deg, #f1dfe5, var(--pink));
  text-align: center;
}
.next-illustration {
  position: absolute;
  z-index: -1;
  right: -36px;
  bottom: -63px;
  width: clamp(225px, 38vw, 365px);
  opacity: 0.27;
  pointer-events: none;
}
.next p:not(.eyebrow) { margin: 10px auto 0; max-width: 29em; font-size: 20px; line-height: 1.65; }
.next-status { white-space: nowrap; }
footer { border-top: 1px solid var(--rule); padding: 20px; font-size: 16px; text-align: center; }

@media (max-width: 370px) {
  .button { gap: 4px; padding-inline: 12px; }
  .button span { width: 25px; height: 25px; }
  .host-lead { margin-top: -15px; }
}

@media (prefers-reduced-motion: no-preference) {
  h1 span { animation: cover-title 650ms cubic-bezier(0.2, 0.65, 0.3, 1) both; }
  h1 span + span { animation-delay: 100ms; }
}
@keyframes cover-title {
  from { opacity: 0.4; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 820px) {
  .hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-content: center;
    min-height: clamp(490px, 54vw, 630px);
    padding: clamp(54px, 6vw, 82px) var(--gutter);
    background: #372632;
  }
  .hero::before { display: none; }
  .hero-heading { margin: 0; padding: 0 0 18px; }
  h1 { font-size: clamp(32px, 4.15vw, 47px); font-size: min(9.8cqi, 47px); }
  .hero-photo {
    position: absolute;
    z-index: -1;
    grid-area: auto;
    inset: auto 0 0 auto;
    width: 68%;
  }
  .hero-image { box-shadow: none; }
  .hero-image::after {
    background: linear-gradient(90deg, #372632, #37263245 10%, transparent 18%),
                linear-gradient(180deg, #372632, #37263233 12%, transparent 23%),
                linear-gradient(0deg, #24182080, transparent 14%);
  }
  .hero-photo figcaption { position: absolute; right: 24px; bottom: 16px; margin: 0; color: #fff7ed; }
  .hero-action { grid-area: 2 / 1; padding: 0 26px 0 0; color: #fff7ed; }
  .hero-welcome { color: #f5c9b8; }
  .button {
    max-width: 390px;
    background: #f4ccd5;
    box-shadow: inset 0 1px #fff4f7, inset 0 -3px #c28a9b, 0 8px 20px #21141e50;
    color: #4a2337;
    font-size: clamp(18px, 2vw, 21px);
  }
  .button:hover { background: #ffe1e8; }
  .button:focus-visible { outline-color: #f4ccd5; }
  .button span { border-color: #8f496974; }
  .highlights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: 40px; }
  .highlight-photos { align-self: center; }
  .highlight-list { align-self: center; }
  .gallery-grid .gallery-event { grid-column: span 4; }
  .gallery-grid .gallery-food { grid-column: 4 / 6; }
  .gallery-grid .gallery-muffin { grid-column: 7 / 10; }
  .host-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 22px 46px; }
  .host-portrait { grid-area: 1 / 1 / span 2; width: min(100%, 300px); }
  .host-lead { justify-self: start; margin: 8px 0 0 -18px; }
  .host-copy { grid-area: 2 / 2; }
}
