/* Reset & base typography */

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: #E9E7E3;
  font-family: var(--font-body-en);
  font-weight: 300;
  font-size: var(--step-1);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.lang-ja {
  font-family: var(--font-body-ja);
}

img, video { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 180ms var(--ease-out);
}
a:hover { opacity: 0.7; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Shared utility classes */

.eyebrow {
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: var(--step-0);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.55);
  margin: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: none;
}

.measure { max-width: var(--measure); }

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

/* Shared section header. Defaults to dark text on bone; use --on-dark
   variant when placed on ink or crimson. */
.section-head {
  text-align: center;
  color: var(--paper-ink);
  margin-bottom: clamp(3rem, 6vh, 5rem);
}
.section-head--on-dark { color: var(--bone); }
.section-head--minor  { margin-bottom: clamp(1.5rem, 3vh, 2.5rem); }

.section-head__eyebrow {
  margin: 0 0 clamp(0.75rem, 1.5vh, 1.25rem);
  color: rgba(0, 0, 0, 0.55);
}
.section-head--on-dark .section-head__eyebrow {
  color: rgba(240, 237, 232, 0.55);
}

.section-head__h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-4);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}

.section-head__body {
  margin: clamp(1rem, 2vh, 1.5rem) auto 0;
  max-width: 32rem;
  font-family: var(--font-body-en);
  font-weight: 300;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.6);
}
.section-head--on-dark .section-head__body {
  color: rgba(240, 237, 232, 0.75);
}

/* Site header — minimal, fixed. Opaque when scrolled (no backdrop-filter
   to avoid GPU compositing artifacts that duplicated nav content on some
   macOS Chrome installs). */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  background-color: transparent;
  transition: background-color 240ms var(--ease-out);
  isolation: isolate;
}

.site-header.is-scrolled {
  background-color: var(--ink);
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #F0EDE8;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-header__lang {
  font-family: var(--font-utility);
  font-size: var(--step-0);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.7);
  display: inline-flex;
  gap: 0.5em;
  align-items: center;
}
.site-header__lang [aria-current="true"] { color: #F0EDE8; }

.site-header__cta {
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: var(--step-0);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65em 1.2em;
  border: 1px solid rgba(240, 237, 232, 0.35);
  color: #F0EDE8;
}
.site-header__cta:hover { border-color: #F0EDE8; opacity: 1; }
