/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-feature-settings: "palt" 1;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Type scale ---------- */
.en {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.num {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-style: normal;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.02em;
}
.small-en {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ---------- Utilities ---------- */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-thin { height: 1px; background: var(--rule-thin); border: 0; margin: 0; }

/* subtle fade-in when in view */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(6px); transition: opacity 900ms ease, transform 900ms ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
