/* ========== HOME: TOKEN OVERRIDES ========== */

:root {
  --home-section-gap: clamp(16px, 2.2vw, 28px);
}

/* ========== HERO (HOME OVERRIDES) ========== */

.hero .logo {
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: .95;
  letter-spacing: -0.012em;
}

.hero .logo .emoji {
  font-size: .8em;
}

.hero {
  padding: calc(14px + env(safe-area-inset-top)) 20px 16px;
}

.hero-inner {
  max-width: 980px;
}

.subtitle {
  margin-top: .2rem;
  font-size: clamp(15px, 1.9vw, 20px);
}

/* ========== ABOUT (HOME) ========== */

.about {
  max-width: min(980px, 92vw);
  margin: 0 auto;
  padding: clamp(8px, 1vw, 8px) 0;
}

.about-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--iron);
}

.about-text em {
  font-style: italic;
  color: var(--sea);
}

.about-text strong {
  font-style: italic;
  font-weight: 400 !important;
  color: var(--rust);
}

/* ========== LAYOUT WRAPPER ========== */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* Breathing room between sections on the home page */
.section + .section,
.section + main.section {
  padding-top: var(--home-section-gap);
}

/* ========== ISSUE BLOCK ========== */

.issue-block {
  padding-bottom: var(--home-section-gap);
}

.issue-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: clamp(12px, 2vw, 20px);

  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

.issue-label-num {
  font-weight: 900;
  color: var(--thames);
  opacity: .3;
}

/* ========== ARTICLE: FEATURED ========== */

.article-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 2.5vw, 28px) clamp(18px, 2.5vw, 28px);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--feat-bg, var(--sea)) 9%, var(--bone));
  text-decoration: none;
  color: var(--thames);
  overflow: hidden;
  transition: background .2s ease;
  margin-bottom: 4px;
}

.article-featured::before {
  content: attr(data-glyph);
  position: absolute;
  right: clamp(24px, 5vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(60px, 9vw, 100px);
  line-height: 1;
  opacity: .25;
  pointer-events: none;
  user-select: none;
  color: var(--feat-bg, var(--sea));
}

.article-featured:hover {
  background: color-mix(in srgb, var(--feat-bg, var(--sea)) 14%, var(--bone));
}

.feat-tag {
  display: block;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--feat-bg, var(--sea));
  margin-bottom: 7px;
}

.feat-title {
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--thames);
  margin: 0 0 10px;
}

.feat-deck {
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--slate);
  max-width: 50ch;
  margin: 0;
}

/* ========== ARTICLE: SECONDARY GRID ========== */

.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.article-secondary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-start;
  gap: 16px;
  min-height: 120px;
  padding: clamp(16px, 2.5vw, 26px) clamp(16px, 2.5vw, 26px);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--thames) 3.5%, var(--bone));
  text-decoration: none;
  color: var(--thames);
  transition: background .2s ease;
}

.article-secondary:hover {
  background: color-mix(in srgb, var(--thames) 7%, var(--bone));
}

.article-secondary.inactive {
  opacity: .38;
  pointer-events: none;
}

.sec-tag {
  display: block;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 5px;
}

.sec-title {
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--thames);
  margin: 0 0 5px;
}

.sec-deck {
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
}

/* ========== SPECIAL PROJECT ========== */

.special-project {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--section-px) var(--home-section-gap);
}

.special-project-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 2.5vw, 28px) clamp(18px, 2.5vw, 28px);
  border-radius: var(--radius);
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: background .2s ease;

  /* Reset the old background-image approach */
  background-image: none;
  min-height: auto;
  border: none;
}

