/* ==========================================================================
   most minimal — site.css
   One column, one accent (black), 1280 px. Nothing decorative.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --soft: #f7f7f5;
  --ink: #101010;
  --ink-2: #3a3a3a;
  --muted: #6e6e6e;
  --line: #e4e4e4;
  --line-soft: #efefef;
  --shell: 1280px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
strong, b { font-weight: 600; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.noscript {
  max-width: 40ch;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* --- masthead ----------------------------------------------------------- */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(56px, 7vw, 100px) 0 clamp(24px, 3vw, 36px);
}
.masthead--plain { grid-template-columns: minmax(0, 1fr); }

/* JSON pages: a slim bar instead of the masthead, stuck to the top. */
.page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
}
.page-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2.2vw, 22px) 0 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-bar__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.page-bar__back svg { width: 12px; height: 12px; }
.page-bar__back:hover { color: var(--ink); }
.page-bar__title {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font: 500 10px/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__name {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.masthead__title {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.masthead__title + .masthead__role { margin-top: 3px; }

.masthead__role {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--ink-2);
}

.masthead__affiliation {
  margin-top: 4px;
  font: 500 10.5px/1.6 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__intro {
  margin-top: 26px;
  max-width: 54ch;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.masthead__meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font: 400 10.5px/1.6 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__aside {
  display: flex;
  flex-direction: column;
  width: 260px;          /* JS fits this to the text block */
  min-width: 0;
}

.masthead__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.cv-button {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cv-button:hover { background: var(--ink); color: var(--paper); }

.masthead__cv-inline { max-width: 260px; margin-top: 26px; }
.masthead__cv-inline .cv-button { margin-top: 0; }

/* --- sections ----------------------------------------------------------- */
.section {
  padding: clamp(24px, 2.6vw, 34px) 0;
}

/* The first section sits just under the header, with a small breath. */
#content > .section:first-child { padding-top: 20px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-no { color: var(--ink); }
.section-label { color: var(--muted); }
.section-rule { flex: 1 1 auto; height: 1px; background: var(--ink); }

.section-body { margin-top: 22px; }

.section-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.section-lead--single { grid-template-columns: minmax(0, 1fr); }
.section-lead--single .section-intro { margin-top: 0; }

.section-title {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 28ch;
}

.section-intro {
  margin-top: 14px;
  max-width: none;
  padding-bottom: 2px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.flow { margin-top: 28px; }
.section > .flow { margin-top: 28px; }
.flow > * + * { margin-top: 24px; }
.flow__item { min-width: 0; }
/* The list sits closer to the featured card than ordinary elements. */
.flow__item:has(.el-featured) + .flow__item { margin-top: 8px; }
.section--flow .flow__item:has(.el-featured) + .flow__item { margin-top: -16px; }
.flow__item:has(.el-featured) + .flow__item .el-pub:first-child { padding-top: 10px; }

/* One flow for every section. An element may name a side:
   "column": "left" | "right". Items without a side stack at full width.
   This replaces the old separate stack/columns modes. */
.section--flow .flow {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px clamp(32px, 4vw, 64px);
  align-items: start;
  grid-auto-flow: row dense;
}
.section--flow .flow > * + * { margin-top: 0; }
.section--flow .flow > .flow__item { grid-column: 1 / -1; }
.section--flow .flow > .flow__item--left { grid-column: 1; }
.section--flow .flow > .flow__item--right { grid-column: 2; }
/* A filter hoisted above the list is a direct grid child, not a flow item. */
.section--flow .flow > .el-filter { grid-column: 1 / -1; margin-bottom: -12px; }

/* A focus list inside a lane is too narrow for two abreast. */
.flow__item--left .el-focus,
.flow__item--right .el-focus { grid-template-columns: minmax(0, 1fr); }

/* Long prose can run in two magazine columns. */
.section--text .el-prose {
  column-count: 2;
  column-gap: clamp(32px, 4vw, 56px);
}
.section--text .el-prose p {
  max-width: none;
  break-inside: avoid-column;
}

/* --- text --------------------------------------------------------------- */
.el-prose p {
  font-size: 1.03rem;
  line-height: 1.72;
  color: var(--ink-2);
  text-align: justify;
}
.el-prose p + p { margin-top: 14px; }

/* A paragraph may set "layout": "two-col": the label stays above, the body
   flows in two balanced columns, one on phones. */
.el-prose__cols {
  column-count: 2;
  column-gap: clamp(28px, 4vw, 56px);
}
.el-prose__cols p {
  max-width: none;
}

/* A heading followed by an untitled paragraph is drawn with it, so the
   heading behaves as that paragraph's title. */
.flow__item--titled .el-heading { margin-bottom: 8px; }
.el-prose--lead p { font-size: 1.12rem; color: var(--ink); }
.el-prose .el-prose__label {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.95vw, 25px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
}
.el-prose strong { color: var(--ink); font-weight: 600; }
.el-prose em { font-style: italic; }
.el-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  background: var(--soft);
  padding: 2px 5px;
  overflow-wrap: break-word;
}
.el-prose mark { background: #eeeeea; color: var(--ink); padding: 0 3px; }
.el-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
}
.el-prose a:hover { text-decoration-color: var(--ink); }

/* --- headings ----------------------------------------------------------- */
.el-heading__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
/* Four real levels: 1 display, 2 section, 3 sub-section, 4 small label. */
h1.el-heading__text {
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2.el-heading__text {
  font-weight: 300;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
h3.el-heading__text { font-size: clamp(1.18rem, 1.7vw, 1.35rem); }
h4.el-heading__text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-heading__text.el-heading__text--sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink-2);
}
.el-heading__sub {
  margin-top: 6px;
  font: 500 9.5px/1.6 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- lists -------------------------------------------------------------- */
.el-list { counter-reset: el-list; }
.el-list li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.el-list li + li { margin-top: 8px; }
.el-list li > .el-list { margin-top: 8px; }
.el-list li::before {
  display: inline-block;
  width: 22px;
  padding-right: 6px;
  margin-left: -22px;
  text-align: right;
  color: var(--muted);
}
.el-list strong { color: var(--ink); }
.el-list code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; }

/* Bullet glyphs */
.el-list--bullet > li::before { content: "•"; font-size: 14px; }
.el-list--dash > li::before { content: "—"; font-size: 16px; }
.el-list--square > li::before { content: "■"; font-size: 10px; }
.el-list--circle > li::before { content: "○"; font-size: 13px; }
.el-list--check > li::before { content: "✓"; font-size: 14px; color: var(--ink); }
.el-list--arrow > li::before { content: "→"; font-size: 16px; }

/* Ordered markers */
.el-list--number > li::before {
  counter-increment: el-list;
  content: counter(el-list, decimal-leading-zero);
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.06em;
}
.el-list--roman > li::before,
.el-list--roman-upper > li::before,
.el-list--alpha > li::before,
.el-list--alpha-upper > li::before {
  counter-increment: el-list;
  font: 400 14px/1 var(--serif);
  color: var(--ink-2);
}
.el-list--roman > li::before { content: counter(el-list, lower-roman); }
.el-list--roman-upper > li::before { content: counter(el-list, upper-roman); }
.el-list--alpha > li::before { content: counter(el-list, lower-alpha); }
.el-list--alpha-upper > li::before { content: counter(el-list, upper-alpha); }

/* No marker — still aligns with the other lists */
.el-list--none > li { padding-left: 22px; }
.el-list--none > li::before { content: none; }

/* Inline chips */
.el-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: none;
}
.el-list--inline > li {
  max-width: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font: 500 9px/1.5 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.el-list--inline > li + li { margin-top: 0; }
.el-list--inline > li::before { content: none; }

.el-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  counter-reset: focus;
  border-bottom: 1px solid var(--line);
}
.el-focus li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.el-focus li::before {
  counter-increment: focus;
  content: counter(focus, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font: 500 9.5px/1 var(--sans);
  color: var(--muted);
}
.el-focus strong { color: var(--ink); }

/* --- quote -------------------------------------------------------------- */
.el-quote {
  border-left: 1px solid var(--ink);
  padding-left: clamp(18px, 2.6vw, 28px);
}
.el-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.el-quote figcaption {
  margin-top: 12px;
  font: 500 9.5px/1.6 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-quote figcaption strong { font-weight: 500; color: var(--ink); }

/* --- equations ---------------------------------------------------------- */
.el-equation {
  margin: 4px 0;
  overflow-x: auto;
  text-align: center;
}
.el-equation--inline {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}
.el-equation__caption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --- note --------------------------------------------------------------- */
.el-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--soft);
  border-left: 2px solid var(--ink);
}
.el-note__body { flex: 1 1 auto; min-width: 0; }
.el-note__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  object-fit: contain;
}
.el-note__label {
  font: 500 9.5px/1.5 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-note__text {
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.el-note__text p + p { margin-top: 9px; }

/* Pre-set tones */
.el-note--info { background: #eef2f7; border-left-color: #4a6f96; }
.el-note--amber { background: #fbf3e4; border-left-color: #b07d2b; }
.el-note--green { background: #eef4ec; border-left-color: #4d7a4a; }
.el-note--red { background: #fbeeee; border-left-color: #a5453f; }
.el-note--accent { background: var(--soft); border-left-color: var(--ink); }

/* Custom background and text colour */
.el-note--custom { border-left-color: currentColor; }
.el-note--custom .el-note__label { color: inherit; opacity: 0.7; }
.el-note--custom .el-note__text { color: inherit; }
.el-note--on-dark .el-note__icon { filter: brightness(0) invert(1); }
.el-note--dark { background: var(--ink); color: var(--paper); border-left-color: var(--paper); }
.el-note--dark .el-note__text { color: inherit; }
.el-note--dark .el-note__label { color: inherit; opacity: 0.7; }

/* --- table -------------------------------------------------------------- */
.el-table-wrap { overflow-x: auto; }
.el-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
/* On desktop a table in a half-width column fits that column; below 760 px
   the wider minimum keeps a dense table scrollable instead of crushed. */
@media (min-width: 761px) {
  .el-table { min-width: min(460px, 100%); }
}
.el-table caption {
  text-align: left;
  padding-bottom: 10px;
  font: 500 9.5px/1.5 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-table th {
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  vertical-align: bottom;
  font: 500 9.5px/1.4 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-table td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--ink-2);
  line-height: 1.55;
}
.el-table th:last-child,
.el-table td:last-child { padding-right: 0; }
.el-table .is-right { text-align: right; }
.el-table .is-center { text-align: center; }

/* --- cards -------------------------------------------------------------- */
.el-cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 14px;
}
/* A card group with pictures is balanced into columns by height: cards keep
   their own height and the shorter column takes the next card. */
.el-cards--masonry {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.el-cards--masonry .el-cards__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.el-cards--masonry .el-card { width: 100%; }
.el-cards--masonry.el-cards--solo { grid-template-columns: minmax(0, 1fr); }
.el-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
a.el-card:hover { border-color: var(--ink); }
.el-card__keyword {
  font: 500 9px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
}
.el-card__text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}
.el-card__meta {
  font: 500 9px/1.5 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-card__media {
  display: block;
  margin: -20px -20px 4px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.el-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.el-cards__intro {
  margin: 6px 0 18px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.el-cards--single .el-card__title { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.el-cards--single .el-card__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.el-cards--single { grid-template-columns: minmax(0, 1fr); }
/* Cards in a side lane size to their own content, not the tallest neighbour. */
.flow__item--left .el-cards,
.flow__item--right .el-cards { align-items: start; }
.el-cards--single .el-card__media img { aspect-ratio: 21 / 9; }
.el-card__go {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 500 9px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- link rows ---------------------------------------------------------- */
.el-links { border-top: 1px solid var(--line); }
.el-link-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 16px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.el-link-row__no { font: 500 9.5px/1 var(--sans); color: var(--muted); }
.el-link-row__label { font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; }
.el-link-row__note {
  font: 500 9px/1.5 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.el-link-row__arrow { color: var(--muted); display: flex; }
.el-link-row:hover .el-link-row__label { text-decoration: underline; text-underline-offset: 3px; }
.el-link-row:hover .el-link-row__arrow { color: var(--ink); }

/* --- figure / gallery --------------------------------------------------- */
.el-figure img { width: 100%; border: 1px solid var(--line); }
.el-figure--right { width: min(100%, 540px); margin-left: auto; }
.el-figure--left { width: min(100%, 540px); }

/* Plate + words sharing one band. */
.el-figure-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.el-figure-band .el-figure { width: 100%; margin: 0; }
.el-figure-band__text { min-width: 0; }
.el-figure-band__text p { max-width: none; }
.el-figure-band--right .el-figure { grid-column: 2; grid-row: 1; }
.el-figure-band--right .el-figure-band__text { grid-column: 1; grid-row: 1; }
.el-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  font: 400 9px/1.6 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-figure figcaption span:last-child { text-align: right; }
.zoomable { cursor: zoom-in; }

.el-gallery {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 10px;
}
.el-gallery img {
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  object-fit: cover;
  border: 1px solid var(--line);
}
.el-gallery--natural img { aspect-ratio: auto; }
/* Masonry: packed columns, each figure keeps its own height. */
.el-gallery--masonry {
  display: block;
  column-count: var(--cols, 3);
  column-gap: 10px;
}
.el-gallery--masonry figure {
  break-inside: avoid;
  margin: 0 0 10px;
}
.el-gallery--masonry img { aspect-ratio: var(--ratio, auto); }
.el-gallery figcaption {
  padding-top: 7px;
  font: 400 9px/1.55 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-gallery__credit { opacity: 0.7; }
.el-gallery__credit::before { content: " · "; }

.el-slideshow { border: 1px solid var(--line); }
.el-slideshow__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.el-slideshow__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.el-slideshow__stage img.is-active { opacity: 1; pointer-events: auto; }
.el-slideshow__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font: 400 9px/1.5 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
/* A long caption truncates instead of pushing the dots and counter. */
.el-slideshow__bar [data-slide-caption] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.el-slideshow__dots { flex: none; }
.el-slideshow__bar [data-slide-count] {
  flex: none;
  white-space: nowrap;
}
.el-slideshow__dots { display: flex; gap: 5px; }
.el-slideshow__dot {
  width: 16px;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--line);
  cursor: pointer;
}
.el-slideshow__dot.is-active { background: var(--ink); }

/* Slideshow alone, pushed to a side. */
.el-slideshow--left { max-width: 540px; }
.el-slideshow--right { max-width: 540px; margin-left: auto; }

/* Slideshow + words sharing one band. */
.el-slideshow-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.el-slideshow-band__text { min-width: 0; }
.el-slideshow-band__text p { max-width: none; }
.el-slideshow-band--right .el-slideshow { grid-column: 2; grid-row: 1; }
.el-slideshow-band--right .el-slideshow-band__text { grid-column: 1; grid-row: 1; }

/* --- people ------------------------------------------------------------- */
.el-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, 160px);
  gap: 18px;
}
.el-person { display: block; text-decoration: none; color: inherit; }
.el-person img,
.el-person__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.el-person img { object-fit: cover; }
.el-person__placeholder {
  display: grid;
  place-items: center;
  background: var(--soft);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--muted);
}
.el-person__name { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1rem; }
.el-person__role {
  display: block;
  margin-top: 3px;
  font: 500 8.5px/1.5 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- timeline ----------------------------------------------------------- */
.el-timeline { border-left: 1px solid var(--line); padding-left: 24px; }

/* Teaching and path read flush left in every flow. */
.flow__item:has(.el-timeline) > .el-heading__text,
.flow__item:has(.el-courses) > .el-heading__text { text-align: left; }

.el-course__meta { justify-content: flex-start; }
.el-course__intro {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.el-timeline li { position: relative; padding-bottom: 20px; }
.el-timeline li:last-child { padding-bottom: 0; }
.el-timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.el-timeline__when {
  font: 500 9px/1.5 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-timeline__what { display: block; margin-top: 4px; font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.el-timeline__note { margin-top: 3px; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

/* --- tags --------------------------------------------------------------- */
.el-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.el-tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  font: 500 8.5px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- category filters ---------------------------------------------------
   Tags are metadata: they filter the cards or publications in their own
   group and are not printed on each item. */
.el-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 18px;
}
.el-filter__btn {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font: 500 9px/1.5 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.el-filter__btn:hover { color: var(--ink); }
.el-filter__btn.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.el-filter__btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.is-filtered { display: none !important; }

/* --- buttons ------------------------------------------------------------ */
.el-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.el-buttons--center { justify-content: center; }
.el-buttons--right { justify-content: flex-end; }
/* Inside a lane the buttons tighten slightly so a row of four still reads
   as one line in the 531 px right column. */
.flow__item--left .el-buttons,
.flow__item--right .el-buttons { gap: 8px; }
.flow__item--left .el-btn,
.flow__item--right .el-btn { padding: 10px 13px; }
.el-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font: 500 9.5px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.el-btn--outline { background: transparent; color: var(--ink); }
.el-btn:hover { background: var(--muted); border-color: var(--muted); color: var(--paper); }
.el-btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* --- publications ------------------------------------------------------- */
.el-pubs { border-top: 1px solid var(--line); }
.el-pub {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
/* Numbers off: the number column closes up, so titles start at the row edge. */
.el-pub--plain { grid-template-columns: minmax(0, 1fr) auto; }
.el-pub__no { font: 500 9.5px/1.7 var(--sans); color: var(--muted); }
.el-pub__title { font-family: var(--serif); font-weight: 400; font-size: 1.08rem; line-height: 1.35; }
.el-pub__title a { text-decoration: none; }
.el-pub__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.el-pub__meta {
  margin-top: 4px;
  font: 500 9px/1.7 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-pub__year { font: 500 9.5px/1.7 var(--sans); color: var(--muted); white-space: nowrap; }
.el-pub__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.el-pub__view {
  margin-top: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* --- teaching ----------------------------------------------------------- */
.el-courses { border-top: 1px solid var(--line); }
.el-course {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.el-course__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font: 500 9.5px/1.7 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-course__meta span + span::before {
  content: "·";
  margin: 0 0.55em;
  color: var(--muted);
}
.el-course__code { color: var(--ink); }
.el-course__name {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.35;
}
.el-course__name a { text-decoration: none; }
.el-course__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.el-course__intro {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-2);
}

/* --- expandable groups -------------------------------------------------- */
.el-xp { border-top: 1px solid var(--line); }
/* A first group that is always expanded uses its label as the heading, so it
   needs no rule above it. */
.el-xp:has(> .el-xp__group--static:first-child) { border-top: 0; }
.el-xp__group { border-bottom: 1px solid var(--line); }
.el-xp__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.04rem;
  line-height: 1.3;
}
.el-xp__summary::-webkit-details-marker { display: none; }
.el-xp__summary:hover .el-xp__label { text-decoration: underline; text-underline-offset: 3px; }
.el-xp__icon {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  color: var(--muted);
}
.el-xp__group[open] .el-xp__icon {
  margin-top: -1px;
  transform: rotate(-135deg);
}

/* A small bob when the row is hovered or focused, so the arrow reads as
   something to press. The rotation lives in `transform`; the bob in
   `translate`, so the two never fight. */
@keyframes xp-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}
.el-xp__summary:hover .el-xp__icon,
.el-xp__summary:focus-visible .el-xp__icon {
  animation: xp-bob 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .el-xp__summary:hover .el-xp__icon,
  .el-xp__summary:focus-visible .el-xp__icon { animation: none; }
  .el-xp__icon { transition: none; }
}
.el-xp__group--static .el-xp__summary { cursor: default; }
.el-xp__group--static .el-xp__summary:hover .el-xp__label { text-decoration: none; }
.el-xp__rows { padding: 2px 0 16px; }
.el-xp__row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 9px 0;
}
.el-xp__left {
  font: 500 11px/1.55 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-xp__line {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.el-xp__line:first-child { color: var(--ink); }
.el-xp__meta { margin-top: 7px; display: grid; gap: 3px; }
.el-xp__meta div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.el-xp__meta dt {
  font: 500 9px/1.7 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-xp__meta dd {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* --- featured publication ----------------------------------------------- */
.el-featured {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.el-featured__media { margin: 0; }
.el-featured__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}
.el-featured__media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  font: 400 9px/1.6 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-featured__media figcaption span:last-child { text-align: right; }

.el-featured__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "keyword"
    "title"
    "summary"
    "meta"
    "link";
  align-content: center;
  align-items: start;
}
.el-featured__keyword {
  grid-area: keyword;
  font: 500 9px/1.6 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-featured__title {
  grid-area: title;
  margin-top: 7px;
  max-width: none;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.85vw, 1.5rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.el-featured__title a { text-decoration: none; }
.el-featured__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.el-featured__meta {
  grid-area: meta;
  margin-top: 10px;
  font: 500 9.5px/1.7 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-featured__summary {
  grid-area: summary;
  margin-top: 10px;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.el-featured__link {
  grid-area: link;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin-top: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.el-featured__link svg { width: 11px; height: 11px; }
.el-featured--text { grid-template-columns: minmax(0, 1fr); }

/* --- contact ------------------------------------------------------------ */
.el-contact { display: flex; flex-direction: column; gap: 6px; }
.el-contact--group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(24px, 3vw, 44px);
}
.el-contact__person { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* In a side column or on a phone, stack the people instead of squeezing. */
.flow__item--left .el-contact--group,
.flow__item--right .el-contact--group { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .el-contact--group { grid-template-columns: minmax(0, 1fr); }
}
.el-contact__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--ink);
}
.el-contact__role {
  font: 500 9px/1.6 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-contact__email {
  width: fit-content;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.el-contact--group .el-contact__email {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}
.el-contact__email:hover { border-bottom-color: var(--ink); }
.el-contact__phone {
  width: fit-content;
  font: 400 0.98rem/1.5 var(--sans);
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.el-contact__phone:hover { border-bottom-color: var(--ink); color: var(--ink); }
.el-contact__note {
  font: 500 9px/1.6 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- 3D model ----------------------------------------------------------- */
.el-model { margin: 0; border: 1px solid var(--line); background: var(--soft); }
.el-model__viewer {
  display: block;
  width: 100%;
  height: 420px;
  background: var(--soft);
  --poster-color: transparent;
}
.el-model figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font: 400 9px/1.6 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-model figcaption span:last-child { text-align: right; }
.el-model__download {
  display: block;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font: 500 9px/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.el-model__download:hover { color: var(--muted); }
.el-model-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.el-model-band__text { min-width: 0; }
.el-model-band__text p { max-width: none; }
.el-model-band--right .el-model { grid-column: 2; grid-row: 1; }
.el-model-band--right .el-model-band__text { grid-column: 1; grid-row: 1; }

/* --- embed / divider ---------------------------------------------------- */
.el-embed { margin: 0; border: 1px solid var(--line); }
.el-embed__media { background: var(--soft); }
.el-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.el-embed figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 11px;
  border-top: 1px solid var(--line);
  font: 400 9px/1.5 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.el-embed figcaption span:last-child { text-align: right; }
.el-embed-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 14px;
}
.el-embed-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.el-embed-band__text { min-width: 0; }
.el-embed-band__text p { max-width: none; }
.el-embed-band--right .el-embed { grid-column: 2; grid-row: 1; }
.el-embed-band--right .el-embed-band__text { grid-column: 1; grid-row: 1; }
.el-divider { margin: 0; border: 0; border-top: 1px solid var(--line); }
.el-divider--solid { border-top: 1px solid var(--line); }
.el-divider--thin { border-top: 1px solid var(--line-soft); }
.el-divider--dashed { border-top: 1px dashed var(--muted); }
.el-divider--dotted { border-top: 1px dotted var(--muted); }
.el-divider--bold { border-top: 2px solid var(--ink); }
.el-divider--double { border-top: 3px double var(--ink); }

/* --- footer ------------------------------------------------------------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 36px 0 48px;
  border-top: 1px solid var(--ink);
}
.social { display: flex; align-items: center; gap: 14px; }
.social a { display: grid; place-items: center; }
.social img { width: 15px; height: 15px; filter: grayscale(1); opacity: 0.55; transition: opacity 0.2s ease; }
.social a:hover img { opacity: 1; }
.credit {
  font: 400 9px/1.8 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.credit a { color: inherit; text-underline-offset: 3px; }
.credit a:hover { color: var(--ink); }

/* --- lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(10, 10, 10, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__figure img { max-width: min(92vw, 1200px); max-height: 78vh; object-fit: contain; }
.lightbox__figure figcaption {
  max-width: 70ch;
  text-align: center;
  font: 400 9px/1.7 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.lightbox__close {
  position: fixed;
  top: 12px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { color: rgba(255, 255, 255, 0.65); }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .el-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .el-cards--masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .masthead { grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
  .masthead__aside { width: auto; max-width: 340px; height: auto; }
  .masthead__image { flex: none; height: auto; aspect-ratio: 1 / 1; }
  .section-body { margin-top: 20px; }
  .section-lead { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
  .section-intro { margin-top: 12px; }
  .section > .flow { margin-top: 24px; }
  .section--flow .flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .section--flow .flow .flow__item--left,
  .section--flow .flow .flow__item--right { grid-column: 1; }
  .el-prose__cols { column-count: 1; }
  .section--text .el-prose { column-count: 1; }
  .el-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .el-cards { grid-template-columns: minmax(0, 1fr); }
  .el-cards--masonry { grid-template-columns: minmax(0, 1fr); }
  .el-figure-band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .el-figure-band--right .el-figure,
  .el-figure-band--right .el-figure-band__text { grid-column: 1; grid-row: auto; }
  .el-slideshow-band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .el-slideshow-band--right .el-slideshow,
  .el-slideshow-band--right .el-slideshow-band__text { grid-column: 1; grid-row: auto; }
  .el-model-band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .el-model-band--right .el-model,
  .el-model-band--right .el-model-band__text { grid-column: 1; grid-row: auto; }
  .el-embed-row { grid-template-columns: minmax(0, 1fr); }
  .el-embed-band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .el-embed-band--right .el-embed,
  .el-embed-band--right .el-embed-band__text { grid-column: 1; grid-row: auto; }
  .el-focus { grid-template-columns: minmax(0, 1fr); }
  .el-link-row { grid-template-columns: 26px minmax(0, 1fr) 16px; }
  .el-link-row__note { display: none; }
  .el-pub { grid-template-columns: 26px minmax(0, 1fr); }
  .el-pub--plain { grid-template-columns: minmax(0, 1fr); }
  .el-pub__year { display: none; }
  .el-pub__side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
  .el-pub--plain .el-pub__side { grid-column: 1; }
  .el-featured { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .el-xp__row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .el-xp__meta div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .el-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .el-gallery--masonry { column-count: 2; }
  .el-figure--right,
  .el-figure--left { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
  .credit { text-align: left; }
}

@media (max-width: 520px) {
  .el-gallery { grid-template-columns: minmax(0, 1fr); }
  .el-gallery--masonry { column-count: 1; }
  .el-note { padding: 16px 18px; }
  .el-slideshow__stage { aspect-ratio: 4 / 3; }
}
