/* corylegendre.com v2 — College selected work: the paper reader, the
   exhibition viewer and the work cards. Loaded after site.css.
   Essays are set in Literata on a sheet of paper; everything around the
   sheet stays in the house Quicksand. */

@font-face {
  font-family: "Literata CL";
  src: url("../fonts/Literata.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata CL";
  src: url("../fonts/Literata_Italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --f-book: "Literata CL", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sheet: #f4ecdd;
  --sheet-edge: #e6dbc6;
  --sheet-ink: #2a2017;
  --sheet-ink-soft: #5c4d3d;
  --sheet-rule: #b8925f;
}

/* ---------- top strip shared by every work page ---------- */
.work-top { padding-top: clamp(96px, 10vw, 132px); padding-bottom: clamp(20px, 3vw, 32px); }
.work-top__back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.work-top__back:hover { color: var(--tint); }
.work-top__label {
  margin: 18px 0 0; font-weight: 300; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--tint);
}
.work-top__label .sep { opacity: 0.55; margin: 0 0.45em; }

/* ---------- reading progress ---------- */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--amber); transition: width 120ms linear; }

/* ---------- the sheet of paper ---------- */
.sheet {
  position: relative;
  width: min(100% - 32px, 820px);
  margin: 0 auto clamp(56px, 7vw, 96px);
  padding: clamp(40px, 7vw, 92px) clamp(22px, 7vw, 96px) clamp(48px, 7vw, 88px);
  color: var(--sheet-ink);
  background-color: var(--sheet);
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(140% 100% at 50% 100%, rgba(160, 120, 70, 0.10), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.18 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow:
    0 1px 0 var(--sheet-edge) inset,
    0 40px 80px -36px rgba(0, 0, 0, 0.95),
    0 18px 30px -24px rgba(0, 0, 0, 0.8);
  border-radius: 2px;
  font-family: var(--f-book);
  font-optical-sizing: auto;
}
.sheet ::selection { background: rgba(184, 146, 95, 0.35); color: inherit; }
.sheet__head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.sheet__course {
  margin: 0 0 22px; font-family: var(--f-voice); font-weight: 300; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--sheet-ink-soft);
}
.sheet__title {
  margin: 0; font-family: var(--f-book); font-weight: 400; font-style: normal;
  font-size: clamp(28px, 2.4vw + 16px, 44px); line-height: 1.18; letter-spacing: -0.005em;
  color: var(--sheet-ink); text-transform: none; text-wrap: balance;
}
.sheet__by { margin: 22px 0 0; font-style: italic; font-size: 17px; color: var(--sheet-ink-soft); }
.sheet__by::before {
  content: ""; display: block; width: 48px; height: 1px; margin: 0 auto 20px; background: var(--sheet-rule);
}
.sheet__body { font-size: clamp(17px, 0.35vw + 15.5px, 19.5px); line-height: 1.78; }
.sheet__body p { margin: 0 0 1.15em; max-width: none; hyphens: auto; -webkit-hyphens: auto; }
.sheet__body h2 {
  margin: 2.1em 0 0.8em; font-family: var(--f-book); font-style: italic; font-weight: 400;
  font-size: 1.22em; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--sheet-ink);
}
.sheet__first::first-letter {
  float: left; font-size: 3.6em; line-height: 0.86; padding: 0.06em 0.09em 0 0;
  font-weight: 400; color: #8a5a2b;
}
.sheet__verse {
  margin: 1.4em 0 1.6em; padding: 0.2em 0 0.2em 1.4em;
  border-left: 2px solid var(--sheet-rule); font-style: italic; color: #3d3024;
}
.sheet__verse p { margin: 0; line-height: 1.7; }
.sheet em { font-style: italic; }
.sheet a { color: #7a4f24; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.sheet__sign {
  width: clamp(150px, 22vw, 210px); aspect-ratio: 1566 / 810;
  margin: clamp(28px, 4vw, 44px) 0 0 auto;
  background: var(--sheet-ink);
  -webkit-mask: url("../img/signature.svg") center / contain no-repeat;
  mask: url("../img/signature.svg") center / contain no-repeat;
  opacity: 0.86;
}
.sheet__refs { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid rgba(90, 70, 50, 0.22); }
.sheet__refs h2 {
  margin: 0 0 18px; font-family: var(--f-voice); font-weight: 300; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--sheet-ink-soft); text-align: center;
}
.sheet__refs ol { list-style: none; margin: 0; padding: 0; }
.sheet__refs li {
  margin: 0 0 0.75em; padding-left: 2em; text-indent: -2em;
  font-size: 14.5px; line-height: 1.6; color: #45382b; overflow-wrap: anywhere;
}

