/* Marianna Nerozna — public site
   A quiet gallery wall: lavender-gesso ground, indigo ink, one gold line of light. */

:root {
  --wall: #f2f1f6;
  --wall-deep: #e7e5ee;
  --paper: #fbfafd;
  --ink: #1f1b35;
  --ink-2: #46415c;
  --stone: #66617c;
  --line: #d9d6e3;
  --gold: #b08a3e;
  --gold-text: #85631f;
  --violet: #4b3f7a;
  --night: #1f1b35;
  --night-text: #e6e3f0;
  --night-muted: #a9a4be;

  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --page: 1360px;
  --radius: 2px;
  --hang: 0 1px 2px rgba(31, 27, 53, .08), 0 18px 34px -20px rgba(31, 27, 53, .45);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--gold-text); }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.005em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--wall); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; color: var(--wall); }

main { display: block; min-height: 60vh; }

/* ---------- buttons & links ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px;
  background: var(--ink); color: var(--wall);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.button:hover { background: var(--violet); border-color: var(--violet); color: var(--wall); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--wall); }

.text-link {
  font: 500 15px/1.4 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link:hover { color: var(--gold-text); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--wall) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.wordmark { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark__name { font: 600 26px/1 var(--serif); letter-spacing: .005em; white-space: nowrap; }
.wordmark__tag { font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--stone); white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { position: relative; }
.site-nav__list a {
  display: inline-block; padding: 8px 0;
  font: 500 15px/1.2 var(--sans); text-decoration: none; color: var(--ink-2);
}
.site-nav__list > li > a[aria-current="page"],
.site-nav__list > li > a:hover { color: var(--ink); box-shadow: inset 0 -1px 0 var(--gold); }

.site-nav .sub {
  position: absolute; left: -18px; top: 100%; min-width: 250px;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px -18px rgba(31, 27, 53, .35);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .sub a { display: block; padding: 7px 18px; font-weight: 400; }
.site-nav .sub a:hover { background: var(--wall); box-shadow: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }

.site-nav__tools { display: flex; align-items: center; gap: 18px; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; }
.lang-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 500 12px/1 var(--sans); letter-spacing: .08em; text-decoration: none; color: var(--ink-2);
}
.lang-link:hover { border-color: var(--gold); }
.only-mobile { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 10px; padding: 8px 0; background: none; border: 0; cursor: pointer;
  font: 500 15px/1 var(--sans);
}
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle__bars::before { content: ''; position: absolute; top: 6px; }
.nav-toggle__bars { transform: translateY(-3px); }
[aria-expanded="true"] .nav-toggle__bars { transform: translateY(0) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 64px 0 0 0; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    background: var(--wall);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__list > li > a { display: block; padding: 16px 0; font: 500 32px/1.1 var(--serif); color: var(--ink); }
  .site-nav__list > li > a[aria-current="page"], .site-nav__list > li > a:hover { box-shadow: none; color: var(--gold-text); }
  .site-nav .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0 0 14px; min-width: 0;
    columns: 2; column-gap: 20px;
  }
  .site-nav .sub a { padding: 6px 0; color: var(--ink-2); }
  .site-nav__tools { justify-content: space-between; padding-top: 24px; }
  .only-mobile { display: inline; }
}

@media (max-width: 520px) {
  .wordmark__tag { display: none; }
  .wordmark__name { font-size: 23px; }
  .site-nav .sub { columns: 1; }
}

/* ---------- hero ---------- */

.hero {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: end;
}
.hero__name {
  font-size: clamp(54px, 9.2vw, 136px); line-height: .9; letter-spacing: -.02em;
  max-width: 7em; margin-bottom: 32px;
}
.hero__intro { max-width: 44ch; margin: 0 0 32px; color: var(--ink-2); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 0; }

