/* Redukcja Szumu — blog styles */

:root {
  --bg: #ebeded;
  --bg-alt: #e2e5e4;
  --card: #ffffff;
  --text: #14171a;
  --muted: #4a524f;
  --faint: #6e7572;
  --border: rgba(20, 23, 26, 0.14);
  --rule: rgba(20, 23, 26, 0.22);
  --accent: #1f3a72;
  --accent-soft: rgba(31, 58, 114, 0.10);
  --accent-strong: #142a55;
  --img-bg: #dde1e0;
  --img-stripe: rgba(0, 0, 0, 0.055);

  --col: 640px;
}

[data-theme="dark"] {
  --bg: #14181b;
  --bg-alt: #1c2126;
  --card: #1c2024;
  --text: #ebe7dd;
  --muted: #a5aba6;
  --faint: #7d8580;
  --border: rgba(235, 231, 221, 0.14);
  --rule: rgba(235, 231, 221, 0.22);
  --accent: #9aaecf;
  --accent-soft: rgba(154, 174, 207, 0.14);
  --accent-strong: #c1d0e8;
  --img-bg: #23272c;
  --img-stripe: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern', 'liga';
  letter-spacing: 0.005em;
}

a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size .15s ease;
}
a:hover { background-size: 100% 2px; }

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

/* ------- typography helpers ------- */
.rs-serif      { font-family: 'Newsreader', 'Source Serif 4', Georgia, serif; }
.rs-mono       { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }
.rs-italic     { font-style: italic; }
.rs-meta {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rs-meta-lc {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-transform: none;
}

/* ------- masthead ------- */
.rs-page {
  padding: 0 64px 80px;
  max-width: 860px;
  margin: 0 auto;
}
.rs-mast {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
  /* full-bleed background while keeping content within the page column */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 22px calc(50vw - 50%) 20px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    padding .22s ease,
    background .22s ease,
    backdrop-filter .22s ease,
    -webkit-backdrop-filter .22s ease,
    border-color .22s ease;
}
body.is-scrolled .rs-mast {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(235, 237, 237, 0.86);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border-bottom-color: var(--rule);
}
[data-theme="dark"] body.is-scrolled .rs-mast {
  background: rgba(20, 24, 27, 0.86);
}
/* keep the initial separator line below the masthead so the layout doesn't shift */
.rs-mast::after {
  content: '';
  position: absolute;
  left: calc(50vw - 50%);
  right: calc(50vw - 50%);
  bottom: 0;
  height: 1px;
  background: var(--rule);
  opacity: 1;
  transition: opacity .2s ease;
  pointer-events: none;
}
body.is-scrolled .rs-mast::after { opacity: 0; }
.rs-mast-title {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.018em;
  line-height: 1.02;
  font-variation-settings: "opsz" 36;
  color: var(--text);
  transition: font-size .22s ease, line-height .22s ease;
}
body.is-scrolled .rs-mast-title { font-size: 20px; line-height: 1; }
.rs-mast-title a {
  color: inherit;
  background: none;
  padding: 0;
}
.rs-mast-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.rs-mast-motto {
  font-family: 'Newsreader', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 400;
  max-height: 30px;
  overflow: hidden;
  transition: opacity .15s ease, max-height .22s ease, margin-top .22s ease;
}
body.is-scrolled .rs-mast-motto {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
}
.rs-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.rs-nav a {
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: none;
  padding: 0;
}
.rs-nav a:hover { color: var(--accent); }

/* ------- footer ------- */
.rs-foot {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}
.rs-foot a {
  color: var(--faint);
  background: none;
  padding: 0;
}
.rs-foot a:hover { color: var(--accent); }

/* ------- image placeholder ------- */
.rs-img {
  background:
    repeating-linear-gradient(135deg, var(--img-stripe) 0 1px, transparent 1px 14px),
    var(--img-bg);
  display: grid;
  place-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 1px;
  overflow: hidden;
  width: 100%;
}
.rs-img.has-photo {
  background: var(--img-bg);
}
.rs-img.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rs-img span {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 1px;
}

/* ------- tags ------- */
.rs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: 500;
}
.rs-tag::before { content: '#'; opacity: 0.55; margin-right: 1px; }
.rs-tag:hover { background: var(--accent); color: var(--bg); }

