/* =========================================================================
   Base / Reset
   - Modern reset (Andy Bell-inspired) + HTML5 semantic defaults
   - Target browsers: latest Chrome / Safari / Edge only
   ========================================================================= */

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

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

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }

html:focus-within { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt", "tnum";
}

main { display: block; }

/* Typography defaults */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-bold);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semi); }

p { margin: 0; }
p + p { margin-top: var(--space-4); }

a {
  color: var(--color-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  a:hover { color: var(--color-link-hover); }
}
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Image / media defaults */
img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}
img { font-style: italic; background-repeat: no-repeat; background-size: cover; }

/* Form defaults */
input, button, textarea, select { font: inherit; color: inherit; }

/* Selection */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* Container utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-pc);
}

/* Visually hidden but accessible to AT */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px; left: var(--space-4);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* Section primitive */
.section {
  padding-block: var(--space-9);
}
.section--soft { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
.section--dark a { color: var(--color-text-on-dark); }
.section--dark .section-eyebrow { color: var(--color-accent-on-dark); }

@media (max-width: 767px) {
  .section { padding-block: var(--space-7); }
}

/* Eyebrow / section head */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-3);
}
.section-lead {
  color: var(--color-text-muted);
  max-width: 720px;
}
.section-head {
  margin-bottom: var(--space-7);
}

/* Print stylesheet (CLAUDE.md A14 — light implementation in Phase 1) */
@media print {
  .site-header, .site-footer, .nav-toggle, .lang-toggle, .btn { display: none !important; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
