/* リセット、本文タイポ、共通の文字部品、アクセシビリティを担当する。
   tokens.cssの後、layout.cssより前に読み込む。 */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  /* 色を選んだときに地色が一段だけ動く。連続補間ではなく、1回きりの移り変わり。 */
  transition: background-color var(--dur-hue) var(--ease-soft);
}

h1, h2, h3, p, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.5;
}

/* 表示用の見出し。明朝を細く、字間を広くして紙の余白に合わせる。 */
.display {
  font-family: var(--font-display);
  letter-spacing: .1em;
  line-height: 1.58;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
}

h2 {
  font-size: clamp(27px, 4vw, 42px);
}

h3 {
  font-size: 19px;
  letter-spacing: .06em;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* img へ display を与えているため、UAの [hidden] より作者スタイルが勝つ。ここで取り戻す。 */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--hue-ink);
  outline-offset: 4px;
}

/* ページ全体の揃えを管理する唯一の外枠上限。サイト内でこの指定を増やさない。 */
.inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  line-height: 1.6;
  color: var(--hue-ink);
  transition: color var(--dur-hue) var(--ease-soft);
}

.lead {
  font-size: 17px;
  line-height: 2.1;
}

.section-lead {
  color: var(--color-text-soft);
  line-height: 2.1;
}

.note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-soft);
}

/* 縦書きの読み。色名の横へ小さく添える。 */
.reading {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--color-text-soft);
}
