/* ═══════════════════════════════════════════════════════════
   Prairie Aikikai — Shared Site Stylesheet
   css/site.css
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* ── COLOR PALETTE ── */
  --ink:               #1a1a2e;
  --ink-mid:           #2d2d4a;
  --paper:             #f5f0e8;
  --paper-mid:         #ede6d6;
  --vermillion:        #c0392b;
  --vermillion-light:  #e74c3c;
  --gold:              #b8a97a;
  --text-light:        #f0ece2;

  /* ── TYPOGRAPHY ── */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-jp:      'Noto Serif JP', serif;
  --font-body:    'Zen Kaku Gothic New', sans-serif;

  /* ── PROSE STANDARDS — single source of truth ──────────────────────────
   *
   * ALL body copy across the site must use these variables for color and
   * weight.  Never hardcode #555, #444, rgba(…,0.6), or font-weight:300
   * for readable text.  font-weight:300 is reserved for purely ornamental
   * / decorative elements (large display numerals, kanji watermarks, etc.).
   *
   * USAGE:
   *   Light backgrounds (--paper, --paper-mid)
   *     primary body copy   → var(--clr-prose-light)           #222
   *     secondary/captions  → var(--clr-prose-secondary-light)  #555
   *
   *   Dark backgrounds  (--ink, --ink-mid)
   *     primary body copy   → var(--clr-prose-dark)             rgba(240,236,226,0.9)
   *     secondary/captions  → var(--clr-prose-secondary-dark)   rgba(240,236,226,0.75)
   *
   *   Font weight for ALL readable text → var(--fw-body)        400
   *   Font weight for ornamental only   → var(--fw-ornamental)  300
   * ───────────────────────────────────────────────────────────────────── */
  --clr-prose-light:           #222;
  --clr-prose-dark:            rgba(240,236,226,0.9);
  --clr-prose-secondary-light: #555;
  --clr-prose-secondary-dark:  rgba(240,236,226,0.75);
  --fw-body:                   400;
  --fw-ornamental:             300;

  /* ── LAYOUT ── */
  --max-w:        1200px;
  --section-pad:  clamp(4rem, 8vw, 7rem);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/*
 * Base font size: 17px globally (up from 16px) for improved readability.
 * On phones (≤ 600px) we step up to 18px so that all rem-based sizes
 * feel comfortable on small screens without needing per-element overrides.
 */
html {
  scroll-behavior: smooth;
  font-size: 17px;
}
@media (max-width: 600px) {
  /*
   * Raised from 18px → 20px. Since all text uses rem, this lifts every
   * element proportionally — no need for per-element mobile overrides.
   * At 20px: 0.85rem = 17px, 0.88rem = 17.6px, 0.95rem = 19px.
   */
  html { font-size: 20px; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 169, 122, 0.2);
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo .kanji {
  font-family: var(--font-jp);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  opacity: 0.9;
  white-space: nowrap;
  display: inline-block;
}
.nav-logo .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.8);
  transition: color 0.2s;
  font-weight: 300;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links .nav-cta {
  background: var(--vermillion);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  transition: background 0.2s !important;
}
.nav-links .nav-cta:hover { background: var(--vermillion-light) !important; }
.nav-resources {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(240, 236, 226, 0.85) !important;
  border-left: 1px solid rgba(184, 169, 122, 0.3);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-light);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(26, 26, 46, 0.98);
  padding: 1.5rem 2rem 2rem;
  z-index: 99;
  border-bottom: 1px solid rgba(184, 169, 122, 0.2);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-menu li a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu .mobile-cta {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--vermillion);
  color: #fff !important;
  padding: 0.7rem 1.5rem;
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
@media (max-width: 820px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--vermillion);
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border-radius: 2px;
}
.btn-primary:hover { background: var(--vermillion-light); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--text-light);
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border: 1px solid rgba(240,236,226,0.35);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  border-radius: 2px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn-white {
  background: #fff;
  color: var(--vermillion);
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-white:hover { transform: translateY(-2px); opacity: 0.92; }

/* ── SHARED PROSE & PAGE-INTRO ─────────────────────────── */
/*
 * Used on inner pages wherever a narrative text block appears.
 * body-text: base prose style for multi-paragraph content.
 * page-intro: the subtitle line beneath a page-header title.
 * section-eyebrow-gold: gold variant of the standard eyebrow label.
 */
.body-text {
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 400;
}
.body-text p + p { margin-top: 1.2em; }

.page-intro {
  margin-top: 1.5rem;
  max-width: 600px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240,236,226,0.9);
  font-weight: 400;
}

