/* The five illustrated pages share a measure, palette and link treatment. */
.cassette-hub {
  --read: #e1eadb;
  --data: #e7e3ef;
  --save: #f1e6cc;
  --voices: #f3dfd4;
  --models: #dfeae7;
  --target: 44px;
  padding-bottom: 3.4rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.cassette-hub :is(h1, h2, h3, p, figure, blockquote) { margin: 0; }
.cassette-hub :is(h1, h2, h3) { color: var(--ink); text-wrap: balance; }
.cassette-hub :is(a, input, button, summary) { min-height: var(--target); }
.cassette-hub a { color: inherit; }
.cassette-hub .arrow { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.cassette-hub .lead { font-size: clamp(1rem, 1.27vw, 1.2rem); line-height: 1.48; color: var(--muted); }
.cassette-hub .eyebrow,
.cassette-hub .tag,
.cassette-hub .meta { font-size: .875rem; letter-spacing: .07em; color: var(--muted); }
.cassette-hub .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 600;
}
.cassette-hub .eyebrow::before { content: ""; width: 23px; height: 2px; background: #a85d3d; }
.cassette-hub h1 i { font-weight: 350; font-style: italic; }
.cassette-hub .inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.cassette-hub .inline:hover { text-decoration: underline; }
.cassette-hub .search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 370px);
  margin: 24px 0 0;
  padding: 3px 5px 3px 13px;
  background: #fcfbf6;
  border: 1px solid #acb4a6;
  border-radius: 7px;
}
.cassette-hub .search input {
  min-width: 0;
  flex: 1;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.cassette-hub .search input::placeholder { color: #535f53; opacity: 1; }
.cassette-hub .search button {
  display: grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}
.cassette-hub .search button:focus-visible { outline-offset: 1px; }

/* Home */
.hub-home .hero {
  display: grid;
  grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr);
  gap: 5%;
  align-items: center;
  padding: 30px 0 26px;
}
.hub-home .hero h1 {
  font-size: clamp(65px,6.8vw,105px);
  line-height: .94;
  letter-spacing: -.048em;
  font-weight: 600;
  margin: 20px 0 18px;
}
.hub-home .lead { font-size: clamp(18px,1.45vw,22px); color: var(--ink); }
.hub-home .dates { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.hub-home .dates a { display: inline-block; max-width: 100%; min-height: 0; }
.hub-home time { white-space: nowrap; }
.hub-home .plate { overflow: hidden; border-radius: 13px; border: 1px solid #b9baa8; background: #eee7d5; }
.hub-home .cassette-art { width: 100%; height: auto; display: block; }
.hub-home .caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 2px 8px;
  border-top: 1px solid #b4a58f;
  background: #f2eadd;
  color: #443f33;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.hub-home .tapeicon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 11px;
  vertical-align: -1px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.hub-home .tapeicon::after { content: ""; position: absolute; inset: 2px; border: 1px solid; border-radius: 5px; }
.hub-home .routes { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.hub-home .route {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 22px 19px;
  border: 1px solid #b9c6b3;
  border-radius: 11px;
  background: var(--read);
  text-decoration: none;
}
.hub-home .route h2 {
  margin: 10px 0 6px;
  font-size: clamp(23px,2vw,31px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: initial;
}
.hub-home .route p { color: #485248; }
.hub-home .route.data { background: var(--data); border-color: #c7bfd1; }
.hub-home .route.save { background: var(--save); border-color: #d2c4a9; }
.hub-home .route.voices { background: var(--voices); border-color: #d1b6a7; }
.hub-home .route.models { background: var(--models); border-color: #b0c7bf; }
.hub-home .object { width: 72px; height: 61px; }
.hub-home .circle {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #384b3d55;
  border-radius: 50%;
}
.hub-home .route:is(.voices, .models) {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  align-items: center;
  column-gap: 16px;
  padding: 19px 56px 19px 19px;
}
.hub-home .route:is(.voices, .models) .object { grid-row: 1 / 3; }
.hub-home .route:is(.voices, .models) h2 { align-self: end; margin: 0 0 4px; }
.hub-home .route:is(.voices, .models) p { align-self: start; }
.hub-home .route:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.hub-home .route.wide { background: #f0e8db; border-color: #cec2aa; }
@media (min-width: 731px) {
  .hub-home .route.wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 74px minmax(0,1fr);
    align-items: center;
    gap: 0 16px;
    padding: 10px 60px 10px 19px;
  }
  .hub-home .wide:has(+ .wide), .hub-home .wide + .wide { grid-column: span 3; }
  .hub-home .route.wide .object { grid-column: 1; grid-row: 1 / 3; }
  .hub-home .route.wide h2 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  .hub-home .route.wide p { grid-column: 2; grid-row: 2; align-self: start; }
}
.hub-home .route.wide h2:last-child { grid-row: 1 / 3; align-self: center; }
.hub-read .small-links a { display: inline-block; align-content: center; }
.hub-home .fragment-link { display: none; }
.hub-home .fragment-link:target { display: flex; align-items: center; width: fit-content; }

/* Illustrated hub heading */
.cassette-hub .pagehead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(0,1fr);
  align-items: center;
  gap: 24px;
  padding: 32px 38px;
  border: 1px solid #c6bfd4;
  border-radius: 12px;
  background: var(--data);
}
.cassette-hub .pagehead h1 {
  font-size: clamp(49px,5.2vw,83px);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -.048em;
  margin: 12px 0 14px;
}
.cassette-hub .pagehead .lead { max-width: 48ch; }
.cassette-hub .pageart { display: block; width: 100%; max-width: 350px; height: 185px; justify-self: center; }
.cassette-hub .readhead { background: var(--read); border-color: #bac9b6; }
.cassette-hub .datahead .eyebrow::before { background: #817092; }
.cassette-hub .sectionbar { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 32px 0 14px; }
.cassette-hub .section-title { font-size: clamp(24px,2.3vw,34px); letter-spacing: -.04em; font-weight: 600; line-height: 1.2; }
.cassette-hub .notice { margin-top: 10px; border-block: 1px solid var(--rule); }
.cassette-hub :is(.notice, .topics) summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.cassette-hub summary::-webkit-details-marker { display: none; }
.cassette-hub summary::after { content: "+"; font-size: 20px; }
.cassette-hub details[open] > summary::after { content: "−"; }
.cassette-hub .notice p { max-width: 82ch; margin: 0 0 13px; color: var(--muted); }
.cassette-hub .notice ul { max-width: 82ch; padding-left: 22px; color: var(--muted); }
.cassette-hub .notice li { margin-block: 8px; }
.cassette-hub .notice { overflow-wrap: anywhere; }
.cassette-hub .resource > a { align-content: center; }

/* Read */
.hub-read .readinggrid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 25px; }
.hub-read :is(.feature,.library) { border: 1px solid var(--rule); border-radius: 10px; padding: 23px; background: #f4f2e8; }
.hub-read .feature { display: flex; flex-direction: column; align-items: flex-start; background: #f2e4cf; border-color: #d4c6ac; }
.hub-read :is(.feature,.library) h2 { font-size: 23px; font-weight: 600; line-height: 1.16; letter-spacing: -.035em; }
.hub-read .feature h2 { margin-top: 9px; }
.hub-read .feature blockquote { font-size: clamp(22px,2.4vw,35px); font-style: italic; line-height: 1.17; letter-spacing: -.035em; margin: 20px 0; }
.hub-read .feature .inline { margin-top: auto; }
.hub-read .library p { color: var(--muted); margin: 6px 0; }
.hub-read .library .search { margin: 15px 0; width: 100%; }
.hub-read .topics { margin-top: 16px; border-top: 1px solid var(--rule); }
.hub-read .topiclist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; padding-bottom: 16px; }
.hub-read .topiclist a {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  text-decoration: none;
}
.hub-read .topiclist a:hover { text-decoration: underline; }
.hub-read .topiclist .arrow { width: 16px; }
.hub-read .small-links { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 12px 0; }


/* Data */
.hub-data .jumps,
.hub-data .aux { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; }
.hub-data .jumps { margin-top: 18px; }
.hub-data .jumps a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.hub-data .jumps a:hover { text-decoration: underline; }
.hub-data .jumps a:first-child { padding: 7px 14px; background: var(--ink); color: var(--paper); border-radius: 5px; }
.hub-data .jumps a::after { content: "↓"; }
.hub-data .collection { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 17px; border-top: 1px solid var(--rule); padding: 21px 0 18px; }
.hub-data .glyph { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 2px; border-radius: 8px; background: #e6e9da; }
.hub-data .glyph svg { width: 27px; height: 27px; }
.hub-data .collection:nth-of-type(2) .glyph { background: #efe2cf; }
.hub-data .collection:nth-of-type(3) .glyph { background: #e4deea; }
.hub-data .collection:nth-of-type(4) .glyph { background: #e3e9e9; }
.hub-data .collection h3 { font-size: 22px; letter-spacing: -.035em; font-weight: 600; line-height: 1.25; margin: 3px 0 4px; }
.hub-data .collection p { max-width: 70ch; color: var(--muted); }
.hub-data .actions-right { display: flex; align-items: center; }
.hub-data .download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #9da899;
  border-radius: 6px;
  background: #fcfbf6;
  font-weight: 600;
  text-decoration: none;
}
.hub-data .download:hover { background: #e8ebdf; }
.hub-data .download .arrow { width: 17px; }
.hub-data .aux { border-top: 1px solid var(--rule); padding-top: 8px; }
.hub-data .caution { color: #80432a; text-decoration: underline; }
.hub-data .resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 23px 0;
  padding: 23px 26px;
  border: 1px solid #bec6b6;
  border-radius: 9px;
  background: #e7e9dd;
}
.hub-data .resource ul { margin: 10px 0; padding-left: 20px; }
.hub-data .resource p { color: var(--muted); }

/* Voices and finding models */
.cassette-hub .hub-head { grid-template-columns: minmax(0,1fr) 23%; }
.cassette-hub .hub-head .pageart { max-width: 230px; }
.hub-voices .voiceshead { background: var(--voices); border-color: #d1b6a7; }
.hub-models .modelshead { background: var(--models); border-color: #b0c7bf; }
.hub-models .modelshead h1 { max-width: 16ch; }
.hub-voices .shelf,
.hub-models .hub-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 36px; }
.hub-models .hub-columns { gap: 6%; margin-top: 32px; }
.hub-models .hub-columns h2 { font-size: 1rem; font-weight: 600; border-bottom: 2px solid var(--ink); padding-bottom: 9px; }
.cassette-hub :is(.shelf,.guide-list) a { display: block; position: relative; padding: 20px 32px 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.cassette-hub :is(.shelf h2,.guide-list h3) { font-size: clamp(20px,1.7vw,25px); letter-spacing: -.025em; line-height: 1.2; font-weight: 600; }
.cassette-hub :is(.shelf,.guide-list) a:hover :is(h2,h3) { text-decoration: underline; }
.cassette-hub :is(.shelf,.guide-list) p { color: var(--muted); margin-top: 4px; }
.cassette-hub :is(.shelf,.guide-list) svg { position: absolute; right: 3px; top: 24px; }
.hub-models .guide-list a { padding-block: 14px; }
.hub-models .guide-list svg { top: 18px; }

@media (max-width: 930px) and (min-width: 731px) {
  .hub-home .hero { gap: 3%; }
  .hub-home .hero h1 { font-size: clamp(57px,7.3vw,78px); }
  .hub-home .route:is(.voices,.models) { grid-template-columns: 52px 1fr; padding-left: 14px; gap: 10px; }
  .hub-home .route:is(.voices,.models) .object { width: 52px; }
}
@media (max-width: 730px) {
  .cassette-hub { --target: 48px; padding-bottom: 2rem; }
  .hub-home .hero { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 22px 0 14px; }
  .hub-home .hero h1 { font-size: clamp(30px,9.9vw,64px); margin: 13px 0 12px; }
  .hub-home .hero h1 br { display: none; }
  .hub-home .hero .lead { font-size: 17px; }
  .hub-home .dates { margin-top: 8px; font-size: 14px; }
  .hub-home .search { width: 100%; margin-top: 13px; }
  .hub-home .plate { border-radius: 9px; }
  .hub-home .cassette-art { height: clamp(160px,49vw,310px); }
  .hub-home .tape-lettering { font-size: 23px; }
  .hub-home .caption { padding: 7px 10px; letter-spacing: .015em; }
  .hub-home .routes { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .hub-home .route,
  .hub-home .route:is(.voices,.models) { grid-column: 1; display: grid; grid-template-columns: 49px minmax(0,1fr) 25px; align-items: center; gap: 2px 10px; padding: 12px; }
  .hub-home .route .object { grid-row: 1 / 3; grid-column: 1; width: 49px; height: 46px; }
  .hub-home .route h2,
  .hub-home .route:is(.voices,.models) h2 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 20px; line-height: 1.1; }
  .hub-home .route p { grid-column: 2; grid-row: 2; align-self: start; line-height: 1.3; }
  .hub-home .route .circle { position: static; grid-column: 3; grid-row: 1 / 3; width: 25px; height: 25px; }
  .hub-home .circle svg { width: 16px; }
  .cassette-hub .pagehead { display: block; padding: 20px; }
  .cassette-hub .pagehead h1 { font-size: clamp(38px,10vw,64px); margin: 13px 0; padding-right: 40px; }
  .cassette-hub .pagehead .pageart { position: absolute; width: 56px; height: 49px; top: 12px; right: 10px; }
  .cassette-hub .hub-head { display: grid; grid-template-columns: minmax(0,1fr) 65px; gap: 5px; }
  .cassette-hub .hub-head h1 { max-width: none; font-size: clamp(31px,8vw,47px); padding-right: 0; }
  .cassette-hub .hub-head .pageart { position: static; width: 65px; height: 70px; }
  .cassette-hub .sectionbar { flex-direction: column; gap: 4px; margin: 25px 0 13px; }
  .hub-read .readinggrid, .hub-read .topiclist, .hub-models .hub-columns, .hub-voices .shelf { grid-template-columns: minmax(0,1fr); }
  .hub-read .readinggrid { gap: 12px; }
  .hub-read :is(.library,.feature) { padding: 17px; }
  .hub-read .feature blockquote { margin: 13px 0; }
  .hub-models .hub-columns { gap: 25px; margin-top: 23px; }
  .hub-voices .shelf a { padding-block: 16px; }
  .hub-data .collection { grid-template-columns: 36px minmax(0,1fr); gap: 6px 12px; }
  .hub-data .glyph { width: 36px; height: 36px; }
  .hub-data .glyph svg { width: 23px; height: 23px; }
  .hub-data .actions-right { grid-column: 2; }
  .hub-data .resource { display: grid; gap: 14px; padding: 17px; }
}

.hub-data .collection-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

/* Studies bar (Grant, 2026-12-03): the glyph study, with some of its signs drawn as shapes */
.hub-home .studies-bar { margin-top: 12px; }
.hub-home .studies-bar a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  align-items: center;
  gap: 8px 24px;
  padding: 22px 64px 22px 26px;
  border-radius: 11px;
  background: #1d3027;
  color: #f4f1e6;
  text-decoration: none;
  overflow: hidden;
}
.hub-home .studies-bar .eyebrow { margin: 0; color: #e9c77b; }
.hub-home .studies-bar .eyebrow::before { background: #e9c77b; }
.hub-home .studies-bar h2 { margin: 6px 0; font-size: clamp(25px,2.3vw,34px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; color: #fffdf5; }
.hub-home .studies-bar .nowrap { white-space: nowrap; }
.hub-home .studies-bar p:not(.eyebrow) { margin: 0; color: #d9dccf; max-width: 46ch; }
.hub-home .studysigns { width: 100%; height: auto; max-height: 150px; fill: #f3dfa6; }
.hub-home .studies-bar .circle { border-color: #f4f1e688; color: #f4f1e6; }
.hub-home .studies-bar a:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.hub-home .studies-bar a:focus-visible { outline: 3px solid #e9c77b; outline-offset: 3px; }
@media (max-width: 730px) {
  .hub-home .studies-bar a { grid-template-columns: 1fr; padding: 20px 56px 18px 20px; }
  .hub-home .studysigns { max-height: 110px; }
}