/* festival: poster, stage banners, song headings, collapsible sources */
.sheet__poster { margin: 0 auto clamp(36px, 5vw, 56px); max-width: 560px; text-align: center; }
.sheet__poster .slide__open { box-shadow: 0 26px 50px -28px rgba(40, 25, 10, 0.7); }
.sheet__poster figcaption, .sheet__banner figcaption {
  margin-top: 12px; font-family: var(--f-voice); font-size: 12px; line-height: 1.6; color: var(--sheet-ink-soft);
}
.sheet__listen { text-align: center; font-style: italic; }
.sheet__banner { margin: 2.4em 0 0.6em; }
.sheet__banner img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; filter: contrast(1.04); }  /* transparent collages, printed into the paper (Cory TG 13061) */
.sheet__body h2 + p, .sheet__banner + h2 { margin-top: 1em; }
.sheet__song {
  margin: 1.9em 0 0.5em; font-family: var(--f-book); font-weight: 600; font-size: 1em;
  line-height: 1.4; letter-spacing: 0; text-transform: none; color: #6b4520;
}
.sheet__refs details summary { list-style: none; cursor: pointer; text-align: center; }
.sheet__refs details summary::-webkit-details-marker { display: none; }
.sheet__refs details summary h2 { display: inline; margin: 0; }
.sheet__refs-n {
  display: block; margin-top: 8px; font-family: var(--f-voice); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #8a5a2b;
}
.sheet__refs-n::after { content: " +"; }
.sheet__refs details[open] .sheet__refs-n::after { content: " \2212"; }
.sheet__refs details ol { margin-top: 22px; }

/* ---------- prev / next ---------- */
.work-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 880px; margin: 0 auto; padding-bottom: 8px;
}
.work-pager__link {
  display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: border-color 160ms ease, background 160ms ease;
}
.work-pager__link:hover { border-color: var(--tint); background: var(--amber-soft); }
.work-pager__link--next { text-align: right; }
.work-pager__dir { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tint); }
.work-pager__t { font-size: 15px; line-height: 1.45; color: var(--ivory); }
.work-back { text-align: center; margin: 32px 0 clamp(64px, 8vw, 110px); }
@media (max-width: 599px) {
  .work-pager { grid-template-columns: 1fr; }
  .work-pager__link--next { text-align: left; }
}

