:root {
  --ink: #111;
  --title: #222;
  --text: #575757;
  --nav: #454545;
  --head: #1e1e1e;
  --faint: #a3a3a3;
  --max: 1000px;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: calc(var(--max) + 48px); margin: 0 auto; padding: 0 24px; }

/* Header / nav */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 30px; padding-top: 48px; margin-bottom: 52px; }
.site-title {
  margin: 0;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-title a { color: var(--title); }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 19px;
  letter-spacing: 0.05em;
}
.nav a { color: var(--nav); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* About */
.hero { display: grid; grid-template-columns: 300px 1fr; gap: 35px; align-items: start; margin-bottom: 70px; }
.bio p { margin: 0 0 1em; }
.bio a { text-decoration: underline; text-underline-offset: 2px; }
.bio .contact { margin-bottom: 0; }

/* Featured carousel */
.featured-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.featured-head h2 { margin: 0; font-size: 15px; font-weight: 400; color: var(--head); letter-spacing: 0.05em; }
.arrows { display: flex; gap: 14px; }
.arrow { background: none; border: 0; padding: 0; color: #8a8a8a; cursor: pointer; line-height: 0; }
.arrow:last-child { color: #333; }
.arrow:hover { color: var(--ink); }
.cards {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 calc((100% - 36px) / 4); scroll-snap-align: start; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-meta { margin: 16px 0 10px; font-size: 14px; line-height: 1.5; letter-spacing: 0; color: var(--faint); }
.card-meta time { white-space: nowrap; }
.card-meta .source::before { content: "\00b7"; margin: 0 6px; }
.card-title { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.4; letter-spacing: 0.05em; text-transform: capitalize; }
.card-title a { color: var(--head); }

/* Stories / Data reporting */
.group { margin-bottom: 70px; }
.logo { display: flex; justify-content: center; margin-bottom: 26px; }
.logo img { width: 560px; }
.logo img[alt="Risk.net"] { width: 350px; }
.logo img[alt="The Fordham Ram"] { width: 572px; }
.logo img[alt="Fordham Political Review"], .logo img[alt="Inequality.org"] { width: 400px; }
.logo img[alt="Norwood News"] { width: 386px; }

.group-title { margin: 0 0 26px; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: 0.04em; color: var(--title); }
.story { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin: 0 80px 46px 80px; }
.story.no-thumb { grid-template-columns: 1fr; margin-left: 0; }
.thumb img { width: 100%; height: auto; aspect-ratio: 129 / 84; object-fit: cover; margin-top: 4px; }
.story-text { min-width: 0; }
.story-title { margin: 0 0 12px; font-size: 21px; font-weight: 400; line-height: 1.2; letter-spacing: 0.05em; text-transform: capitalize; }
.story-title a { color: var(--head); }
.story-excerpt { margin: 0 0 18px; font-size: 15px; line-height: 1.38; }
.story-date { margin: 0; font-size: 14px; letter-spacing: 0; color: var(--faint); }

/* Article pages (not in nav) */
.article { max-width: 620px; margin: 0 auto; }
.article h1 { margin: 0 0 12px; font-size: 32px; font-weight: 400; line-height: 1.2; letter-spacing: 0.04em; color: var(--head); }
.article h2 { margin: 36px 0 12px; font-size: 24px; font-weight: 400; line-height: 1.25; letter-spacing: 0.04em; color: var(--head); }
.article h3 { margin: 32px 0 10px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--head); }
.article p { margin: 0 0 1.1em; }
.article .article-sub { font-style: italic; margin-bottom: 1.6em; }
.article .text-align-center { text-align: center; }
.article a { text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.site-footer { margin-top: 90px; padding-bottom: 60px; }
.social { display: flex; justify-content: flex-end; gap: 16px; list-style: none; margin: 0; padding: 0; }
.social a { color: #111; display: block; line-height: 0; }

@media (max-width: 640px) {
  .article h1 { font-size: 26px; }
  body { font-size: 16px; }
  .site-header { padding-top: 32px; margin-bottom: 36px; }
  .site-title { font-size: 31px; }
  .nav { font-size: 16px; gap: 4px 20px; }
  .hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
  .portrait { width: 350px; }
  .card { flex-basis: calc((100% - 12px) / 2); }
  .story { grid-template-columns: 96px 1fr; gap: 14px; margin: 0 0 36px; }
  .story.no-thumb { grid-template-columns: 1fr; }
  .thumb img { width: 100%; }
  .story-title { font-size: 18px; }
  .story-excerpt { font-size: 14px; }
  .logo img[alt="Norwood News"] { width: 100%; max-width: 320px; }
}
