/*
Theme Name: Lukasz Furs — Studio Archive 2.1.7
Theme URI: https://lukaszfurs.com/
Author: Lukasz Furs
Description: Minimal, plugin-free artist archive theme.
Version: 2.1.7
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lukasz-furs
*/

:root {
  --page-pad: 28px;
  --grid-gap: 20px;
  --black: #000;
  --white: #fff;
  --rule: rgba(0, 0, 0, 0.14);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }

body,
body :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,figcaption,time,small,strong,em,b,i,blockquote,button,input,textarea,select,label,summary,legend) {
  color: #000;
}

a,
a:visited,
a:hover,
a:focus,
a:active {
  color: #000;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }
button { color: #000; background: transparent; border: 0; padding: 0; }

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--page-pad) 24px;
}
.site-brand { display: inline-flex; align-items: center; white-space: nowrap; line-height: 0; flex: 0 0 auto; }
.site-brand img { display: block; width: 88px; height: auto; }
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a { white-space: nowrap; }

.site-main {
  min-height: calc(100vh - 120px);
  padding: 0 var(--page-pad) 90px;
}
.site-footer {
  padding: 26px var(--page-pad) 34px;
  font-size: 10px;
}

/* Generic page typography */
.page-wrap,
.post-single,
.archive-wrap {
  width: 100%;
}
.page-header { margin: 0 0 34px; }
.page-title,
.archive-title,
.post-title,
.work-name,
.works-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
}

.page-content > :first-child,
.entry-content > :first-child,
.post-content > :first-child { margin-top: 0; }
.page-content > :last-child,
.entry-content > :last-child,
.post-content > :last-child { margin-bottom: 0; }

.page-content p,
.post-content p,
.entry-content p { max-width: 760px; }
.page-content img,
.post-content img,
.entry-content img { max-width: 100%; height: auto; }
.page-content a,
.post-content a,
.entry-content a { text-decoration: none; }
.page-content .aligncenter,
.post-content .aligncenter,
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.page-content hr,
.post-content hr,
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 30px 0;
}
.wp-caption-text,
.entry-content figcaption,
.post-content figcaption,
.page-content figcaption {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.3;
}

/* Journal / homepage */
.journal {
  width: 100%;
}
.journal-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 36px;
  padding: 0 0 70px;
  margin: 0 0 70px;
  border-bottom: 1px solid var(--rule);
}
.journal-entry:last-child { margin-bottom: 0; border-bottom: 0; }
.entry-date {
  white-space: nowrap;
  line-height: 1.35;
}
.entry-main { min-width: 0; }
.entry-kicker {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.35;
}
.entry-title {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 400;
}
.entry-lead {
  margin: 0 0 28px;
  max-width: 1100px;
}
.entry-lead img {
  width: auto;
  max-width: min(1100px, 100%);
  height: auto;
}
.entry-content { max-width: 1100px; }
.entry-content .wp-block-gallery,
.entry-content .gallery { margin-top: 28px; }
.entry-pagination,
.archive-pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 15px;
}

/* Works archive */
.works-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}
.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}
.work-filters a + a::before {
  content: "/";
  margin: 0 10px;
}
.work-filters a[aria-current="page"] { font-weight: 400; }

.works-archive {
  width: 100%;
  min-width: 0;
}
/* Stable grid fallback. A small theme-owned script enhances this to masonry
   using measured grid-row spans; CSS columns are deliberately not used because
   balancing columns can reorder items when images load or the viewport changes. */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto;
  gap: var(--grid-gap);
  align-items: start;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.work-card {
  display: block;
  align-self: start;
  min-width: 0;
  width: 100%;
  margin: 0;
  vertical-align: top;
}
.work-card > a { display: block; width: 100%; }
.work-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.work-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.25;
}
.work-caption .year { white-space: nowrap; }

/* Single work */
.work-single { width: 100%; }
.work-hero-link {
  display: block;
  width: 100%;
}
.work-hero {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
}
.work-details {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(180px, 300px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}
.work-name { font-size: 13px; }
.work-specs { font-size: 11px; line-height: 1.45; }
.work-specs div + div { margin-top: 1px; }
.work-text { max-width: 700px; }

.work-gallery {
  column-count: 2;
  column-gap: var(--grid-gap);
  margin-top: 58px;
}
.work-gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
  vertical-align: top;
}
.work-gallery-item img { width: 100%; height: auto; }
.work-gallery-item figcaption {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.3;
}
.work-back { margin-top: 56px; font-size: 11px; }

