/*
  Class names = editorial role, BEM (block__element--modifier).
  Type and space come from scale.css — do not add one-off clamps here.
*/

.kicker {
  margin: 0;
  font-size: var(--text-kicker);
  font-weight: var(--weight);
  line-height: var(--lh-mixed);
  color: var(--kicker);
}

.lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.lead > * {
  margin: 0;
}
.lead__title {
  font-size: var(--text-lead);
  font-weight: var(--weight);
  line-height: var(--lh-heading);
}
.lead__title a {
  color: inherit;
  text-decoration: none;
}
.lead__title a:hover,
.lead__title a:focus-visible {
  font-style: italic;
}
.lead__media {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  aspect-ratio: 900 / 538;
  overflow: hidden;
  background: var(--slot);
}
.lead__preview {
  margin: 0;
  font-size: var(--text-caption);
  line-height: var(--lh-mixed);
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
}
.lead__preview p,
.story-card__preview p,
.editorial__preview p {
  margin: 0;
}
.lead__preview ul,
.lead__preview ol,
.story-card__preview ul,
.story-card__preview ol,
.editorial__preview ul,
.editorial__preview ol {
  margin: 0;
  padding-left: 1.15em;
}
.read-more {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: inherit;
  font-size: var(--text-caption);
  line-height: var(--lh-mixed);
  text-decoration: none;
}
.read-more__plus {
  display: block;
  width: 0.7em;
  height: 0.7em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.read-more:hover,
.read-more:focus-visible {
  font-style: italic;
}
.lead__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.byline {
  margin: 0;
  font-size: var(--text-meta);
  line-height: var(--lh-mixed);
  color: var(--muted);
}
.share {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--muted);
  line-height: 0;
}
.share svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share:hover,
.share:focus-visible {
  color: var(--ink);
}

.rail-title {
  margin: 0 0 var(--space-5);
  font-size: var(--text-rail);
  font-weight: var(--weight);
  line-height: var(--lh-mixed);
}
.rail-title--dotted {
  padding-bottom: var(--space-3);
  border-bottom: 2px dotted var(--ink);
}
.rule-dotted {
  display: block;
  border-bottom: 2px dotted var(--ink);
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.story-card:hover .story-card__title,
.story-card:focus-visible .story-card__title {
  font-style: italic;
}
.story-card__media {
  display: block;
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 307 / 247;
  overflow: hidden;
  background: var(--slot);
}
.story-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.story-card__title {
  margin: 0;
  font-size: var(--text-story-title);
  font-weight: var(--weight);
  line-height: var(--lh-mixed);
  font-style: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
}
/* Truncation is CSS only (ellipsis). Kirby prints the full intro/excerpt; do not Str::short or store … in Panel. */
.story-card__preview {
  margin: 0;
  font-size: var(--text-story-preview);
  line-height: var(--lh-mixed);
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
}
.story-card__preview--line {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.story-card--plain {
  padding-bottom: var(--space-3);
  border-bottom: 2px dotted var(--ink);
}

.story-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.story-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--space-7);
  row-gap: var(--space-7);
}

.issue-cover {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.issue-cover > * {
  margin: 0;
}
.issue-cover__media {
  display: block;
  position: relative;
  padding: 0;
  aspect-ratio: 307 / 368;
  overflow: hidden;
  background: var(--slot);
}
.issue-cover__meta {
  font-size: var(--text-story);
  line-height: var(--lh-mixed);
}
.issue-cover__more {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--text-caption);
  line-height: var(--lh-mixed);
}
.issue-cover__plus {
  display: block;
  width: 0.7em;
  height: 0.7em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.issue-cover:hover .issue-cover__more,
.issue-cover:focus-visible .issue-cover__more {
  font-style: italic;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.ad-slot__label {
  margin: 0;
  font-size: var(--text-nav);
  line-height: var(--lh-mixed);
  color: var(--muted);
}
.ad-slot__media {
  display: block;
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--slot);
}
.ad-slot--banner .ad-slot__media {
  aspect-ratio: 1575 / 220;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  padding-inline: var(--inset);
}
.editorial__media {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  aspect-ratio: 794 / 649;
  overflow: hidden;
  background: var(--slot);
}
.editorial__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.editorial__copy > * {
  margin: 0;
}
.editorial__title {
  font-size: var(--text-title);
  font-weight: var(--weight);
  line-height: var(--lh-heading);
}
.editorial__title a {
  color: inherit;
  text-decoration: none;
}
.editorial__title a:hover,
.editorial__title a:focus-visible {
  font-style: italic;
}
.editorial__bullets {
  padding: 0;
  list-style: none;
  font-size: var(--text-caption);
  line-height: var(--lh-mixed);
  color: var(--muted);
}
.editorial__bullets li {
  position: relative;
  padding-left: 1.1em;
}
.editorial__bullets li + li {
  margin-top: var(--space-2);
}
.editorial__bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
}
.editorial__preview {
  font-size: var(--text-caption);
  line-height: var(--lh-mixed);
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
}

