/* ==========================================================================
   base.css — element defaults and shared utilities
   Uses a 10px root so token values map 1:1 to Figma pixels (1.6rem = 16px).
   ========================================================================== */

html {
  font-size: 62.5%; /* 10px base */
  scroll-behavior: smooth;
}

/* In-page hashes (#about etc.) need a gap for the fixed header.
   Do not put this on html as scroll-padding-top: Chrome applies that
   padding when restoring focus on reload, so the page opens shifted
   down by --header-height. */
section[id] {
  scroll-margin-top: var(--header-height);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

/* Locks scrolling while the SP drawer is open. */
body.is-nav-open {
  overflow: hidden;
}

/* --- Shared building blocks ---------------------------------------------- */

.l-container {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

.c-section {
  padding-block: var(--space-3xl);
}

/* English section label, e.g. "ABOUT ZINO" */
.c-label-en {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-display);
  line-height: 1.5;
}

.c-heading-ja {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--zino-orange);
  outline-offset: 3px;
}

/* --- Scroll reveal -------------------------------------------------------
   Elements marked [data-reveal] start hidden and are revealed by main.js.
   Without JS they stay visible, so content is never lost.
   ------------------------------------------------------------------------ */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(2.4rem);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
