/* GROW static site — design tokens & base reset (no framework dependency) */

:root {
  --font-serif: 'Noto Serif JP', 'Zen Old Mincho', 'Yu Mincho', serif;
  --font-display: 'Cormorant Garamond', serif;

  --color-black: #0c0c0c;
  --color-charcoal: #1a1a1a;
  --color-card: #111111;
  --color-card-alt: #161616;
  --color-dark-grey: #222222;

  --color-gold: #c9a96e;
  --color-gold-light: #dfc08a;
  --color-gold-dark: #a68940;
  --color-gold-deep: #8a7644;

  --color-text-white: #f0ece6;
  --color-text-cream: #d4cfc7;
  --color-text-muted: #8a8580;

  /* Light / beige sections (concept, origin, promise, first-time, pricing) */
  --color-light-bg: #f5f0e8;
  --color-light-text: #2a2318;
  --color-light-text-muted: #6b6660;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-gold: rgba(201, 169, 110, 0.2);

  /* Certification rank medallions (about-certification legend). Gold uses the gold tokens above. */
  --color-rank-expert-hi: #3a2e1c; /* obsidian black-gold — most premium */
  --color-rank-expert-lo: #12100b;
  --color-rank-silver-hi: #e8eaed;
  --color-rank-silver-lo: #a7abb2;
  --color-rank-bronze-hi: #d9a173;
  --color-rank-bronze-lo: #a66a3c;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 40px;

  --container-width: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 64px; /* clearance for the site-wide fixed bottom-nav */
  background: var(--color-black);
  color: var(--color-text-white);
  font-family: var(--font-serif);
  line-height: 1.9;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, figure {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
}

button,
[role="button"],
a[href],
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

/* ===== Generic layout primitives ===== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
    max-width: var(--container-width);
  }
}

.container--narrow { max-width: 700px; }
.container--medium { max-width: 800px; }
.container--wide { max-width: 900px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--color-gold); }
.block { display: block; }
.link-plain { text-decoration: none; }
.is-hidden { display: none !important; } /* JS-toggled visibility (e.g. load-more) */

/* Spacing utilities — the margin/padding steps reused across pages */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.pb-16 { padding-bottom: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }

@keyframes grow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes grow-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Fade-in on scroll (state toggled by grow-common.js) ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