.hero__work { position: relative; margin: 0; padding-top: clamp(48px, 9vw, 120px); display: flex; flex-direction: column; align-items: center; }
/* The single gold line: a ray of light the painting hangs from */
.hero__ray {
  position: absolute; top: calc(-1 * clamp(24px, 5vw, 64px)); bottom: 100%; left: 50%;
  height: calc(clamp(48px, 9vw, 120px) + clamp(24px, 5vw, 64px)); width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 35%, var(--gold));
  transform-origin: top; animation: ray 1.1s cubic-bezier(.2, .7, .2, 1) .1s both;
}
@keyframes ray { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero__frame { display: block; box-shadow: var(--hang); }
.hero__frame img { max-height: min(68vh, 760px); width: auto; }
.hero__work figcaption { margin-top: 18px; text-align: center; }
.hero__title { display: block; font: 600 22px/1.2 var(--serif); text-decoration: none; }
.hero__spec { display: block; font-size: 13px; color: var(--stone); margin-top: 2px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero__name { margin-bottom: 20px; }
  .hero__work { padding-top: 56px; }
  .hero__ray { top: 0; height: 56px; }
  .hero__frame img { max-height: 70vh; }
}

/* ---------- sections ---------- */

.section, .page-head, .series-filter, .crumbs, .pager, .work, .work-nav, .post {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.section { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(16px, 3vw, 32px); }
.section--flush { padding-top: 8px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
}
.section__head h2 { font-size: clamp(30px, 3.4vw, 42px); }

.page-head { padding-top: clamp(28px, 5vw, 64px); padding-bottom: 28px; }
.page-head h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.015em; max-width: 16em; }
.page-head .lead { max-width: 58ch; margin: 18px 0 0; font-size: 19px; color: var(--ink-2); }
.page-head--center { text-align: center; padding-bottom: 80px; }
.page-head--center h1, .page-head--center .lead { margin-left: auto; margin-right: auto; }
.page-head--center .search-form { margin: 32px auto 24px; }

.empty { color: var(--stone); font-size: 18px; padding: 24px 0 48px; }

/* ---------- the wall: justified rows, true proportions ---------- */

.wall {
  --row: 260px;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(36px, 4vw, 56px) clamp(20px, 2.6vw, 36px);
}
.wall::after { content: ''; flex-grow: 999999; }
.wall--small { --row: 190px; }
.wall--photos { --row: 220px; gap: 12px; }

.piece { flex: calc(var(--r) * 1000) 1 calc(var(--r) * var(--row)); min-width: 0; }
.piece > a, .piece > button { display: block; text-decoration: none; color: var(--ink); }
.piece__frame { display: block; background: var(--wall-deep); box-shadow: var(--hang); }
.piece__frame img { width: 100%; aspect-ratio: var(--r); object-fit: cover; }
.wall--photos .piece__frame { box-shadow: none; border: 0; padding: 0; cursor: zoom-in; width: 100%; }
.piece__label { display: block; padding-top: 14px; }
.piece__title { display: block; font: 600 20px/1.2 var(--serif); }
.piece__spec { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--stone); }
.piece a:hover .piece__title { color: var(--gold-text); }
.piece a:hover .piece__frame { box-shadow: 0 1px 2px rgba(31, 27, 53, .1), 0 24px 40px -20px rgba(31, 27, 53, .55); }
.piece__frame { transition: box-shadow .25s; }

@media (max-width: 700px) {
  .wall { --row: 40vw; gap: 32px 14px; }
  .wall--small { --row: 36vw; }
  .wall--photos { --row: 34vw; gap: 8px; }
  .piece__title { font-size: 18px; }
  .piece__spec { font-size: 12px; }
}

/* ---------- series (category) index & filter ---------- */

.series-index {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px);
}
.series-index a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.series-index__name { font: 500 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); }
.series-index__count { font-size: 14px; color: var(--stone); white-space: nowrap; }
.series-index a:hover .series-index__name { color: var(--gold-text); }
@media (max-width: 700px) { .series-index { grid-template-columns: 1fr; } }

.series-filter { padding-bottom: 36px; }
.series-filter ul {
  list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 26px;
  border-bottom: 1px solid var(--line);
}
.series-filter a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.series-filter sup { font-size: 11px; color: var(--stone); margin-left: 3px; }
.series-filter a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--gold); }
@media (max-width: 700px) {
  .series-filter ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .series-filter ul::-webkit-scrollbar { display: none; }
  .series-filter li { flex: none; }
}