.section-eyebrow-gold {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── PROSE UTILITY CLASSES ─────────────────────────────────────────────────
 * Apply these classes to any element whose text color or weight needs
 * to match the site standard.  Page-specific CSS should prefer these
 * over hardcoded values so a single token change flows everywhere.
 * ───────────────────────────────────────────────────────────────── */
/* Primary body copy on paper / light backgrounds */
.prose-light {
  color: var(--clr-prose-light);
  font-weight: var(--fw-body);
}
/* Primary body copy on ink / dark backgrounds */
.prose-dark {
  color: var(--clr-prose-dark);
  font-weight: var(--fw-body);
}
/* Secondary text (captions, sub-labels) on light backgrounds */
.prose-secondary-light {
  color: var(--clr-prose-secondary-light);
  font-weight: var(--fw-body);
}
/* Secondary text (captions, sub-labels) on dark backgrounds */
.prose-secondary-dark {
  color: var(--clr-prose-secondary-dark);
  font-weight: var(--fw-body);
}

/* ── SECTION TYPOGRAPHY ─────────────────────────────────── */
/*
 * Eyebrow labels were 0.72rem (≈12px at old 16px base).
 * Raised to 0.8rem for improved readability on all devices.
 */
.section-eyebrow,
.section-eyebrow-dark,
.page-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-weight: 400;
}
.section-eyebrow-dark { color: var(--vermillion); }

.section-title-light {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 3.5rem;
  line-height: 1.15;
}
.section-title-light em { font-style: italic; color: var(--gold); }

.section-title-dark {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.section-title-dark em { font-style: italic; color: var(--vermillion); }

/* ── PAGE HEADER (inner pages) ──────────────────────────── */
.page-header {
  background: var(--ink);
  padding: calc(64px + 4rem) clamp(1.5rem, 5vw, 3rem) 4rem;
  position: relative;
  overflow: hidden;
}
.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.05;
}
.page-title em { font-style: italic; color: var(--gold); }

/* ── AFFILIATION STRIP ──────────────────────────────────── */
.affiliation {
  background: var(--paper-mid);
  padding: 3rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid rgba(26,26,46,0.1);
  border-bottom: 1px solid rgba(26,26,46,0.1);
}
.affiliation-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.affiliation-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}
.affiliation-text { flex: 1; min-width: 220px; }
.affiliation-text h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.affiliation-text p {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.65;
  font-weight: 400;
}
.affiliation-text a {
  color: var(--vermillion);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── CTA STRIP ──────────────────────────────────────────── */
.cta-strip {
  background: var(--vermillion);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem);
}
.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.5rem;
}
.cta-copy p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.95);
  font-weight: 400;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #0f0f1e;
  padding: 3rem clamp(1.5rem, 5vw, 3rem) 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(240,236,226,0.6);
  font-weight: 400;
  margin-top: 1rem;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}
.footer-logo-jp {
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.7;
  display: block;
  margin-top: 0.3rem;
}
.footer-col h5 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 300;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(240,236,226,0.7);
  transition: color 0.2s;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.footer-col ul li a:hover { color: var(--text-light); }
.footer-contact-item {
  font-size: 0.82rem;
  color: rgba(240,236,226,0.7);
  margin-bottom: 0.5rem;
  font-weight: 300;
}
.footer-contact-item a {
  color: rgba(240,236,226,0.7);
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--text-light); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom span {
  font-size: 0.72rem;
  color: rgba(240,236,226,0.5);
  letter-spacing: 0.08em;
}

/* ── PAGE HEADER KANJI WATERMARK ───────────────────────────
 *
 * Each inner page supplies only the kanji character:
 *   .page-header::after { content: '道場'; }
 * All other properties (position, size, color, font) live here.
 * ─────────────────────────────────────────────────────────── */
.page-header-inner::after {
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-jp);
  font-size: clamp(96px, 15vw, 192px);
  color: rgba(255, 255, 255, 0.30);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
