:root {
  --paper: #f9faf7;
  --ink: #142831;
  --muted: #455c63;
  --rust: #91331d;
  --rust-dark: #772b19;
  --deep: #132d37;
  --teal: #154f54;
  --green: #d6e6dc;
  --gold: #ffd29d;
  --line: #bac8c0;
  --width: 1240px;
  --gutter: clamp(1rem, 5vw, 4rem);
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.065rem/1.66 system-ui, sans-serif;
}
h1, h2, h3, p, figure, dd { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.049em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: clamp(2.35rem, 5.7vw, 4.75rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
p + p { margin-top: .95em; }
a { color: #13595a; text-underline-offset: .19em; }
a:hover { color: var(--rust); text-decoration: none; }
:focus-visible { outline: 3px solid #006c70; outline-offset: 4px; }
[hidden] { display: none !important; }
.frame { width: min(calc(100% - 2 * var(--gutter)), var(--width)); margin-inline: auto; }
.sr-only, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  z-index: 2;
  top: .6rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: .65rem 1rem;
  background: white;
  clip-path: none;
}
.mast { border-bottom: 1px solid var(--line); }
.mast-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.4rem;
  padding-block: 1rem;
}
.brand { font: bold 1.45rem/1 var(--serif); }
.mast a, .foot a { color: inherit; text-decoration: none; }
.mast a:hover, .foot a:hover { color: var(--rust); }
.trail ol {
  display: flex;
  flex-wrap: wrap;
  gap: .24rem .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .77rem;
}
.trail li + li::before { content: "/"; margin-right: .55rem; color: #647a81; }
.trail [aria-current] { font-weight: 750; }
picture, img { display: block; width: 100%; }
img { height: auto; background: #a6a28f; }
figcaption { color: var(--muted); font-size: .77rem; line-height: 1.4; padding-top: .65rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.25fr);
  min-height: clamp(430px, 43vw, 680px);
  background: var(--rust);
  color: white;
}
.hero-copy {
  align-self: center;
  padding: clamp(1.65rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  padding-left: max(var(--gutter), calc((100vw - var(--width)) / 2));
}
.label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero .label { color: var(--gold); margin-bottom: clamp(.65rem, 2vw, 1.5rem); }
.hero h1 { font-size: clamp(2.95rem, 6.4vw, 7.2rem); line-height: .96; }
.hero-dek { max-width: 39ch; margin-top: 1.5rem; font-size: clamp(1rem, 1.65vw, 1.35rem); line-height: 1.48; }
.hero-art { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; background: var(--deep); }
.hero-art picture { min-height: 0; }
.hero-art img { height: 100%; object-fit: cover; object-position: 42% 52%; }
.hero-art figcaption { padding: .65rem 1rem; color: #f2f5f1; }
.place {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr);
  gap: clamp(1.4rem, 6vw, 6.2rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 7.5rem);
}
.place h2, .lab h2, .findings h2 { margin-bottom: .42em; }
.puna { border-top: 5px solid var(--teal); }
.source-line { font-size: .83rem; font-weight: 700; margin-top: 1rem; }
.layers { padding-block: clamp(2.3rem, 6vw, 6rem); background: var(--deep); color: white; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  gap: 1rem 2.5rem;
  align-items: end;
  margin-bottom: 1.6rem;
}
.section-head p { color: #d8e7df; max-width: 42ch; }
.layers-layout.enhanced {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.2fr);
  align-items: stretch;
}
.strata {
  display: grid;
  gap: 2px;
  padding: .7rem 0;
  background: #233f45;
}
.strata button {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 66px;
  width: 100%;
  border: 0;
  padding: .62rem 1.4rem .62rem 1rem;
  color: var(--ink);
  background: var(--sediment);
  text-align: left;
  font: 750 .98rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  clip-path: polygon(0 0, 100% var(--dip), 100% 100%, 0 calc(100% - var(--dip)));
}
.strata button:nth-child(1) { --sediment: #dce8cf; --dip: 4%; }
.strata button:nth-child(2) { --sediment: #c6d4a8; --dip: 8%; }
.strata button:nth-child(3) { --sediment: #eccf94; --dip: 3%; }
.strata button span:first-child { font: 1.25rem/1 var(--serif); }
.strata button:hover { background: #fff0ce; }
.strata button[aria-pressed="true"] { background: #fff8e9; box-shadow: inset 7px 0 #a94325; }
.strata button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  right: .65rem;
  width: .45rem;
  height: .45rem;
  background: var(--rust);
  border-radius: 50%;
}
.strata button:focus-visible { outline-offset: -6px; }
.layer-pages {
  background: #f2f6eb;
  color: var(--ink);
  padding: clamp(1.2rem, 4vw, 3.4rem);
  border-bottom: 4px solid #9cad96;
}
.layer-pages h3 { margin: .42rem 0 .7rem; }
.layer-pages .label { color: var(--rust); }
.panel + .panel { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.enhanced .panels { display: grid; }
.enhanced .panel {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
}
.enhanced .panel.inactive { visibility: hidden; pointer-events: none; }
.layer-source { margin-top: 1.05rem; color: #dfebe6; font-size: .83rem; }
.layers a { color: var(--gold); }
.layers a:focus-visible { outline-color: var(--gold); }
.lab { padding-block: clamp(3rem, 8vw, 7rem); }
.lab > header { max-width: 66ch; margin-bottom: 1.65rem; }
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: start;
  gap: clamp(1.1rem, 4vw, 3.6rem);
}
.lab-art { padding: .55rem; background: var(--deep); }
.lab-art figcaption { color: #e1ede7; padding: .7rem .3rem .25rem; }
.domestication { max-width: 78ch; margin-top: 1.4rem; }
.findings { background: var(--rust-dark); color: white; padding-block: clamp(2.7rem, 7vw, 6.5rem); }
.findings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(1.4rem, 5.5vw, 5rem);
  align-items: start;
}
.findings-copy a { color: var(--gold); }
.findings-copy a:focus-visible { outline-color: var(--gold); }
.interpret { background: #f4dfc5; color: var(--ink); padding: clamp(1.05rem, 3vw, 2.15rem); }
.interpret h3 { margin-bottom: .5rem; }
.interpret > p:first-of-type { margin-bottom: .65rem; }
.interpret details { border-top: 1px solid #ab8d71; padding: .1rem 0; }
.interpret summary {
  padding: .67rem 0;
  min-height: 44px;
  cursor: pointer;
  font-weight: 760;
}
.interpret summary:hover { color: var(--rust); }
.interpret details p { font-size: .95rem; padding-bottom: .8rem; }
.animal-key > .source-line { margin-top: .8rem; }
.lineages { margin: 0; border-top: 3px solid var(--teal); }
.lineages > div { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.lineages dt { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font: 1.55rem/1.2 var(--serif); }
.lineages small { color: var(--teal); font: 650 .76rem/1.3 system-ui, sans-serif; text-align: right; }
.lineages dd { margin-top: .12rem; font-size: .94rem; }
.fiber {
  margin-block: clamp(2.8rem, 7vw, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  background: var(--teal);
  color: white;
}
.fiber figure { padding: .7rem; }
.fiber figcaption { color: #e9f4ed; }
.fiber-copy { padding: 1rem 1.5rem 1.2rem 0; }
.fiber h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin-bottom: .38em; }
.fiber a { color: var(--gold); }
.fiber a:focus-visible { outline-color: var(--gold); }
.sources { margin-top: clamp(2.7rem, 7vw, 6rem); border-top: 3px solid var(--teal); padding-block: 1.3rem 2.2rem; }
.sources h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin-bottom: .6rem; }
.sources ul { list-style: none; margin: 0; padding: 0; }
.sources li { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); gap: .18rem 1rem; border-bottom: 1px solid var(--line); padding: .65rem 0; font-size: .94rem; }
.sources a { font-weight: 750; }
.chapters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.chapters a { font-weight: 750; }
.foot { margin-top: 2rem; background: var(--green); padding: 1rem 0; font-size: .85rem; }
.foot .frame { display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 750px) {
  .hero, .place, .section-head, .layers-layout.enhanced, .lab-layout,
   .findings-layout, .fiber { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero-copy { padding: 2rem var(--gutter) 2.2rem; }
  .hero h1 { font-size: clamp(2.8rem, 9vw, 5rem); }
  .hero-art { grid-template-rows: auto auto; }
  .hero-art img { height: auto; aspect-ratio: 706 / 941; }
  .puna img, .lab-art img, .fiber img { aspect-ratio: 706 / 941; }
  .strata { padding: .45rem 0; }
  .strata button { min-height: 52px; }
  .sources li { grid-template-columns: minmax(0, 1fr); }
  .fiber { gap: 0; }
  .fiber-copy { padding: .8rem 1.1rem 1.3rem; }
}
