/* Mushin — shared base tokens, type, and chrome across all site directions */

:root {
  --cream:   #F3EFE7;
  --cream-2: #EDE7DB;   /* slightly deeper panel cream */
  --ink:     #1A1A1A;
  --body:    #4A4A4A;
  --muted:   #8A8A8A;
  --faint:   #C8C3BA;
  --border:  #E2DCD0;
  --gold:    #A8852A;
  --night:   #161413;   /* dark section bg */
  --night-2: #211E1B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--cream);
  color: var(--body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.serif { font-family: 'Cormorant Garamond', serif; }

/* shared eyebrow / kicker label */
.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.muted { color: var(--muted); }

/* ---- ensō (raster, draws itself via a sweeping conic mask) ---- */
.enso {
  background: center / contain no-repeat;
  -webkit-mask: center/contain no-repeat;
  mask: center/contain no-repeat;
}
@property --sweep {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.enso--draw {
  /* The conic mask reveals the ensō as --sweep goes 0deg -> 372deg.
     Driven by JS (motion.js initEnso) via requestAnimationFrame, NOT a
     CSS @property animation — the CSS-only version failed to render on
     several mobile browsers, leaving the ensō masked-out (invisible).
     On mobile the mask is removed entirely (see index.html @media), so
     the ensō shows with a plain fade regardless of mask support. */
  -webkit-mask-image: conic-gradient(from -36deg, #000 0deg, #000 var(--sweep,0deg), transparent var(--sweep,0deg));
  mask-image: conic-gradient(from -36deg, #000 0deg, #000 var(--sweep,0deg), transparent var(--sweep,0deg));
}

/* ---- store pills (coming soon) ---- */
.stores { display: flex; gap: 16px; flex-wrap: wrap; }
.store-pill {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  border: 1px solid var(--faint);
  border-radius: 3px;
  padding: 13px 22px;
  text-decoration: none;
  transition: border-color .4s ease, background-color .4s ease;
}
.store-pill:hover { border-color: var(--ink); }
.store-pill svg { width: 19px; height: 19px; flex: none; }
.store-pill .pill-tx { text-align: left; line-height: 1.25; }
.store-pill .pill-tx small {
  display: block; font-size: 9.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}
.store-pill .pill-tx span { font-size: 15px; letter-spacing: .3px; }
.soon-note {
  margin-top: 18px; font-size: 11px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--faint);
}

/* ---- footer (shared) ---- */
.site-footer {
  padding: 64px 28px 72px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer .mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 26px; color: var(--ink); margin-bottom: 6px;
}
.site-footer .mark-kanji { font-size: 13px; letter-spacing: 8px; color: var(--muted); margin-bottom: 22px; }
.site-footer nav { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
.site-footer nav a { color: var(--muted); text-decoration: none; transition: color .3s; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer nav .sep { margin: 0 13px; color: var(--faint); }
.site-footer .legal { margin-top: 22px; font-size: 11px; color: var(--faint); letter-spacing: .5px; }

/* ---- drifting petals ---- */
[data-petals] { position: relative; }
.petal {
  position: absolute; top: -6%;
  background: var(--gold);
  border-radius: 60% 60% 60% 0;
  filter: blur(.3px);
  pointer-events: none; z-index: 0;
  animation-name: petal-fall; animation-timing-function: linear; animation-iteration-count: infinite;
  will-change: transform, opacity;
}
@keyframes petal-fall {
  0%   { transform: translateY(-12vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(118vh) translateX(40px) rotate(220deg); }
}

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1100ms cubic-bezier(.2,.7,.2,1), transform 1100ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .enso--draw { animation: none; -webkit-mask-image: none; mask-image: none; }
}