/* ---------- exhibition + poster ---------- */
.ex-hero { padding-bottom: clamp(32px, 5vw, 56px); }
.ex-hero__title { font-size: clamp(30px, 3.4vw + 14px, 66px); margin: 0 0 12px; }
.ex-hero__sub { max-width: 720px; margin: 0 0 26px; font-style: italic; font-size: clamp(17px, 0.6vw + 14px, 22px); color: var(--muted); }
.ex-hero__lede { max-width: 720px; }
.ex-hero__quote {
  margin: 28px 0 0; padding-left: 20px; border-left: 2px solid var(--tint);
  font-style: italic; color: var(--ivory); max-width: 680px; font-size: clamp(16px, 0.4vw + 14px, 19px);
}
.slides { display: grid; gap: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.slide { margin: 0; }
.slide__open {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.95);
}
.slide__open img { display: block; width: 100%; height: auto; }
.slide__open:focus-visible { outline-offset: 6px; }
.slide__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: 14px; }
.slide__no { font-size: 11px; letter-spacing: 0.24em; color: var(--faint); text-transform: uppercase; }
.slide__text { flex: 1 1 100%; }
.slide__text summary {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tint);
}
.slide__text summary::-webkit-details-marker { display: none; }
.slide__text summary::after { content: " +"; }
.slide__text[open] summary::after { content: " \2212"; }
.slide__words {
  margin-top: 16px; padding: 22px clamp(18px, 3vw, 30px); max-width: 820px;
  background: var(--sheet); color: var(--sheet-ink); font-family: var(--f-book);
  font-size: 16.5px; line-height: 1.7; border-radius: 2px;
}
.slide__words p { margin: 0 0 0.9em; max-width: none; }
.slide__sources { margin: 14px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid rgba(90, 70, 50, 0.2); }
.slide__sources li { font-size: 13px; line-height: 1.55; color: #5c4d3d; margin-bottom: 6px; overflow-wrap: anywhere; }
.slide__sources a { color: #7a4f24; }

.poster-wrap { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .poster-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); } }
.poster-fig { margin: 0; }
.poster-fig .slide__no { display: block; margin-top: 12px; text-align: center; }
.poster-stages { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.poster-stages li { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.poster-stages__k { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tint); }
.poster-stages__v { color: var(--ivory); }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(5, 4, 3, 0.96); color: var(--ivory);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
/* explicit viewport sizes: Safari ignores percentage max-height inside a grid cell */
.lightbox { overflow: hidden; overscroll-behavior: contain; }
.lightbox__stage { position: absolute; inset: 64px 76px 96px; display: flex; align-items: center; justify-content: center; }
.lightbox__stage img {
  display: block; width: auto; height: auto; object-fit: contain;
  max-width: calc(100vw - 152px); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px);
}
.lightbox__stage--scroll { overflow: auto; align-items: flex-start; overscroll-behavior: contain; }
.lightbox__stage--scroll img { max-height: none; width: min(100%, 1100px); max-width: 100%; }
html.lightbox-open, html.lightbox-open body { overflow: hidden; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: 12px; letter-spacing: 0.24em; color: var(--muted); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(18, 14, 12, 0.8);
  color: var(--ivory); font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox__btn:hover { border-color: var(--tint); }
.lightbox__close { top: 12px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
  .lightbox__stage { inset: 60px 10px 110px; }
  .lightbox__stage img { max-width: calc(100vw - 20px); max-height: calc(100dvh - 170px); }
}

/* ---------- College room cards ---------- */
.work-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.work-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 22px;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.work-card:hover { border-color: var(--tint); background: var(--amber-soft); transform: translateY(-2px); }
.work-card__img { width: 100%; height: auto; display: block; margin-bottom: 8px; box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.9); }
.work-card--poster .work-card__img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0; }
.work-card__meta { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tint); }
.work-card__meta .sep { opacity: 0.55; margin: 0 0.4em; }
.work-card__t { font-family: var(--f-dash); font-size: clamp(17px, 0.5vw + 14px, 21px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory); line-height: 1.35; }
.work-card__d { font-size: 15px; line-height: 1.6; color: var(--muted); }
.work-card__go { margin-top: auto; padding-top: 6px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); }
.work-card__go::after { content: " \2192"; color: var(--tint); }
.work-card__sheet {
  display: grid; gap: 12px; align-content: start; aspect-ratio: 4 / 3; overflow: hidden;
  margin-bottom: 8px; padding: 22px 24px; background: var(--sheet); color: var(--sheet-ink);
  font-family: var(--f-book); box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.9);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.work-card__sheet-t { font-size: 19px; line-height: 1.25; text-align: center; }
.work-card__sheet-p { font-size: 13.5px; line-height: 1.65; color: #3d3024; }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .work-card { grid-column: span 2; }
  .work-card--paper { grid-column: span 3; }
  .work-card--paper .work-card__sheet { aspect-ratio: 2 / 1; }
  .work-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 32px; align-content: start; }
  .work-card--wide .work-card__img { grid-row: 1 / span 5; margin: 0; }
  .work-card--wide .work-card__go { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-card, .work-card:hover { transition: none; transform: none; }
  .read-progress span { transition: none; }
}

