:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --ink: #182c29;
  --green: #123d38;
  --rule: #babaae;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .35em; }
a:hover, summary:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #cb691e; outline-offset: 4px; }
.wrap { width: min(1040px, 90%); margin-inline: auto; }
.bar, .links { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.4rem; }
.bar { justify-content: space-between; padding-block: .75rem; }
.bar a { display: inline-block; padding-block: .4rem; font-size: .86rem; text-decoration: none; }
.bar a:hover { text-decoration: underline; }
.back { font-weight: 700; }
.skip { position: absolute; transform: translateY(-150%); background: white; padding: .75rem; z-index: 1; }
.skip:focus { transform: translateY(0); }
.masthead, footer { background: var(--green); color: #fffaf0; }
.identity { display: flex; align-items: center; gap: 1.4rem; padding-block: clamp(1.7rem, 4vw, 3.2rem); }
.identity img { width: clamp(58px, 8vw, 80px); border-radius: 20%; }
.identity p, .chapter { font-size: .81rem; font-weight: 700; letter-spacing: .13em; }
.identity p { color: #e2d6b8; }
h1, h2, h3, .people strong { font-family: var(--serif); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: .06em; line-height: 1.2; }
.story, .how, .support { padding-block: clamp(2.3rem, 5vw, 4.2rem); }
.opening { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.chapter { color: #863e32; }
.story-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.35; margin: .45rem 0 1rem; }
.story-text p:not(.chapter), .steps p, details { line-height: 1.9; }
.story-text p + p { margin-top: .65rem; }
.scene img { width: 100%; border: 1px solid var(--ink); }
figcaption { text-align: right; padding-top: .35rem; font-size: .78rem; }
.rule { display: flex; align-items: center; gap: 1rem; margin-block: 2rem 1rem; }
.rule::after { content: ""; height: 1px; background: var(--rule); flex: 1; }
.people, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.55rem, 2vw, 1.5rem); padding: 0; list-style: none; }
.people li { display: flex; align-items: center; gap: 1.1rem; }
.people img { width: 44%; border: 1px solid var(--rule); }
.people strong, .people span { display: block; }
.people strong { font-size: clamp(1.2rem, 2.4vw, 2rem); }
.people span { margin-top: .25rem; font-size: .85rem; }
.how { background: #e3eadf; }
.how h2, .support h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1.2rem; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid #71867a; padding-top: .9rem; }
.steps h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.steps h3::before { content: counter(step, decimal-leading-zero); color: #446457; margin-right: .6rem; font: italic 1.12rem Georgia, serif; }
details { border-block: 1px solid var(--rule); padding: 1rem 0 1.25rem; }
summary { font-weight: 700; cursor: pointer; }
details p { margin-block: .7rem .35rem; }
details ul { padding-left: 1.25rem; }
.action { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.15rem; background: var(--green); color: #fff; padding: .65rem 1rem; text-decoration: none; }
.action:hover { background: #0c302c; }
footer .bar { padding-block: 1.2rem; }
@media (max-width: 720px) {
  .opening, .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .people li { display: block; }
  .people img { width: 100%; margin-bottom: .4rem; }
  .people span { font-size: .82rem; }
}
@media (max-width: 390px) {
  .links { gap: .6rem; }
  .bar { column-gap: .65rem; }
}
