/*
 * base.css — リセット + 基本タイポグラフィ
 */

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

* { margin: 0; }

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-heading);
  line-height: var(--lh-tight);
  font-weight: 400;
  letter-spacing: 0.08em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p { line-height: var(--lh-base); }

a {
  color: var(--color-cta);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--color-cta-hover); }

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.25rem; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

::selection {
  background: var(--color-cta);
  color: var(--color-bg);
}

/* Accent font utility */
.font-accent {
  font-family: var(--font-accent);
  letter-spacing: 0.02em;
}

/* Visually hidden (accessibility) */
.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;
}
