@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@400;500&display=swap');

:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --rule: #111111;
  --rule-faint: #d8d8d8;
  --stamp: #b23a24;
  --max-width: 900px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Header */

.site-header {
  border-bottom: 2px solid var(--rule);
  padding: 2rem 0 1rem;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-title {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 5vw, 34px);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 32px;
  width: auto;
  display: block;
}

.site-nav {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  gap: 1.25rem;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--stamp); }

/* Stamp / label */

.stamp {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--stamp);
  border: 1px solid var(--stamp);
  padding: 1px 7px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Featured */

.featured {
  padding: 2.5rem 0 2rem;
  border-bottom: 0.5px solid var(--rule-faint);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.9rem;
}

.featured-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.9rem;
}

.featured-title a { text-decoration: none; }

.featured-excerpt {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 65ch;
  margin: 0 0 0.5rem;
}

.byline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* Archive grid */

.archive {
  padding: 2.5rem 0;
}

.archive-heading {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--rule);
}

.archive-item {
  border-bottom: 0.5px solid var(--rule);
  padding: 1.1rem 1.5rem 1.1rem 0;
}

.archive-item:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 0.5px solid var(--rule);
}

.archive-item a {
  text-decoration: none;
  display: block;
}

.archive-item-title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.archive-item-title:hover { color: var(--stamp); }

.archive-item-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-item:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
}

/* Get involved */

.get-involved {
  padding: 2.5rem 0 3rem;
  border-top: 2px solid var(--rule);
}

.get-involved-title {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 26px;
  margin: 0 0 0.75rem;
}

.get-involved p {
  max-width: 60ch;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.email-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--stamp);
  color: var(--ink);
  padding-bottom: 2px;
}

.email-link:hover { color: var(--stamp); }

/* Footer */

.site-footer {
  border-top: 0.5px solid var(--rule-faint);
  padding: 1.5rem 0 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* Article page */

.article-page {
  padding: 2.5rem 0 4rem;
}

.back-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.back-link:hover { color: var(--stamp); }

.article-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  margin: 0.75rem 0 1rem;
}

.article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.75rem 0 0.5rem;
  border: 0.5px solid var(--rule-faint);
}

.article-caption {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.article-body p {
  margin: 0 0 1.3rem;
  max-width: 68ch;
}

.article-body p:first-of-type::first-letter {
  float: left;
  font-size: 52px;
  line-height: 0.8;
  font-weight: 500;
  padding: 6px 8px 0 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.article-table th,
.article-table td {
  border: 0.5px solid var(--rule);
  padding: 8px 12px;
  text-align: left;
}

.article-table thead th {
  font-weight: 500;
  border-bottom: 1.5px solid var(--rule);
}

.article-inline-figure {
  margin: 1.75rem 0;
}

.article-inline-figure img {
  display: block;
  height: auto;
  border: 0.5px solid var(--rule-faint);
}

.article-inline-figure.size-small img { width: 280px; max-width: 100%; }
.article-inline-figure.size-medium img { width: 480px; max-width: 100%; }
.article-inline-figure.size-full img { width: 100%; }

.article-inline-figure .article-caption {
  margin: 0.5rem 0 0;
}

/* Tags */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}

.tag-pill {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 0.5px solid var(--rule-faint);
  padding: 2px 8px;
}

/* Page heading (About, Archive) */

.page-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  margin: 0.5rem 0 1.5rem;
}

/* About page */

.about-page {
  padding: 2.5rem 0 4rem;
}

.about-mission {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 60ch;
  font-style: italic;
}

.writers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.writer-card {
  text-align: left;
}

.writer-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 0.5px solid var(--rule-faint);
  margin-bottom: 0.75rem;
  display: block;
}

.writer-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 22px;
}

.writer-name {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.writer-bio {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Archive page */

.archive-page {
  padding: 2.5rem 0 4rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 0.5px solid var(--rule);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}

.filter-btn:hover {
  border-color: var(--stamp);
  color: var(--stamp);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.not-found {
  padding: 4rem 0;
  text-align: center;
  color: var(--ink-soft);
}