.subscribe-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-inline: var(--inset);
  padding: var(--space-6) var(--space-7);
  background: var(--cta);
}
.subscribe-bar > * {
  margin: 0;
}
.subscribe-bar__line {
  font-size: var(--text-subscribe);
  line-height: var(--lh-mixed);
}
.subscribe-bar__button {
  display: inline-block;
  flex: 0 0 auto;
  padding: var(--space-4) var(--space-6);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-te);
  font-size: var(--text-subscribe);
  font-weight: var(--weight);
  line-height: var(--lh-mixed);
  text-decoration: none;
}
.subscribe-bar__button:hover,
.subscribe-bar__button:focus-visible {
  color: var(--paper);
  font-style: italic;
}

.interview-tease {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-7) var(--inset);
  background: var(--tease-bg);
}
.interview-tease > * {
  margin: 0;
}
.interview-tease__title {
  font-size: var(--text-title);
  font-weight: var(--weight);
  line-height: var(--lh-heading);
}
.interview-tease__title a {
  color: inherit;
  text-decoration: none;
}
.interview-tease__title a:hover,
.interview-tease__title a:focus-visible {
  font-style: italic;
}
.interview-tease__dialogue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5) var(--space-7);
}
.interview-tease__pair {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.interview-tease__turn {
  font-size: var(--text-caption);
  line-height: var(--lh-mixed);
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
}
.interview-tease__who {
  margin-right: 0.4em;
  color: var(--kicker);
  font-style: italic;
}
.interview-tease__media {
  display: block;
  position: relative;
  padding: 0;
  aspect-ratio: 1575 / 409;
  overflow: hidden;
  background: var(--slot);
}

.lead__media img,
.story-card__media img,
.issue-cover__media img,
.ad-slot__media img,
.editorial__media img,
.interview-tease__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.interview-tease__more {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--text-caption);
  color: inherit;
  text-decoration: none;
}
.interview-tease__more:hover,
.interview-tease__more:focus-visible {
  font-style: italic;
}

.section-rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-inline: var(--inset);
}
.section-rail > * {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-7);
  padding: var(--space-8) var(--inset);
  border-top: 2px dotted var(--ink);
  background: var(--footer-bg);
  font-size: var(--text-story);
  line-height: var(--lh-mixed);
}
.site-footer > * {
  margin: 0;
  min-width: 0;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  font-style: italic;
}
.site-footer__brand,
.site-footer__col,
.site-footer__nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}
.site-footer__name {
  font-size: var(--text-body);
  line-height: var(--lh-heading);
}
.site-footer__tagline {
  font-size: var(--text-meta);
}
.site-footer__blurb {
  color: var(--muted);
  font-size: var(--text-nav);
}
.site-footer__rni,
.site-footer__contact p {
  font-size: var(--text-nav);
  color: var(--muted);
}
.site-footer__label {
  font-size: var(--text-nav);
  color: var(--muted);
}

@container page (max-width: 540px) {
  .story-row,
  .editorial,
  .site-footer,
  .interview-tease__dialogue {
    grid-template-columns: minmax(0, 1fr);
  }
}
