/* Calathea Reads — Daily AI Roundups archive + edition styles.
   Extends the existing Calathea visual system (ambient lavender, liquid-glass,
   Manrope body / Michroma display). Self-contained tokens so it never depends on
   compiled-class internals; reuses the live shell classes (.container-calathea,
   .liquid-glass-light, .brand-accent, .glass-content, .ambient-background) where present.
   No JavaScript. */

:root {
  --reads-cream: #faf7f2;
  --reads-cream-hi: #fffdfa;
  --reads-lavender: #e7e0f5;
  --reads-lavender-soft: #c9c0e6;
  --reads-lavender-deep: #ab9cd8;
  --reads-ink: #0d0d12;
  --reads-ink-strong: rgba(13, 13, 18, 0.92);
  --reads-ink-muted: rgba(13, 13, 18, 0.62);
  --reads-ink-faint: rgba(13, 13, 18, 0.46);
  --reads-line: rgba(13, 13, 18, 0.1);
  --reads-line-soft: rgba(13, 13, 18, 0.07);
  --reads-radius: 22px;
  --reads-radius-sm: 14px;
}

/* ---------- Archive section ---------- */
.reads-archive { padding-top: 1rem; padding-bottom: 3rem; }

.reads-section-head { max-width: 46rem; }
.reads-section-head .reads-eyebrow { margin-bottom: 0.9rem; }
.reads-section-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  color: var(--reads-ink);
}
.reads-section-intro {
  margin-top: 1.1rem;
  max-width: 40rem;
  color: rgba(13, 13, 18, 0.6);
  font-size: 1.075rem;
  font-weight: 400;
  line-height: 1.7;
}

.reads-eyebrow {
  font-family: "Michroma", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  color: #5e4f93; /* AA-readable deep violet (lavender-deep is decorative-only on cream) */
}

/* ---------- Card grid (3 / 2 / 1, no masonry, no overflow) ---------- */
.reads-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
@media (max-width: 980px) { .reads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .reads-grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; } }

/* ---------- Edition card ---------- */
.reads-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--reads-radius);
  padding: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.32s ease;
}
.reads-card:hover { transform: translateY(-3px); }
.reads-card:focus-within { outline: 2px solid var(--reads-lavender-deep); outline-offset: 3px; }

.reads-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--reads-line-soft);
  background: linear-gradient(135deg, var(--reads-lavender), var(--reads-cream-hi));
}
.reads-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.reads-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.3rem 1.4rem;
  flex: 1;
}

.reads-card-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.reads-card-date {
  font-family: "Michroma", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--reads-ink-muted);
}
.reads-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--reads-lavender-deep); opacity: 0.7; }
.reads-count { font-size: 0.78rem; color: var(--reads-ink-faint); font-weight: 600; }

.reads-latest {
  margin-left: auto;
  font-family: "Michroma", sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fffdfa;
  border: none;
  border-radius: 999px;
  padding: 0.32em 0.74em;
  background: #5e4f93; /* filled deep violet — distinct from the translucent topic chips */
}

/* (per-card "Daily AI Roundups" heading removed by design — kept as a non-visible
   itemprop=name for the ItemList; the date image + hook carry the card.) */

.reads-card-hook {
  color: var(--reads-ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.reads-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.reads-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--reads-ink-muted);
  background: rgba(201, 192, 230, 0.34);
  border: 1px solid var(--reads-line-soft);
  border-radius: 999px;
  padding: 0.26em 0.66em;
}

.reads-card-cta {
  position: relative;
  z-index: 1; /* sit above the stretched link */
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5e4f93; /* AA on cream (lavender-deep is decorative-only) */
  text-decoration: none;
}
.reads-card-cta svg { transition: transform 0.25s ease; }
.reads-card:hover .reads-card-cta svg { transform: translate(2px, -2px); }
/* the descriptive CTA is the single per-card link; stretch its hit area over the whole card */
.reads-card-cta.reads-stretch::after { content: ""; position: absolute; inset: 0; }

