:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #d8d8d8;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --measure: 45rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  translate: 0 -200%;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  translate: 0;
}

article {
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.eyecatch {
  width: min(100% - clamp(1rem, 4vw, 3rem), 20rem);
  margin: clamp(0.5rem, 2vw, 1.5rem) auto 0;
}

.eyecatch img {
  width: 100%;
  border: 1px solid #eeeeee;
}

.article-header,
.article-body {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}

.article-header {
  padding-block: clamp(3.25rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.375rem, 3.5vw, 2.25rem);
  text-wrap: balance;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 2rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.site-footer {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4rem);
  text-align: center;
  font-size: 0.875rem;
}

.article-body {
  padding-top: clamp(3rem, 7vw, 5rem);
}

.article-body h2 {
  margin-top: clamp(3.75rem, 9vw, 6.5rem);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.article-body h3 {
  margin-top: 3.5rem;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
}

.article-body p,
.article-body ul {
  margin-block: 1.75rem 0;
}

.article-body p,
.article-body li {
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
}

.article-body ul {
  padding-left: 1.4em;
}

.article-body li {
  padding-left: 0.35em;
}

.article-body li + li {
  margin-top: 0.35rem;
}

.article-body strong {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #bcbcbc;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.manifest {
  margin: 0 0 clamp(3.5rem, 8vw, 6rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-left: 0.25rem solid var(--ink);
  background: var(--soft);
  color: var(--ink);
  font: 0.8125rem/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-x: auto;
  white-space: pre;
}

.sequence {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
}

.sequence p {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.35fr) 1fr;
  gap: 1rem;
  margin: 0;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.sequence strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.article-body hr {
  width: 3rem;
  margin: clamp(4.5rem, 10vw, 7.5rem) 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

.article-body hr + h2 {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

@media (max-width: 35rem) {
  body {
    line-height: 1.85;
  }

  .eyecatch {
    width: 100%;
    margin-top: 0;
  }

  .eyecatch img {
    border-inline: 0;
  }

  .article-header,
  .article-body {
    width: min(100% - 2rem, var(--measure));
  }

  .sequence p {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .skip-link {
    display: none;
  }

  .eyecatch,
  .article-header,
  .article-body {
    width: 100%;
  }

  .article-header {
    padding-top: 3rem;
  }
}
