:root {
  color-scheme: light;
  --ink: #233d36;
  --dim: #52645c;
  --paper: #f7f4ec;
  --line: #c9c7b8;
  --bronze: #865831;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}
* { box-sizing: border-box; }
html { scroll-padding-block: 1rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.85 system-ui,sans-serif; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: #814828; }
a:focus-visible { outline: 3px solid #ab5f19; outline-offset: 3px; }
.wrap { width: min(72rem,calc(100% - 3rem)); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); background: #fffdf7; }
.mast .wrap, footer, .folio { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.mast .wrap { min-height: 4.2rem; }
.mast a, footer a { font-size: .88rem; }
.mast .brand { display: inline-flex; align-items: center; gap: .6rem; font: bold 1.1rem var(--serif); text-decoration: none; }
.brand span { display: grid; place-items: center; width: 2rem; height: 2rem; color: white; background: var(--ink); }
.folio { padding: 1.1rem 0 .65rem; border-bottom: 2px solid var(--ink); font: 600 .76rem/1.7 system-ui,sans-serif; letter-spacing: .1em; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; padding: clamp(2rem,5vw,4.2rem) 0 2.5rem; }
.hero-0 { grid-template-columns: 1.12fr .8fr; }
.hero-5 { display: block; max-width: 53rem; }
.hero-0 .photo { justify-self: center; width: min(100%, 23.5rem); }
.hero-0 .photo img { aspect-ratio: 1; }
.kicker,.section-label { margin: 0; font: 700 .79rem/1.6 system-ui,sans-serif; color: var(--bronze); letter-spacing: .12em; }
.kicker span { margin-left: .55em; }
h1,h2,h3,.card b,.next strong, .quote blockquote { font-family: var(--serif); }
h1 { font-size: clamp(2.2rem,4.5vw,4.5rem); margin: .3em 0; line-height: 1.3; letter-spacing: .025em; text-wrap: balance; }
.hero-0 h1 { font-size: clamp(3.8rem,7.3vw,7.1rem); margin-bottom: .06em; }
.name { font-size: .91rem; margin: 0 0 1.7rem; font-weight: 650; }
.lead { line-height: 2; max-width: 44em; margin: .9rem 0 0; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; box-shadow: 5px 5px #dbd7c8; }
.photo figcaption,.quote figcaption,.source { color: var(--dim); font-size: .8rem; line-height: 1.75; margin: .65rem 0 0; }
.chapters { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-block: 1px solid var(--ink); margin-bottom: 2rem; }
.chapters a { text-decoration: none; padding: .7rem; font-size: .88rem; font-weight: 650; }
.chapters a[aria-current], .chapters a:hover { background: var(--ink); color: white; }
.chapters em { display: block; font: .75rem/1.5 Georgia,serif; opacity: .85; }
article { max-width: 63rem; margin: auto; }
.reading,.directory { padding: 1rem 0 1.35rem; }
h2 { font-size: clamp(1.5rem,3vw,2.2rem); line-height: 1.45; margin: .45rem 0 1rem; }
.reading>p:not(.source) { max-width: 47em; margin: .85rem 0; line-height: 2.05; }
.quote { padding: 1.2rem 1.5rem; margin: 1.55rem 0; background: #ede9db; border-left: 3px solid var(--bronze); max-width: 49rem; }
.quote blockquote { font-size: 1.25rem; margin: 0; }
.photo-pair, .cards, .consult>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.photo-pair { margin: 1.6rem 0; }
.card { display: grid; grid-template-columns: 1fr auto; gap: .35rem .65rem; padding: 1.05rem 1.15rem; border: 1px solid var(--line); background: #fffdf6; text-decoration: none; }
.card b { font-size: 1.13rem; line-height: 1.55; }
.card span { grid-column: 1; color: var(--dim); font-size: .93rem; }
.card i { grid-column: 2; grid-row: 1; font-style: normal; color: var(--bronze); }
.card:hover { border-color: var(--bronze); background: #fff; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 1.5rem; }
.jump a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 1.5rem; font-size: .87rem; }
.timeline { margin: .5em 0; }
.timeline div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: .8rem 0; }
.timeline dt { font-weight: bold; color: var(--bronze); }
.timeline dd { margin: 0; }
.consult { margin: 2rem 0; padding: clamp(1.3rem,4vw,2.6rem); background: #243e36; color: #fffdf5; }
.consult .kicker { color: #eac7a0; }
.consult a { color: inherit; display: grid; align-content: start; gap: .25rem; padding: 1rem; border: 1px solid #93a895; text-decoration: none; }
.consult a:hover { background: #365044; }
.consult small { color: #eed8b8; }
.consult a span { font-size: .88rem; }
.next { display: grid; padding: 1rem 0 1.5rem; border-top: 1px solid var(--ink); text-decoration: none; }
.next span { font-size: .75rem; color: var(--bronze); }
.field-note { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.field-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  margin-block: 1.5rem;
}
.field-photos figure { margin: 0; min-width: 0; }
.field-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eae7dc;
}
.field-photos figcaption { margin-top: .5rem; font-size: .85rem; color: var(--dim); }
.field-links { padding-inline-start: 1.35rem; line-height: 1.9; }
footer { padding-block: 1rem 2rem; border-top: 1px solid var(--line); font-size: .8rem; }
.skip { position: absolute; background: white; top: -8rem; padding: .5rem; }
.skip:focus { top: 0; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .hero,.hero-0 { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 1.4rem; }
  .hero-0 .photo { justify-self: start; width: min(100%,16rem); }
  .hero:not(.hero-0) .photo img { max-height: 19rem; object-fit: cover; }
  .chapters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cards,.consult>div { grid-template-columns: 1fr; }
  .timeline div { grid-template-columns: 6rem 1fr; gap: .5rem; }
  .folio,.mast a { font-size: .75rem; }
}
@media (max-width: 390px) {
  .photo-pair { grid-template-columns: 1fr; }
  .chapters a { padding: .45rem .3rem; font-size: .79rem; }
}