/* ---------- Archive navigation (month/year) ---------- */
.reads-archive-nav {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--reads-line-soft);
}
.reads-archive-nav .reads-eyebrow { margin-right: 0.4rem; }
.reads-chip {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--reads-ink-muted);
  text-decoration: none;
  border: 1px solid var(--reads-line);
  border-radius: 999px;
  padding: 0.4em 0.95em;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.reads-chip:hover { color: var(--reads-ink); border-color: var(--reads-lavender-deep); transform: translateY(-1px); }

/* ---------- Edition detail page ---------- */
.reads-edition { padding-top: 8.5rem; padding-bottom: 2rem; max-width: 46rem; }
@media (min-width: 768px) { .reads-edition { padding-top: 9.5rem; } }

.reads-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--reads-ink-faint);
  margin-bottom: 2rem;
}
.reads-breadcrumb a { color: var(--reads-ink-muted); text-decoration: none; }
.reads-breadcrumb a:hover { color: var(--reads-ink); }
.reads-breadcrumb span[aria-hidden] { opacity: 0.5; }

.reads-edition-title { margin: 0; }
.reads-edition-series {
  display: block;
  font-family: "Michroma", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: #5e4f93;
  margin-bottom: 0.95rem;
}
.reads-edition-bigdate {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.5rem);
  color: var(--reads-ink);
}
/* editorial intro — shares the column width + body rhythm of the numbered list below it */
.reads-edition-summary {
  margin-top: 1.6rem;
  font-size: 1.075rem;
  line-height: 1.72;
  font-weight: 400;
  color: rgba(13, 13, 18, 0.8);
}

/* visible topic chips on the edition page (GEO: surfaced entities/topics) */
.reads-topics { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.reads-topic {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
  color: #5e4f93;
  background: rgba(201, 192, 230, 0.32);
  border: 1px solid var(--reads-line-soft);
  border-radius: 999px; padding: 0.3em 0.72em;
}

/* "Stories in this roundup" label before the numbered list */
.reads-stories-heading {
  margin: 1.7rem 0 0;
  font-family: "Michroma", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: #5e4f93;
}

.reads-edition-media {
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--reads-radius);
  overflow: hidden;
  border: 1px solid var(--reads-line-soft);
}
.reads-edition-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.reads-divider {
  height: 1px;
  border: 0;
  margin: 2.6rem 0 0.4rem;
  background: linear-gradient(90deg, var(--reads-lavender-deep), rgba(171, 156, 216, 0) 70%);
}

.reads-list { list-style: none; margin: 0; padding: 0; }
.reads-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--reads-line-soft);
}
.reads-list-num {
  font-family: "Michroma", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--reads-lavender-deep);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.reads-list-headline {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.reads-list-headline a {
  color: var(--reads-ink-strong);
  text-decoration: underline;
  text-decoration-color: rgba(141, 123, 192, 0.5); /* visible rest-state link affordance */
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.reads-list-headline a:hover { color: var(--reads-ink); text-decoration-color: #5e4f93; }
.reads-list-headline a:focus-visible { outline: 2px solid #5e4f93; outline-offset: 3px; border-radius: 3px; }
.reads-list-source {
  display: block;
  margin-top: 0.5rem;
  font-family: "Michroma", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13, 13, 18, 0.6); /* AA at this small uppercase size */
}

.reads-pager {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--reads-line-soft);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.reads-pager-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 48%;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.reads-pager-link svg { flex: none; color: #5e4f93; transition: transform 0.2s ease; }
.reads-pager-prev:hover svg { transform: translateX(-3px); }
.reads-pager-next { flex-direction: row; }
.reads-pager-next:hover svg { transform: translateX(3px); }
.reads-pager-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.reads-pager-next .reads-pager-text { align-items: flex-end; text-align: right; }
.reads-pager-dir {
  font-family: "Michroma", sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--reads-ink-faint);
}
.reads-pager-label {
  color: var(--reads-ink-strong);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.reads-pager-link:hover .reads-pager-label { color: var(--reads-ink); }
.reads-pager-link:focus-visible { outline: 2px solid #5e4f93; outline-offset: 4px; }
.reads-pager-spacer { flex: 0 0 auto; } /* keeps a lone prev/next on its correct side */

.reads-back {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #5e4f93; /* AA on cream */
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .reads-card, .reads-card-cta svg, .reads-chip, .reads-pager a, .reads-list-headline a { transition: none; }
}