/* ------- hero intro (homepage) ------- */
.rs-hero-intro {
  display: block;
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--rule);
}
.rs-hero-image {
  position: relative;
  margin: 0;
  border-radius: 1px;
  overflow: hidden;
  background: var(--img-bg);
  isolation: isolate;
}
.rs-hero-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}
.rs-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,23,26,0.50) 0%, rgba(20,23,26,0.05) 28%, rgba(20,23,26,0.0) 50%, rgba(20,23,26,0.15) 72%, rgba(20,23,26,0.72) 100%);
  z-index: 1;
  pointer-events: none;
}
.rs-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 20% 100%, rgba(20,23,26,0.35) 0%, rgba(20,23,26,0) 60%);
  z-index: 1;
  pointer-events: none;
}

.rs-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 44px 40px;
  color: #f4f1ea;
}

.rs-hero-overlay .rs-hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: #f4f1ea;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  margin: 0;
  padding: 0;
}
.rs-hero-overlay .rs-hero-greeting::before { content: none; }
.rs-hero-overlay .rs-hero-greeting-mark {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #f4f1ea;
  background: rgba(244, 241, 234, 0.14);
  border: 1px solid rgba(244, 241, 234, 0.32);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rs-hero-overlay .rs-hero-headline {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 48;
  margin: 0;
  max-width: 22ch;
  color: #f7f3ea;
  text-shadow: 0 2px 18px rgba(0,0,0,0.32), 0 1px 3px rgba(0,0,0,0.4);
}
.rs-hero-overlay .rs-hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: #d8c4a0;            /* warm sand accent against the forest */
  position: relative;
  white-space: nowrap;
}
.rs-hero-overlay .rs-hero-headline em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: rgba(216, 196, 160, 0.5);
}

/* text continuing under the photo */
.rs-hero-text {
  display: grid;
  gap: 48px;
  align-items: end;
  padding: 30px 28px 8px;
  position: relative;
}
.rs-hero-text::before {
  /* small editorial mark linking image and prose */
  content: '';
  position: absolute;
  top: -1px;
  left: 28px;
  width: 38px;
  height: 1px;
  background: var(--accent);
}
.rs-hero-lead {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  max-width: 38ch;
  font-style: italic;
  font-weight: 400;
}
.rs-hero-lead em {
  color: var(--accent);
  font-weight: 500;
}
.rs-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  justify-self: start;
}
.rs-hero-tagline {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--faint);
  letter-spacing: 0.01em;
}
.rs-hero-greeting {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
  position: relative;
  padding-left: 38px;
}
.rs-hero-greeting::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.rs-hero-headline {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-variation-settings: "opsz" 44;
  color: var(--text);
  max-width: 22ch;
}
.rs-hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.rs-hero-lead {
  font-family: 'Newsreader', serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 56ch;
  font-style: italic;
  font-weight: 400;
}
.rs-hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.rs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 11px 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: border-color .15s, transform .15s, background .15s;
}
.rs-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.rs-cta span[aria-hidden] {
  transition: transform .2s ease;
}
.rs-cta:hover span[aria-hidden] {
  transform: translateX(3px);
}
.rs-hero-tagline {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: 'Newsreader', serif;
  font-size: 14px;
  color: var(--faint);
}
@media (max-width: 720px) {
  .rs-hero-intro { padding: 20px 0 8px; }
  .rs-hero-image img { aspect-ratio: 3 / 4; }
  .rs-hero-overlay { padding: 22px 22px; }
  .rs-hero-overlay .rs-hero-headline { font-size: clamp(22px, 7.2vw, 40px); max-width: 16ch; }
  .rs-hero-overlay .rs-hero-greeting-mark { padding: 3px 8px; font-size: 10px; }
  .rs-hero-text {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0 0;
  }
  .rs-hero-text::before { left: 0; }
  .rs-hero-lead { font-size: 17px; }
}

/* ------- entry list (homepage) ------- */
.rs-list { display: flex; flex-direction: column; }
.rs-entry {
  display: grid;
  grid-template-columns: 96px 1fr 180px;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.rs-entry-thumb {
  display: block;
  background: none !important;
  padding: 0 !important;
}
.rs-entry-thumb .rs-img { aspect-ratio: 4 / 3; }
.rs-entry:last-child { border-bottom: none; }
.rs-entry-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  padding-top: 8px;
  font-weight: 500;
}
.rs-entry-date small {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}
.rs-entry-title {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.16;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 24;
  color: var(--text);
  margin: 0 0 10px;
}
.rs-entry-title a {
  color: inherit;
  background: none;
  padding: 0;
}
.rs-entry-title a:hover { color: var(--accent); }
.rs-entry-lead {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 56ch;
}