.special-project-card::before {
  content: attr(data-glyph);
  position: absolute;
  right: clamp(18px, 5vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(60px, 10vw, 110px);
  opacity: .15;
  pointer-events: none;
  user-select: none;
}

.special-project-card::after {
  display: none;
}

.special-project-card:hover {
  background: color-mix(in srgb, var(--sea) 85%, black);
  box-shadow: var(--shadow-3);
  filter: none;
  border-color: transparent;
}

.special-project-inner {
  position: static;
  z-index: auto;
  max-width: none;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.special-kicker {
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 8px;
  text-transform: none;
}

.special-kicker::before {
  content: "Special project";
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}

.special-text {
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,.6);
  max-width: 50ch;
  margin: 0;
  letter-spacing: 0;
}

/* ========== COMING UP / TEASERS ========== */

.section.teasers-section {
  padding-bottom: var(--home-section-gap);
}

.grid.teasers {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
}

.grid.teasers .tile {
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--thames) 3%, var(--bone));
  border: none;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  gap: 6px;

  color: var(--iron);
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .96rem;
  line-height: 1.6;
  opacity: .52;
  transition: opacity .18s ease;
}

.grid.teasers .tile.inactive {
  opacity: .42;
  pointer-events: none;
}

.grid.teasers .emoji {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 2px;
  opacity: 1;
  transform: none;
}

.grid.teasers h4 {
  font-size: clamp(14px, 1.5vw, 17px);
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.grid.teasers p {
  font-size: .8rem;
  color: var(--slate);
  line-height: 1.5;
  margin: 0;
  opacity: 1;
}

/* ========== KICKER (HOME) ========== */

.kicker {
  margin: 0 0 10px;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .92;
}

[data-issue="maps"] .kicker,
[data-issue="maps"] .issue-label-num { color: var(--slate); }

[data-issue="crime"] .kicker,
[data-issue="crime"] .issue-label-num { color: var(--rust); }

/* ========== PROMO CARDS ========== */

.section.promo-cards {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--section-px) var(--home-section-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.promo-card {
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--thames) 3.5%, var(--bone));
  border: none;
  box-shadow: none;

  color: var(--iron);
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .96rem;
  line-height: 1.6;
  
display: flex;
flex-direction: column;
justify-content: space-between;
}

.promo-title {
  margin: 0 0 .65rem;
  font-size: 1rem;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--thames);
}

.promo-card p {
  margin: 0;
  opacity: .90;
  max-width: 62ch;
  font-size: .88rem;
}

.promo-card p + p { margin-top: .9rem; }

.promo-about-layout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.promo-avatar img {
  width: 52px;
  height: 52px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}

.promo-about-text { flex: 1 1 auto; }

.promo-card a {
  color: var(--sea);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.promo-card a:hover { color: var(--link-hover); }

.promo-embed {
  margin-top: 1.1rem;
  align-self: flex-start;
}

.promo-subscribe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.2rem .7rem;
  border-radius: var(--radius);
  background: var(--sea);
  color: #fff !important;
  border: none;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .18s ease;
}

.promo-subscribe-button:hover {
  background: color-mix(in srgb, var(--sea) 85%, black);
}

/* ========== DIRECTORY LINKS ========== */

.section.directory-links {
  padding: 0 var(--section-px) var(--home-section-gap);
  background: none;
}

.directory-links-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
}

.directory-links-title {
  margin: 0 0 10px;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: .92;
}

.directory-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.directory-link-list a {
  display: block;
  padding: 7px 0;
  font-family: Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .88rem;
  color: var(--iron);
  text-decoration: none;
  transition: color .14s;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.directory-link-list a:hover { color: var(--sea); }

/* ========== FOCUS OVERRIDES ========== */

.article-featured:focus-visible,
.article-secondary:focus-visible,
.special-project-card:focus-visible,
.promo-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 4px;
}

/* ========== MOBILE ========== */

@media (max-width: 720px) {
  .hero {
    padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
  }

  .section,
  .special-project,
  .section.promo-cards,
  .section.directory-links {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 680px) {
  .secondary-grid,
  .grid.teasers,
  .section.promo-cards,
  .directory-links-inner {
    grid-template-columns: 1fr;
  }

  .special-project-card {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .article-featured {
    grid-template-columns: 1fr;
  }

  .article-secondary {
    grid-template-columns: 1fr;
  }

}
