:root {
  --plum: #3c264f;
  --slate: #203c52;
  --berry: #9d3754;
  --teal: #24635e;
  --paper: #f6f8fc;
  --ink: #252335;
  --muted: #4c5669;
  --line: #c9cfdd;
  --gold: #ffdb87;
  --iris: #53266c;
  --raspberry: #892955;
  --mint: #d7f2e8;
  --lilac: #f1e2f7;
  --blue-wash: #e3eef9;
  --display: Georgia, 'Times New Roman', serif;
  --gutter: clamp(1.125rem, 4vw, 3.5rem);
  --section-gap: clamp(3.5rem, 7vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, sans-serif;
}
.wrap { width: min(calc(100% - 2 * var(--gutter)), 76rem); margin-inline: auto; }
.reading { width: min(100%, 42rem); margin-inline: auto; }
.prose { max-width: 42rem; font-size: clamp(1rem, .96rem + .24vw, 1.125rem); line-height: 1.72; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 7.25vw, 7rem); letter-spacing: -.06em; }
h2 { font-size: clamp(2.25rem, 4.7vw, 4.85rem); letter-spacing: -.048em; }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); letter-spacing: -.025em; }
a { color: var(--berry); text-underline-offset: .22em; }
a:hover { text-decoration: none; }
:focus-visible {
  outline: 3px solid var(--focus, var(--plum));
  outline-offset: 4px;
}
.dark { color: #fff; --focus: var(--gold); }
.skip {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 3;
  transform: translateY(-180%);
  background: #fff;
  padding: .7rem 1rem;
  color: var(--plum);
}
.skip:focus { transform: translateY(0); }
.mast { background: var(--iris); border-bottom: 6px solid var(--raspberry); }
.mast nav { background: #382047; box-shadow: 0 0 0 100vmax #382047; clip-path: inset(0 -100vmax); }
.crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .66rem;
  margin: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid #b193c3;
  color: #f1dfef;
  font-size: .84rem;
}
.crumbs li { display: flex; align-items: baseline; gap: .66rem; }
.crumbs li + li::before {
  content: '';
  width: .37rem;
  height: .37rem;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: rotate(45deg) translateY(-.14rem);
}
.crumbs a { color: #fff; }
.mast-copy { display: grid; gap: 1.25rem; padding-block: clamp(2.5rem, 5.8vw, 5.4rem); }
.standfirst {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  color: #f6eafa;
  max-width: 33ch;
  font-size: clamp(1.07rem, 1rem + .44vw, 1.35rem);
}

figure { margin: 0; min-width: 0; }
picture { display: block; background: #dce3eb; }
img { display: block; width: 100%; height: auto; }
figcaption { padding: .67rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.46; }
.hero img { aspect-ratio: 1672 / 941; object-fit: cover; object-position: center 56%; }
.chapter { margin-top: var(--section-gap); }
.opening { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.opening h2 { color: var(--iris); }
.opening .note { align-self: center; }
.chapter-band { padding-block: clamp(2.1rem, 5.6vw, 5rem); }
.mill-band { background: var(--blue-wash); border-top: 7px solid #376c9d; }
.farm-band { background: var(--mint); border-top: 7px solid #32877a; }
.rule-heading { padding-top: .8rem; border-top: 4px solid var(--berry); }
.section-title { margin-bottom: clamp(1.2rem, 3vw, 2.15rem); }
.paired {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.mill .section-title { color: var(--slate); }
.mill .paired { margin-top: clamp(1.4rem, 4vw, 3rem); }
.note { padding: clamp(1.2rem, 3vw, 2.25rem); }
.note h3 { margin-bottom: .6rem; }
.note p { margin: 0; }
.note-slate { background: var(--slate); border-top: 5px solid #9bbeda; }
.note-teal { background: var(--teal); border-left: 5px solid #a4e1d4; }
.note-berry { background: var(--raspberry); border-top: 5px solid #f2a9c7; }
.note-gold { background: var(--gold); border-top: 5px solid #ae6916; color: #432635; }
.note-iris { background: var(--iris); border-top: 5px solid #d5a7ec; }
.note-mint { background: var(--mint); border-left: 5px solid #8bd7bd; color: #183f39; }
.note-glossary dl { margin: 0; }
.note-glossary dt { margin-top: .65rem; font-weight: 750; }
.note-glossary dd { margin: 0; }

.arrival .section-title { color: var(--iris); }
.arrival .note { align-self: center; }
.records {
  margin-top: clamp(2.25rem, 5vw, 4rem);
  padding: clamp(1.35rem, 5vw, 3.75rem);
  background: var(--iris);
  border-top: 6px solid #bc5b87;
}
.records h2 { margin-bottom: .75rem; }
.records > p { color: #f1dfef; margin: 0 0 1.5rem; }
.records details { border-block-start: 1px solid #b193c3; }
.records details:last-child { border-block-end: 1px solid #b193c3; }
.records details[open] { background: #533964; }
.records summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.6rem;
  align-items: center;
  gap: .7rem;
  padding: 1rem .65rem;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.35;
}
.records summary::-webkit-details-marker { display: none; }
.records summary:hover { background: #533964; }
.records summary:focus-visible { outline-offset: -4px; }
.record-date { display: block; margin-bottom: .2rem; color: var(--gold); font-size: .82rem; }
.record-icon { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 1px solid #ccafd8; color: var(--gold); }
.record-icon::before { content: '+'; }
details[open] .record-icon::before { content: '−'; }
.record-text { max-width: 63ch; padding: 0 .65rem 1.25rem; }
.record-text p { margin: 0; }

.farm-heading { color: var(--teal); }
.farm-lead { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.farm-work .paired { margin-bottom: clamp(1.75rem, 4vw, 3.25rem); }
.farm-work .note { align-self: center; }
.clothing { background: var(--lilac); padding-block: clamp(2.2rem, 6vw, 5rem); border-top: 7px solid var(--raspberry); }
.clothing .section-title {
  margin: 0;
  padding: clamp(1.2rem, 4vw, 3rem);
  background: var(--raspberry);
  color: #fff;
}
.clothing-lead { align-items: center; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.clothing .note { align-self: center; }
.fleece-route {
  margin-top: clamp(1.8rem, 4.5vw, 3.6rem);
  padding: clamp(1.15rem, 4.5vw, 3.5rem);
  background: var(--slate);
}
.fleece-route h3 { color: #fff; font-size: clamp(1.9rem, 4vw, 3.4rem); }
.route-options { min-inline-size: 0; margin: .85rem 0 0; padding: 0; border: 0; }
.route-options legend { margin-bottom: .7rem; padding: 0; color: #dfeaf6; }
.route-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.route-controls label {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 48px;
  padding: .45rem .55rem;
  border: 1px solid #adc5d9;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}
.route-controls input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--iris); }
.route-controls label:hover { background: #365a76; }
.route-controls label:has(:checked) { background: var(--gold); border-color: var(--gold); color: #292238; }
.route-controls label:has(:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.route-controls input:focus-visible { outline: none; }
.route-result {
  min-height: 12.5rem;
  margin-top: .85rem;
  padding: clamp(.95rem, 2.8vw, 2rem);
  background: #f4f8fe;
  color: var(--ink);
}
.route-result h4 { margin: 0 0 .5rem; color: var(--iris); font: 400 clamp(1.35rem, 3vw, 2.1rem)/1.16 var(--display); }
.route-result p { max-width: 65ch; margin: 0; }
.route-result p + p { margin-top: .6rem; }
.route-options:has(input:checked) .route-panel { display: none; }
.route-options:has(#route-shear:checked) #panel-shear,
.route-options:has(#route-sort:checked) #panel-sort,
.route-options:has(#route-spin:checked) #panel-spin,
.route-options:has(#route-make:checked) #panel-make { display: block; }
.today .note { margin-top: 1.4rem; }
.today { padding: clamp(1.5rem, 5vw, 4rem); background: var(--teal); border-bottom: 6px solid var(--gold); }
.today h2 { max-width: 12ch; }
.directory {
  display: inline-flex;
  align-items: baseline;
  gap: .7rem;
  margin-top: 1.3rem;
  padding: .78rem 1rem;
  color: var(--slate);
  background: var(--gold);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.directory:hover { background: #fff; }
.sources { margin-bottom: var(--section-gap); }
.sources h2 { color: var(--slate); }
.source-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.source-list li { min-width: 0; border-bottom: 1px solid var(--line); }
.source-list a {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  padding: .85rem .8rem;
  color: var(--slate);
  text-decoration: none;
}
.source-list a:hover, .source-list a:focus-visible { background: #e9e2f1; }
.source-list a:focus-visible { outline-offset: -3px; }
.source-list strong { display: block; line-height: 1.35; }
.source-list small { display: block; margin-top: .25rem; color: var(--muted); font-size: .86rem; }
.source-list a > span:last-child { color: var(--berry); }

@media (max-width: 43.75rem) {
  img, .hero img { aspect-ratio: 706 / 941; }
}
@media (min-width: 45rem) {
  .route-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route-controls label { padding-inline: .8rem; }
  .route-result { min-height: 10rem; }
  .source-list { grid-template-columns: 1fr 1fr; }
  .source-list li:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (min-width: 52rem) {
  .mast-copy { grid-template-columns: minmax(0, 2.5fr) minmax(14rem, 1fr); align-items: end; gap: 2rem; }
  .standfirst { margin-bottom: .4rem; }
  .hero img { aspect-ratio: 2.25; }
  .paired { grid-template-columns: minmax(0, 2.25fr) minmax(13rem, 1fr); }
  .mill .paired { width: min(100%, 65rem); margin-inline: auto; }
  .mill picture { max-height: 29rem; overflow: hidden; }
  .mill img { height: min(44vw, 29rem); object-fit: cover; object-position: center 55%; }
  .farm-work .paired { width: min(100%, 66rem); margin-inline: auto; grid-template-columns: minmax(0, 1.6fr) minmax(14rem, 1fr); }
  .clothing-lead { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .clothing-body { width: min(100%, 64rem); margin-inline: auto; }
  .today { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
  .today .section-title { margin: 0; }
}
