:root {
  --slate: #eef2f5;
  --paper: #fff;
  --ink: #1b2733;
  --muted: #465967;
  --rule: #c7d1da;
  --oxblood: #7f1d1d;
  --sage: #3f6b4f;
  --heading: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--slate);
  color: var(--ink);
  font: 1.0625rem/1.7 var(--body);
  overflow-wrap: anywhere;
}

h1, h2, h3, .wordmark {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.14;
}

h1 { margin: 0; font-size: clamp(1.95rem, 5.4vw, 3.35rem); }
h2 { font-variant-caps: small-caps; letter-spacing: .04em; }
h3 { margin: 1.65rem 0 .4rem; font-size: 1.36rem; }
p { margin: .85em 0; }
a { color: var(--oxblood); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #571414; text-decoration-thickness: .13em; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}
[id] { scroll-margin-top: 1rem; }
ul, ol { padding-inline-start: 1.35rem; }
li::marker { color: var(--oxblood); }
img, svg { display: block; max-inline-size: 100%; block-size: auto; }
summary { cursor: pointer; }
summary::marker { color: var(--oxblood); }

.shell { width: min(calc(100% - 2rem), 74rem); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 9;
  inset: .5rem auto auto 1rem;
  padding: .45rem .75rem;
  background: var(--paper);
  transform: translateY(calc(-100% - 1rem));
}
.skip:focus { transform: none; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead { display: flex; align-items: center; min-height: 3.75rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  color: var(--ink);
  font-size: clamp(1.34rem, 5.2vw, 1.86rem);
  text-decoration: none;
}
.brand-mark {
  inline-size: 2rem;
  block-size: 1.7rem;
  flex: none;
  background: url(/favicon.svg) center / contain no-repeat;
}
.primary { border-top: 1px solid var(--rule); }
.primary-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: .12rem .45rem;
  padding-block: .28rem;
  font-size: .875rem;
}
.nav-group { min-width: 0; }
.nav-group summary, .nav-about {
  padding: .42rem .4rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-about { display: block; }
.nav-group[open] summary, .nav-group:has([aria-current]) summary, .nav-about[aria-current] {
  color: var(--oxblood);
}
.nav-group ul, .contents ul, .foot-index ul { list-style: none; margin: 0; padding: 0; }
.nav-group ul { background: var(--paper); padding: .25rem .55rem .45rem; }
.nav-group a { display: block; padding: .29rem .1rem; line-height: 1.45; }
[aria-current="page"] { font-weight: 700; }

.hero {
  margin-block: 1rem 1.65rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--oxblood);
}
.hero-copy { padding: clamp(1.15rem, 3.5vw, 3rem); align-self: center; }
.hero h1 { font-size: clamp(2rem, 4.8vw, 3.6rem); }
.hero-tagline { margin: 1rem 0 1.15rem; color: var(--muted); }
.hero-link { font-size: .92rem; font-weight: 650; }
.hero-image { margin: 0; align-self: stretch; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

.reading { display: grid; gap: 1rem; margin-block: 1rem 2.8rem; }
.contents { min-width: 0; font-size: .9rem; }
.contents-wide { display: none; }
.contents details { background: var(--paper); border: 1px solid var(--rule); padding: .55rem .85rem; }
.contents summary, .contents-title { font-family: var(--heading); font-size: 1.16rem; font-weight: 600; }
.contents ul { margin-top: .55rem; border-left: 1px solid var(--rule); padding-left: .8rem; }
.contents a { display: block; padding: .32rem 0; line-height: 1.38; }
.page {
  inline-size: min(100%, 44rem);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2.35rem);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.page h1::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: .85rem;
  background: var(--oxblood);
}
.page h2 {
  margin: 2.2rem 0 .68rem;
  padding-top: .72rem;
  border-top: 1px solid var(--oxblood);
  font-size: clamp(1.48rem, 4vw, 1.92rem);
}
.page > h2:first-child { margin-top: 0; }
.key-points {
  margin: 1.45rem 0 1.65rem;
  padding: .85rem 1.1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--sage);
}
.key-points p { margin: 0; font: 600 1.2rem/1.25 var(--heading); color: var(--sage); }
.key-points ul { margin: .45rem 0 0; }
.key-points li + li { margin-top: .22rem; }
.page-photo { margin: 1.5rem 0 2rem; }
.page-photo img { width: 100%; border: 1px solid var(--rule); }

