/* LRAZ customisations, loaded after the shipped production stylesheet.
   Separate CSS preserves the original compiled assets and build pipeline. */
.counterflows-footer { width: 100%; }
.counterflows-panel { width: 100%; border-top: 1px solid var(--color-line); padding: 5rem 1.25rem; }
.counterflows-inner { max-width: 72rem; margin-inline: auto; text-align: center; }
.counterflows-eyebrow { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.counterflows-eyebrow > span { width: 2rem; height: 1px; background: currentColor; flex-shrink: 0; }
.counterflows-title { max-width: 42rem; margin: 1.5rem auto 0; font-size: clamp(1.875rem, 3.5vw, 2.5rem); line-height: 1.2; text-wrap: balance; color: var(--color-ink); }
.counterflows-lede { max-width: 36rem; margin: 1.75rem auto 0; font-size: 1.125rem; line-height: 1.75; color: var(--color-ink-3); }
.counterflows-form { display: flex; justify-content: center; margin-top: 2rem; }
.counterflows-legal { max-width: 72rem; margin-inline: auto; padding: 1.5rem 1.25rem; border-top: 1px solid var(--color-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .75rem; color: var(--color-ink-4); }
/* Preserve the intrinsic proportions of standalone editorial image cards.
   Gallery and hero crops retain their established layouts. */
.gh-content figure.kg-image-card img { height: auto; object-fit: contain; }
@media (max-width: 639px) {
 .counterflows-panel { padding-block: 3.5rem; }
 .counterflows-lede { font-size: 1rem; }
 .counterflows-form [data-part="hint"] { line-height: 1.6; }
}

/* Copyright stays centred independently of optional legal links. */
.counterflows-legal { flex-direction: column; justify-content: center; text-align: center; }
.counterflows-legal nav { justify-content: center; }
/* Use the configured dark logo when present; otherwise turn the monochrome
   wordmark white while preserving its alpha channel and proportions. */
.dark [data-region="site-header"] img[data-dark-logo-fallback] { filter: brightness(0) invert(1); opacity: 1; }

/* Project-page feature images retain the uploaded composition at every width.
   Project-list thumbnails and article feature images keep their own layouts. */
[data-project-page] [data-region="feature-image"] img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* Centre reassurance beneath each subscription bar. */
[data-component="subscribe-form"] [data-part="hint"] { text-align: center; margin-top: 1rem; font-size: .75rem; line-height: 1.6; }

/* Standard branded closing panel, shared by every page template. */
.brand-subscribe { background: #f2f0ee; color: #292827; width: 100%; max-width: none; padding: 1.5rem; }
.brand-subscribe .counterflows-inner { max-width: 46rem; }
.brand-subscribe-wordmark { position: relative; overflow: hidden; width: min(100%, 42rem); aspect-ratio: 1950 / 270; margin: 0 auto; }
.brand-subscribe-wordmark img { display: block; width: 100%; height: auto; }
.brand-subscribe .counterflows-lede { max-width: 40rem; margin-top: 1.75rem; font-size: 1rem; line-height: 1.7; color: #4f4d4a; }
.brand-subscribe .counterflows-form { margin-top: 1.75rem; }
.brand-subscribe [data-component="subscribe-form"] { max-width: 29rem; }
.brand-subscribe .form-fields { background: #fff; border: 1px solid #d7d9dd; border-radius: var(--lraz-signup-radius); padding: .25rem; gap: .25rem; flex-direction: row; align-items: stretch; }
.brand-subscribe .field { border: 0; border-radius: .3rem; min-width: 0; background: #fff; color: #292827; box-shadow: none; padding: .75rem; }
.brand-subscribe .btn-accent { border-radius: .3rem; background: #347f79; color: #fff; padding: .75rem 1.15rem; }
.brand-subscribe .btn-accent:hover { background: #286a65; }
.brand-subscribe [data-part="hint"] { color: #67635e; }
.brand-subscribe .form-success { color: #292827; }
@media(max-width: 639px) {
 .brand-subscribe { padding: 1rem; }
 .brand-subscribe .counterflows-inner { padding: 1.25rem 0; }
 .brand-subscribe .counterflows-lede { font-size: .9375rem; }
 .brand-subscribe .field { width: 0; }
 .brand-subscribe .btn-accent { padding-inline: .8rem; }
}

/* Preserve the original logo height; never compress marks to fit the row. */
.logos-marquee__track > figure.kg-image-card { flex: 0 0 auto; }

/* Individually sized original icons in a deterministic repeating composition.
   Each complete icon lives inside its own cell, including at viewport edges. */
.brand-subscribe-middle { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,46rem) minmax(0,1fr); gap: clamp(1rem,3vw,3rem); align-items: stretch; }
.brand-subscribe .counterflows-inner { width: 100%; padding-block: 3rem; align-self: center; }
.brand-pattern { display: grid; pointer-events: none; align-items: center; }
.brand-pattern--top, .brand-pattern--bottom { height: 8.5rem; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
.brand-pattern--left, .brand-pattern--right { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); grid-auto-rows: 12rem; align-content: center; }
.brand-pattern span { display: flex; align-items: center; justify-content: center; min-width: 0; height: 7rem; }
.brand-pattern span:nth-child(3n+1) { transform: translateY(-1.1rem); }
.brand-pattern span:nth-child(3n+2) { transform: translateY(1.1rem); }
.brand-pattern img { display: block; width: auto; height: auto; max-width: min(70%, 6.5rem); max-height: 4rem; object-fit: contain; }
.brand-pattern span[data-icon="1"] img, .brand-pattern span[data-icon="4"] img, .brand-pattern span[data-icon="11"] img { max-width: min(85%,8rem); }
@media(max-width: 1099px) {
 .brand-subscribe-middle { display: block; }
 .brand-pattern--left, .brand-pattern--right { display: none; }
 .brand-pattern--top, .brand-pattern--bottom { height: 6.5rem; }
 .brand-pattern img { max-height: 3rem; }
}

/* Keep the perimeter sparse and gently asymmetric, as in the cover artwork. */
.brand-pattern--left { padding-bottom: 4rem; }
.brand-pattern--right { padding-top: 5rem; }
.brand-pattern--bottom span:nth-child(odd) { transform: translateY(1rem); }
.brand-pattern--bottom span:nth-child(even) { transform: translateY(-1rem); }
@media(max-width: 639px) {
 .brand-subscribe .counterflows-inner { padding-block: 2rem; }
 .brand-pattern--top, .brand-pattern--bottom { height: 6rem; }
}

/* Intro reassurance follows the left edge of the email field. */
[data-variant="intro"] [data-component="subscribe-form"] [data-part="hint"] { text-align: left; margin-top: .65rem; font-size: .75rem; line-height: 1.5; }

/* Match the closing form's geometry while retaining the intro's theme colours. */
[data-variant="intro"] [data-component="subscribe-form"] { max-width: 29rem; }
[data-variant="intro"] [data-component="subscribe-form"] .form-fields { border: 1px solid var(--color-line); border-radius: var(--lraz-signup-radius); padding: .25rem; gap: .25rem; flex-direction: row; align-items: stretch; }
[data-variant="intro"] [data-component="subscribe-form"] .field { border: 0; border-radius: .3rem; min-width: 0; box-shadow: none; padding: .75rem; }
[data-variant="intro"] [data-component="subscribe-form"] .btn-accent { border-radius: .3rem; padding: .75rem 1.15rem; }
[data-variant="intro"] [data-component="subscribe-form"] [data-part="hint"] { text-align: center; margin-top: 1rem; font-size: .75rem; line-height: 1.6; }
@media(max-width: 639px) {
 [data-variant="intro"] [data-component="subscribe-form"] .field { width: 0; }
 [data-variant="intro"] [data-component="subscribe-form"] .btn-accent { padding-inline: .8rem; }
}

/* Keep the portrait intro's supporting copy and form on the same measure. */
[data-variant="intro"][data-layout^="split-"] .intro-body { width: 100%; max-width: 29rem; font-size: 1.125rem; line-height: 1.65; }
[data-variant="intro"][data-layout^="split-"] .intro-body > p { font-size: inherit; line-height: inherit; }
[data-variant="intro"][data-layout^="split-"] h1[data-part="title"] { text-wrap: balance; }

/* A light masthead matching the shared signup panel in either site scheme. */
[data-region="site-header"] {
 --color-paper: #f2f0ee; --color-surface: #f2f0ee; --color-surface-2: #e7e3de;
 --color-ink: #292827; --color-ink-2: #33332e; --color-ink-3: #4f4d4a; --color-ink-4: #67635e; --color-line: #d7d3ce;
 background: #f2f0ee; color: #292827;
}
.brand-subscribe .counterflows-lede p { margin: 0; }
.brand-subscribe .counterflows-lede p + p { margin-top: 1rem; }

/* The supplied black wordmark, including its central monogram. */
[data-region="site-header"] .masthead-wordmark { position: relative; display: block; overflow: hidden; width: 14rem; flex: 0 0 14rem; aspect-ratio: 1950 / 270; }
[data-region="site-header"] .masthead-wordmark img { display: block; width: 100%; height: auto; }
.header-subscription-actions { display: flex; align-items: center; gap: .25rem; }
.header-subscribe { padding: .55rem .9rem; font-size: .875rem; }

.footer-copyright-strip { background: #f2f0ee; color: #67635e; border-top: 1px solid #dedbd6; }
.footer-copyright-strip .counterflows-legal { padding: 1rem 1.25rem; margin: 0 auto; border: 0; color: inherit; text-align: center; justify-content: center; font-size: .75rem; }
.footer-copyright-strip .footer-copyright p { margin: 0; }
.footer-copyright-strip [data-component="legal-links"] { justify-content: center; }
[data-variant="intro"] [data-component="subscribe-form"] [data-part="hint"] { text-align: left; }
@media (max-width: 639px) {
 [data-region="masthead"] { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; padding: .75rem 1rem; }
 [data-region="site-header"] .masthead-wordmark { width: 11.5rem; max-width: 100%; min-width: 0; }
 .header-controls { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; gap: .4rem; }
 .header-controls #menu-toggle { position: absolute; right: 1rem; top: .5rem; }
 .header-subscription-actions { gap: .4rem; }
 .header-subscribe { padding: .4rem .85rem; font-size: .8125rem; min-height: 2rem; }
 .header-controls .icon-btn { width: 2rem; height: 2rem; padding: .35rem; }
 [data-region="masthead"] > [data-region="primary-nav"] { display: none; }
 .brand-subscribe { padding: 1.25rem; }
 .brand-subscribe .counterflows-inner { padding-block: 1.5rem; }
 .brand-subscribe .counterflows-lede { margin-top: 1.25rem; font-size: .9375rem; line-height: 1.6; }
 .brand-subscribe .counterflows-form { margin-top: 1.25rem; }
 .brand-pattern--top, .brand-pattern--bottom { height: 2.5rem; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; }
 .brand-pattern span:nth-child(n), .brand-pattern--bottom span:nth-child(n) { height: 2.5rem; transform: none; justify-content: flex-start; }
 .brand-pattern span:last-child { justify-content: flex-end; }
 .brand-pattern img { max-height: 2.25rem; max-width: 3.25rem; }
}

/* Shared rounded geometry and a compact four-corner closing invitation. */
:root { --lraz-signup-radius: .5rem; }
[data-component="subscribe-form"] .form-fields,
[data-variant="intro"] [data-component="subscribe-form"] .form-fields,
.brand-subscribe .form-fields { border-radius: var(--lraz-signup-radius); }
[data-component="subscribe-form"] .field,
[data-component="subscribe-form"] .btn-accent,
[data-variant="intro"] [data-component="subscribe-form"] .field,
[data-variant="intro"] [data-component="subscribe-form"] .btn-accent,
.brand-subscribe .field, .brand-subscribe .btn-accent { border-radius: .3rem; }
.brand-subscribe { padding: 1.25rem clamp(1.25rem,3vw,3rem); }
.brand-subscribe-middle { display: block; }
.brand-pattern--left, .brand-pattern--right { display: none; }
.brand-subscribe .counterflows-inner { max-width: 38rem; padding-block: 1rem; }
.brand-subscribe-wordmark { width: min(100%,30rem); }
.brand-subscribe .counterflows-lede { max-width: 36rem; margin-top: 1.25rem; line-height: 1.6; }
.brand-subscribe .counterflows-form { margin-top: 1.25rem; }
.brand-pattern--top, .brand-pattern--bottom { max-width: 66rem; margin-inline: auto; height: 2.5rem; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; }
.brand-pattern span:nth-child(n) { height: 2.5rem; transform: none; justify-content: flex-start; }
.brand-pattern span:last-child { justify-content: flex-end; }
.brand-pattern img { max-height: 2.25rem; max-width: 3.25rem; }
@media (max-width: 639px) {
 .brand-subscribe-wordmark { width: min(100%,21rem); }
 .brand-subscribe .counterflows-inner { padding-block: 1rem; }
}

/* Shared corner scale across About, Writing, Contact and article templates. */
:root { --lraz-card-radius: 1.5rem; --lraz-control-radius: 1.25rem; }
.rounded-xl, .rounded-2xl, .rounded-3xl { border-radius: var(--lraz-card-radius); }
.btn-accent, .btn-outline, .field, .field-block { border-radius: var(--lraz-control-radius); }
.gh-content .kg-image-card img, .gh-content .kg-gallery-image img { border-radius: var(--lraz-card-radius); }
/* Publication marks retain their original unrounded silhouettes. */
[data-variant="logos"] .gh-content.logos-body figure.kg-image-card img { border-radius: 0; }
@media (min-width: 1024px) {
 [data-variant="intro"][data-layout^="split-"] img[data-part="image"] { width: 87.5%; margin-inline: auto; }
}
.card-media, .toc-card, .nav-panel { border-radius: var(--lraz-card-radius); }
/* Archive select and contact sidebar complete the shared corner scale. */
.archive-year-label select { border-radius: var(--lraz-control-radius); }
.gh-content.contact-aside img,
.gh-content.contact-aside .kg-callout-card { border-radius: var(--lraz-card-radius); }

/* Compact mobile masthead; secondary utilities live in the menu. */
.header-utilities { display: flex; align-items: center; gap: .25rem; }
[data-mobile-utilities]:not(:empty) { border-top: 1px solid var(--color-line); margin-top: .75rem; padding-top: .75rem; }
[data-variant="intro"][data-layout^="split-"] img[data-part="image"] { border-radius: 9999px; }
.archive-control-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.archive-year-label { justify-content: flex-start; gap: .75rem; }
.archive-year-label select {
 appearance: none; -webkit-appearance: none; min-width: 8rem; height: 2.75rem;
 padding: .5rem 2.5rem .5rem 1rem; border-radius: var(--lraz-control-radius);
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23808080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat: no-repeat; background-position: right 1rem center;
}
.archive-tag-list { gap: .5rem; }
.archive-tag-list .pill { min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--lraz-control-radius); }
@media (max-width: 639px) {
 [data-region="masthead"] { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; padding: .75rem 1rem; }
 [data-region="site-header"] .masthead-wordmark { width: auto; flex: 1 1 auto; max-width: 11.5rem; min-width: 0; }
 .header-controls { display: flex; flex: 0 0 auto; gap: .4rem; }
 .header-controls #menu-toggle { position: static; width: 2rem; height: 2.5rem; }
 .header-subscribe { min-height: 2.5rem; padding: .5rem .75rem; }
 .header-controls > .header-utilities { display: none; }
 [data-mobile-utilities] .header-utilities { justify-content: flex-start; gap: .75rem; }
 .archive-control-heading { grid-template-columns: 1fr; gap: 1rem; }
 .archive-year-label { display: grid; grid-template-columns: auto minmax(0,1fr); width: 100%; gap: 1rem; }
 .archive-year-label select { width: 100%; min-width: 0; }
 .archive-filter-feedback p:not(:empty) { margin-top: .75rem; }
 [data-variant="intro"][data-layout^="split-"] { padding-top: 2rem; }
}

.brand-pattern--top, .brand-pattern--bottom {grid-template-columns:repeat(3,minmax(0,1fr));}
.brand-pattern span:nth-child(2) {justify-content:center;}
.brand-pattern span:nth-child(3) {justify-content:flex-end;}

/* Three marks on each side of the invitation. */
.brand-subscribe-middle { display:grid; grid-template-columns: minmax(2rem,1fr) minmax(0,38rem) minmax(2rem,1fr); align-items:stretch; gap:clamp(.5rem,2vw,2rem); }
.brand-pattern--left, .brand-pattern--right { display:flex; flex-direction:column; justify-content:space-between; padding:0; }
.brand-pattern--left {align-items:flex-start}
.brand-pattern--right {align-items:flex-end}
.brand-pattern img {max-width:100%;width:3rem;height:2.25rem;object-fit:contain}
@media(max-width:639px){
 .brand-subscribe {padding:1rem .625rem}
 .brand-subscribe-middle {grid-template-columns:minmax(0,1fr) minmax(0,12fr) minmax(0,1fr);gap:.4rem}
 .brand-pattern img {height:1.25rem}
 .brand-subscribe .counterflows-inner {min-width:0}
}

.footer-rss { display: inline-block; padding: .25rem .15rem; text-decoration: underline; text-underline-offset: .18em; }

[data-variant="intro"][data-layout^="split-"] img[data-part="image"] { aspect-ratio: 4 / 5; height: auto; }
.footer-rss { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; vertical-align: middle; }

.footer-copyright-strip .footer-copyright p { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .875rem; }
.gh-content.logos-body .logos-marquee__track { gap: clamp(1.25rem, 2.5vw, 2.25rem); }
@media (min-width: 640px) {
  .header-controls .header-utilities .icon-btn { width: 2.5rem; height: 2.5rem; }
  .header-controls .header-utilities svg { width: 1.25rem; height: 1.25rem; }
  .header-controls .header-subscribe { min-height: 2.5rem; padding: .45rem .9rem; line-height: 1.25; }
}
[data-region="post-body"].gh-content :is(p, li, blockquote, figcaption, td, th, h2, h3, h4) a:not([class*="kg-"], .btn-accent, .btn-outline, .heading-link, .heading-chip, .pill) {
  color: var(--color-accent-ink); font-weight: 400; text-decoration: underline; text-underline-offset: .18em;
}
[data-region="post-body"].gh-content :is(p, li, blockquote, figcaption) a :is(strong, b) { font-weight: inherit; }

.footer-copyright-strip .footer-copyright { width: 100%; }
.footer-copyright-strip .footer-copyright p { justify-content: space-between; }
[data-variant="logos"] .gh-content.logos-body figure.kg-image-card img { height: 1.5rem; width: auto; max-width: 9rem; object-fit: contain; }
.gh-content.logos-body .logos-marquee__track { column-gap: clamp(1.75rem, 3vw, 2.5rem); column-gap: round(clamp(1.75rem, 3vw, 2.5rem), 1px); }

/* Writing tags and year share a wrapping row in reading and tab order. */
[data-kind="writing"] .archive-tag-list { align-items: center; }
.archive-filter-tail {
  display: flex;
  flex: 1 0 auto;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.archive-filter-tail .archive-year-label { display: flex; width: auto; gap: .5rem; }
.archive-filter-tail select { width: 5.75rem; min-width: 0; background-position: right .65rem center; padding-inline: .75rem 1.65rem; }
@media (width < 40rem) {
  .archive-filter-tail { justify-content: flex-start; }
  .archive-filter-tail .archive-year-label { gap: .375rem; }
  .archive-filter-tail select { width: 4.5rem; padding-inline: .625rem 1.25rem; background-position: right .375rem center; }
  [data-kind="writing"] .archive-tag-list .pill { padding-inline: .625rem; }
}
.counterflows-footer { --footer-gutter: clamp(1rem, 4vw, 4rem); }
.counterflows-footer .brand-subscribe { padding-inline: var(--footer-gutter); }
.counterflows-footer .counterflows-legal[data-footer-bottom] { box-sizing: border-box; width: 100%; max-width: none; padding-inline: var(--footer-gutter); }
.counterflows-legal[data-footer-bottom] .footer-copyright p { width: 100%; }
.brand-pattern--right img { align-self: flex-end; }
.gh-content.logos-body .logos-marquee__track figure.kg-image-card {
  width: min(9rem, calc(1.5rem * var(--publication-aspect)));
  width: round(min(9rem, calc(1.5rem * var(--publication-aspect))), 1px);
}

/* Keep the split homepage portrait in the signup field's corner shape. */
.home-template .intro-portrait-frame {
  overflow: hidden;
  border-radius: var(--lraz-signup-radius);
}
.home-template [data-variant="intro"] .intro-portrait-frame img[data-part="image"] {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  object-position: center 40%;
}

/* Keep the heading, landscape portrait and subscription together on phones. */
@media (width < 48rem) {
  .home-template [data-variant="intro"][data-layout^="split-"] {
    padding-block: 2rem 2.75rem;
  }
  .home-template [data-layout^="split-"] > .grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1.25rem;
    max-width: 34rem;
    margin-inline: auto;
  }
  .home-template .intro-copy-column { display: contents; }
  .home-template .intro-copy-column > h1 {
    order: 0;
    margin-top: 0;
    font-size: clamp(2.5rem, 1.25rem + 6vw, 3.5rem);
    line-height: 1.08;
  }
  .home-template .intro-portrait-column {
    order: 1; grid-column: auto; grid-row: auto; max-width: none; width: 100%;
  }
  .home-template .intro-copy-column > .intro-body { order: 2; margin-top: 0; }
  .home-template .intro-copy-column > [data-component="intro-signup"] { order: 3; margin-top: 0; }
  .home-template [data-variant="intro"] .intro-portrait-frame img[data-part="image"] {
    display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover;
  }
}
.intro-portrait-frame picture { display: block; }

@media (width < 48rem) {
  .page-about .about-portrait-frame {
    overflow: hidden;
    border-radius: var(--radius-2xl, 1rem);
  }
  .page-about .about-portrait-frame > img {
    aspect-ratio: 5 / 3;
    border-radius: 0;
    transform: scale(1.45);
    transform-origin: 51% 48%;
    object-position: center 40%;
  }
}

/* When the columns sit alongside each other, the taller of the photograph
   and the padded copy sets the row height. Editing the copy preserves the
   small overhang above and below it. */
@media (min-width: 48rem) {
  .home-template .intro-portrait-column { align-self: stretch; display: flex; }
  .home-template .intro-portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
  }
  .home-template [data-variant="intro"] .intro-portrait-frame img[data-part="image"] {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .home-template .intro-copy-column { padding-block: 1.5rem; }
  .home-template .intro-copy-column > h1 {
    margin-block-start: 0;
    font-size: clamp(3.25rem, 2rem + 2.5vw, 4rem);
    line-height: 1.06;
  }
}
@media (min-width: 64rem) {
  .home-template .intro-portrait-frame { width: 87.5%; margin-inline: auto; }
}

/* Reserve one row while the homepage module starts. Other editor cards,
   reduced-motion grids and the no-script layout keep their normal flow. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-variant="logos"]:not([data-motion="static"]) .logos-body:has(> figure):not(:has(> :not(figure.kg-image-card))) {
    display: flex;
    align-items: center;
    overflow: clip;
    gap: clamp(1.75rem, 3vw, 2.5rem);
  }
  [data-variant="logos"] .logos-body > figure.kg-image-card { flex: none; }
}
.gh-content.logos-body .logos-marquee__track { will-change: transform; }
.gh-content.logos-body .logos-marquee__track > figure[data-logo-period-end] {
  margin-inline-end: var(--logo-mq-gap-adjust, 0px);
}


/* Display the lettering from Abril’s original transparent header at its native proportions. */
.series-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 2rem;
}
.series-heading [data-part="title"] {
  inline-size: min(100%, clamp(15.5rem, 24vw, 17rem));
}
.series-heading [data-part="lede"] {
  margin: 0;
  max-inline-size: 100%;
}
/* Keep the essay collection on the charcoal page colour in either mode. */
.series-panel {
  color-scheme: dark;
  background-color: var(--color-paper);
  color: var(--color-ink);
}
.series-logo, .series-lettering { display: block; }
.series-lettering { position: relative; overflow: hidden; }
.series-lettering { aspect-ratio: 726 / 133; }
.series-lettering img { position: absolute; width: 192.8375%; max-width: none; height: auto; left: -46.4187%; top: -124.0602%; }

.series-rows { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }

.series-panel .series-lettering img { filter: brightness(0) invert(.94); }

/* Heading artwork follows the right margin in the single-column layouts. */
.heading-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.heading-line > h1 { min-width: 0; overflow-wrap: anywhere; }
.heading-symbol {
  flex: none;
  width: var(--symbol-width);
  aspect-ratio: var(--symbol-ratio);
  background: center / contain no-repeat;
  pointer-events: none;
  transform: translateY(-.12em);
}
.heading-symbol--wave {
  --symbol-width: clamp(4.75rem, 3.875rem + 4.5vw, 7.25rem);
  --symbol-ratio: 1986 / 755;
  background-color: #567634;
  -webkit-mask: url("/assets/signup/lraz/theme/images/subscribe-icons/16.png") center / contain no-repeat;
  mask: url("/assets/signup/lraz/theme/images/subscribe-icons/16.png") center / contain no-repeat;
}
.dark .heading-symbol--wave { background-color: #9ac063; }
.heading-symbol--rings {
  --symbol-width: clamp(3.5rem, 3rem + 2.4vw, 4.5rem);
  --symbol-ratio: 1173 / 804;
  background-image: url("/assets/signup/lraz/theme/images/subscribe-icons/17.png");
}
.heading-symbol--envelope {
  --symbol-width: clamp(3.25rem, 2.75rem + 2.5vw, 4.25rem);
  --symbol-ratio: 1117 / 801;
  background-image: url("/assets/signup/lraz/theme/images/subscribe-icons/22.png");
}
/* The section and form share one centred measure and the same gutters. */
.contact-column { width: calc(100% - 2.5rem); max-width: 48.75rem; padding-bottom: 3rem; }
.contact-column textarea.field-block { min-height: 8rem; }
.contact-column textarea { display: block; }
.contact-message-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
}
.contact-location { margin-inline-start: auto; max-width: 100%; text-align: end; }
.contact-location > #where-i-am {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.gh-content.contact-aside.contact-location > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .125rem .4rem;
  margin: 0;
  font-size: .875rem;
}
.gh-content.contact-aside.contact-location > ul > li { margin: 0; padding: 0; }
.contact-location li + li::before { content: "·"; margin-inline-end: .4rem; }
@media (max-width: 22rem) {
  .gh-content.contact-aside.contact-location > ul { font-size: .8125rem; column-gap: .2rem; }
  .contact-location li + li::before { margin-inline-end: .2rem; }
}
.contact-location abbr { text-decoration: none; }
.contact-location > hr:last-child { display: none; }
@media (width >= 40rem) {
  .contact-column { width: calc(100% - 3rem); }
}
@media (width >= 64rem) {
  .contact-column .illustrated-heading { padding-block: 2.5rem 1.75rem; }
  .contact-column .heading-symbol--envelope { width: 4.6rem; }
}
@media (width < 40rem) {
  .illustrated-heading { padding-top: 2rem; }
  .heading-line > h1 { font-size: clamp(2.5rem, 10.5vw, 3rem); }
  [data-kind="writing"].archive-controls { margin-top: 1.5rem; }
  [data-region="projects-feed"] [data-component="project-card"] > a {
    column-gap: .875rem;
    row-gap: .5rem;
    padding-block: 1.25rem;
  }
  [data-region="projects-feed"] .project-copy { display: contents; }
  [data-region="projects-feed"] .project-name { grid-column: 1 / -1; grid-row: 1; }
  [data-region="projects-feed"] a:has([data-part="image"]) .project-name { grid-column: 1; }
  [data-region="projects-feed"] .project-media { display: none; }
  [data-region="projects-feed"] .project-media:has([data-part="image"]) {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }
  [data-region="projects-feed"] .project-media [data-part="image"] { width: clamp(4rem, 18vw, 5rem); border-radius: .875rem; }
  [data-region="projects-feed"] [data-part="excerpt"] { grid-row: 2; grid-column: 1 / -1; }
}
