:root {
  color-scheme: light;
  --ink: #151931;
  --night: #101633;
  --blue: #223bb2;
  --blue-dark: #1b2d81;
  --ice: #eef3ff;
  --lilac: #eeeaff;
  --lime: #d9f66a;
  --mint: #d9f5e9;
  --coral: #ffa58e;
  --plum: #351c58;
  --white: #fff;
  --line: #c5cdec;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font: 1.0625rem/1.65 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.03; letter-spacing: -.039em; }
h2 { font-size: clamp(2.15rem, 5.05vw, 4.55rem); text-wrap: balance; }
h3 { font-size: clamp(1.21rem, 2.25vw, 1.63rem); letter-spacing: -.025em; line-height: 1.18; }
p + p { margin-block-start: .83em; }
h3 + p { margin-block-start: .55rem; }
a { color: var(--blue-dark); text-decoration-thickness: .075em; text-underline-offset: .19em; overflow-wrap: anywhere; }
a:hover { color: #592187; }
a:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
main:focus { outline: none; }
.skip { position: absolute; left: .9rem; top: .55rem; z-index: 3; padding: .6rem 1rem; background: var(--white); transform: translateY(-170%); }
.skip:focus { transform: none; }
.frame { width: min(100% - 2rem, 77rem); margin-inline: auto; }
.section { padding-block: clamp(2.7rem, 7vw, 6rem); }
.site-head { color: var(--white); background: var(--night); border-bottom: 1px solid #3e4770; }
.mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.6rem; padding-block: .65rem; }
.brand { color: var(--white); font: 700 1.42rem/1.2 var(--serif); text-decoration: none; padding-block: .35rem; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .14rem .55rem; padding: .24rem 0; margin: 0; list-style: none; font-size: .76rem; }
.crumbs li + li::before { content: "/"; margin-inline-end: .55rem; color: #adbafb; }
.crumbs a { color: #dfe7ff; text-decoration: none; }
.crumbs [aria-current] { color: var(--white); font-weight: 730; }
.site-head a:hover, .site-foot a:hover { color: var(--lime); }

.hero { display: grid; background: var(--blue); color: var(--white); width: 100%; max-width: 96rem; }
.hero-copy { padding: clamp(1.5rem, 4.9vw, 4.75rem) clamp(1rem, 4.8vw, 4.5rem); align-self: center; }
.locator { color: var(--blue-dark); font-size: .78rem; line-height: 1.35; font-weight: 810; letter-spacing: .065em; text-transform: uppercase; }
.hero .locator, .route .locator { color: var(--lime); }
h1 { margin-block: .25em .42em; font-size: clamp(2.8rem, 7.65vw, 5.8rem); max-width: 13ch; }
.deck { max-width: 42ch; font-size: clamp(1.07rem, 1.6vw, 1.24rem); line-height: 1.52; }
.scene { min-width: 0; align-self: start; }
.scene picture { display: block; }
.scene img { display: block; width: 100%; height: auto; aspect-ratio: 706 / 941; object-fit: cover; background: #c6d2ed; }
figcaption { padding: .5rem .8rem; color: var(--ink); background: var(--ice); font-size: .8rem; line-height: 1.4; }
.hero figcaption { background: var(--night); color: #e9eeff; }
.hero .scene img { max-height: 33rem; object-position: center 46%; }

.conquest { display: grid; gap: 1.25rem; }
.conquest-head { border-top: 6px solid var(--blue); padding-block-start: .75rem; }
.conquest-head h2, .route-head h2 { margin-top: .22em; }
.conquest-copy { max-width: 63ch; }
.source-links { display: flex; flex-wrap: wrap; gap: .36rem 1rem; margin-block-start: 1rem; font-size: .89rem; line-height: 1.45; font-weight: 700; }
.source-links a { max-width: 100%; }
.standfirst { font-size: clamp(1.15rem, 2.2vw, 1.48rem); line-height: 1.48; max-width: 52ch; }

.herds { background: var(--lilac); }
.herd-head { margin-bottom: 1.85rem; }
.herd-head h2 { max-width: 19ch; text-wrap: initial; margin-bottom: .42em; color: var(--plum); }
.herd-grid { display: grid; gap: 1.6rem; }
.herd-copy { max-width: 66ch; }
.herd-copy section + section { margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid #b8abd7; }
.herd-aside { align-self: start; background: var(--mint); border-top: 7px solid #16644e; padding: 1.2rem; }
.herd-aside h3 { color: #123e34; }
.herd-aside dl, .specimen dl { margin-top: .9rem; }
.herd-aside dl div, .specimen dl div { padding: .7rem 0; border-top: 1px solid #8caea3; }
dt { font-weight: 780; }
.herd-aside dd, .specimen dd { font-size: .96rem; line-height: 1.5; }

.route { background: var(--blue-dark); color: var(--white); }
.route-head { margin-bottom: 1.35rem; }
.route-head h2 { text-wrap: initial; }
.route .scene img { object-position: center 52%; }
.route figcaption { color: var(--white); background: var(--night); }
.route-notes { display: grid; gap: 1.35rem; margin-top: 1.55rem; }
.dispatch h3 { color: var(--lime); }
.dispatch { max-width: 65ch; }
.dispatch + .dispatch { border-top: 1px solid #8497dd; padding-top: 1.12rem; }
.route-close { padding: 1rem; margin-top: 1.5rem; background: var(--ice); color: var(--ink); border-inline-start: 5px solid var(--lime); }
.route-close > p:first-child { max-width: 78ch; }

.workshop-head { display: grid; gap: .85rem 2rem; margin-bottom: 1.4rem; }
.workshop-head h2 { color: var(--blue-dark); text-wrap: initial; }
.workbench, .making-notes { display: grid; }
.workbench { margin-bottom: 1.6rem; }
.loom { background: var(--mint); padding: clamp(1.1rem, 3vw, 2.25rem); }
.loom h3 { color: #123e34; }
.loom ol { padding-inline-start: 1.4rem; margin: .85rem 0 0; }
.loom li { padding-inline-start: .18rem; margin-top: .52rem; line-height: 1.5; }
.loom li::marker { font-weight: 800; color: #123e34; }
.making-notes { gap: 1.65rem 2.7rem; }
.making-note { border-top: 4px solid var(--blue); padding-top: .7rem; }
.making-note:nth-child(2) { border-color: #16644e; }
.making-note p { max-width: 67ch; }

.mantle { background: var(--plum); color: var(--white); }
.mantle-grid { display: grid; gap: 1.25rem; }
.mantle h2 { max-width: 17ch; text-wrap: initial; margin-bottom: .44em; }
.mantle-copy p { max-width: 64ch; }
.mantle-copy a { color: var(--lime); }
.mantle-copy a:hover { color: var(--white); }
.mantle .scene img { max-height: 35rem; object-position: center 45%; }
.mantle figcaption { background: #201332; color: #f7eeff; }
.specimen { align-self: start; padding: 1.15rem; color: var(--ink); background: var(--lilac); border-top: 7px solid var(--coral); }
.specimen dl div { border-color: #b8abd7; }

.records-section { background: var(--ice); }
.records-grid { display: grid; gap: 1.5rem; }
.records-intro h2 { color: var(--blue-dark); text-wrap: initial; margin-bottom: .36em; }
.records-intro p { max-width: 61ch; }
.record-instruction { font-size: .94rem; font-weight: 720; }
.records { align-self: start; border: 1px solid #a7b5e1; background: var(--white); }
.records details + details { border-top: 1px solid #a7b5e1; }
.records summary { cursor: pointer; padding: .9rem 1rem; font-weight: 760; color: var(--blue-dark); }
.records summary:hover { background: #e5ebff; }
.records summary:focus-visible { outline-offset: -4px; }
.records details[open] summary { background: var(--blue); color: var(--white); }
.record-body { padding: .85rem 1rem 1.1rem; }

.closing h2 { max-width: 19ch; text-wrap: initial; margin-bottom: .65em; }
.closing-grid { display: grid; gap: 1.4rem 3rem; }
.closing-grid section { border-top: 1px solid var(--line); padding-top: .9rem; }
.second-question { margin-top: 1.4rem; }
.closing-note { background: var(--ice); border-inline-start: 5px solid var(--blue); padding: 1rem; margin-top: 1.5rem; max-width: 73ch; }
.directory { background: var(--mint); }
.directory-grid { display: grid; gap: 1.25rem 3.25rem; }
.directory h2 { color: #123e34; text-wrap: initial; }
.directory dl div { border-top: 1px solid #8caea3; padding: .7rem 0; }
.directory dd { margin-top: .18rem; font-size: .96rem; }
.site-foot { background: var(--night); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1.5rem; padding-block: 1.15rem; font-size: .93rem; font-weight: 710; }
.site-foot a { color: var(--white); }

@media (width > 620px) {
  .scene img { aspect-ratio: 1672 / 941; }
}
@media (width > 740px) {
  .frame { width: min(100% - 3.5rem, 77rem); }
  .hero { width: 100%; max-width: 96rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }
  .hero-copy { padding-block: clamp(2rem, 5vw, 4.6rem); }
  h1 { font-size: clamp(3rem, 5.7vw, 6.25rem); }
  .hero .scene { align-self: stretch; display: grid; grid-template-rows: minmax(19rem, 1fr) auto; }
  .hero picture { position: relative; }
  .hero .scene img { position: absolute; inset: 0; height: 100%; max-height: none; object-position: 23% center; }
  .conquest { grid-template-columns: minmax(0, .85fr) minmax(0, 1.28fr); gap: 3rem; align-items: start; }
  .conquest-head { border-top: 0; border-inline-start: 7px solid var(--blue); padding: .1rem 0 .18rem 1.1rem; }
  .conquest-head h2 { text-wrap: initial; }
  .herd-grid { grid-template-columns: minmax(0, 1.85fr) minmax(15rem, 1fr); gap: clamp(1.8rem, 6vw, 6rem); }
  .herd-aside, .specimen { padding: 1.45rem; }
  .route .scene img { aspect-ratio: 2.4 / 1; }
  .route-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .dispatch + .dispatch { border-top: 0; border-inline-start: 1px solid #8497dd; padding: 0 0 0 2rem; }
  .route-close { padding-inline: 1.3rem; }
  .workshop-head { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; }
  .workbench { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .workbench .scene { display: grid; grid-template-rows: minmax(16rem, 1fr) auto; align-self: stretch; }
  .workbench picture { position: relative; }
  .workbench .scene img { position: absolute; inset: 0; height: 100%; object-position: 37% center; }
  .making-notes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); }
  .mantle-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 2.3rem; }
  .mantle-copy { grid-column: 1; grid-row: 1 / span 2; }
  .mantle-grid .scene { grid-column: 2; grid-row: 1; }
  .specimen { grid-column: 2; grid-row: 2; }
  .records-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; }
  .closing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}
