/* Texture and breathing room ("間") on every page.
   1. A faint washi grain lies over the whole window, so the flat indigo reads as paper.
   2. Wider spacing between sections, and on the top page a short vertical phrase stands
      alone between some sections, so the page is read one thing at a time. */

/* ---------- 1. Washi texture ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  background: url('../assets/texture-washi.webp') repeat;
  background-size: 512px;
  mix-blend-mode: overlay;
  opacity: .34;
}
/* The cream news panel gets a touch more, like real paper under light. */
.news::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../assets/texture-washi.webp') repeat;
  background-size: 512px;
  mix-blend-mode: multiply;
  opacity: .16;
}
.news { position: relative; }

/* ---------- 2. Spacing: top page ---------- */
.message { padding-block: clamp(140px, 16vw, 240px) clamp(120px, 13vw, 200px); }
.services { padding-block: clamp(120px, 13vw, 200px); }
.meals-stage { padding-top: clamp(120px, 13vw, 200px); padding-bottom: clamp(120px, 13vw, 200px); }
.recruit { padding-block: clamp(100px, 10vw, 160px); }
.news { margin-block: clamp(120px, 13vw, 200px); }
.contact { padding-block: clamp(120px, 12vw, 180px); }

/* A short vertical phrase standing alone between sections, held by two gold hairlines. */
.rt-ma {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-block: clamp(96px, 11vw, 168px);
}
.rt-ma::before,
.rt-ma::after {
  content: '';
  width: 1px;
  height: clamp(56px, 6vw, 88px);
  background: linear-gradient(180deg, transparent, var(--rt-gold) 50%, transparent);
  opacity: .7;
}
.rt-ma p {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .6em;
  color: var(--rt-text-hi);
}
/* The sections on either side already bring their own space. */
.rt-ma + .services,
.rt-ma + .meals .meals-stage,
.rt-ma + .contact { padding-top: clamp(72px, 8vw, 120px); }

/* ---------- 2. Spacing: sub-pages ---------- */
.page-section { padding-top: clamp(108px, 13vw, 200px); }
.page-section:last-of-type:not(.page-section--tint) { padding-bottom: clamp(108px, 13vw, 200px); }
.page-section--tint { margin-top: clamp(108px, 13vw, 200px); padding-bottom: clamp(108px, 13vw, 200px); }
.page .contact { margin-top: clamp(108px, 13vw, 200px); }

@media (prefers-reduced-motion: no-preference) {
  /* The phrases fade in slowly as they come into view (see reveal.js). */
  /* Only while hidden: once shown, .fx.is-shown clears the blur. */
  .rt-ma.fx--text:not(.is-shown) { filter: blur(6px); }
}

/* The first section right under a page's photo band starts sooner: the band already
   gives the pause, so the wide gap is kept only between later sections. */
.page-hero + .page-section { padding-top: clamp(56px, 6vw, 96px); }

/* Tighter again (client: too much empty space). Roughly the spacing before the
   "間" pass, a little smaller on the sub-pages. */
.message { padding-block: clamp(88px, 9vw, 136px) clamp(72px, 7vw, 112px); }
.services { padding-block: clamp(72px, 7vw, 112px); }
.meals-stage { padding-top: clamp(72px, 7vw, 112px); padding-bottom: clamp(72px, 7vw, 112px); }
.recruit { padding-block: clamp(72px, 7vw, 112px); }
.news { margin-block: clamp(72px, 7vw, 112px); }
.contact { padding-block: clamp(72px, 7vw, 112px); }
.rt-ma { gap: 20px; padding-block: clamp(48px, 5vw, 80px); }
.rt-ma::before,
.rt-ma::after { height: clamp(40px, 4vw, 60px); }
.rt-ma + .services,
.rt-ma + .meals .meals-stage,
.rt-ma + .contact { padding-top: clamp(40px, 4vw, 64px); }

.page-section { padding-top: clamp(56px, 6vw, 96px); }
.page-section:last-of-type:not(.page-section--tint) { padding-bottom: clamp(56px, 6vw, 96px); }
.page-section--tint { margin-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.page .contact { margin-top: clamp(56px, 6vw, 96px); }

/* The washi grain now sits under the content (on the backgrounds only), so photos
   stay clean. texture-washi-soft is the same grain at the old overlay strength. */
body::after { content: none; }
body,
.services,
.meals,
.contact,
.site-footer,
.page-section--tint {
  background-image: url('../assets/texture-washi-soft.webp');
  background-size: 512px;
  background-blend-mode: overlay;
}
