/* ===========================================
   BONOBONO - Base Styles & Typography
   =========================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--sky-pale);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ocean-deep);
}

h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
}

h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-2xl);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

a {
  color: var(--ocean-mid);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--coral-accent);
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ─── Section Spacing ─── */
section {
  padding: var(--space-24) 0;
}

/* ─── Utility Classes ─── */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Japanese Text ─── */
.text-jp {
  font-family: var(--font-japanese);
}

/* ─── Selection ─── */
::selection {
  background: var(--sky-soft);
  color: var(--ocean-deep);
}

/* ─── Focus Styles ─── */
:focus-visible {
  outline: 2px solid var(--coral-accent);
  outline-offset: 2px;
}

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