/* Women in Bluegrass Newsletter Archive: reading copy.
   Layout: one reading column on archive paper; thin teal frames (from the newsletter's own nameplate box)
   mark the one framed moment per page; aqua appears only in the podcast band. */

@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fondamento"; src: url("../fonts/fondamento-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f7f3;      /* archive paper, a touch of the flyer's grey-green */
  --paper-2: #eceee8;    /* recessed areas: viewer well, inputs */
  --ink: #26282d;        /* charcoal, from the podcast lettering */
  --muted: #555960;
  --teal: #0499a9;       /* the logo's teal: rules, frames, large type only */
  --link: #00707b;       /* darker teal that passes AA for text */
  --aqua: #95cacb;       /* the podcast paper */
  --on-aqua: #22262b;
  --hair: #c9d1cd;
  --mark: #d8eeee;
  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --step--1: 0.95rem;
  --step-0: 1.25rem;
  --step-1: 1.5rem;
  --step-2: 1.9rem;
  --step-3: 2.6rem;
  --measure: 36rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1d20; --paper-2: #24272b; --ink: #e8e9e4; --muted: #aab0b5; --teal: #39c0cc; --link: #74d3dc;
    --aqua: #234547; --on-aqua: #e8e9e4; --hair: #3a4045; --mark: #23484b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b1d20; --paper-2: #24272b; --ink: #e8e9e4; --muted: #aab0b5; --teal: #39c0cc; --link: #74d3dc;
  --aqua: #234547; --on-aqua: #e8e9e4; --hair: #3a4045; --mark: #23484b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: var(--step-0); line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-1); margin-block: 2.2rem 0.6rem; }
h3 { font-size: var(--step-0); font-weight: 600; margin-block: 1.2rem 0.2rem; }
p { margin: 0 0 0.8em; }
i, em { font-style: italic; }
.selectable { user-select: all; }
.small, small { font-size: var(--step--1); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 5; }
.skip:focus { left: var(--gutter); }
#main:focus { outline: none; }

.wrap { max-width: 68rem; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: calc(var(--measure) + 4rem); }

/* ---------- masthead */
.masthead { border-bottom: 1px solid var(--teal); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 0.9rem; }
.home .masthead { border-bottom: 0; }
.home .masthead-row { justify-content: flex-end; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand img { width: 200px; }
.brand { align-items: flex-end; align-self: flex-start; }
.brand-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.15rem; line-height: 1.2; text-align: right; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--step-0); padding-block: 0.2rem; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--link); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }

/* ---------- the frame: a thin teal box whose top rule the title breaks into */
.frame { position: relative; border: 1.5px solid var(--teal); padding: 2.2rem clamp(1rem, 4vw, 2.5rem) 1.6rem; margin-top: 2.4rem; }
.frame-tab { position: absolute; top: 0; left: clamp(0.8rem, 3vw, 2rem); transform: translateY(-55%); background: var(--paper); padding: 0 0.5rem; margin: 0; font-size: var(--step-1); color: var(--teal); }

