/*
 * Schaad Advisors — Lesezeichen page
 *
 *   Hero topper · same rhythm as /ueber-mich/ (logo / nav / Kontakt
 *   anchored top, two-column lead row at top 191). No portrait, no
 *   photo bleed — single archive page.
 *
 *   Archive · editorial broadsheet:
 *     · Featured (latest reading) — split, big typographic cover-plate
 *       right, meta + title + take-away left.
 *     · Editorial rows — 3-col grid: meta | text | thumb-cover.
 *       Hairline between rows, no card-borders, no callouts.
 *     · Pagination — Swiss-minimal, tabular numerals, no pills.
 */

:root {
  --gutter: max(0px, calc((100vw - 1440px) / 2));
  /* --rail-pad is the global side-padding token (shared/tokens.css). */
}

/* Reset · same as ueber-mich for rendering parity */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
html {
  font-family: var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--color-paper);
  color: var(--color-charcoal);
  overflow-x: clip;
}
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── Entrance animation · same rhythm as home hero ──────────
   Staggered fade-up reveal on initial load. Mirrors home/styles.css
   so all pages share the same opening cadence. */

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Header chrome stays static — only page content reveals. */
.lesez-hero__lead { animation: hero-rise 0.9s cubic-bezier(0.23,1,0.32,1) 0.10s backwards; }
.lesez-hero__body { animation: hero-rise 0.9s cubic-bezier(0.23,1,0.32,1) 0.25s backwards; }

@media (prefers-reduced-motion: reduce) {
  .lesez-hero__lead,
  .lesez-hero__body { animation: none; }
}


/* ════════════════════════════════════════════════════════════════
 *  HERO · short topper, no bleed
 * ─────────────────────────────────────────────────────────────── */

.lesez-hero {
  position: relative;
  width: 100vw;
  min-height: 480px;
  color: var(--color-white);
  z-index: 5;
  padding-bottom: 80px;
}

/* Studio backdrop · atlas radial halo + grain. Identical to
   ueber-mich .bg-studio for visual continuity. */
.bg-studio {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%,
      rgba(17, 100, 144, 0.22) 0%,
      transparent 65%),
    var(--color-bg-deep);
}
.bg-studio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feComponentTransfer><feFuncR type='linear' slope='3' intercept='-1'/><feFuncG type='linear' slope='3' intercept='-1'/><feFuncB type='linear' slope='3' intercept='-1'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.85;
}

/* Header chrome (logo · nav · Kontakt · burger · panel) lives in
   shared/site-header.css — same source on every page. */

/* Lead row · 2 cols · top 191 (matches ueber-mich) */
.lesez-hero__top {
  position: relative;
  padding: 191px var(--rail-pad) 0;
  display: grid;
  grid-template-columns: minmax(0, 765fr) minmax(0, 405fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  z-index: 7;
}

.lesez-hero__lead { max-width: 765px; }

.lesez-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-alpine);
  margin: 8px 0 24px;
}
.lesez-hero__eyebrow-line {
  width: 16px;
  height: 1px;
  background: var(--color-alpine);
  flex-shrink: 0;
}

.lesez-hero__title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--color-white);
}

.lesez-hero__body {
  max-width: 405px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-white);
}
.lesez-hero__body p { margin-bottom: 20px; }
.lesez-hero__body p:last-child { margin-bottom: 0; }

/* The Jakob's pull-question — set apart by colour + size, no italics,
   no kavychki-elochki. The German source does use Guillemets in body. */
.lesez-hero__question {
  font-size: 18px;
  line-height: 1.45;
  color: var(--color-alpine);
  letter-spacing: -0.005em;
}


/* ════════════════════════════════════════════════════════════════
 *  ARCHIVE · editorial broadsheet
 * ─────────────────────────────────────────────────────────────── */

.lesez-archive {
  background: var(--color-paper);
  color: var(--color-charcoal);
  /* 24 px padding-top → top edge of the archive section to the top of
     the filter row. */
  padding: 24px 0 clamp(80px, 10vw, 120px);
}

.lesez-archive__inner {
  padding: 0 var(--rail-pad);
}


/* ── Filter rail · left-edge aligned, full-content-width hairline below ── */

/* Filter row · text-link Swiss style, no pills, no rounded borders.
   Active = atlas colour + 2-px atlas underline rule.
   Below the row: 24 px gap, then a content-rail-wide hairline divider
   that visually separates the rail from the editorial archive. */
