/* ============================================================
   IPPUN PROJECT — Base Styles
   css/base.css
   ============================================================ */

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

/* -- DOCUMENT ------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* -- TYPOGRAPHY ----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 800;
  color: var(--text-primary);
  line-height: var(--lh-h1);
}

.display {
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

h1 { font-size: var(--text-h1); letter-spacing: var(--ls-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--text-h2); letter-spacing: var(--ls-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--text-h3); letter-spacing: var(--ls-h3); line-height: var(--lh-h3); }

p {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--text-primary);
}

.body-large {
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
}

.caption {
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  color: var(--text-secondary);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}

.wordmark {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  color: var(--text-primary);
}

.japanese {
  font-family: var(--font-jp);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* -- LAYOUT HELPERS ------------------------------------------- */
.container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}

.section {
  padding: var(--space-section) 0;
}

.section--dark {
  background: var(--bg-dark);
}

.section--stone {
  background: var(--bg-section);
}

/* -- LINKS ---------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

.text-link {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
  transition: border-color var(--transition-fast);
}

.text-link:hover {
  border-color: var(--text-primary);
}

/* -- DIVIDER -------------------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-stone);
}

/* -- PULL QUOTE ----------------------------------------------- */
.pull-quote {
  border-left: var(--border-pull-quote) solid var(--border-accent);
  padding: 4px 0 4px 24px;
  margin: var(--space-9) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-primary);
}

/* -- SCROLL REVEAL -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children
   Add .stagger to a .reveal container so children
   cascade in one after another instead of all at once. */
.reveal.stagger > * {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.stagger.visible > * {
  animation: fadeUp 0.45s ease forwards;
}

.reveal.stagger.visible > *:nth-child(1) { animation-delay:   0ms; }
.reveal.stagger.visible > *:nth-child(2) { animation-delay:  80ms; }
.reveal.stagger.visible > *:nth-child(3) { animation-delay: 160ms; }
.reveal.stagger.visible > *:nth-child(4) { animation-delay: 240ms; }

/* -- IMAGES --------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