/* ---------- home */
.home-frame { display: grid; grid-template-columns: 1fr; gap: 1.5rem 3rem; margin-top: clamp(3.4rem, 9vw, 5.6rem); padding-top: clamp(3rem, 7vw, 4.6rem); }
.frame-logo { position: absolute; top: 0; left: clamp(0.5rem, 3vw, 1.8rem); transform: translateY(-58%); background: var(--paper); padding: 0 0.6rem; margin: 0; }
.frame-logo img { width: min(440px, 70vw); }
.frame-logo { display: flex; flex-direction: column; align-items: flex-end; }
.frame-logo .brand-sub { display: block; font-size: clamp(0.72rem, 2.2vw, 0.95rem); margin-top: 0.1rem; font-weight: 400; padding-right: 0.15rem; }
.home-intro { max-width: var(--measure); min-width: 0; }
.lede { font-size: var(--step-1); line-height: 1.4; }
.start { display: flex; gap: 1rem; align-items: flex-end; text-decoration: none; color: var(--ink); justify-self: start; }
.start img { width: 150px; border: 1px solid var(--hair); }
.start-text { display: flex; flex-direction: column; }
.start-label { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; }
.start-date { color: var(--muted); }
@media (min-width: 52rem) {
  .home-frame { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .start { flex-direction: column; align-items: flex-start; }
  .start img { width: 190px; }
}
.search-form label { display: block; margin-bottom: 0.3rem; }
.search-row { display: flex; gap: 0.5rem; max-width: 30rem; }
.search-row input { flex: 1; min-width: 0; }
input[type="search"], select {
  font: inherit; font-size: var(--step-0); color: var(--ink); background: var(--paper);
  border: 1px solid var(--muted); border-radius: 0; padding: 0.35rem 0.6rem;
}
button, .action {
  font: inherit; font-size: var(--step-0); color: var(--link); background: transparent; cursor: pointer;
  border: 1.5px solid var(--link); border-radius: 0; padding: 0.3rem 0.9rem; text-decoration: none; display: inline-block;
}
button:hover, .action:hover { background: var(--paper-2); }
button:disabled { color: var(--muted); border-color: var(--hair); cursor: default; background: transparent; }
.action.quiet { border-color: transparent; text-decoration: underline; padding-inline: 0.2rem; }

.home-issues h2 { margin-top: 3rem; }
.year-strip { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--hair); }
.year-strip li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding-block: 0.4rem; border-bottom: 1px solid var(--hair); }
.year { color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.year-issues { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.photo-run { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: flex-start; margin-block: 1rem 1.2rem; }
.photo { margin: 0; width: 15rem; max-width: 100%; }
.photo img { width: 100%; background: #fff; }
.photo figcaption { font-size: var(--step--1); line-height: 1.35; margin-top: 0.45rem; }
.photo-who { display: block; }
.photo-meta { display: block; color: var(--muted); }

.band { background: var(--aqua); color: var(--on-aqua); margin-top: 4rem; }
.band a { color: var(--on-aqua); }
.band-inner { display: grid; gap: 1rem 3rem; padding-block: 2.4rem; align-items: center; }
.band-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
@media (min-width: 52rem) { .band-inner { grid-template-columns: auto minmax(0, 1fr); } }

/* ---------- list pages */
.page-title { font-size: var(--step-3); font-weight: 500; margin-top: 2.4rem; }
.page-lede { max-width: var(--measure); color: var(--ink); margin-top: 0.6rem; }
.note { color: var(--muted); max-width: var(--measure); }
.year-group { display: grid; grid-template-columns: 1fr; gap: 0 2rem; border-top: 1px solid var(--teal); margin-top: 1.8rem; padding-top: 0.6rem; }
.year-head { font-size: var(--step-2); color: var(--teal); margin: 0; font-variant-numeric: lining-nums; }
@media (min-width: 52rem) { .year-group { grid-template-columns: 8rem minmax(0, 1fr); } }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { padding-block: 0.5rem 0.4rem; }
.issue-list li + li { border-top: 1px solid var(--hair); }
.issue-link { font-size: var(--step-1); text-decoration: none; }
.issue-link:hover .issue-no { text-decoration: underline; }
.issue-no { font-weight: 500; }
.issue-date { color: var(--muted); }
.issue-contents { margin: 0.1rem 0 0; color: var(--ink); font-size: var(--step--1); max-width: 48rem; }
.sep { color: var(--teal); }

/* ---------- issue page */
.issue-head { max-width: 48rem; }
.issue-head h1 { font-size: var(--step-3); }
.issue-masthead { color: var(--muted); font-size: var(--step--1); margin-top: 0.3rem; }
.issue-desc { margin-top: 1rem; }
.content-note { font-size: var(--step--1); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding-block: 0.6rem; max-width: var(--measure); }
.note-label { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; margin: 1.2rem 0 0; }
.issue-body { max-width: 48rem; }
.contents { padding-left: 1.4rem; margin: 0; }
.contents > li { padding-block: 0.4rem; }
.contents > li::marker { color: var(--teal); font-variant-numeric: lining-nums; }
.c-title { font-weight: 500; }
.c-part { display: flex; flex-direction: column; margin-top: 0.1rem; }
.c-sub { font-style: italic; }
.c-by { font-size: var(--step--1); }
.c-sum { font-size: var(--step--1); color: var(--muted); }
.sic { font-size: var(--step--1); color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding-block: 0.15rem; }
.mentioned h3 { font-weight: 400; color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }
.name-run { margin: 0; }
.prev-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--teal); margin-top: 3rem; padding-block: 1rem 0; }

/* ---------- read view */
.read-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.6rem 2rem; margin-top: 2rem; }
.read-head h1 { font-size: var(--step-2); flex-basis: 100%; }
.crumb { margin: 0; font-size: var(--step--1); }
.view-switch { display: flex; gap: 0; }
.view-switch button { font-size: var(--step--1); }
.view-switch button + button { border-left: 0; }
.view-switch button[aria-pressed="true"] { background: var(--link); color: var(--paper); }
.read-grid { margin-top: 1.4rem; }
.read-grid[data-view="pages"] .transcript { display: none; }
.read-grid[data-view="text"] .viewer { display: none; }
.read-grid.text-only .transcript { display: block; }
.viewer-page { background: var(--paper-2); padding: 0.6rem; }
.viewer-page img { margin-inline: auto; background: #fff; max-height: 82vh; width: auto; }
.viewer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 0.7rem; }
.viewer-controls button { font-size: var(--step--1); }
.pg-pick select { font-size: var(--step--1); padding: 0.15rem 0.3rem; }
.pg-full { margin-left: auto; font-size: var(--step--1); }
.transcript { max-width: var(--measure); }
.text-head { margin-top: 0; }
.prose h2 { font-size: var(--step-1); margin-top: 2rem; }
.prose p { hyphens: auto; }
.rights { font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--hair); padding-top: 0.6rem; margin-top: 2rem; }
@media (min-width: 64rem) {
  .view-switch { display: none; }
  .read-grid { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .read-grid .viewer, .read-grid .transcript { display: block !important; }
  .read-grid .viewer { position: sticky; top: 1rem; }
  .read-grid.text-only { display: block; }
}

/* ---------- people */
.filter { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; align-items: end; margin-block: 1.4rem; }
.filter-field label { display: block; font-size: var(--step--1); }
.filter-field input { width: min(22rem, 100%); }
.filter-count { margin: 0; color: var(--muted); font-size: var(--step--1); }
.az-group { border-top: 1px solid var(--hair); padding-top: 0.4rem; margin-top: 1rem; }
.az-letter { font-size: var(--step-2); color: var(--teal); margin: 0 0 0.3rem; }
.az-list { list-style: none; padding: 0; margin: 0; columns: 16rem auto; column-gap: 2rem; }
.az-list li { break-inside: avoid; padding-block: 0.08rem; line-height: 1.35; }
.az-list span:not(.kind) { color: var(--ink); }
.kind { font-size: var(--step--1); color: var(--muted); }

.ref .crumb, .episode .crumb { margin-top: 2rem; }
.ref h1 { font-size: var(--step-3); margin-top: 0.4rem; }
.kind-line { color: var(--muted); margin-top: 0.3rem; }
.ref-grid { display: grid; grid-template-columns: 1fr; gap: 1rem 3.5rem; }
.ref-main { min-width: 0; max-width: var(--measure); }
.ref-notes { margin-top: 1.2rem; }
.issue-mentions { list-style: none; padding: 0; margin: 0; columns: 14rem auto; }
.issue-mentions li { break-inside: avoid; }
.ref-photos .photo { width: 100%; margin-bottom: 1.4rem; }
.links a { overflow-wrap: anywhere; }
@media (min-width: 60rem) { .ref-grid { grid-template-columns: minmax(0, 1fr) 17rem; } }

/* ---------- podcast */
.podcast-title img { width: min(420px, 85vw); }
.ep-list { list-style: none; padding: 0; margin: 0; }
.ep-row { padding-block: 0.45rem; border-bottom: 1px solid var(--hair); }
.ep-no { color: var(--teal); font-variant-numeric: lining-nums; }
.ep-meta { color: var(--muted); font-size: var(--step--1); }
.patreon-note { margin-top: 1rem; }
.episode h1 { font-size: var(--step-3); margin-top: 0.4rem; }
.player { width: 100%; max-width: var(--measure); margin-top: 1rem; }
.episode section { max-width: var(--measure); }

/* ---------- search */
.search-form.big { margin-top: 1rem; }
.search-kinds { border: 0; padding: 0; margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.search-kinds legend { font-size: var(--step--1); padding: 0; margin-bottom: 0.2rem; float: left; width: 100%; }
.search-kinds label { font-size: var(--step--1); display: inline-flex; gap: 0.35rem; align-items: center; }
.search-status { color: var(--muted); margin-top: 1.4rem; }
.results { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.results li { padding-block: 0.8rem; border-bottom: 1px solid var(--hair); }
.results li > a { font-size: var(--step-1); }
.results p { margin: 0.2rem 0 0; font-size: var(--step--1); }
mark { background: var(--mark); color: inherit; padding: 0 0.1em; }

/* ---------- footer */
.footer { border-top: 1px solid var(--teal); margin-top: 4rem; padding-block: 2rem 2.6rem; font-size: var(--step--1); }
.band + .footer { margin-top: 0; border-top: 0; }
.footer-grid { display: grid; gap: 1rem 3rem; }
.footer-name { font-size: var(--step-0); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding-block: 0.15rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .masthead, .footer, .viewer, .view-switch, .prev-next { display: none !important; }
  .read-grid .transcript { display: block !important; }
}


/* ---------- round 3: podcast heading, support, featured photos */
.pod-heading { font-family: "Fondamento", "EB Garamond", serif; font-style: italic; font-weight: 400; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.05; letter-spacing: 0.005em; margin: 0; }
.band .pod-heading { color: var(--on-aqua); }
.page-title.pod-heading { color: var(--teal); margin-top: 2.4rem; }

.nav-support { border: 1.5px solid var(--link); color: var(--link) !important; padding: 0.15rem 0.7rem !important; }
.nav-support:hover { background: var(--paper-2); text-decoration: none !important; }

.with-photo { display: grid; gap: 1.5rem 3rem; align-items: start; }
.with-photo > div:first-child { min-width: 0; }
.feature-photos { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.feature-photos .photo { width: 14rem; }
@media (min-width: 52rem) {
  .with-photo { grid-template-columns: minmax(0, 1fr) auto; }
  .with-photo .feature-photos { margin-top: 2.6rem; }
}

.home-photo { margin-top: 3rem; }
.photo.wide { width: 100%; max-width: 46rem; }

.prose .photo.aside { width: 13rem; float: right; margin: 0.4rem 0 1rem 1.6rem; }
.prose .photo.aside.left { float: left; margin: 0.4rem 1.6rem 1rem 0; }
.prose h2 { clear: both; }
@media (max-width: 34rem) { .prose .photo.aside, .prose .photo.aside.left { float: none; width: 100%; max-width: 18rem; margin: 0.6rem 0 1.2rem; } }
.cite { padding: 0.7rem 1rem; border-left: 3px solid var(--teal); background: var(--paper-2); overflow-wrap: anywhere; }

.support-options { display: grid; gap: 1rem 2rem; margin-block: 1rem 2rem; }
@media (min-width: 46rem) { .support-options { grid-template-columns: 1fr 1fr; } }
.support-option h2 { margin-top: 0.4rem; font-size: var(--step-1); }
.patreon-note { color: var(--muted); max-width: var(--measure); }
.photo.collage { width: 100%; max-width: none; margin-block: 1rem 2rem; }
.more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem; }
.divider { color: var(--teal); font-size: var(--step-1); line-height: 1; }
.ep-script { font-size: var(--step--1); }
.follow { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-size: var(--step--1); margin-top: 0.4rem; }
.follow-label { color: inherit; }
.band .follow a { color: var(--on-aqua); }