.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 48px; padding-bottom: 24px; font-size: 15px; }
.pager__pos { color: var(--stone); }

/* ---------- single work ---------- */

.crumbs { padding-top: 24px; padding-bottom: 20px; display: flex; gap: 10px; font-size: 14px; color: var(--stone); }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--gold-text); }
.crumbs--inline { padding: 0 0 18px; max-width: none; }

.work { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.work__viewer { min-width: 0; }
.work__image {
  margin: 0; background: var(--wall-deep); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 56px); display: flex; justify-content: center;
}
.work__image[hidden] { display: none; }
.work__zoom { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; box-shadow: var(--hang); }
.work__zoom img { max-height: min(66vh, 820px); width: auto; }
.work__thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.work__thumbs button { padding: 0; border: 1px solid transparent; background: var(--wall-deep); cursor: pointer; border-radius: var(--radius); }
.work__thumbs img { height: 72px; width: auto; opacity: .75; transition: opacity .15s; }
.work__thumbs button[aria-current="true"] { border-color: var(--gold); }
.work__thumbs button[aria-current="true"] img, .work__thumbs button:hover img { opacity: 1; }

.work__label { position: sticky; top: 96px; border-left: 1px solid var(--gold); padding: 4px 0 4px clamp(20px, 2.4vw, 32px); }
.work__title { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -.012em; }
.work__specs { margin: 24px 0 0; display: grid; gap: 8px; }
.work__specs div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 15px; }
.work__specs dt { color: var(--stone); }
.work__specs dd { margin: 0; }
.work__specs a { text-decoration-color: var(--gold); }
.work__sale { display: flex; gap: 14px; align-items: baseline; margin: 28px 0 14px; font-weight: 500; }
.work__sale--available span:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3f7a55; margin-right: 8px; vertical-align: 1px; }
.work__sale--sold { color: var(--stone); }
.work__price { font: 600 22px/1 var(--serif); }
.work__text { margin-top: 28px; font-size: 16px; }

.share { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; align-items: baseline; }
.share__label { color: var(--stone); }
.share a, .share button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.share a:hover, .share button:hover { color: var(--gold-text); }

.work-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end;
  padding-top: 56px; padding-bottom: 8px;
}
.work-nav a { text-decoration: none; font: 500 22px/1.2 var(--serif); }
.work-nav a span { display: block; font: 400 13px/1.4 var(--sans); color: var(--stone); margin-bottom: 4px; }
.work-nav__next { text-align: right; }
.work-nav__all { font: 500 14px/1.4 var(--sans) !important; color: var(--ink-2); text-decoration: underline !important; text-decoration-color: var(--gold) !important; text-underline-offset: 6px; }