@media print {
  .nav, .foot, .work-top, .work-pager, .work-back, .read-progress, .skip { display: none !important; }
  body { background: #fff !important; }
  .sheet { width: auto; margin: 0; padding: 0; box-shadow: none; background: #fff; }
}

/* ---------- College room: the report card, on the same paper stock ---------- */
.rc {
  position: relative;
  max-width: 980px;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 64px) clamp(28px, 4vw, 48px);
  color: var(--sheet-ink);
  background-color: var(--sheet);
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.18 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.95), 0 18px 30px -24px rgba(0, 0, 0, 0.8);
  border-radius: 2px;
}
.rc__head { text-align: center; padding-bottom: 28px; border-bottom: 2px solid var(--sheet-rule); }
.rc__school {
  margin: 0; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sheet-ink-soft);
}
.rc__name { margin: 12px 0 4px; font-family: var(--f-book); font-size: clamp(26px, 1.8vw + 16px, 38px); line-height: 1.2; }
.rc__program { margin: 0; font-family: var(--f-book); font-style: italic; font-size: 16px; color: var(--sheet-ink-soft); }
.rc__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 0;
  border: 1px solid rgba(90, 70, 50, 0.22);
}
.rc__stats div { padding: 14px 10px; border-left: 1px solid rgba(90, 70, 50, 0.22); }
.rc__stats div:first-child { border-left: 0; }
.rc__stats dt { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sheet-ink-soft); }
.rc__stats dd { margin: 6px 0 0; font-family: var(--f-book); font-size: clamp(20px, 1vw + 14px, 26px); color: #6b4520; }
.rc__term { margin-top: clamp(28px, 4vw, 40px); }
.rc__term-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(90, 70, 50, 0.3); }
.rc__term-head h3 { margin: 0; font-family: var(--f-book); font-weight: 500; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sheet-ink); }
.rc__term-head p { margin: 0; font-size: 12.5px; color: var(--sheet-ink-soft); }
.rc__term-head .sep { margin: 0 0.6em; opacity: 0.6; }
.rc__rows { list-style: none; margin: 0; padding: 0; }
.rc__row { border-bottom: 1px solid rgba(90, 70, 50, 0.14); }
.rc__row summary {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 92px 14px; align-items: center; gap: 18px;
  padding: 14px 0; cursor: pointer; list-style: none;
}
.rc__row summary::-webkit-details-marker { display: none; }
.rc__row summary::after { content: "+"; justify-self: end; font-size: 16px; color: #8a5a2b; }
.rc__row details[open] summary::after { content: "\2212"; }
.rc__row summary:hover .rc__course { color: #6b4520; }
.rc__row summary:focus-visible { outline: 2px solid #8a5a2b; outline-offset: 2px; }
.rc__course { font-family: var(--f-book); font-size: 16px; line-height: 1.4; }
.rc__code { display: block; font-family: var(--f-voice); font-size: 11px; letter-spacing: 0.16em; color: #8a5a2b; margin-bottom: 2px; }
.rc__proj { font-family: var(--f-book); font-style: italic; font-size: 15px; line-height: 1.45; color: #3d3024; }
.rc__proj a { color: #7a4f24; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rc__k { display: none; }
.rc__g { text-align: right; display: grid; justify-items: end; }
.rc__grade { font-family: var(--f-book); font-size: 30px; line-height: 1; color: #6b4520; }
.rc__pct { margin-top: 4px; font-size: 11.5px; letter-spacing: 0.08em; color: var(--sheet-ink-soft); }
.rc__going { font-family: var(--f-book); font-style: italic; font-size: 14px; color: var(--sheet-ink-soft); }
.rc__note { margin: 24px 0 0; text-align: center; font-family: var(--f-book); font-style: italic; font-size: 13.5px; color: var(--sheet-ink-soft); max-width: none; }
@media (max-width: 699px) {
  .rc__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc__stats div:nth-child(3) { border-left: 0; }
  .rc__stats div:nth-child(n+3) { border-top: 1px solid rgba(90, 70, 50, 0.22); }
  .rc__row summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .rc__row summary::after { display: none; }
  .rc__course { grid-column: 1; }
  .rc__g { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .rc__proj { grid-column: 1; font-size: 14px; }
  .rc__k { display: inline; font-style: normal; font-family: var(--f-voice); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sheet-ink-soft); margin-right: 8px; }
}

/* the card that sits in the room */
.rc-card {
  display: grid; gap: 22px 40px; align-items: center;
  max-width: 980px; padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 36px);
  border: 1px solid var(--line); background: rgba(236, 220, 196, 0.025);
}
.rc-card .room-section__no { margin-bottom: 10px; }
.rc-card__lede { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 46ch; }
.rc-card__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 28px; margin: 0; }
.rc-card__stats dt { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.rc-card__stats dd { margin: 4px 0 0; font-size: 22px; letter-spacing: 0.04em; color: var(--ivory); }
.rc-card__btn { justify-self: start; }
@media (min-width: 1000px) {
  .rc-card { grid-template-columns: minmax(0, 1fr) auto; }
  .rc-card__btn { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .rc-card__stats { grid-template-columns: repeat(2, auto); justify-content: start; gap: 14px 32px; }
}

/* the full card, in a dialog */
.rc-modal {
  width: min(100vw - 24px, 1000px); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 0; background: transparent; color: inherit; overflow: auto;
  overscroll-behavior: contain;
}
.rc-modal::backdrop { background: rgba(5, 4, 3, 0.82); backdrop-filter: blur(3px); }
.rc-modal .rc { max-width: none; }
.rc__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(90, 70, 50, 0.3); border-radius: 50%; background: transparent;
  font-size: 24px; line-height: 1; color: var(--sheet-ink); cursor: pointer;
}
.rc__close:hover { border-color: #8a5a2b; }
.rc__tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 4px;
}
.rc__tab {
  padding: 9px 16px; border: 1px solid rgba(90, 70, 50, 0.28); border-radius: 999px; background: transparent;
  font-family: var(--f-voice); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sheet-ink-soft); cursor: pointer;
}
.rc__tab[aria-selected="true"] { background: var(--sheet-ink); border-color: var(--sheet-ink); color: var(--sheet); }
.rc__tab:focus-visible { outline: 2px solid #8a5a2b; outline-offset: 2px; }
.rc__detail { padding: 0 0 18px; }
.rc__meta { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.08em; color: var(--sheet-ink-soft); }
.rc__items { list-style: none; margin: 0; padding: 4px 0 0 14px; border-left: 2px solid rgba(184, 146, 95, 0.5); }
.rc__items li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-family: var(--f-book); font-size: 14.5px; }
.rc__items em { color: var(--sheet-ink-soft); }
.rc__score { white-space: nowrap; color: #6b4520; font-variant-numeric: tabular-nums; }
.rc__open { display: inline-block; margin-top: 12px; font-family: var(--f-voice); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #7a4f24; }
.rc__open::after { content: " \2192"; }
.rc__hint { margin: 14px 0 0; text-align: center; font-family: var(--f-book); font-style: italic; font-size: 13px; color: var(--sheet-ink-soft); }
/* without script, the card simply shows in the room */
html:not(.js) .rc-modal { display: block; position: static; width: auto; max-height: none; margin: 0 auto 48px; }
html:not(.js) .rc__term[hidden] { display: block; }
html:not(.js) [data-rc-open], html:not(.js) .rc__close, html:not(.js) .rc__tabs { display: none; }

/* question-and-answer pieces */
.sheet__body h2.sheet__q {
  margin: 2.2em 0 0.9em; padding: 14px 18px; font-style: normal; font-size: 0.92em; line-height: 1.55;
  background: rgba(184, 146, 95, 0.12); border-left: 3px solid var(--sheet-rule); color: #3d3024;
}
.sheet__body h2.sheet__q:first-child { margin-top: 0; }
.sheet__qn { display: block; margin-bottom: 4px; font-family: var(--f-voice); font-size: 11px; letter-spacing: 0.22em; color: #8a5a2b; }

/* portrait documents read narrower */
.slides--pages { max-width: 820px; margin-inline: auto; }

/* "More from his coursework" */
.work-more__h {
  margin: clamp(48px, 6vw, 72px) 0 18px; font-family: var(--f-voice); font-weight: 300; font-size: 12px;
  letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--tint);
}
.work-more { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.work-mini {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color 180ms ease, background 180ms ease;
}
.work-mini:hover { border-color: var(--tint); background: var(--amber-soft); }
.work-mini__t { font-size: 17px; line-height: 1.4; color: var(--ivory); }
.work-mini .work-card__d { font-size: 14px; }
@media (min-width: 900px) { .work-more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- College hero: his student ID, rebuilt ---------- */
.room-hero--id .room-hero__grid { align-items: center; }
.id-card { margin: 0; justify-self: center; width: min(100%, 520px); }
.id-card__card {
  position: relative; overflow: hidden; border-radius: 20px; background: #143768;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-1.5deg);
}
.id-card__head { padding: 4.6% 5% 4%; }
.id-card__head img { display: block; width: 74%; height: auto; }
/* the sunrise and water tower, as a slim band above the portrait */
.id-card__banner { height: clamp(58px, 5.5vw, 80px); overflow: hidden; }
.id-card__banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* the portrait, close to whole: edge to edge with a navy frame line */
.id-card__photo {
  position: relative; aspect-ratio: 880 / 940; background: #ecebe8;
  border-top: 4px solid #f2b632;
}
.id-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.id-card__name {
  margin: 0; padding: 6% 6% 8%; text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600;
  font-size: clamp(18px, 1vw + 13px, 25px); letter-spacing: 0.01em; color: #fff;
}
.id-card__name::after { content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0; border-radius: 2px; background: #f2b632; }
@media (min-width: 900px) { .room-hero--id .id-card { width: min(100%, 370px); } }
@media (prefers-reduced-motion: reduce) { .id-card__card { transform: none; } }

/* ---------- Site history (/archive/) ---------- */
.history { padding-top: clamp(120px, 12vw, 160px); }
.history__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.history__link { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 22px; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color 180ms ease, background 180ms ease; }
.history__link:hover { border-color: var(--tint); background: var(--amber-soft); }
.history__shot { width: 100%; height: auto; display: block; margin-bottom: 8px; box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.9); }
.history__era { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tint); }
.history__name { font-family: var(--f-dash); font-size: clamp(18px, 0.6vw + 15px, 22px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory); }
.history__about { font-size: 15px; line-height: 1.6; color: var(--muted); }
.history__go { margin-top: auto; padding-top: 6px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); }
.history__go::after { content: " \2192"; color: var(--tint); }
.history__now { margin-top: 36px; color: var(--muted); }
@media (min-width: 900px) { .history__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* In the papers: a timeline of clippings (family/in-the-papers) */
.news-intro { padding-bottom: clamp(28px, 4vw, 48px); }
.news-intro__title { font-size: clamp(30px, 3vw + 14px, 58px); margin: 0 0 18px; }
.news-intro .lede { max-width: 760px; }
.news { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: clamp(40px, 5vw, 72px); position: relative; }
.news__item { display: grid; grid-template-columns: 72px minmax(0, 200px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; padding: clamp(22px, 3vw, 34px) 0; border-top: 1px solid var(--line); }
.news__year { margin: 0; font-family: var(--f-voice); font-weight: 300; font-size: 22px; letter-spacing: 0.08em; color: var(--tint); }
.news__clip { display: block; padding: 0; border: 0; background: #e9e1cf; cursor: zoom-in; box-shadow: 0 18px 36px -22px rgba(0,0,0,.95); transform: rotate(-0.8deg); transition: transform 180ms ease; }
.news__item:nth-child(even) .news__clip { transform: rotate(0.8deg); }
.news__clip:hover, .news__clip:focus-visible { transform: rotate(0deg) scale(1.02); }
.news__clip img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; object-position: top; filter: sepia(.12); }
.news__meta { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.news__head { margin: 0 0 10px; font-family: "Literata CL", Georgia, serif; font-weight: 600; font-size: clamp(19px, 0.6vw + 15px, 24px); line-height: 1.25; letter-spacing: -0.01em; text-transform: none; }
.news__text p:last-child { margin: 0; max-width: 620px; }
.news-credit { padding-bottom: clamp(56px, 7vw, 96px); font-size: 13px; color: var(--muted); }
@media (max-width: 699px) {
  .news__item { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
  .news__year { grid-column: 1 / -1; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .news__clip { transition: none; } }

/* ETAMU, credited: a line about the school under the hero quote, and a
   credit for the logo and photos under the ID card (Cory 2026-11-25). */
.room-hero__school { max-width: 600px; margin-top: 28px; font-weight: 300; font-size: clamp(15px, 0.4vw + 13px, 17px); line-height: 1.65; color: var(--muted); }
.room-hero__school a, .id-card__credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(217, 168, 104, 0.5); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.id-card__credit { margin-top: 22px; text-align: center; font-weight: 300; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