.rs-featured {
  display: block;
  padding: 44px 0 48px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.rs-featured::before {
  content: 'OSTATNI WPIS';
  position: absolute;
  top: 26px; left: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 2px;
}
.rs-featured .rs-hero { margin: 38px 0 28px; display: block; }
.rs-featured .rs-hero .rs-img { aspect-ratio: 21 / 9; }
.rs-featured .rs-featured-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rs-featured .rs-entry-title {
  font-size: 44px;
  line-height: 1.04;
  font-variation-settings: "opsz" 44;
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.rs-featured .rs-entry-lead {
  font-size: 18.5px;
  max-width: 62ch;
  margin-bottom: 18px;
  color: var(--text);
}

/* section heading */
.rs-section-h {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 18px;
}
.rs-section-h::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--accent);
}
.rs-section-h h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}
.rs-section-h .rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* category filter chips */
.rs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.rs-filter a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}
.rs-filter a:hover { color: var(--accent); border-color: var(--accent); }
.rs-filter a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* gallery preview grid */
.rs-gal-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.rs-gal-mini a {
  background: none;
  padding: 0;
  display: block;
  color: var(--text);
}
.rs-gal-mini .rs-img { aspect-ratio: 4/3; }
.rs-gal-mini .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.rs-gal-mini .label b {
  color: var(--text);
  font-weight: 500;
  display: block;
  font-family: 'Newsreader', serif;
  font-size: 14px;
  letter-spacing: 0;
  margin-top: 2px;
}

/* ------- single post ------- */
.rs-post {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 32px 80px;
}
.rs-post-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 64px;
}
.rs-back {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 56px;
  display: inline-block;
  background: none;
  padding: 0;
  letter-spacing: 0.04em;
}
.rs-back:hover { color: var(--accent); }

.rs-post-head { margin: 40px 0 36px; }
.rs-post-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  flex-wrap: wrap;
}
.rs-post-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 48;
  color: var(--text);
}
.rs-post-lead {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.42;
  color: var(--text);
  opacity: 0.78;
  margin: 0;
}
.rs-post-hero { margin: 36px 0 8px; }
.rs-post-hero .rs-img { aspect-ratio: 21 / 9; }
.rs-post-hero figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.rs-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 36px 0;
}
.rs-rule.ornate {
  position: relative;
  height: 12px;
  border: none;
  margin: 48px 0;
}
.rs-rule.ornate::before {
  content: '✦';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--faint);
  font-size: 12px;
}

.rs-body p { margin: 0 0 1.2em; }
.rs-body p:first-of-type::first-letter {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 5.2em;
  line-height: 0.84;
  float: left;
  padding: 8px 12px 0 0;
  color: var(--accent);
  font-variation-settings: "opsz" 72;
}
.rs-body h2 {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.22;
  margin: 2em 0 0.6em;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 28;
}
.rs-body h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2em 0 0.6em;
  font-weight: 500;
}
.rs-body blockquote {
  margin: 2em -24px;
  padding: 24px 28px 24px 32px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-style: italic;
  font-family: 'Newsreader', serif;
  font-size: 21px;
  line-height: 1.42;
  color: var(--text);
}
.rs-body blockquote p { margin: 0 0 .4em; }
.rs-body blockquote p:last-child { margin: 0; }
.rs-body blockquote footer {
  font-style: normal;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 14px;
  font-weight: 500;
}
.rs-body ul, .rs-body ol { padding-left: 1.2em; margin: 1em 0 1.4em; }
.rs-body li { margin-bottom: 0.4em; }
.rs-body ul li::marker { color: var(--accent); }
.rs-body figure { margin: 2em 0; }
.rs-body figure .rs-img { aspect-ratio: 16 / 9; }
.rs-body figure img {
  width: 100%;
  height: auto;
  border-radius: 1px;
}
.rs-body figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.rs-body img.inline-img {
  width: 100%;
  margin: 1.6em 0 .4em;
  border-radius: 1px;
}
.rs-body img.emoji {
  display: inline;
  width: 1em;
  height: 1em;
  margin: 0 1px;
  vertical-align: -0.12em;
}
.rs-body iframe,
.rs-body .yt-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  margin: 1.6em 0;
  background: var(--img-bg);
  border-radius: 1px;
}