@media (max-width: 960px) {
  .work { grid-template-columns: 1fr; }
  .work__label { position: static; }
  .work__image { padding: 16px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .work__zoom img { max-height: 72vh; }
  .work-nav { grid-template-columns: 1fr 1fr; }
  .work-nav__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .work-nav a { font-size: 19px; }
}

/* ---------- events, articles ---------- */

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.section__head + .post-list { border-top: 0; margin-top: -32px; }
.post-row a {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 180px; gap: 28px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.post-row__date { font-size: 14px; color: var(--stone); padding-top: 8px; }
.post-row__title { display: block; font: 500 clamp(24px, 2.4vw, 31px)/1.15 var(--serif); }
.post-row__place { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.post-row__excerpt { display: block; margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-row__cover { display: block; background: var(--wall-deep); }
.post-row__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-row a:hover .post-row__title { color: var(--gold-text); }
.post-list--compact .post-row a { grid-template-columns: 200px minmax(0, 1fr) 120px; padding: 20px 0; }
.is-article .post-row a, .post-list:not(:has(time)) .post-row a { grid-template-columns: minmax(0, 1fr) 180px; }
@media (max-width: 760px) {
  .post-row a, .post-list--compact .post-row a, .post-list:not(:has(time)) .post-row a { grid-template-columns: minmax(0, 1fr) 96px; gap: 6px 16px; }
  .post-row__date { grid-column: 1; grid-row: 1; padding-top: 0; }
  .post-row__body { grid-column: 1; }
  .post-row__cover { grid-column: 2; grid-row: 1 / span 2; }
  .post-row__excerpt { -webkit-line-clamp: 2; font-size: 15px; }
}

.post { max-width: calc(860px + 2 * var(--gutter)); padding-top: clamp(28px, 5vw, 64px); }
.post__head h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -.012em; }
.post__meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--stone); font-size: 15px; }
.post__place { color: var(--ink-2); }
.post__cover { margin: 40px 0 0; }
.post__cover img { width: 100%; cursor: zoom-in; }
.post__body { margin-top: 40px; }
.post__gallery { margin-top: 48px; }

/* ---------- prose (descriptions, articles, imported WordPress content) ---------- */

.prose { font-size: 18px; line-height: 1.7; color: var(--ink); max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: .9em; }
.prose h2 { font-size: 34px; margin-top: 1.6em; }
.prose h3 { font-size: 27px; margin-top: 1.4em; }
.prose h4 { font: 600 18px/1.4 var(--sans); margin-top: 1.4em; }
.prose a { text-decoration-color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1em 0; }
.prose li + li { margin-top: .35em; }
.prose blockquote {
  margin: 1.6em 0; padding: 0 0 0 24px; border-left: 1px solid var(--gold);
  font: italic 500 26px/1.35 var(--serif); color: var(--ink);
}
.prose strong { font-weight: 600; }
.prose figure { margin: 2em 0; }
.prose img { cursor: zoom-in; border-radius: var(--radius); }
.prose > figure img, .prose > p > img { max-height: 78vh; width: auto; }
.prose figcaption { font-size: 14px; color: var(--stone); margin-top: 8px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post__body.prose { max-width: none; }
.post__body.prose > :not(.gallery):not(figure) { max-width: 68ch; }
.prose .gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 2em 0; }
.prose .gallery::after { content: ''; flex-grow: 999999; }
.prose .gallery > * { margin: 0; flex: calc(var(--r, 1) * 1000) 1 calc(var(--r, 1) * 230px); min-width: 0; }
.prose .gallery img { width: 100%; height: auto; aspect-ratio: var(--r, auto); object-fit: cover; }
.work__text.prose { font-size: 16px; line-height: 1.65; }
.work__text.prose img { margin: 1em 0; }

/* ---------- about teaser ---------- */

.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-teaser:not(:has(img)) { grid-template-columns: 1fr; }
.about-teaser__portrait { width: 100%; max-height: 640px; object-fit: cover; box-shadow: var(--hang); }
.about-teaser__text h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 24px; }
.about-teaser__quote { margin: 0 0 32px; padding-left: 24px; border-left: 1px solid var(--gold); }
.about-teaser__quote p { margin: 0; font: italic 500 clamp(26px, 3vw, 38px)/1.25 var(--serif); max-width: 26em; }
@media (max-width: 760px) { .about-teaser { grid-template-columns: 1fr; } }

/* ---------- search ---------- */

.search-form { display: flex; gap: 10px; margin-top: 28px; max-width: 620px; }
.search-form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  font: 400 17px/1.3 var(--sans); color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }

/* ---------- footer ---------- */

.site-footer { margin-top: clamp(64px, 9vw, 128px); background: var(--night); color: var(--night-text); }
.site-footer__inner {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 64px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px;
}
.wordmark--light, .wordmark--light:hover { color: var(--night-text); }
.wordmark--light .wordmark__tag { color: var(--night-muted); }
.site-footer__intro { margin: 18px 0 0; color: var(--night-muted); font-size: 15px; max-width: 40ch; }
.site-footer h2 { font: 500 14px/1.4 var(--sans); color: var(--night-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #d8b56c; }
.site-footer__base {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) 32px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(230, 227, 240, .14); font-size: 13px; color: var(--night-muted);
}
@media (max-width: 960px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 17, 38, .96);
  display: flex; align-items: center; justify-content: center; touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06);
  color: #fff; cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .14); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 13px; }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
