:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f4f7fa;
  --ink: #1b2839;
  --heading: #0e1928;
  --muted: #465b71;
  --link: #154e8c;
  --rule: #c6d2df;
  --table: #edf2f7;
  --table-head: #e1e9f2;
  --hero: #081929;
  --hero-ink: #f4f8fc;
  --hero-muted: #bdcddd;
  --hero-link: #91caff;
  --gutter: clamp(1.125rem, 5vw, 4.5rem);
}



body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-break: strict;
}

article {
  overflow-wrap: anywhere;
}

article a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.07em;
}

article a:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-block-size: clamp(21rem, 34vw, 29rem);
  background: var(--hero);
  color: var(--hero-ink);
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline-end: max(0px, calc((100% - 90rem) / 2));
  inline-size: min(57%, 48rem);
  background:
    linear-gradient(90deg, var(--hero), transparent 23% 92%, var(--hero)),
    url("assets/bg_hero.png") right center / auto 100% no-repeat;
}

.hero-inner {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 83rem;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter);
}

.hero h1 {
  max-inline-size: min(12em, 55%);
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 750;
  line-height: 1.055;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero h1:lang(ja) {
  line-height: 1.22;
  letter-spacing: -0.025em;
}

:lang(ja) {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
}

.byline {
  margin: 1.55rem 0 0;
  color: var(--hero-muted);
  font-size: 0.975rem;
  font-weight: 550;
  line-height: 1.5;
}

.hero-links,
.language-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.hero-links {
  gap: 0.65rem 1.25rem;
  margin-block-start: 0.9rem;
  font-size: 0.975rem;
}

.hero-links a {
  color: var(--hero-link);
  font-weight: 650;
}

.language-nav {
  gap: 0.55rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 1px solid #627990;
  color: var(--hero-muted);
}

.language-nav [aria-current] {
  color: var(--hero-ink);
  font-weight: 650;
}

.reading-layout {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 13.5rem) minmax(0, 49rem);
  gap: clamp(2rem, 4vw, 3.5rem);
  justify-content: center;
  max-inline-size: 78rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}

.contents {
  padding-inline-end: clamp(1rem, 2vw, 1.75rem);
  border-inline-end: 1px solid var(--rule);
  font-size: 0.925rem;
  line-height: 1.48;
}

.contents p {
  margin: 0;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--rule);
  color: var(--heading);
  font-weight: 700;
}

.contents ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.contents a {
  color: var(--ink);
  text-decoration: none;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--link);
  text-decoration: underline;
}

.article-body {
  min-inline-size: 0;
  font-size: clamp(1.0625rem, 1rem + 0.21vw, 1.1875rem);
  line-height: 1.75;
}

.article-body:lang(ja) {
  line-height: 1.9;
}

.article-body p {
  margin: 0 0 1.2em;
}

.article-body .lede {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.49;
}

.article-body .lede:lang(ja) {
  line-height: 1.72;
}

.article-section {
  margin-block-start: clamp(2.5rem, 5vw, 4.5rem);
}

.article-section h2 {
  margin: 0 0 0.65em;
  scroll-margin-block-start: 5rem;
  color: var(--heading);
  font-size: clamp(1.5rem, 1.125rem + 1.15vw, 2.25rem);
  font-weight: 730;
  line-height: 1.16;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.article-section h2:lang(ja) {
  line-height: 1.39;
  letter-spacing: -0.015em;
}

.citation {
  font-size: 0.83em;
  font-weight: 600;
}

.table-frame {
  margin-block: 1.55rem;
  container-type: inline-size;
}

.table-frame .table-hint {
  display: none;
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 550;
}

.table-scroll {
  box-sizing: border-box;
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--table);
  scrollbar-color: var(--muted) var(--table);
}

table {
  inline-size: 100%;
  min-inline-size: 36rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

th,
td {
  padding: 0.85rem 0.7rem;
  text-align: start;
  vertical-align: middle;
}

thead th {
  border-block-end: 1px solid var(--rule);
  background: var(--table-head);
  color: var(--heading);
  font-weight: 700;
}

tbody tr + tr > * {
  border-block-start: 1px solid var(--rule);
}

tr > :first-child {
  inline-size: 38%;
  padding-inline-start: 1rem;
  border-inline-end: 1px solid var(--rule);
}

tbody th {
  background: var(--table);
  font-weight: 550;
}

tr > :not(:first-child) {
  text-align: end;
}

td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@container (width < 36.125rem) {
  .table-frame .table-hint {
    display: block;
  }

  tr > :first-child {
    position: sticky;
    inset-inline-start: 0;
    box-sizing: border-box;
    inline-size: clamp(7.5rem, 42cqi, 12rem);
  }
}

@media (max-width: 1050px) {
  .reading-layout {
    display: block;
    max-inline-size: 60rem;
  }

  .contents {
    margin-block-end: clamp(1.65rem, 4vw, 2.6rem);
    padding: 0 0 0.9rem;
    border: 0;
    border-block-end: 1px solid var(--rule);
  }

  .contents p {
    padding: 0;
    border: 0;
  }

  .contents ul {
    flex-flow: row wrap;
    gap: 0.65rem 1.2rem;
    margin-block-start: 0.65rem;
  }

  .contents a {
    display: inline-block;
    padding-block: 0.18rem;
    color: var(--link);
    text-decoration: underline;
  }
}

@media (max-width: 600px) {
  .hero {
    grid-template-areas: "copy" "art";
    min-block-size: auto;
  }

  .hero-inner {
    grid-area: copy;
    padding-block: 2.5rem 0;
  }

  .hero h1 {
    max-inline-size: 15em;
    font-size: clamp(2rem, 7.8vw, 3rem);
    line-height: 1.09;
  }

  .byline {
    margin-block-start: 1.15rem;
  }

  .hero-art {
    position: static;
    grid-area: art;
    inline-size: 100%;
    block-size: clamp(9rem, 42vw, 13rem);
    background:
      linear-gradient(180deg, var(--hero), transparent 27% 88%, var(--hero)),
      url("assets/bg_hero.png") right 46% / auto 121% no-repeat;
  }
}

.source-label { white-space: nowrap; }
@media (max-width: 42rem) {
  .table-scroll { overflow-x: visible; }
  .table-scroll table {
    min-inline-size: 0;
    table-layout: fixed;
    font-size: 0.8rem;
    line-height: 1.38;
    font-variant-numeric: tabular-nums;
  }
  .table-scroll th, .table-scroll td {
    padding: 0.58rem 0.23rem;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .table-scroll tr > :first-child {
    width: 30%;
    padding-inline-start: 0.45rem;
  }
  .table-scroll tr > :not(:first-child) { text-align: center; }
}

article math { margin-block: 1.25rem; }

html.dark {
    color-scheme: dark;
    --page: #111c29;
    --ink: #dce6f1;
    --heading: #f2f6fb;
    --muted: #adbed2;
    --link: #9acaff;
    --rule: #455970;
    --table: #172638;
    --table-head: #22344a;
}
