/* =========================================================
   Spiros Margaris — archival artist site (museum scale).
   Quiet, museum-like, work-forward. EB Garamond for reading,
   a small sans only for labels and wayfinding. Dashed divider
   kept from the original. Motion kept minimal: gentle page
   fade, elegant lightbox fade, soft hover, smooth scrolling.
   ========================================================= */

:root {
  --paper:  #fcfcfa;
  --ink:    #1a1a17;
  --soft:   #6a6862;
  --line:   #d9d8d2;
  --max:    1240px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --serif:  "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* The single, consistent gutter between the panels of one work, used wherever
     a work's panels are shown together (overview, series page, viewer). */
  --panel-gap: 14px;
  /* live header height, set by JS for accurate anchor offset */
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; font-size: 106.25%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.rule { border: 0; border-top: 1px dashed var(--line); margin: 0; }
.lbl { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--soft); }
.muted { color: var(--soft); }

/* header / nav */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); }
#home, #artworks, #essays, #exhibitions, #biography, #contact { scroll-margin-top: calc(var(--header-h) + 12px); }
/* last section needs room so its title can scroll up under the header */
main > section:last-of-type { min-height: calc(100vh - var(--header-h) - 12px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: clamp(2.25rem, 5.3vw, 2.85rem); font-weight: 400; letter-spacing: .022em; text-decoration: none; color: #1a1a17; line-height: 1; }
.nav { display: flex; gap: clamp(.8rem, 2.1vw, 1.7rem); flex-wrap: wrap; }
.nav a { font-family: var(--sans); font-size: .85rem; letter-spacing: .04em; text-decoration: none; color: #2a2a26; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-toggle { display: none; font-family: var(--sans); font-size: .82rem; background: none; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); cursor: pointer; padding: .3rem .6rem; }

/* gentle page-in */
main { animation: pagein .5s ease both; padding-block: clamp(1.3rem, 3.5vw, 2.4rem) clamp(2.2rem, 5vw, 3.6rem); }
@keyframes pagein { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: .01em; margin: clamp(.25rem, .6vw, .45rem) 0 .75rem; scroll-margin-top: calc(var(--header-h) + 12px); }
.series-heading { text-align: center; scroll-margin-top: calc(var(--header-h) + 12px); }
.series-heading { font-family: var(--serif); font-weight: 500; font-size: clamp(1.45rem, 2.7vw, 1.9rem); letter-spacing: .01em; line-height: 1.2; color: #121210; margin: clamp(1.9rem, 3.3vw, 2.75rem) 0 clamp(.26rem, .52vw, .42rem); }
#artworks .series-heading:first-of-type { margin-top: clamp(.4rem, .8vw, .6rem); }
.series-heading .muted { font-weight: 400; color: var(--soft); }
.series-heading--solo { font-size: clamp(1.5rem, 2.9vw, 2rem); font-weight: 500; line-height: 1.2; margin-bottom: clamp(.26rem, .52vw, .42rem); }
.series-heading--solo .series-year { display: inline; font-family: var(--serif); font-weight: 500; font-size: 1em; letter-spacing: 0; color: var(--soft); }
.series-heading--solo .series-year::before { content: ", "; color: var(--soft); }
.backlink { font-family: var(--sans); font-size: .8rem; letter-spacing: .04em; margin: 0 0 1.6rem; }
.backlink a { color: var(--soft); text-decoration: none; }
.backlink a:hover { color: var(--ink); }

/* home: entrance into the archive (museum scale) */
.home { padding-block: 0 clamp(.8rem, 2vw, 1.1rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home .intro { font-family: var(--serif); font-size: 1.18rem; color: #34322c; max-width: 48ch; margin: 0 0 1.7rem; line-height: 1.5; }

/* Covers render at one consistent visual HEIGHT (Fully Loaded as reference);
   widths vary with each composition (diptych/triptych) — no cropping. Rows
   centre and wrap, so heights stay aligned across the whole archive. */
.archive-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(2.2rem, 3.4vw, 3.2rem) clamp(1.9rem, 3.1vw, 2.85rem); margin: 1.8rem 0 1.2rem; --cover-h: clamp(118px, 12.5vw, 150px); }
.archive-grid figure { margin: 0; display: flex; flex-direction: column; max-width: 100%; }
.archive-grid a { display: block; line-height: 0; }
.cover-panels { display: flex; gap: calc(var(--panel-gap) * 0.6); height: var(--cover-h); align-items: stretch; justify-content: center; max-width: 100%; }
.cover-panels img { height: 100%; width: auto; display: block; border: 1px solid var(--line); background: #fff; transition: border-color .25s ease, box-shadow .25s ease; }
.archive-grid a:hover .cover-panels img { border-color: #c2c0b8; box-shadow: 0 10px 30px -22px rgba(0,0,0,.5); }
.archive-grid figcaption { text-align: center; font-family: var(--serif); margin: 1rem auto 0; line-height: 1.25; max-width: 28ch; }
.archive-grid .t-title { display: block; font-size: 1.32rem; color: var(--ink); letter-spacing: .005em; }
.archive-grid .t-year { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; color: #8a887f; margin-top: .26rem; }
@media (max-width: 600px) {
  .archive-grid { --cover-h: auto; gap: 2.2rem 1.4rem; }
  .archive-grid figure { width: 100%; }
  .cover-panels { height: auto; width: 100%; }
  .cover-panels img { flex: 1 1 0; min-width: 0; height: auto; width: 100%; }
}

/* artworks — large presentation */
.series { padding-block: clamp(.15rem, .4vw, .3rem) 0; text-align: center; scroll-margin-top: calc(var(--header-h) + 12px); }
.series__images { display: flex; flex-wrap: nowrap; gap: var(--panel-gap); align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.series__images button { padding: 0; border: 1px solid var(--line); background: #fff; cursor: zoom-in; line-height: 0; transition: border-color .25s ease, box-shadow .25s ease; min-width: 0; max-width: calc((100% - (var(--n,1) - 1) * var(--panel-gap)) / var(--n,1)); }
.series__images picture { display: block; line-height: 0; }
.series__images img { height: auto; width: auto; max-height: clamp(220px, 27vw, 344px); max-width: 100%; }
.series__images button:hover { border-color: #c2c0b8; box-shadow: 0 8px 26px -18px rgba(0,0,0,.45); }
.series__images button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.series-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.28rem); letter-spacing: .01em; line-height: 1.2; margin: 1.15rem 0 0; color: var(--ink); }
.series-title a { color: inherit; text-decoration: none; border: 0; transition: opacity .2s ease; }
.series-title a:hover { opacity: .6; }
.series-title .yr { display: inline; font-family: var(--serif); font-weight: 500; font-size: 1em; letter-spacing: 0; color: var(--soft); }
.series-title .yr::before { content: ", "; color: var(--soft); }
.series p { margin: 1.1rem auto 0; max-width: 64ch; text-align: left; }
.series .sig { color: var(--soft); font-style: italic; }
.series .read { font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; display: inline-block; margin-top: 1.3rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.series .read:hover { border-bottom-color: var(--ink); }
.series-essay-link { margin: -.8rem 0 2.2rem; }
.series--listed { padding-top: 0; margin-top: clamp(1.58rem, 3.16vw, 2.54rem); }
.series--listed:first-of-type { margin-top: clamp(.4rem, 1vw, .7rem); }
/* First work of EACH series sits close to its title (or About block), so the
   heading reads as belonging to the works beneath it — not floating above. */
.series-heading + .series--listed { margin-top: clamp(.95rem, 1.85vw, 1.18rem); }
.series-about + .series--listed { margin-top: clamp(.26rem, .6vw, .44rem); }
.art-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: clamp(2.2rem, 5vw, 3.4rem); padding-top: 1.4rem; }
.art-nav__link { font-family: var(--sans); font-size: .85rem; letter-spacing: .03em; color: var(--soft); text-decoration: none; transition: color .2s ease; }
.art-nav__link:hover { color: var(--ink); }
.art-nav__prev { justify-self: start; }
.art-nav__next { justify-self: end; text-align: right; }
.art-nav__count { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; color: var(--soft); }

/* essays */
.index-list { list-style: none; padding: 0; margin: 0; max-width: 64ch; }
.index-list li { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.index-list a { text-decoration: none; }
.index-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.essay { max-width: 68ch; }
.essay > picture { display: block; margin: 0 0 1.6rem; max-width: 520px; }
.essay > picture img { border: 1px solid var(--line); width: 100%; height: auto; }
.essay h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.5vw, 2.1rem); line-height: 1.18; margin: 0 0 .18rem; }
.essay .meta { font-family: var(--sans); font-size: .78rem; letter-spacing: .04em; color: var(--soft); margin: 0 0 .85rem; }
.essay p { margin: 0 0 1.1rem; }
.essay .by { font-family: var(--sans); font-size: .82rem; color: var(--soft); margin-top: 1.3rem; }
.essay .note { font-size: .96rem; color: var(--soft); border-left: 2px solid var(--line); padding-left: 1rem; }

/* exhibitions */
.exhibit { padding-block: clamp(1.6rem, 4vw, 2.4rem); display: grid; gap: .7rem; }
/* Exhibitions are separated by whitespace alone (no divider rule), consistent
   with Artworks and Essays — the next title anchors the following entry. */
.exhibit picture { display: block; max-width: 380px; }
.exhibit picture img { border: 1px solid var(--line); width: 100%; height: auto; }
.exhibit h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 .25rem; }
.exhibit h2 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 0 0 .25rem; }
.exhibit h2 a { text-decoration: none; }
.exhibit h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.exhibit .meta { font-family: var(--sans); font-size: .78rem; letter-spacing: .04em; color: var(--soft); margin: 0 0 .6rem; }
.exhibit p { margin: 0; max-width: 64ch; }
.exhibit.single { border: 0; }
.exhibit__media { display: block; line-height: 0; }
.exhibit > img, .exhibit__media img { width: 100%; height: auto; }
.exhibit__media:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.exhibit__more { margin: .55rem 0 0; }
.exhibit__more a { font-family: var(--sans); font-size: .8rem; letter-spacing: .04em; color: var(--soft); text-decoration: none; transition: color .2s ease; }
.exhibit__more a:hover, .exhibit__more a:focus-visible { color: var(--ink); }
@media (min-width: 680px) { .exhibit { grid-template-columns: 380px 1fr; gap: 1.3rem; align-items: start; } }

/* biography / contact */
.prose { max-width: 58ch; }
.prose p { margin: 0 0 1.2rem; font-size: 1.22rem; }
.contact .line { font-size: 1.3rem; margin: 0 0 1.5rem; }
.contact .row { font-family: var(--sans); font-size: .95rem; margin: 0 0 .6rem; }
.contact .row span { color: var(--soft); display: inline-block; min-width: 5.5rem; font-size: .8rem; letter-spacing: .04em; }
.contact a { text-underline-offset: 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { padding-block: 1.8rem 2.8rem; font-family: var(--sans); font-size: .78rem; letter-spacing: .04em; color: var(--soft); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-credit { color: var(--soft); }
.site-footer__inner a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-footer__inner a:hover { border-bottom-color: currentColor; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 2rem 0 .5rem; }
.legal-updated { color: var(--soft); font-size: .9rem; margin-top: 2.4rem; }

/* lightbox — clean white gallery viewer. The white ground covers the page
   instantly (the work behind is fully removed); only the contents fade in. */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #ffffff; visibility: hidden; transition: visibility 0s linear .34s; }
.lightbox.open { visibility: visible; transition: visibility 0s; }
.lightbox > * { opacity: 0; transition: opacity .34s ease; }
.lightbox.open > * { opacity: 1; }
.lightbox:fullscreen { background: #ffffff; }
.lb-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.05rem clamp(1.1rem, 4vw, 2.4rem); }
.lb-brand { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; color: var(--ink); text-decoration: none; cursor: pointer; transition: opacity .2s ease; }
.lb-brand:hover { opacity: .6; }
.lb-tools { display: flex; align-items: center; gap: .9rem; }
.lb-full, .lb-close { background: none; border: 0; cursor: pointer; color: var(--ink); line-height: 1; padding: .1rem .35rem; opacity: .65; transition: opacity .2s ease; }
.lb-full { font-size: 1.6rem; }
.lb-close { font-size: 1.48rem; }
.lb-full:hover, .lb-close:hover { opacity: 1; }
.lb-stage { flex: 1 1 auto; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.05rem; padding: .4rem clamp(3rem, 7vw, 5rem); min-height: 0; }
/* The viewer row hugs the artwork, so the arrows centre on the WORK (not the
   window) and sit just outside its edges. */
.lb-viewer { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; }
.lb-frames { display: flex; gap: var(--panel-gap); align-items: center; justify-content: center; width: auto; max-width: 100%; opacity: 1; transition: opacity .18s ease; }
.lb-frames img { max-width: calc((90vw - (var(--n, 1) - 1) * var(--panel-gap)) / var(--n, 1)); max-height: 64vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 12px 44px -26px rgba(0,0,0,.45); }
.lb-loader { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid rgba(18,18,16,.14); border-top-color: rgba(18,18,16,.42); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.lightbox.lb-loading .lb-loader { opacity: 1; animation: lb-spin .8s linear infinite; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-cap { text-align: center; font-family: var(--serif); }
.lb-cap .lb-series { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: .5rem; }
.lb-cap .lb-title { display: block; font-size: 2.1rem; font-weight: 500; color: var(--ink); line-height: 1.15; }
.lb-cap .lb-year { display: block; font-family: var(--sans); font-size: .92rem; letter-spacing: .05em; color: var(--soft); margin-top: .22rem; }
.lb-cap .lb-dim { display: block; font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--soft); margin-top: .16rem; }
/* Quiet museum-style chevrons: a clean line mark, no button chrome. Centred on
   the artwork's height, nudged just outside its left/right edges. */
.lb-nav { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 0; opacity: .62; transition: opacity .22s ease, transform .22s ease; -webkit-tap-highlight-color: transparent; }
.lb-nav::before { content: ""; display: block; width: clamp(.72rem, 1.4vw, .92rem); height: clamp(.72rem, 1.4vw, .92rem); border-left: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; }
.lb-prev { left: 0; transform: translate(-150%, -50%); }
.lb-next { right: 0; transform: translate(150%, -50%); }
.lb-prev::before { transform: rotate(45deg); margin-left: .12em; }
.lb-next::before { transform: rotate(-135deg); margin-right: .12em; }
.lb-nav:hover, .lb-nav:focus-visible { opacity: .92; }
.lb-prev:hover, .lb-prev:focus-visible { transform: translate(-165%, -50%); }
.lb-next:hover, .lb-next:focus-visible { transform: translate(165%, -50%); }
.lb-nav:focus-visible { outline: none; }
.lb-pos { display: block; margin-top: .68rem; }
.lb-dots { display: inline-flex; gap: 7px; justify-content: center; align-items: center; }
.lb-dots span { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--soft); box-sizing: border-box; }
.lb-dots span.on { background: var(--ink); border-color: var(--ink); }
.lb-cap .lb-count { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-top: .46rem; }
.lb-bottom { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; width: 100%; max-width: 640px; margin-inline: auto; padding: .55rem clamp(1.1rem, 4vw, 2.4rem) 1.05rem; }
.lb-sprev, .lb-snext { background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--soft); padding: .3rem 0; transition: color .2s ease; white-space: nowrap; }
.lb-sprev { justify-self: start; }
.lb-snext { justify-self: end; }
.lb-sprev:hover, .lb-snext:hover { color: var(--ink); }
.lb-pick { justify-self: center; display: flex; align-items: center; gap: .55rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .04em; color: var(--soft); }
.lb-select { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); background-color: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .35rem 2.1rem .35rem .95rem; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%231a1a17' stroke-width='1.4'/></svg>"); background-repeat: no-repeat; background-position: right .85rem center; }
.lb-select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 560px) { .lb-sprev, .lb-snext { font-size: 0; } .lb-sprev::before { content: "\2039"; font-size: 1.4rem; } .lb-snext::after { content: "\203a"; font-size: 1.4rem; } .lb-pick-label { display: none; } }
@media (max-width: 560px) { .lb-stage { padding: .4rem 2.9rem calc(.4rem + env(safe-area-inset-bottom)); } .lb-frames img { max-height: 54vh; } .lb-nav { width: 3.1rem; height: 3.1rem; color: var(--ink); opacity: .86; } .lb-nav::before { width: 1rem; height: 1rem; border-width: 2px; } .lb-prev { transform: translate(-18%, -50%); } .lb-next { transform: translate(18%, -50%); } .lb-prev:hover, .lb-prev:focus-visible { transform: translate(-24%, -50%); } .lb-next:hover, .lb-next:focus-visible { transform: translate(24%, -50%); } .lb-brand { font-size: 1.25rem; } .lb-cap .lb-title { font-size: 1.48rem; } }

/* responsive nav */
@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; flex-direction: column; gap: 0; width: 100%; margin-top: .6rem; }
  .nav.show { display: flex; }
  .nav.show a { padding-block: .6rem; border-bottom: 1px solid var(--line); }
  .site-header__inner { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { animation: none; }
  .lightbox, .lightbox img, .lb-frames, .lb-loader, .archive-grid a, .series__images button, .nav a, .series .read { transition: none; }
  .lb-frames { opacity: 1 !important; }
  .lightbox.lb-loading .lb-loader { animation: none; }
  .lightbox img { transform: none; }
}

.preview-note{ font-family:var(--sans); font-size:.8rem; letter-spacing:.02em; color:var(--soft);
  background:#f4f3ee; border-bottom:1px solid var(--line); padding:.6rem clamp(1rem,4vw,2rem); text-align:center; }
.section{ padding:clamp(.3rem,.7vw,.5rem) 0 clamp(2rem,4vw,3rem); }
main{ animation:none; }

/* per-series 'About this series' expandable (editable field; maps to series.about + series.essaySlug in 11ty/Sveltia) */
.series-about{max-width:62ch;margin:0 auto clamp(.95rem,1.85vw,1.18rem);text-align:center}
.series-about>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:.55em;font-family:var(--sans);text-transform:uppercase;letter-spacing:.16em;font-size:.68rem;color:var(--soft);padding:.25rem .2rem;user-select:none;transition:color .15s ease}
.series-about>summary:hover{color:var(--ink)}
.series-about>summary::-webkit-details-marker{display:none}
.series-about>summary::after{content:"+";font-size:.95rem;line-height:1;color:var(--soft)}
.series-about[open]>summary::after{content:"\2013"}
.series-about__body{margin:.65rem auto 0;max-width:60ch;text-align:left;font-family:var(--serif);font-size:1.02rem;line-height:1.64;color:var(--ink)}
.series-about__body p{margin:0 0 .85rem}
.series-about__by{color:var(--soft);font-style:italic}
.series-about__essay{display:inline-block;margin-top:.2rem;font-family:var(--sans);text-transform:uppercase;letter-spacing:.14em;font-size:.66rem;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.series-about__essay:hover{color:var(--soft)}
.essay[id]{scroll-margin-top:calc(var(--header-h) + 12px)}
/* optional per-series video link (sits beside the essay link) */
.series-about__essay{margin-right:1.2rem}
.series-about__video{display:inline-block;margin-top:.2rem;font-family:var(--sans);text-transform:uppercase;letter-spacing:.14em;font-size:.66rem;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.series-about__video:hover{color:var(--soft)}

/* ── Supporting material (optional): video embed + quiet links ──
   Used by series (inside About), essays, and exhibitions. Renders only
   when a video/pdf/link/essay is present; otherwise nothing is output. */
.support{margin-top:1rem}
.support:first-child{margin-top:0}
.media-embed{position:relative;width:100%;max-width:640px;aspect-ratio:16/9;margin:0 0 .9rem;background:#000}
.media-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.media-video{max-width:640px;margin:0 0 .9rem}
.media-video video{display:block;width:100%;height:auto;background:#000}
.support__links{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin:0}
.support__link{font-family:var(--sans);text-transform:uppercase;letter-spacing:.14em;font-size:.66rem;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.support__link:hover{color:var(--soft)}
/* Keep the About panel's link spacing tight (matches pre-supporting-material). */
.series-about__body .support{margin-top:.2rem}
.series-about__body .support:first-child{margin-top:0}

/* ── Social links (optional, CMS-configurable): monochrome icons, footer ── */
.social { display: flex; justify-content: center; align-items: center; gap: 1.15rem; margin-bottom: 1.1rem; }
.social-link { display: inline-flex; color: var(--soft); transition: color .18s ease; line-height: 0; }
.social-link:hover, .social-link:focus-visible { color: var(--ink); }
.social-link svg { display: block; }

/* ── Accessibility: quiet keyboard focus + skip link (v39) ── */
/* Clear-but-quiet focus ring for keyboard users only; consistent with existing
   focus styles. The lightbox prev/next keep their own (transform) focus feedback. */
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lb-full:focus-visible, .lb-close:focus-visible, .lb-brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: .55rem .9rem; font-family: var(--sans); font-size: .9rem; text-decoration: none; }
.skip-link:focus { left: .6rem; top: .6rem; }
#main:focus { outline: none; }
