/* ProknjižiMe.com — theme styles.
 * Part 1 = the static mockup's app.css (../proknjizime/, poster pass 2026-11-10) with the
 * tokens mapped onto the Global Settings palette. Part 2 (from "WordPress additions") = what
 * the mockup has no page for: page band, prose, blog archive, contact, 404, section contract. */

:root {
  --paper: var(--sf-color-paper, #ffffff);
  --band: var(--sf-color-band, #eef0ff);        /* pale blue panels */
  --ink: var(--sf-color-ink, #12143a);         /* deep navy for text and the footer */
  --electric: var(--sf-color-electric, #1f2bff);    /* the blue */
  --sky: var(--sf-color-sky, #0098e0);         /* logo hashtag + pen */
  --muted: var(--sf-color-muted, #5a5f7e);
  --rule: var(--sf-color-rule, #d9dcf2);
  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 76rem;
  --condensed: 'Archivo', 'Arial Narrow', sans-serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Above Full HD the whole layout scales with the viewport (everything is in rem) */
@media (min-width: 1921px) { html { font-size: clamp(16px, 0.8333vw, 32px); } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Display type: one condensed black face, uppercase, tight */
h1, h2, h3 {
  font-family: var(--condensed);
  font-variation-settings: 'wdth' 66, 'wght' 900;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0;
  margin: 0;
}
h2 { font-size: clamp(3rem, 7vw, 6rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

/* Buttons and links: pills, like the menu */
.button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 2rem; white-space: nowrap;
  background: var(--electric); color: #fff;
  border: 2px solid var(--electric); border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.button:hover { background: var(--ink); border-color: var(--ink); }
.button svg { transition: transform 0.2s; }
.button:hover svg { transform: translateX(4px); }
.button--light { background: #fff; color: var(--electric); border-color: #fff; transition: background-color 0.15s linear, border-color 0.15s linear, color 0s 0.087s; }
.button--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); transition: background-color 0.15s linear, border-color 0.15s linear, color 0s 0.065s; }
.kicker { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--electric); margin: 0 0 0.75rem; }

/* Header: text only. Transparent over the cover, a blue bar once scrolled past it */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  color: #fff; background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s, transform 0.3s;
}
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 5.25rem; transition: min-height 0.3s; }
.brand img { width: clamp(11rem, 18vw, 16.5rem); height: auto; filter: brightness(0) invert(1); transition: width 0.3s; }
.site-head.is-scrolled { background: #fff; color: var(--ink); box-shadow: 0 4px 18px rgba(18, 20, 58, 0.1); }
.site-head.is-fixed { position: fixed; }
.site-head.is-hidden { transform: translateY(-100%); box-shadow: none; }
.site-head.is-scrolled .brand img { filter: none; }
.site-head.is-scrolled .nav a.nav-cta { background: var(--electric); color: #fff; }
.site-head.is-scrolled .nav a.nav-cta:hover { background: var(--ink); }
.site-head.is-scrolled .head-row { min-height: 4.25rem; }
.site-head.is-scrolled .brand img { width: clamp(9rem, 14vw, 12rem); }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2rem); font-weight: 600; font-size: 0.98rem; }
.nav a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0; line-height: 1; opacity: 0.78; transition: opacity 0.2s; }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a.nav-cta { opacity: 1; margin-left: 0.4rem; padding: 0.9rem 1.5rem; background: #fff; color: var(--electric); border-radius: 999px; font-weight: 700; transition: background-color 0.15s linear, color 0s 0.087s; }
.nav a.nav-cta:hover { background: var(--ink); color: #fff; transition: background-color 0.15s linear, color 0s 0.065s; }
/* Menu button: three plain lines (as on the samostan theme), no ring */
.burger { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: inherit; padding: 0; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; cursor: pointer; }
.burger span:not(.sr-only) { display: block; width: 1.75rem; height: 2px; background: currentColor; }

/* Full-screen cover */
.cover {
  position: relative; height: 100svh; min-height: 38rem;
  background: var(--electric); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cover-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto minmax(12rem, 1fr);
  align-items: end; gap: 1rem 2.5rem;
  padding-top: 6.5rem; padding-bottom: 0.75rem;
}
.cover-title {
  font-variation-settings: 'wdth' 64, 'wght' 900;
  font-size: min(19.2vw, 24svh, calc((min(var(--maxw), 100vw - 2 * var(--gutter)) - 17rem) / 4.1));
  line-height: 0.82; letter-spacing: -0.01em;
  margin: 0 0 -0.06em -0.04em;
  display: flex; flex-direction: column;
}
.cover-title span { display: block; }
.cover-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 1.25rem; padding-bottom: 0.4rem; }
.cover-text { margin: 0; max-width: 22rem; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 600; line-height: 1.35; }
.cover-down { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border: 2.5px solid #fff; border-radius: 999px; color: #fff; transition: background-color 0.15s linear, color 0s 0.075s; }
.cover-down:hover { background: #fff; color: var(--electric); }
.waves { position: relative; height: 38svh; min-height: 14rem; z-index: 1; pointer-events: none; }
.waves svg, .stripes svg { width: 100%; height: 100%; display: block; }
[data-bands] path { shape-rendering: geometricPrecision; }

@media (prefers-reduced-motion: no-preference) {
  .cover-title span { animation: coverIn 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .cover-title span + span { animation-delay: 0.12s; }
  .cover-side { animation: rise 0.7s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .waves { animation: wavesIn 1.4s 0.2s ease-out both; }
}
@keyframes coverIn { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes wavesIn { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Latest essay: white panel, blue title, portrait on a blue block */
.latest { padding: clamp(3rem, 7vw, 6rem) 0; }
.latest-grid {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.latest-meta { padding-top: 0.5rem; border-top: 3px solid var(--electric); }
.latest-meta .kicker { margin-top: 0.75rem; }
.latest-meta time { display: block; margin: 0 0 1rem; }
.latest-meta time b, .entries time b { display: block; font-family: var(--condensed); font-variation-settings: 'wdth' 70, 'wght' 900; font-weight: 900; font-size: 3.6rem; line-height: 0.85; color: var(--electric); }
.latest-meta time span, .entries time span { display: block; font-weight: 700; font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; letter-spacing: 0.02em; }
.byline { font-size: 0.9rem; color: var(--muted); }
.byline b { color: var(--ink); font-size: 1rem; }
.essay-title { font-size: clamp(3.5rem, 8vw, 7.5rem); color: var(--electric); margin: -0.08em 0 0.3em -0.03em; }
.essay-title a:hover { color: var(--ink); }
.lede { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.3; margin-bottom: 1.1rem; }
.essay p { max-width: 36rem; }
.essay .more { margin-top: 1.75rem; }
.portrait { margin: 0.5rem 0 0 0; position: relative; padding: 0 1rem 0 0; }
.portrait::before { content: ''; position: absolute; inset: 1.25rem 0 0 1.25rem; background: var(--electric); }
.portrait img { position: relative; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.portrait figcaption { position: relative; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.35; padding: 1rem 1rem 1.25rem 2.5rem; }

/* Posts: the blue block */
.journal { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--electric); color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 0.25rem; border-bottom: 2px solid currentColor; }
.sec-head h2 { margin-bottom: -0.08em; }
.entries { list-style: none; margin: 0; padding: 0; }
.entries li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  padding: 1.6rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.entries time { padding-top: 0.2rem; }
.entries time b { color: #fff; }
.entries time span { color: rgba(255, 255, 255, 0.7); }
.entries h3 { margin-bottom: 0.5rem; line-height: 1.22; }
.entries h3 a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.entries li:hover h3 a { background-size: 100% 0.08em; }
.entries p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; max-width: 44rem; }
.go { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 2px solid #fff; border-radius: 999px; color: #fff; margin-top: 0.25rem; transition: background-color 0.15s linear, color 0s 0.075s; }
.entries li:hover .go, .go:hover { background: #fff; color: var(--electric); }
.journal-more { margin: 2.5rem 0 0; padding-left: calc(9rem + clamp(1.5rem, 4vw, 3.5rem)); }

/* Author: white, big name, photo on a blue block */
.author { padding: clamp(3rem, 7vw, 6rem) 0; }
.author-grid { display: grid; grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.author-photo { margin: 0; position: relative; padding: 1.25rem 0 0 1.25rem; }
.author-photo::before { content: ''; position: absolute; inset: 0 1.25rem 1.25rem 0; background: var(--electric); }
.author-photo img { position: relative; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 20%; }
.author-text h2 { color: var(--electric); margin: -0.08em 0 1.25rem -0.03em; }
.author-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.45; max-width: 40rem; }
/* Quote: pale panel, the opening and closing marks set large and hanging over the
   panel's top and bottom edges (render.php drops the typed marks so they are not shown twice) */
.author-text blockquote { position: relative; margin: 3rem 0 3.25rem; padding: 2.6rem 1.75rem 2.6rem; background: var(--band); }
.author-text blockquote::before, .author-text blockquote::after { position: absolute; font-family: var(--condensed); font-variation-settings: 'wdth' 76, 'wght' 800; font-weight: 800; font-size: 7.5rem; line-height: 1; color: var(--electric); pointer-events: none; }
.author-text blockquote::before { content: '\201C'; top: -0.33em; left: 1.5rem; }
.author-text blockquote::after { content: '\201D'; bottom: -0.74em; right: 1.5rem; }
.actions { display: flex; align-items: center; gap: 0.9rem; margin: 1.5rem 0 0; }

/* Press: pale blue panel, headlines in the condensed face */
.press { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--band); }
.press .sec-head { border-color: var(--ink); }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; margin-top: 0.5rem; }
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid rgba(18, 20, 58, 0.18); }
.press-list a { font-family: var(--condensed); font-variation-settings: 'wdth' 76, 'wght' 800; font-weight: 800; font-size: 1.35rem; line-height: 1.1; transition: color 0.2s; }
.press-list a::after { content: ''; position: absolute; inset: 0; }
.press-list li:hover a { color: var(--electric); }
.press-list span { font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.7rem; border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap; transition: background-color 0.2s linear, border-color 0.2s linear, color 0s 0.064s; }
.press-list li:hover span { background: var(--electric); border-color: var(--electric); color: #fff; transition: background-color 0.2s linear, border-color 0.2s linear, color 0s 0.136s; }
.press-photo { margin: 0.25rem 0 0; position: relative; padding: 0 1.25rem 1.25rem 0; }
.press-photo::before { content: ''; position: absolute; inset: 1.25rem 0 0 1.25rem; background: var(--electric); }
.press-photo img { position: relative; }

/* Footer: the stripes again, then the wordmark as big as the page */
.site-foot { background: var(--electric); color: #fff; padding-bottom: 2rem; }
.stripes { height: clamp(8rem, 16vw, 15rem); overflow: hidden; }
.foot-mark {
  font-family: var(--condensed); font-variation-settings: 'wdth' 64, 'wght' 900; font-weight: 900;
  text-transform: uppercase; line-height: 0.8; letter-spacing: -0.01em;
  white-space: nowrap; margin: clamp(1.5rem, 4vw, 3rem) 0 0 -0.03em;
}
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start; margin-top: clamp(1.5rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 2px solid rgba(255, 255, 255, 0.6); }
.foot-tag { margin: 0; max-width: 24rem; font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; line-height: 1.3; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem 1.75rem; padding-top: 0.35rem; }
.foot-nav a { font-weight: 700; font-size: 1.1rem; opacity: 0.85; transition: opacity 0.2s; }
.foot-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.foot-base { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2rem; align-items: center; margin-top: clamp(2rem, 5vw, 4rem); }
.foot-base .eu { background: #fff; padding: 0.4rem 0.6rem; border-radius: 0.5rem; width: 10.5rem; }
.foot-base .copy { margin: 0; font-weight: 600; }
.foot-base .credit { margin: 0; font-size: 0.9rem; opacity: 0.8; text-align: right; }
.foot-base .credit a { font-weight: 700; display: inline-flex; align-items: center; gap: 0.3rem; vertical-align: baseline; }
.foot-base .credit img { width: 0.85em; height: 0.85em; }
.foot-base .credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1100px) {
  .latest-grid { grid-template-columns: 8rem minmax(0, 1fr) minmax(13rem, 17rem); }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0.25rem; background: var(--electric); padding: 0.5rem var(--gutter) 1.25rem; font-size: 1.15rem; box-shadow: 0 20px 30px rgba(18, 20, 58, 0.2); }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; }
  .nav a.nav-cta { margin: 0.5rem 0 0; padding: 0.9rem 1.5rem; }
  body.nav-open .site-head { background: var(--electric); color: #fff; transform: none; }
  body.nav-open .site-head .brand img { filter: brightness(0) invert(1); }
  body.nav-open .site-head .nav a.nav-cta { background: #fff; color: var(--electric); }
  .latest-grid { grid-template-columns: 8rem minmax(0, 1fr); }
  .portrait { grid-column: 2; max-width: 22rem; margin-top: 1.5rem; }
  .portrait img { aspect-ratio: 5 / 4; }
  .author-grid, .press-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 24rem; }
  .press-photo { max-width: 28rem; }
  .foot-row { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .cover { min-height: 34rem; }
  .cover-grid { grid-template-columns: 1fr; gap: 1rem; padding-top: 5.5rem; }
  .cover-title { font-size: min(21vw, 15svh); }
  .cover-side { align-items: flex-start; text-align: left; gap: 1rem; }
  .waves { height: 32svh; min-height: 11rem; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 1.25rem; border-top: 0; padding-top: 0; }
  .latest-meta .kicker { width: 100%; margin: 0; }
  .latest-meta time { margin: 0; }
  .latest-meta time b { font-size: 2.6rem; }
  .byline { margin: 0 0 0.35rem; }
  .portrait { grid-column: 1; max-width: none; }
  .entries li { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.25rem 1rem; }
  .entries time b { font-size: 2.4rem; }
  .entries .go { grid-column: 2; }
  .journal-more { padding-left: 0; }
  .press-list li { grid-template-columns: 1fr; gap: 0.5rem; }
  .press-list span { justify-self: start; }
  .foot-base { grid-template-columns: 1fr; }
  .foot-base .credit { text-align: left; }
}


/* ══════════════════════════════════════════════
 *  WordPress additions
 * ══════════════════════════════════════════════ */
:root { --section: clamp(3rem, 7vw, 6rem); --wrap: var(--maxw); }
body.admin-bar .site-head.is-fixed { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-head.is-fixed { top: 46px; } }
.nav a[aria-current="page"] { opacity: 1; }

/* Page band: the blue opener of every sub-page and post (the header sits over it) */
.page-band { position: relative; background: var(--electric); color: #fff; padding: clamp(8rem, 14vw, 11rem) 0 clamp(2rem, 4vw, 3.25rem); overflow: hidden; }
.page-band .kicker { color: #fff; opacity: 0.85; margin-bottom: 1rem; }
.page-band .kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-band h1 { font-variation-settings: 'wdth' 64, 'wght' 900; font-size: clamp(2.9rem, 8.4vw, 7.5rem); line-height: 0.88; margin: 0 0 -0.04em -0.03em; max-width: 18ch; overflow-wrap: break-word; text-wrap: balance; }
.page-band--post h1 { font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: 0.95; max-width: 24ch; }
.page-band .lead { margin-top: 1.5rem; max-width: 40rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.4; }
.page-band .lead p:last-child { margin-bottom: 0; }
.page-band--center { text-align: center; }
.page-band--center h1, .page-band--center .lead { margin-inline: auto; }
.band-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; margin-top: 1.75rem; padding-top: 1.1rem; border-top: 2px solid rgba(255, 255, 255, 0.6); font-weight: 700; }
.band-meta time { font-family: var(--condensed); font-variation-settings: 'wdth' 70, 'wght' 900; font-size: 1.6rem; line-height: 1; letter-spacing: 0.01em; }
.band-meta .cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.band-meta .cats a { font-size: 0.8rem; padding: 0.3rem 0.75rem; border: 2px solid #fff; border-radius: 999px; transition: background-color 0.15s linear, color 0s 0.075s; }
.band-meta .cats a:hover { background: #fff; color: var(--electric); }

/* Prose: one readable column */
.section--prose > .sf-inner > .prose { max-width: 44rem; }
.section--prose.is-center > .sf-inner > .prose { margin-inline: auto; }
.prose { font-size: 1.125rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.25rem; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { line-height: 1.05; margin: 2.25rem 0 0.9rem; color: var(--electric); font-family: var(--condensed); font-variation-settings: 'wdth' 66, 'wght' 900; font-weight: 900; text-transform: uppercase; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.prose h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h4, .prose h5, .prose h6 { font-size: 1.3rem; }
.prose a { color: var(--electric); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--electric); font-weight: 700; }
.prose blockquote { margin: 1.75rem 0; padding: 1.5rem 1.75rem; background: var(--band); border-left: 6px solid var(--electric); font-weight: 600; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { height: auto; }
.prose figure { margin: 2rem 0; }
.prose figure.lead-photo { position: relative; padding: 0 1.25rem 1.25rem 0; margin: 0 0 2.5rem; }
.prose figure.lead-photo::before { content: ''; position: absolute; inset: 1.25rem 0 0 1.25rem; background: var(--electric); }
.prose figure.lead-photo img { position: relative; width: 100%; }
.prose figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.prose .alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose hr { border: 0; border-top: 2px solid var(--rule); margin: 2rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.98rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.prose .table-scroll { overflow-x: auto; }
.prose pre { white-space: pre-wrap; background: var(--band); padding: 1rem 1.25rem; }
.prose video, .prose iframe { max-width: 100%; }
.sf-embed { position: relative; aspect-ratio: 16 / 9; margin: 2rem 0; }
.sf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sec-head--page { margin-bottom: 2rem; }
.sec-head--page h2 { color: var(--electric); }

/* Post foot: back to the archive, previous / next */
.post-foot { border-top: 2px solid var(--ink); }
.post-foot .sf-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.post-foot a.pn { display: block; }
.post-foot a.pn span { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 0.4rem; }
.post-foot a.pn b { font-family: var(--condensed); font-variation-settings: 'wdth' 66, 'wght' 900; font-weight: 900; text-transform: uppercase; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.12; transition: color 0.2s; }
.post-foot a.pn:hover b { color: var(--electric); }
.post-foot a.pn--next { text-align: right; grid-column: 2; }
.post-foot .all { grid-column: 1 / -1; margin: 0.5rem 0 0; }

/* Blog archive on white: the journal list in ink */
.entries--paper li { border-bottom-color: var(--rule); }
.entries--paper time b { color: var(--electric); }
.entries--paper time span { color: var(--muted); }
.entries--paper p { color: var(--muted); }
.entries--paper h3 a { color: var(--ink); }
.entries--paper .go { border-color: var(--electric); color: var(--electric); }
.entries--paper li:hover .go, .entries--paper .go:hover { background: var(--electric); color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.5rem; }
.pills a { font-weight: 700; font-size: 0.95rem; padding: 0.55rem 1.25rem; border: 2px solid var(--electric); border-radius: 999px; color: var(--electric); transition: background-color 0.15s linear, color 0s 0.075s; }
.pills a:hover, .pills a.is-active { background: var(--electric); color: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 0.75rem; border: 2px solid var(--electric); border-radius: 999px; font-weight: 700; color: var(--electric); transition: background-color 0.15s linear, color 0s 0.075s; }
.pager a.page-numbers:hover, .pager .page-numbers.current { background: var(--electric); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; min-width: 1.5rem; padding: 0; }
.list-empty { font-weight: 600; color: var(--muted); }

/* Press as a full page list (no photo) */
.press-grid--list { grid-template-columns: 1fr; }
.press--paper { background: var(--paper); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 3vw, 2.5rem); max-width: 46rem; margin-inline: auto; }
.contact-info { text-align: center; }
.contact-info h2 { color: var(--electric); margin: -0.08em 0 0; font-size: clamp(2.4rem, 5vw, 4.25rem); }
.contact-text { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 600; line-height: 1.45; max-width: 30rem; margin: 1.25rem auto 0; }
.contact-text a { color: var(--electric); text-decoration: underline; text-underline-offset: 3px; }
.contact-form { background: var(--band); padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact-form .wpcf7 form { display: grid; gap: 1rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-weight: 700; font-size: 0.9rem; }
.contact-form label > span:first-child { display: block; margin-bottom: 0.35rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea { width: 100%; font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid var(--rule); border-radius: 0; padding: 0.8rem 0.95rem; transition: border-color 0.2s; }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--electric); }
.contact-form .wpcf7-acceptance { font-weight: 500; font-size: 0.9rem; }
.contact-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.contact-form .wpcf7-acceptance label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.contact-form .wpcf7-acceptance a { color: var(--electric); text-decoration: underline; }
.contact-form .wpcf7-spinner { display: none; }
.contact-form .wpcf7-turnstile { margin-bottom: 18px; }
.contact-form .wpcf7-not-valid-tip { font-size: 0.85rem; font-weight: 600; color: #c8102e; margin-top: 0.3rem; }
.contact-form .wpcf7 form .wpcf7-response-output { margin: 0; padding: 0.85rem 1rem; border: 2px solid var(--electric); font-weight: 600; }
.contact-form .wpcf7 form.invalid .wpcf7-response-output, .contact-form .wpcf7 form.failed .wpcf7-response-output { border-color: #c8102e; }
.contact-form p { margin: 0; }

/* Newsletter sign-up (Mailchimp form) */
.signup { background: var(--band); padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 6px solid var(--electric); max-width: 44rem; }
.signup form { display: grid; gap: 1rem; }
.signup .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signup label { display: block; font-weight: 700; font-size: 0.9rem; }
.signup label > span { display: block; margin-bottom: 0.35rem; }
.signup input[type="text"], .signup input[type="email"] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid var(--rule); border-radius: 0; padding: 0.8rem 0.95rem; }
.signup input:focus { outline: 0; border-color: var(--electric); }
.signup .consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; }
.signup .small { font-size: 0.9rem; color: var(--muted); }
.signup .small p { margin: 0 0 0.6rem; }
.signup .small a { color: var(--electric); text-decoration: underline; }
.signup .hp { position: absolute; left: -5000px; }
/* Checkboxes of both forms: a square box in the form's own style, the tick drawn in CSS */
.contact-form .wpcf7-acceptance input[type="checkbox"], .signup .consent input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 1.4rem; height: 1.4rem; margin: 0.05rem 0 0; background: #fff; border: 2px solid var(--rule); border-radius: 0; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.contact-form .wpcf7-acceptance input[type="checkbox"]::after, .signup .consent input[type="checkbox"]::after { content: ''; position: absolute; left: 50%; top: 45%; width: 0.36rem; height: 0.7rem; border: solid #fff; border-width: 0 0.16rem 0.16rem 0; transform: translate(-50%, -50%) rotate(45deg) scale(0); transition: transform 0.15s; }
.contact-form .wpcf7-acceptance input[type="checkbox"]:hover, .signup .consent input[type="checkbox"]:hover { border-color: var(--electric); }
.contact-form .wpcf7-acceptance input[type="checkbox"]:checked, .signup .consent input[type="checkbox"]:checked { background: var(--electric); border-color: var(--electric); }
.contact-form .wpcf7-acceptance input[type="checkbox"]:checked::after, .signup .consent input[type="checkbox"]:checked::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.contact-form .wpcf7-acceptance input[type="checkbox"]:focus-visible, .signup .consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }
.contact-form .wpcf7-acceptance label, .signup .consent { cursor: pointer; }

/* 404 */
.page-band--404 { min-height: 70svh; display: flex; align-items: flex-end; }
.page-band--404 .actions { margin-top: 2rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .contact-form .form-row, .signup .form-row { grid-template-columns: 1fr; }
  .post-foot .sf-inner { grid-template-columns: 1fr; }
  .post-foot a.pn--next { grid-column: 1; text-align: left; }
  .band-meta .cats { margin-left: 0; width: 100%; }
  .prose { font-size: 1.0625rem; }
  .prose .alignleft, .prose .alignright { float: none; margin: 1.5rem 0; max-width: 100%; }
}

/* Section contract: on contract blocks `.sf-inner` carries the width and the padding */
.author { padding: 0; }
.site-head--solid { position: sticky; }
.author-grid--text { grid-template-columns: 1fr; }
.author-lead p:last-child { margin-bottom: 0; }
.press-list b { font-family: var(--condensed); font-variation-settings: 'wdth' 76, 'wght' 800; font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.prose p > img, .prose p > a > img { margin-block: 0.75rem; }