.hub h2 { margin-top: 0; }
.hub-groups { display: grid; gap: .7rem 1.35rem; }
.hub-group { border-top: 1px solid var(--rule); padding-top: .72rem; }
.hub-group h3 { margin: 0 0 .55rem; }
.hub-group dl { margin: 0; }
.hub-group dt { font-size: .97rem; font-weight: 650; }
.hub-group dd { font-size: .9rem; line-height: 1.5; margin: .1em 0 .85em; color: var(--muted); }

.table-wrap { max-inline-size: 100%; overflow: auto; margin: 1.1rem 0 1.3rem; }
.table-wrap table { min-inline-size: 32rem; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; }
caption { text-align: left; margin-bottom: .55rem; color: var(--ink); font-weight: 650; }
th, td {
  padding: .6rem .65rem;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
thead th { background: var(--slate); }
tbody tr:nth-child(even) { background: #f7f9fa; }

.page dl:not(.hub-group dl) { margin: 1rem 0; }
.page dl:not(.hub-group dl) dt { font-weight: 680; }
.page dl:not(.hub-group dl) dd {
  margin: .18rem 0 1.05rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--rule);
}
.glossary dt:target { text-decoration: underline; text-decoration-color: var(--oxblood); text-underline-offset: .2em; }
.jump-bar { display: flex; flex-wrap: wrap; gap: .32rem; margin-block: 1.1rem; }
.jump-bar a, .jump-bar span { display: inline-grid; place-items: center; min-inline-size: 1.85rem; padding: .15rem .32rem; font-size: .87rem; }
.jump-bar a { border: 1px solid var(--rule); }
.jump-bar span { color: var(--muted); }

.page details { margin: .68rem 0; border: 1px solid var(--rule); }
.page details summary { padding: .62rem .75rem; font-weight: 620; }
.page details[open] summary { border-bottom: 1px solid var(--rule); }
.page details > :not(summary) { margin-inline: .85rem; }
.cycle {
  margin: 1.15rem auto;
  padding: .5rem;
  background: var(--slate);
  border: 1px solid var(--rule);
  max-inline-size: 24rem;
  color: var(--oxblood);
}
.cycle svg { width: 100%; }
.cycle-type { fill: var(--ink); font: 600 17px var(--heading); }

.citation { font: 650 .72em/1 var(--body); white-space: nowrap; }
.source-list { margin: .75rem 0 0; font-size: .93rem; }
.source-list li + li { margin-top: .42rem; }
.source-list cite { font-style: normal; }
.notice {
  margin: 0;
  padding: .95rem 1.1rem;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--oxblood);
  background: var(--paper);
  color: var(--ink);
  font-size: .91rem;
  line-height: 1.64;
}
.site-footer { padding: 1.55rem 0 2rem; border-top: 1px solid var(--rule); }
.foot-index { margin-top: 1.5rem; }
.foot-index h2 { margin: 0 0 .65rem; font-size: 1.55rem; }
.foot-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: 1rem 1.45rem; }
.foot-index h3 { margin: 0 0 .26rem; font-size: 1.12rem; }
.foot-index a { display: inline-block; padding: .16rem 0; font-size: .88rem; line-height: 1.45; }

@media (min-width: 37rem) {
  .hub-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 49rem) {
  .primary-inner { gap: .25rem .95rem; }
  .nav-group { position: relative; }
  .nav-group ul {
    position: absolute;
    z-index: 3;
    inset: 100% auto auto 0;
    min-inline-size: 13.5rem;
    padding: .45rem .65rem;
    border: 1px solid var(--rule);
    border-top: 2px solid var(--oxblood);
    box-shadow: 0 5px 11px #1b27331a;
  }
  .hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); margin-top: 1.55rem; }
  .hero-image img { border-left: 1px solid var(--rule); }
}

@media (min-width: 61rem) {
  .reading { grid-template-columns: minmax(10rem, 13rem) minmax(0, 44rem); justify-content: center; gap: clamp(1.85rem, 4.8vw, 4rem); }
  .reading.single { grid-template-columns: minmax(0, 44rem); }
  .contents { position: sticky; top: 1.4rem; align-self: start; max-height: calc(100vh - 2.8rem); overflow: auto; padding: .8rem .22rem .85rem .25rem; }
  .contents-wide { display: block; }
  .contents-mobile { display: none; }
  .contents-title { margin: 0; }
}

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