/* Vita */
.vita-page,
.vita-content { width: 100%; }
.vita-content { max-width: none; }
.vita-section { width: 100%; }
.vita-section + .vita-section { margin-top: 42px; }
.vita-section h2 {
  margin: 0;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 400;
}
.vita-row {
  display: grid;
  grid-template-columns: 84px minmax(180px, 1fr) minmax(170px, 0.8fr) 90px;
  gap: 22px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.vita-row > * { min-width: 0; }
.vita-row .type { text-align: right; }

/* Info */
.info-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 720px) minmax(0, 1fr);
  gap: 36px;
  width: 100%;
}
.info-copy > :first-child { margin-top: 0; }
.info-copy > :last-child { margin-bottom: 0; }
.info-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Single posts / journal entries */
.post-single { width: 100%; }
.post-meta {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 22px;
}
.post-content {
  margin-left: 186px;
  max-width: 1100px;
}
.post-content .wp-block-image,
.post-content figure { margin-left: 0; margin-right: 0; }
.post-content .wp-block-gallery { margin-left: 0; margin-right: 0; }
.post-pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 70px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* Lightbox */
.lf-lightbox[hidden] { display: none; }
.lf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255,255,255,0.985);
  padding: 28px;
}
.lf-lightbox-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
}
.lf-lightbox-stage {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lf-lightbox-stage img {
  display: block;
  max-width: 88vw;
  max-height: 82vh;
  width: auto;
  height: auto;
}
.lf-lightbox-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
}
.lf-lightbox-nav[hidden] { display: none; }
.lf-lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.lf-lightbox-caption {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  max-width: min(900px, 86vw);
  padding-top: 10px;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 1100px) {
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-layout { grid-template-columns: 160px minmax(0, 1fr); }
  .info-layout > :last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --page-pad: 16px; --grid-gap: 14px; }
  .site-header { align-items: flex-start; padding-top: 18px; }
  .site-nav { gap: 14px; }
  .journal-entry,
  .post-meta,
  .work-details,
  .info-layout { grid-template-columns: 1fr; gap: 12px; }
  .post-content { margin-left: 0; }
  .entry-date { white-space: normal; }
  .works-head { display: block; }
  .work-filters { justify-content: flex-start; margin-top: 10px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-gallery { column-count: 1; }
  .vita-row { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .vita-row .place,
  .vita-row .type { grid-column: 2; text-align: left; }
  .work-hero { max-height: 66vh; }
  .lf-lightbox { padding: 18px; }
  .lf-lightbox-inner { grid-template-columns: 38px minmax(0, 1fr) 38px; }
  .lf-lightbox-stage img { max-width: 94vw; max-height: 78vh; }
}

@media (max-width: 440px) {
  .works-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header,
  .site-footer,
  .site-nav,
  .work-filters,
  .work-back,
  .lf-lightbox { display: none !important; }
  .site-main { padding: 0; }
  a { text-decoration: none !important; }
}

/* Required fallback/archive-safe layout */
.site-main--fallback { width: 100%; }
.content-width { width: 100%; max-width: none; }
.fallback-entry { margin: 0 0 72px; }


/* -------------------------------------------------------------------------
   Typographic system 2.1.1
   Minimal editorial typography: clear scale, readable measure, quiet rhythm.
   All type remains black; no external font or plugin is required.
   ------------------------------------------------------------------------- */
:root {
  --page-pad: 30px;
  --grid-gap: 22px;
  --type-body: 15px;
  --type-small: 12px;
  --type-caption: 11px;
  --measure-text: 68ch;
  --rule: rgba(0, 0, 0, 0.16);
}

body {
  font-size: var(--type-body);
  line-height: 1.55;
  letter-spacing: -0.008em;
  font-feature-settings: "kern" 1, "liga" 1;
  font-kerning: normal;
}

.site-header {
  align-items: center;
  padding: 27px var(--page-pad) 35px;
  gap: 30px;
}
.site-brand img { width: 118px; }
.site-nav {
  gap: 25px;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.site-main { padding-bottom: 100px; }
.site-footer {
  padding-top: 28px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
}

.page-header { margin-bottom: 36px; }
.page-title,
.archive-title,
.work-name,
.works-title {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 400;
}

/* Dates and categories act as metadata, not as competing headings. */
.entry-date {
  font-size: var(--type-small);
  line-height: 1.45;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}
.entry-kicker {
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

/* Journal index */
.journal-entry {
  grid-template-columns: 132px minmax(0, 1fr);
  column-gap: 34px;
  padding-bottom: 76px;
  margin-bottom: 76px;
}
.entry-title {
  max-width: 38ch;
  margin-bottom: 24px;
  font-size: clamp(21px, 1.65vw, 25px);
  line-height: 1.13;
  letter-spacing: -0.032em;
  font-weight: 400;
  text-wrap: pretty;
}
.entry-lead { margin-bottom: 29px; }
.entry-lead img {
  max-width: min(1040px, 100%);
  height: auto;
}
.entry-content,
.page-content,
.post-content {
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -0.008em;
  overflow-wrap: break-word;
}
.entry-content p,
.page-content p,
.post-content p,
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol,
.entry-content blockquote,
.page-content blockquote,
.post-content blockquote {
  max-width: var(--measure-text);
}
.entry-content p,
.page-content p,
.post-content p { margin: 0 0 1.15em; }
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol {
  padding-left: 1.25em;
  margin-top: 0;
  margin-bottom: 1.3em;
}
.entry-content li + li,
.page-content li + li,
.post-content li + li { margin-top: 0.35em; }
.entry-content h1,
.page-content h1,
.post-content h1 {
  max-width: 25ch;
  margin: 1.5em 0 0.6em;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 400;
  text-wrap: pretty;
}
.entry-content h2,
.page-content h2,
.post-content h2 {
  max-width: 34ch;
  margin: 2.15em 0 0.65em;
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 400;
  text-wrap: pretty;
}
.entry-content h3,
.page-content h3,
.post-content h3 {
  margin: 1.8em 0 0.55em;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.entry-content blockquote,
.page-content blockquote,
.post-content blockquote {
  margin: 2em 0;
  padding: 0 0 0 20px;
  border-left: 1px solid #000;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.entry-content blockquote p,
.page-content blockquote p,
.post-content blockquote p { max-width: 50ch; }
.entry-content a,
.page-content a,
.post-content a { text-decoration: none; text-underline-offset: 0; }
.entry-content a:hover,
.page-content a:hover,
.post-content a:hover { text-decoration: none; }
.wp-caption-text,
.entry-content figcaption,
.post-content figcaption,
.page-content figcaption,
.wp-block-image figcaption,
.wp-block-gallery figcaption {
  margin-top: 8px;
  font-size: var(--type-caption);
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 400;
}

/* Lead / standfirst style used by the reusable post patterns. */
.lf-post-deck {
  max-width: 58ch !important;
  margin: 0 0 1.65em !important;
  font-size: clamp(18px, 1.45vw, 21px) !important;
  line-height: 1.48 !important;
  letter-spacing: -0.018em !important;
  text-wrap: pretty;
}

/* Media has a separate rhythm from text; never force image crops. */
.entry-content > .wp-block-image,
.page-content > .wp-block-image,
.post-content > .wp-block-image,
.entry-content > figure,
.page-content > figure,
.post-content > figure { margin-top: 2em; margin-bottom: 2em; }
.entry-content .wp-block-image img,
.page-content .wp-block-image img,
.post-content .wp-block-image img { width: auto; max-width: 100%; height: auto; }
.entry-content .wp-block-gallery,
.page-content .wp-block-gallery,
.post-content .wp-block-gallery,
.entry-content .gallery,
.page-content .gallery,
.post-content .gallery {
  gap: 22px;
  margin-top: 2.25em;
  margin-bottom: 2.25em;
}
.entry-content .wp-block-gallery .wp-block-image,
.page-content .wp-block-gallery .wp-block-image,
.post-content .wp-block-gallery .wp-block-image { margin: 0; }
.entry-content iframe,
.page-content iframe,
.post-content iframe,
.entry-content video,
.page-content video { max-width: 100%; }

/* Single journal entry */
.post-meta {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 29px;
}
.post-title {
  max-width: 22ch;
  font-size: clamp(29px, 3.1vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.043em;
  font-weight: 400;
  text-wrap: pretty;
}
.post-content {
  margin-left: 166px;
  max-width: 1080px;
}
.post-content > img:first-child,
.post-content > .wp-post-image:first-child {
  margin-bottom: 2em;
}
.post-pagination {
  margin-top: 82px;
  padding-top: 16px;
  font-size: 12px;
}

/* Works / image labels: clear, but subordinate to the artwork. */
.work-caption {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.work-name { font-size: 16px; }
.work-specs { font-size: 13px; line-height: 1.55; }
.work-back { margin-top: 62px; font-size: 12px; }
.work-gallery { margin-top: 62px; }
.work-gallery-item { margin-bottom: 28px; }
.work-gallery-item figcaption { font-size: 11px; line-height: 1.45; }
.work-filters { font-size: 13px; line-height: 1.45; }

/* Vita / info: same typographic system, quiet archive rules. */
.vita-section + .vita-section { margin-top: 48px; }
.vita-section h2 {
  padding-bottom: 11px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.018em;
}
.vita-row {
  gap: 24px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.5;
}
.info-layout { gap: 38px; }
.info-copy { font-size: 16px; line-height: 1.68; }

/* Predictable, quiet interaction; supports keyboard focus without color cues. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  :root { --page-pad: 18px; --grid-gap: 14px; --type-body: 15px; }
  .site-header { padding: 20px var(--page-pad) 30px; gap: 18px; }
  .site-brand img { width: 108px; }
  .site-nav { gap: 15px; font-size: 13px; }
  .journal-entry { padding-bottom: 48px; margin-bottom: 48px; row-gap: 9px; }
  .entry-date { font-size: 12px; }
  .entry-title { margin-bottom: 19px; font-size: clamp(21px, 5.4vw, 27px); }
  .entry-content, .page-content, .post-content { font-size: 16px; line-height: 1.65; }
  .post-meta { row-gap: 10px; margin-bottom: 22px; }
  .post-title { font-size: clamp(28px, 8vw, 36px); }
  .post-content { margin-left: 0; }
  .post-content h2, .entry-content h2, .page-content h2 { font-size: 22px; }
  .entry-content blockquote, .page-content blockquote, .post-content blockquote { font-size: 18px; }
  .work-caption { font-size: 11px; }
  .vita-row { padding: 11px 0; }
}

@media (max-width: 440px) {
  .site-header { align-items: flex-start; }
  .site-brand img { width: 100px; }
  .site-nav { gap: 12px; }
  .entry-title { font-size: 22px; }
  .post-title { font-size: 29px; }
}


/* -------------------------------------------------------------------------
   Responsive editorial polish 2.1.1
   Full-width article structure; quiet metadata; stable grid-based masonry.
   ------------------------------------------------------------------------- */
.post-header {
  width: 100%;
  margin: 0 0 clamp(24px, 3vw, 38px);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.35;
}
.post-meta .entry-kicker {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.post-meta .entry-date {
  display: inline-block;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.post-title {
  display: block;
  width: 100%;
  max-width: 30ch;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.043em;
  font-weight: 400;
  text-wrap: pretty;
}
.post-content {
  width: 100%;
  max-width: none;
  margin-left: 0;
  min-width: 0;
}
.post-content > .wp-post-image:first-child {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 0 clamp(24px, 3vw, 42px);
}
.post-content > :first-child { margin-top: 0; }
.post-content > :last-child { margin-bottom: 0; }

/* Homepage journal: date/category are one restrained metadata line, not a
   separate left-hand column competing with each post title. */
.journal-entry {
  display: block;
  width: 100%;
  padding-bottom: clamp(44px, 5vw, 72px);
  margin-bottom: clamp(44px, 5vw, 72px);
}
.entry-main { width: 100%; min-width: 0; }
.journal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  margin: 0 0 12px;
}
.journal-meta .entry-kicker {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.075em;
}
.journal-meta .entry-date {
  font-size: 11px;
  line-height: 1.35;
}
.entry-title {
  max-width: 46ch;
  margin: 0 0 22px;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 400;
  text-wrap: pretty;
}
.entry-lead,
.entry-content { width: 100%; max-width: none; }

/* Grid-driven masonry: CSS Grid fixes column tracks at breakpoints. JS only
   assigns row spans; item order and width do not depend on CSS column balancing. */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto;
  gap: var(--grid-gap);
  align-items: start;
}
.work-card {
  display: block;
  align-self: start;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
.works-grid.is-masonry {
  grid-auto-rows: 1px;
  column-gap: var(--grid-gap);
  row-gap: 0;
}
.works-grid.is-masonry .work-card {
  grid-row-end: span 1;
  padding-bottom: var(--grid-gap);
}
.works-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (max-width: 1100px) {
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --page-pad: 14px; --grid-gap: 12px; }
  .site-header { padding: 18px var(--page-pad) 25px; gap: 14px; }
  .site-brand img { width: 100px; }
  .site-nav { gap: 13px; font-size: 12px; }
  .site-main { padding-left: var(--page-pad); padding-right: var(--page-pad); padding-bottom: 60px; }
  .post-header { margin-bottom: 24px; }
  .post-meta { gap: 6px 10px; margin-bottom: 10px; }
  .post-title { max-width: none; font-size: clamp(27px, 7.7vw, 36px); line-height: 1.08; }
  .post-content { width: 100%; max-width: none; margin: 0; font-size: 16px; line-height: 1.62; }
  .post-content p,
  .post-content ul,
  .post-content ol,
  .post-content blockquote { max-width: none; }
  .post-content > .wp-block-image,
  .post-content > figure.wp-block-image,
  .post-content > .wp-block-gallery,
  .post-content > .gallery { width: 100%; max-width: 100%; }
  .post-content > .wp-block-image:not(.alignleft):not(.alignright) img,
  .post-content > figure.wp-block-image:not(.alignleft):not(.alignright) img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .post-content > .wp-post-image:first-child { width: 100%; }
  .post-content .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-content .wp-block-gallery img { width: 100%; max-width: 100%; height: auto; }
  .post-content .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }
  .post-content .gallery-item { float: none; width: auto !important; max-width: 100%; margin: 0; }
  .post-content .gallery img { width: 100%; max-width: 100%; height: auto; }
  .post-pagination { margin-top: 48px; }
  .journal-entry { padding-bottom: 42px; margin-bottom: 42px; }
  .entry-title { max-width: none; font-size: clamp(22px, 5.6vw, 28px); }
  .entry-content, .page-content { font-size: 15px; line-height: 1.62; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-gallery { column-count: 1; }
}
@media (max-width: 440px) {
  .site-header { align-items: flex-start; }
  .site-brand img { width: 94px; }
  .site-nav { gap: 10px; }
  .works-grid { grid-template-columns: minmax(0, 1fr); }
  .post-title { font-size: 29px; }
}

/* -------------------------------------------------------------------------
   Journal refinement 2.1.2
   Full posts are read inline: heading is not a link, text on the left,
   featured image on the right on desktop and above the text on mobile.
   ------------------------------------------------------------------------- */
:root {
  --type-body: 14px;
  --type-small: 11px;
  --type-caption: 10.5px;
}
body { font-size: var(--type-body); }

.journal-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 40%);
  grid-template-areas: "main lead";
  align-items: start;
  column-gap: clamp(24px, 3.5vw, 54px);
  row-gap: 0;
  width: 100%;
  padding-bottom: clamp(42px, 4.5vw, 66px);
  margin-bottom: clamp(42px, 4.5vw, 66px);
  border-bottom: 1px solid var(--rule);
}
.journal-entry:last-child { margin-bottom: 0; border-bottom: 0; }
.journal-entry .entry-main {
  grid-area: main;
  width: 100%;
  min-width: 0;
}
.journal-entry .entry-lead {
  grid-area: lead;
  align-self: start;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.journal-entry .entry-lead img,
.journal-entry .entry-lead .entry-lead-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}
.journal-entry:not(.has-lead) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main";
}
.journal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 11px;
  margin: 0 0 10px;
}
.journal-meta .entry-kicker {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.journal-meta .entry-date {
  display: inline;
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
.journal-entry .entry-title {
  max-width: 36ch;
  margin: 0 0 18px;
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 400;
  text-wrap: pretty;
}
.journal-entry .entry-content {
  width: 100%;
  max-width: none;
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: -0.006em;
  overflow-wrap: break-word;
}
.journal-entry .entry-content p,
.journal-entry .entry-content ul,
.journal-entry .entry-content ol,
.journal-entry .entry-content blockquote {
  max-width: var(--measure-text, 68ch);
}
.journal-entry .entry-content > :first-child { margin-top: 0; }
.journal-entry .entry-content > :last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .journal-entry,
  .journal-entry.has-lead {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "lead" "main";
    column-gap: 0;
    row-gap: 18px;
    padding-bottom: 38px;
    margin-bottom: 38px;
  }
  .journal-entry:not(.has-lead) { grid-template-areas: "main"; }
  .journal-entry .entry-lead { margin: 0; }
  .journal-entry .entry-title {
    max-width: none;
    margin-bottom: 16px;
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.16;
  }
  .journal-entry .entry-content {
    font-size: 15px;
    line-height: 1.62;
  }
}

/* -------------------------------------------------------------------------
   Journal / Vita refinement 2.1.4
   ------------------------------------------------------------------------- */
:root {
  --type-body: 13px;
  --type-small: 10.5px;
  --type-caption: 10px;
}

body {
  font-size: var(--type-body);
  line-height: 1.5;
}

.site-nav,
.site-header { font-size: 13px; }

/* The journal uses the full left column. There is no hidden editor spacing
   between the text and the fixed-size featured image column. */
.journal-entry {
  column-gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 40%);
}
.journal-entry .entry-content,
.journal-entry .entry-content p,
.journal-entry .entry-content ul,
.journal-entry .entry-content ol,
.journal-entry .entry-content blockquote {
  max-width: none;
}
.journal-entry .entry-content {
  font-size: 13px;
  line-height: 1.52;
  letter-spacing: -0.004em;
}
.journal-entry .entry-content p { margin-bottom: 1em; }
.journal-entry .entry-lead {
  padding-left: 0;
}
.journal-entry .entry-lead img,
.journal-entry .entry-lead .entry-lead-image {
  width: 100%;
}

/* Keep the exhibition/news hierarchy close to the existing Lorem Ipsum Dolor
   article: modest metadata, clear title, restrained section heads. */
.journal-entry .entry-title {
  margin-bottom: 16px;
  font-size: clamp(19px, 1.45vw, 23px);
  line-height: 1.16;
  letter-spacing: -0.026em;
}
.journal-entry .entry-content h2,
.journal-entry .entry-content h3 {
  max-width: none;
  margin-top: 2em;
  margin-bottom: 0.55em;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 400;
}
.journal-entry .entry-content .lf-post-deck {
  max-width: none !important;
  margin-bottom: 1.35em !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

/* Vita: compact archive rhythm, without increasing perceived density. */
.vita-section + .vita-section { margin-top: 30px; }
.vita-section h2 {
  padding-bottom: 6px;
  font-size: 13px;
  line-height: 1.2;
}
.vita-row {
  padding: 6px 0;
  gap: 18px;
  font-size: 13px;
  line-height: 1.28;
}
.vita-row .type { line-height: 1.28; }

@media (max-width: 760px) {
  .journal-entry,
  .journal-entry.has-lead {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "lead" "main";
    column-gap: 0;
    row-gap: 16px;
  }
  .journal-entry .entry-content,
  .journal-entry .entry-content p,
  .journal-entry .entry-content ul,
  .journal-entry .entry-content ol,
  .journal-entry .entry-content blockquote {
    max-width: none;
  }
  .journal-entry .entry-content { font-size: 13px; line-height: 1.52; }
  .journal-entry .entry-title { font-size: 20px; }
  .vita-row {
    padding: 5px 0;
    line-height: 1.26;
  }
}

/* -------------------------------------------------------------------------
   Final typography / spacing correction 2.1.4
   ------------------------------------------------------------------------- */

/* One baseline size across the site: same 13px scale as the main navigation. */
body,
.page-content,
.post-content,
.entry-content,
.info-copy,
.vita-content {
  font-size: 13px;
  line-height: 1.5;
}

/* Vita: compact archive rhythm. Remove block/paragraph spacing that can make
   each CV line look vertically separated even when no Spacer block is visible. */
.vita-content {
  width: 100%;
  max-width: none;
  line-height: 1.28;
}
.vita-content > *,
.vita-content .wp-block-group,
.vita-content .wp-block-columns,
.vita-content .wp-block-column,
.vita-content .wp-block-table,
.vita-content table {
  margin-top: 0;
  margin-bottom: 0;
}
.vita-content p,
.vita-content li,
.vita-content dt,
.vita-content dd,
.vita-content td,
.vita-content th,
.vita-content div {
  font-size: 13px;
  line-height: 1.28;
}
.vita-content p {
  margin: 0;
}
.vita-content p + p { margin-top: 0; }
.vita-content .wp-block-spacer { display: none; }
.vita-content .wp-block-separator,
.vita-content hr {
  margin: 8px 0;
}
.vita-content h2,
.vita-content h3,
.vita-content h4 {
  margin-top: 18px;
  margin-bottom: 5px;
  line-height: 1.2;
}
.vita-content h2 { font-size: 15px; }
.vita-content h3 { font-size: 14px; }
.vita-content h4 { font-size: 13px; }

/* Journal index: keep the featured image at its current size, but leave the
   same horizontal breathing room as the page edge between text and image. */
.journal-entry {
  column-gap: var(--page-pad);
}

/* On small screens, use the same page-edge scale for the image/text separation. */
@media (max-width: 760px) {
  .journal-entry,
  .journal-entry.has-lead {
    row-gap: var(--page-pad);
  }
}

/* Restore a real heading hierarchy. The body/menu baseline remains 13px,
   while headings clearly step above it. */
.entry-content h1,
.page-content h1,
.post-content h1 {
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 1.55em 0 0.6em;
  font-weight: 400;
}
.entry-content h2,
.page-content h2,
.post-content h2 {
  max-width: 34ch;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 2em 0 0.58em;
  font-weight: 400;
}
.entry-content h3,
.page-content h3,
.post-content h3 {
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 1.65em 0 0.5em;
  font-weight: 400;
}
.entry-content h4,
.page-content h4,
.post-content h4 {
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 1.45em 0 0.45em;
  font-weight: 600;
}

/* The Journal-specific rules previously collapsed H2/H3 to body size.
   Keep the same hierarchy inside inline journal entries. */
.journal-entry .entry-content h2 {
  max-width: 34ch;
  margin-top: 2em;
  margin-bottom: 0.58em;
  font-size: 18px;
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 400;
}
.journal-entry .entry-content h3 {
  max-width: 40ch;
  margin-top: 1.65em;
  margin-bottom: 0.5em;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 400;
}
.journal-entry .entry-content h4 {
  margin-top: 1.45em;
  margin-bottom: 0.45em;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

/* Preserve the same baseline on mobile; only the major title scale contracts. */
@media (max-width: 760px) {
  .entry-content,
  .page-content,
  .post-content,
  .vita-content {
    font-size: 13px;
    line-height: 1.5;
  }
  .entry-content h2,
  .page-content h2,
  .post-content h2,
  .journal-entry .entry-content h2 { font-size: 18px; }
  .entry-content h3,
  .page-content h3,
  .post-content h3,
  .journal-entry .entry-content h3 { font-size: 15px; }
  .vita-row { font-size: 13px; line-height: 1.24; }
}

/* Footer: copyright at left, compact newsletter at lower right. */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 24px;
  padding: 26px var(--page-pad) 34px;
  font-size: 10px;
}
.site-footer-bottom {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin: 0;
}
.footer-newsletter {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 100%;
  max-width: 380px;
  margin: 0;
  color: #000;
}
.footer-newsletter-title {
  margin: 0 0 5px;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .035em;
  font-weight: 400;
}
.footer-newsletter-intro {
  max-width: none !important;
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.4;
}
.footer-newsletter-fields {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
}
.footer-newsletter input[type="email"] {
  display: block;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  padding: 6px 0 5px;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  outline-offset: 3px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  appearance: none;
}
.footer-newsletter input[type="email"]::placeholder { color: #000; opacity: 1; }
.footer-newsletter button[type="submit"] {
  flex: 0 0 auto;
  cursor: pointer;
  color: #000;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .025em;
  white-space: nowrap;
}
.footer-newsletter-consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.footer-newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 9px;
  line-height: 1.4;
  cursor: pointer;
}
.footer-newsletter-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin: 1px 0 0;
  accent-color: #000;
}
.footer-newsletter-privacy {
  flex: 0 0 auto;
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}
.footer-newsletter-honeypot {
  position: absolute !important;
  left: -5000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.lf-screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Back-to-top: a small black outline arrow, shown only after scrolling. */
.back-to-top {
  position: fixed;
  z-index: 999;
  right: var(--page-pad);
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
}
.back-to-top[hidden] { display: none !important; }
.back-to-top svg { display: block; width: 22px; height: 22px; }
.back-to-top:focus-visible { outline: 1px solid #000; outline-offset: 3px; }

@media (max-width: 680px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .site-footer-bottom { grid-column: 1; grid-row: 1; }
  .footer-newsletter {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    width: min(100%, 380px);
    max-width: 380px;
    margin-top: 28px;
  }
  .footer-newsletter-fields { gap: 14px; }
  .back-to-top { right: var(--page-pad); bottom: max(16px, env(safe-area-inset-bottom)); }
}
