:root {
  --ink: #17181c;
  --ink-soft: #33353c;
  --paper: #eae9e4;
  --panel: #f3f2ee;
  --seal: #be3a25;
  --indigo: #2e4272;
  --muted: #6c6d68;
  --rule: #cbcac3;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: Georgia, "Times New Roman", "Liberation Serif", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.72;
  -webkit-text-size-adjust: 100%;
  font-kerning: normal;
}

.wrap {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 22px;
  touch-action: pan-y;
}

a { color: var(--indigo); text-decoration: none; border-bottom: 1px solid rgba(46, 66, 114, .35); }
a:hover { color: var(--seal); border-bottom-color: rgba(190, 58, 37, .5); }
a:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }

/* ---------- mosaic signature ---------- */
.mosaic { display: flex; align-items: flex-start; margin: 26px 0 0; }
.mosaic i { display: block; width: 10px; height: 10px; background: var(--seal); margin-right: 8px; }
.mosaic i:nth-child(1) { opacity: 1; }
.mosaic i:nth-child(2) { opacity: 1; }
.mosaic i:nth-child(3) { opacity: 0.94; }
.mosaic i:nth-child(4) { opacity: 0.88; }
.mosaic i:nth-child(5) { opacity: 0.8; }
.mosaic i:nth-child(6) { opacity: 0.71; }
.mosaic i:nth-child(7) { opacity: 0.62; }
.mosaic i:nth-child(8) { opacity: 0.53; }
.mosaic i:nth-child(9) { opacity: 0.44; }
.mosaic i:nth-child(10) { opacity: 0.35; }
.mosaic i:nth-child(11) { opacity: 0.27; }
.mosaic i:nth-child(12) { opacity: 0.2; }
.mosaic i:nth-child(13) { opacity: 0.13; }
.mosaic i:nth-child(14) { opacity: 0.07; }
.mosaic.ink i { background: var(--ink); width: 8px; height: 8px; margin-right: 6px; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header.site a { border-bottom: 0; display: block; }
header.site img { height: 26px; width: auto; display: block; }
header.site .stamp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { padding: 58px 0 34px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 0 0 18px;
}
.eyebrow .jp { font-family: var(--jp); letter-spacing: .08em; text-transform: none; font-size: 14px; }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(31px, 6.4vw, 45px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0;
}
.dek {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 20px 0 0;
  max-width: 34em;
}

/* ---------- article ---------- */
article { padding: 0 0 20px; }
article p { margin: 0 0 22px; }
article h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.24;
  letter-spacing: -.01em;
  margin: 52px 0 18px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
article h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 34px 0 14px;
  color: var(--ink);
}
article h2 + p, article h3 + p { margin-top: 0; }
em { font-style: italic; }
.jp { font-family: var(--jp); }

/* ---------- contents ---------- */
.contents {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 22px 24px 24px;
  margin: 38px 0 8px;
}
.contents h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  border: 0;
  padding: 0;
  font-weight: 500;
}
.contents ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.contents li {
  counter-increment: toc;
  font-size: 16px;
  line-height: 1.5;
  padding: 5px 0;
  padding-left: 34px;
  position: relative;
}
.contents li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--seal);
}
.contents a { border-bottom: 0; color: var(--ink); }
.contents a:hover { color: var(--seal); }

/* ---------- definition list ---------- */
dl.formats { margin: 0 0 22px; padding: 0; }
dl.formats dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  margin: 18px 0 2px;
}
dl.formats dt::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--seal);
  margin-right: 10px;
  vertical-align: 2px;
}
dl.formats dd { margin: 0 0 0 17px; color: var(--ink-soft); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; margin: 26px 0 28px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--panel); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}
tbody tr:last-child td { border-bottom: 0; }
td.term, th.term { font-family: var(--display); font-weight: 600; white-space: nowrap; }
td .jp { font-weight: 400; }

/* ---------- faq ---------- */
.faq h3 { font-size: 19px; margin-top: 30px; }

/* ---------- footer ---------- */
footer.site {
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  background: var(--panel);
  padding: 44px 0 40px;
}
footer.site .brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 30px;
}
footer.site .brandrow img { height: 22px; width: auto; display: block; }
footer.site .brandrow .stamp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
footer.site .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 24px;
  margin: 0 0 32px;
}
footer.site .cols > div { flex: 1 1 130px; min-width: 120px; }
footer.site .cols h2 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
footer.site .cols ul { list-style: none; margin: 0; padding: 0; }
footer.site .cols li { font-size: 15px; line-height: 1.55; margin-bottom: 9px; }
footer.site .cols a { color: var(--ink-soft); border-bottom: 0; }
footer.site .cols a:hover { color: var(--seal); }
footer.site .note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 44em;
}
footer.site .bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 26px;
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  footer.site .cols > div { flex: 1 1 42%; min-width: 130px; }
  footer.site .cols { gap: 24px 20px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 26px; }
  .dek { font-size: 18px; }
  article h2 { font-size: 24px; margin-top: 42px; }
  article h3 { font-size: 19px; }
  header.site .stamp { display: none; }
  .contents { padding: 18px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- E-E-A-T pages ---------- */
.updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 18px 0 0;
}
article ol { margin: 0 0 22px; padding-left: 26px; }
article ol li { margin-bottom: 8px; }
article code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 1px 5px;
}


.editorial-note {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--seal);
  padding: 22px 24px 6px;
  margin: 48px 0 0;
  font-size: 16px;
}
.editorial-note h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.editorial-note p { margin: 0 0 16px; }