.lesez-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  width: 100%;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.lesez-archive__filter {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 0;
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-uppercase);
  text-transform: uppercase;
  color: var(--color-mute);
  cursor: pointer;
  position: relative;
  transition: color 180ms ease;
}
.lesez-archive__filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-atlas);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lesez-archive__filter:hover { color: var(--color-charcoal); }
.lesez-archive__filter.is-active {
  color: var(--color-atlas);
}
.lesez-archive__filter.is-active::after { transform: scaleX(1); }
.lesez-archive__filter:focus-visible {
  outline: 2px solid var(--color-atlas);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}


/* ════════════════════════════════════════════════════════════════
 *  COVER · typographic placeholder (honest, not a fake image)
 *  When real artwork lands in WP-phase, the entire `.lesez-cover__plate`
 *  block is replaced with a single `<img>` — outer ratios and frame
 *  stay the same.
 * ─────────────────────────────────────────────────────────────── */

.lesez-cover {
  margin: 0;
  position: relative;
  background: var(--color-sky-pale);
  overflow: hidden;
  display: grid;
}

.lesez-cover--book    { aspect-ratio: 2 / 3; }
.lesez-cover--article { aspect-ratio: 4 / 3; }

/* Real cover artwork (preferred over the typographic plate fallback).
   Fills the container; object-fit contain preserves the original
   aspect ratio of the cover photo without cropping the title text. */
.lesez-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lesez-cover__plate {
  padding: clamp(20px, 2.4vw, 36px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  row-gap: 12px;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(17, 100, 144, 0.04) 0%, rgba(17, 100, 144, 0.10) 100%);
  color: var(--color-atlas-dk);
}

.lesez-cover__kind {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-atlas);
}

.lesez-cover__plate-title {
  align-self: start;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--color-atlas-dk);
  /* Long titles wrap, but we cap at 5 lines so the placeholder
     never overflows past the cover frame. */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesez-cover--row .lesez-cover__plate-title {
  font-size: 16px;
  -webkit-line-clamp: 4;
}

.lesez-cover__plate-author,
.lesez-cover__plate-source {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-atlas);
}
.lesez-cover--row .lesez-cover__plate-author,
.lesez-cover--row .lesez-cover__plate-source { font-size: 11px; }

.lesez-cover__plate-year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-atlas);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

/* Subtle vertical hairline near the left edge, like a book-spine —
   gives the otherwise-flat plate a tiny bit of editorial character. */
.lesez-cover--book .lesez-cover__plate::before {
  content: "";
  position: absolute;
  left: clamp(12px, 1.4vw, 20px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-atlas);
  opacity: 0.18;
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════════
 *  FEATURED · 3-col grid (meta | text | cover) — same rhythm as the
 *  rows below but with a larger title, longer take-away, and a
 *  "Neu" flag in the meta. Cover is intentionally smaller than a
 *  hero-cover would be — text + meta sit beside it, no dead space.
 * ─────────────────────────────────────────────────────────────── */

.lesez-feature {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 280px;
  column-gap: clamp(32px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(72px, 9vw, 120px);
}
@media (max-width: 980px) {
  .lesez-feature {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .lesez-feature__meta  { order: 1; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .lesez-feature__body  { order: 2; }
  .lesez-cover--feature { order: 3; max-width: 280px; }
}

.lesez-feature__meta {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-uppercase);
  text-transform: uppercase;
  color: var(--color-mute);
  font-variant-numeric: tabular-nums;
}
.lesez-feature__meta > span:nth-child(2) { color: var(--color-atlas); }

.lesez-feature__flag {
  background: var(--color-atlas);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: var(--track-uppercase);
  font-size: var(--text-eyebrow);
}

.lesez-feature__body { max-width: 56ch; }

.lesez-feature__title {
  font-size: var(--text-h2);
  font-weight: var(--weight-semi);
  letter-spacing: var(--track-display);
  line-height: var(--leading-display);
  color: var(--color-charcoal);
  margin: 0 0 12px;
}

.lesez-feature__author {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-mute);
  margin: 0 0 24px;
}

.lesez-feature__take {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  margin: 0 0 24px;
}

/* Key takeaways · 3 hairline-divided bullet points. The leading bold
   phrase is the takeaway label, the rest is the elaboration. */
.lesez-feature__points,
.lesez-row__points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.lesez-feature__points > li,
.lesez-row__points > li {
  padding: var(--space-4) 0;       /* 16px · 8-grid */
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
}
/* Last takeaway · drop the divider so it doesn't stack on top of the
   next row's hairline (would read as a double rule). Also tighten the
   bottom padding so the cluster reads as one unit before the row break. */
.lesez-feature__points > li:last-child,
.lesez-row__points > li:last-child {
  border-bottom: 0;
  padding-bottom: var(--space-1);   /* 4px · just enough to seat the text */
}
.lesez-feature__points > li strong,
.lesez-row__points > li strong {
  font-weight: var(--weight-semi);
  color: var(--color-atlas);
}

.lesez-cover--feature { width: 100%; }


/* ════════════════════════════════════════════════════════════════
 *  EDITORIAL ROWS · meta | text | thumb-cover · hairlines, no boxes
 * ─────────────────────────────────────────────────────────────── */

.lesez-archive__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-divider);
}

