/* Welfare Rights Initiative Oral History Project. Heading font, colors, page background and layout carried over from the 2022 Squarespace site. */
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-black.woff2") format("woff2"); }
/* Figtree (SIL Open Font License) stands in for Proxima Nova, which is a commercial font we cannot self-host. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/figtree.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/figtree-italic.woff2") format("woff2"); }

:root {
  --display: "Archivo Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --accent: hsl(24, 37%, 81%);
  --light: hsl(40, 8%, 93%);
  --dark: hsl(50, 8%, 42%);
  --text: #111;
}

html { background: #fff; }
body { min-height: 100vh; font-family: var(--body); color: var(--text); background: #fff; background-image: linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)), url("/assets/img/acoustic.png"); background-position: center top; background-size: 100% auto; background-repeat: no-repeat; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
.container { max-width: 1280px; padding-inline: 24px; }
@media (min-width: 768px) { .container { padding-inline: 60px; } }

/* Header */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; }
.site-header__logo img { display: block; width: 190px; height: auto; }
@media (min-width: 768px) { .site-header__logo img { width: 270px; } .site-header__inner { padding-block: 2rem 1.5rem; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: 1.05rem; }
.site-nav a { color: #000; text-decoration: none; padding-block: .2rem; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: #000; text-decoration: none; }
@media (max-width: 639px) { .site-header__inner { align-items: flex-start; } .site-nav { flex: 1 1 100%; } }

/* Text */
.longform { font-size: 1.05rem; line-height: 1.75; overflow-wrap: break-word; }
.longform > * + * { margin-top: 1.1rem; }
.longform h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); text-transform: uppercase; }
.longform h3 { margin-top: 2rem; font-size: 1.3rem; }
.longform h4 { margin-top: 2rem; font-family: var(--display); font-size: 1.2rem; line-height: 1.4; }
.longform h4.center { text-align: center; }
.longform ul, .longform ol { margin-left: 1.4rem; padding: 0; }
.longform li + li { margin-top: .35rem; }
.longform hr { border: 0; border-top: 1px solid #000; margin-block: 3rem; width: 70%; margin-inline: auto; }
.longform figure { margin: 0 0 1.5rem; }
.longform figure img { display: block; max-width: 100%; }
.longform--small { font-size: .9rem; line-height: 1.6; }
@media (min-width: 768px) {
  .longform figure.float-right { float: right; width: 45%; margin: .3rem 0 1.5rem 2.5rem; }
  .longform figure.float-left { float: left; width: 28%; margin: .3rem 2.5rem 1rem 0; }
  .longform figure.float-right--small { width: 28%; }
}
.page::after, .page__body::after { content: ""; display: table; clear: both; }

/* Pages: text keeps a readable measure (the Squarespace pages ran full width) */
:root { --measure: 48rem; }
.page { padding-block: 3rem 4rem; }
.intro, .interview-page__description { max-width: var(--measure); }
.intro { margin-inline: auto; }
.page__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); margin-bottom: 1.5rem; text-align: center; }
.intro { padding-block: 3rem 1rem; }
.section-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); margin: 2rem 0 3rem; text-align: center; }

/* Interview grid (home): three large portraits per row, name over the photo */
.interview-grid { list-style: none; margin: 0 0 5rem; padding: 0; display: grid; gap: 3.5rem 4rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 900px) { .interview-grid { grid-template-columns: repeat(3, 1fr); } }
.interview-grid a { position: relative; display: block; aspect-ratio: 3 / 4; background: #222; text-decoration: none; color: #fff; overflow: hidden; }
.interview-grid img, .interview-grid__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.interview-grid a:hover img { opacity: .65; }
.interview-grid__name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* Interview page */
.interview-page { padding-block: 2.5rem 4rem; }
.interview-page .page__title { text-align: left; margin-bottom: 2rem; }
.interview-page__columns { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 900px) { .interview-page__columns { grid-template-columns: 1fr 1fr; } }
.interview-page__photo { display: block; width: 130px; height: 130px; object-fit: cover; margin: 0 auto 1.5rem; }
@media (min-width: 900px) { .interview-page__photo { margin-left: 160px; } }
.interview-page__audio { background: #000; color: #fff; padding: .9rem 1.2rem; margin-bottom: 1.75rem; }
.interview-page__audio-title { font-size: .95rem; line-height: 1.3; }
.interview-page__audio-title span { display: block; font-size: .8rem; color: #bbb; }
.interview-page__audio audio { display: block; width: 100%; margin-top: .6rem; }
.interview-page__downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.interview-page__downloads .button { text-align: center; padding: 1rem; font-family: var(--display); font-size: .9rem; line-height: 1.3; background: transparent; }
.interview-page__downloads .button:hover { background: #000; color: #fff; }
.catalog { font-size: .95rem; line-height: 1.75; }
.catalog__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0 0 2rem; }
.catalog dt { font-weight: 700; margin-top: 1rem; }
.catalog dt:first-child { margin-top: 0; }
.catalog dd { margin: 0; overflow-wrap: anywhere; }
.catalog__rights { padding-top: 2rem; border-top: 1px solid #000; }
.catalog__rights p { margin-top: .6rem; }
.transcript { margin: 4rem auto 0; max-width: var(--measure); border-top: 1px solid #000; }
.transcript summary { cursor: pointer; padding: 1.25rem .5rem; font-size: 1.15rem; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.transcript[open] summary::after { content: "\2212"; }
.transcript__body { padding: 1rem 0 2rem 8%; font-size: 1.15rem; }
.transcript__body p { margin-top: 1.5rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--light); font-family: var(--display); font-size: .95rem; }
.pager a { text-decoration: none; }
.pager a span { display: block; font-family: var(--body); font-size: .8rem; color: var(--dark); }
.pager__next { margin-left: auto; text-align: right; }

/* Timeline (year-by-year list) */
.timeline { margin: 3rem auto 0; max-width: var(--measure); border-left: 3px solid var(--accent); padding-left: 1.5rem; }
.timeline__year { position: relative; margin: 2rem 0 .75rem; font-family: var(--display); font-size: 1.4rem; }
.timeline__year::before { content: ""; position: absolute; left: calc(-1.5rem - 9px); top: .45em; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); }
.timeline-entry + .timeline-entry { margin-top: 1rem; }
.timeline-entry__card h3 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.timeline-entry__card .longform--small { font-size: 1rem; }
.timeline-entry__card .longform--gray { color: var(--text); }
.page .page__body.longform { max-width: var(--measure); margin-inline: auto; }
.page .page__body.longform figure.float-right { width: 40%; }

/* Footer: as on the Squarespace site */
.footer { margin-top: 3rem; padding-block: 3rem 3rem; text-align: center; }
.footer .container { border-top: 1px solid #000; padding-top: 3rem; }
.footer__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.2; margin-bottom: 1.5rem; }
.footer__license { font-size: .9rem; line-height: 1.6; max-width: 640px; margin-inline: auto; }
.footer__license img { display: inline-block; margin-bottom: .5rem; }
.footer a { color: #000; }