/* Click-to-load YouTube ("lite" embed) */
.rs-body .yt-lite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.6em 0;
  background: var(--img-bg);
  border-radius: 1px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  outline: none;
}
.rs-body .yt-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .2s ease, transform .4s ease;
}
.rs-body .yt-lite::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,23,26,0) 0%, rgba(20,23,26,0.45) 100%);
  pointer-events: none;
  transition: background .2s ease;
}
.rs-body .yt-lite-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78px;
  height: 56px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.rs-body .yt-lite-play svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform .2s ease;
}
.rs-body .yt-lite:hover img { filter: brightness(0.92); }
.rs-body .yt-lite:hover::after { background: linear-gradient(180deg, rgba(20,23,26,0) 0%, rgba(20,23,26,0.55) 100%); }
.rs-body .yt-lite:hover .yt-lite-play svg,
.rs-body .yt-lite:focus-visible .yt-lite-play svg { transform: scale(1.08); }
.rs-body .yt-lite:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rs-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .92em;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 2px;
}

.rs-post-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.rs-post-foot .rs-tags { flex: 1; min-width: 200px; }

/* prev / next nav */
.rs-prevnext {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rs-prevnext a {
  display: block;
  background: none;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.rs-prevnext a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.rs-prevnext .dir {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.rs-prevnext .ttl {
  font-family: 'Newsreader', serif;
  font-size: 16px;
  line-height: 1.25;
}
.rs-prevnext .next { text-align: right; }
.rs-prevnext .next.empty,
.rs-prevnext .prev.empty {
  visibility: hidden;
  pointer-events: none;
}

/* ------- spotify playlist section ------- */
.rs-playlist { margin-top: 16px; }
.rs-spotify {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 12px;
}
.rs-spotify iframe {
  display: block;
  border-radius: 12px;
  background: var(--card);
  width: 100%;
}

/* ------- contact / social ------- */
.rs-contact { margin-top: 16px; }
.rs-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.rs-social-list li {
  border-bottom: 1px solid var(--rule);
}
.rs-social-list a {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 6px;
  background: none;
  color: var(--text);
  transition: padding .2s ease, background .2s ease, color .2s ease;
}
.rs-social-list a:hover {
  padding-left: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.rs-social-name {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.rs-social-handle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.rs-social-list a:hover .rs-social-handle {
  color: var(--accent);
}
.rs-social-arrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  color: var(--faint);
  transition: transform .25s ease, color .15s ease;
}
.rs-social-list a:hover .rs-social-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* ------- footer social row ------- */
.rs-foot-social {
  flex: 1;
  text-align: center;
}
.rs-foot-social a {
  color: var(--faint);
  background: none;
  padding: 0;
}
.rs-foot-social a:hover { color: var(--accent); }

/* ------- responsive ------- */
@media (max-width: 720px) {
  .rs-page { padding: 0 22px 60px; }
  .rs-post-shell { padding: 0 22px; }
  .rs-post { padding: 0 22px 60px; }
  .rs-mast { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .rs-mast-title { font-size: 26px; }
  body.is-scrolled .rs-mast { padding-top: 8px; padding-bottom: 8px; }
  body.is-scrolled .rs-mast-title { font-size: 18px; }
  .rs-entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rs-entry-date { padding-top: 0; }
  .rs-entry-thumb { order: -1; }
  .rs-entry-thumb .rs-img { aspect-ratio: 16 / 9; }
  .rs-featured .rs-entry-title { font-size: 32px; }
  .rs-post-title { font-size: 36px; }
  .rs-post-lead { font-size: 18px; }
  .rs-body blockquote { margin: 2em 0; }
  .rs-gal-mini { grid-template-columns: 1fr 1fr; }
  .rs-prevnext { grid-template-columns: 1fr; }
  .rs-prevnext .next { text-align: left; }
  .rs-social-list a {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    padding: 16px 4px;
  }
  .rs-social-handle {
    grid-column: 1 / -1;
    margin-top: -4px;
  }
  .rs-foot { flex-direction: column; gap: 8px; align-items: flex-start; }
  .rs-foot-social { text-align: left; }
}