.lesez-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  column-gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--color-divider);
}

/* Without cover — body stretches across cols 2 + 3. Useful when
   Jakob adds a reading without artwork (often the case for articles
   or short editorial notes). The meta column stays narrow on the left;
   take-away can grow without leaving an empty thumb slot. */
.lesez-row--no-cover {
  grid-template-columns: 200px minmax(0, 1fr);
}
.lesez-row--no-cover .lesez-row__body { max-width: 76ch; }

@media (max-width: 980px) {
  .lesez-row,
  .lesez-row--no-cover {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .lesez-row__meta  { order: 1; }
  .lesez-row__body  { order: 2; }
  .lesez-cover--row { order: 3; max-width: 280px; }
}

.lesez-row__meta {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-uppercase);
  text-transform: uppercase;
  color: var(--color-mute);
  font-variant-numeric: tabular-nums;
}
.lesez-row__meta > span:first-child { color: var(--color-atlas); }
@media (max-width: 980px) {
  .lesez-row__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}

.lesez-row__body { max-width: 56ch; }

.lesez-row__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: var(--weight-semi);
  letter-spacing: var(--track-tight);
  line-height: var(--leading-tight);
  color: var(--color-charcoal);
  margin: 0 0 var(--space-2);      /* 8px */
}

.lesez-row__author {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-mute);
  margin: 0 0 var(--space-4);      /* 16px */
}

.lesez-row__take {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  margin: 0 0 var(--space-5);      /* 20px */
}

/* Restore the HTML `hidden` attribute · we use `el.hidden = true` in JS
   to filter entries, but elements with explicit `display: grid/flex`
   override `[hidden]`'s implicit `display: none`. Explicit beats
   implicit always — so we re-assert it with a class-equal-specificity
   `[hidden]` rule (one attribute selector matches one class selector).
   Without this, the filter + empty-state appear to do nothing visually. */
[hidden] { display: none !important; }

/* Empty state — appears when an active filter has zero matches.
   Spans the full row, mute charcoal, click anywhere to reset. */
.lesez-row--empty {
  grid-template-columns: 1fr;
  cursor: pointer;
  padding: clamp(40px, 5vw, 64px) 0;
}
.lesez-row__empty-msg {
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-mute);
  text-align: center;
  letter-spacing: 0.02em;
}
.lesez-row__empty-msg::after {
  content: '  ↺';
  color: var(--color-atlas);
  margin-left: 8px;
}

.lesez-cover--row { width: 100%; }


/* ════════════════════════════════════════════════════════════════
 *  PAGINATION · numbered, Swiss-minimal. Tabular numerals, no pills.
 *  Active page = atlas colour + 2-px atlas underline. "Weiter →" sits
 *  on the right with a magnetic arrow.
 * ─────────────────────────────────────────────────────────────── */

.lesez-paginate {
  margin-top: clamp(56px, 7vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.lesez-paginate__list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lesez-paginate__list li { display: flex; }
.lesez-paginate__list a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-mute);
  font-variant-numeric: tabular-nums;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.lesez-paginate__list a:hover { color: var(--color-charcoal); }
.lesez-paginate__list a[aria-current="page"] {
  color: var(--color-atlas);
  border-bottom-color: var(--color-atlas);
}

.lesez-paginate__next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-atlas);
  transition: opacity 200ms ease;
}
.lesez-paginate__next span { transition: transform 200ms ease; }
.lesez-paginate__next:hover span { transform: translateX(4px); }
.lesez-paginate__next[aria-disabled="true"] {
  opacity: 0.3 !important;
  pointer-events: none;
  cursor: not-allowed;
}


/* .site-footer · moved to shared/site-footer.css (loaded via <link>). */


/* ════════════════════════════════════════════════════════════════
 *  Tablet reflow · simple, no responsive of decorative bleeds
 * ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .lesez-hero__top { padding: 160px 32px 0; grid-template-columns: 1fr; row-gap: 40px; }
  .lesez-archive__inner { padding: 0 32px; }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
