/* ============================================================
   Alltagspost — index.css
   MAGAZINE FRONT PAGE (loads after styles.css)
   Masthead nameplate, category nav, featured story,
   3-column article card grid.
   ============================================================ */

/* ============================ MASTHEAD ============================ */
.masthead { text-align: center; padding: 30px 0 0; }
.mast-name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 9vw, 96px); line-height: .96; letter-spacing: -.02em;
  color: var(--ink); margin: 0;
}
.mast-name .dot { color: var(--accent); }
.mast-tag {
  font-family: var(--serif); font-style: italic; font-size: clamp(15px, 2.2vw, 18px);
  color: var(--muted); margin-top: 12px;
}
.mast-date {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  margin-top: 16px;
}

/* ============================ CATEGORY NAV ============================ */
.nav {
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  margin: 22px 0 0;
}
.nav-inner {
  max-width: var(--wide); margin-inline: auto; padding-inline: 24px;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav li + li { border-left: 1px solid var(--line); }
.nav a {
  display: block; font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  padding: 13px 24px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--accent); text-decoration: none; background: var(--paper-2); }
.nav a.active { color: var(--accent); }

@media (max-width: 640px) {
  .nav-inner { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav a { padding: 12px 16px; white-space: nowrap; }
  .nav li + li { border-left: 0; }
}

/* ============================ FRONT LAYOUT ============================ */
.front { max-width: var(--wide); margin-inline: auto; padding: 36px 24px 56px; }

/* ---- Featured / lead story: image left, text right ---- */
.lead-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
  align-items: center; padding-bottom: 38px; border-bottom: 1px solid var(--line);
}
.lead-fig .ph { aspect-ratio: 4 / 3; border-radius: 2px; }
.lead-kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.lead-title {
  font-family: var(--display); font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.015em; color: var(--ink);
  margin: 0; text-wrap: balance;
}
.lead-title a { color: inherit; }
.lead-title a:hover { color: var(--accent); text-decoration: none; }
.lead-dek {
  font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink-soft);
  margin: 16px 0 0;
}
.lead-by {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); margin-top: 18px;
}
.lead-by b { color: var(--ink); }

@media (max-width: 820px) {
  .lead-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================ CARD GRID ============================ */
.card-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px;
  margin-top: 34px;
}
.card { display: flex; flex-direction: column; }
.card-fig .ph { aspect-ratio: 3 / 2; border-radius: 2px; }
.card-kicker {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin: 14px 0 8px;
}
.card h3 {
  font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em; margin: 0; text-wrap: balance;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p {
  font-family: var(--serif); font-size: 15.5px; line-height: 1.55; color: var(--ink-soft);
  margin: 9px 0 0;
}
.card-meta {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); margin-top: 12px;
}

.card-row--pair { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) { .card-row { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; } }
@media (max-width: 560px) {
  .card-row { grid-template-columns: 1fr; gap: 0; }
  .card-row--pair { grid-template-columns: 1fr; }
  .card { padding: 26px 0; border-bottom: 1px solid var(--line); }
  .card:first-child { padding-top: 30px; }
}

/* ============================ FRONT-PAGE MOBILE PASS ============================ */
@media (max-width: 560px) {
  .masthead { padding-top: 20px; }
  .mast-name { font-size: clamp(40px, 13vw, 60px); }
  .mast-tag { margin-top: 9px; }
  .mast-date { margin-top: 12px; font-size: 10.5px; letter-spacing: .12em; }
  .nav { margin-top: 18px; }
  .front { padding: 26px 18px 44px; }
  .lead-grid { gap: 18px; padding-bottom: 30px; }
  .lead-kicker { margin-bottom: 9px; }
  .lead-dek { font-size: 16.5px; }
  /* When the second row stacks, drop the rail's top gap so it reads as one list */
  .rail { margin-top: 26px; }
}

/* ============================ MOST-READ RAIL ============================ */
.rail-grid { display: grid; grid-template-columns: 1fr; }
.rail h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin: 0 0 4px;
}
.popular { list-style: none; counter-reset: pop; margin: 0; padding: 0; }
.popular li {
  counter-increment: pop; display: flex; gap: 14px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.popular li::before {
  content: counter(pop); font-family: var(--display); font-weight: 800; font-size: 22px;
  color: var(--accent); flex: 0 0 auto; line-height: 1;
}
.popular a {
  font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.popular a:hover { color: var(--accent); text-decoration: none; }
