/* =========================================================
   KumiteFlow - "Sumi & steel" base + brand primitives
   Foundational styles only. Page-specific layout (nav, hero,
   schedule, teacher/belt grids) intentionally excluded - this
   is the on-brand foundation a design builds ON, not a clone
   of the marketing site.
   ========================================================= */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sumi);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: var(--bone); }

/* ---------- Typographic primitives ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--bone);
  max-width: 46ch;
}

/* ---------- The signature: a decisive red "cut" eyebrow ---------- */

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow .jp {
  font-family: var(--mincho);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ash);
  text-transform: none;
}

/* ---------- Surfaces ---------- */

.section-dark  { background: var(--sumi); color: var(--bone); }
.section-light { background: var(--bone); color: var(--sumi); }
.section-light .lead { color: #26262b; }
.section-light .eyebrow .jp { color: var(--ink-soft); }

/* ---------- Ghosted kanji watermark ---------- */

.kanji-bg {
  position: absolute;
  font-family: var(--mincho);
  font-weight: 800;
  line-height: 1;
  /* Default to the ghosted dark-surface tint so the watermark never renders at
     full opacity when it is not inside a .section-dark/.section-light context
     (e.g. the app dashboard). Section contexts override below. */
  color: rgba(239, 233, 221, 0.035);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section-dark  .kanji-bg { color: rgba(239, 233, 221, 0.035); }
.section-light .kanji-bg { color: rgba(17, 17, 20, 0.045); }

/* ---------- Container ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-primary { background: var(--red); color: var(--bone); }
.btn-primary:hover { background: var(--bone); color: var(--sumi); }
.btn-ghost { border-color: var(--line-dark); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); transform: translateX(4px); }
.section-light .btn-ghost { border-color: var(--line-light); color: var(--sumi); }
.section-light .btn-ghost:hover { background: var(--sumi); color: var(--bone); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
