/* The Satyr — Satirical News Publication */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --red:   #c00;
  --mid:   #555;
  --light: #e8e8e8;
  --bg:    #f9f8f5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--black);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Masthead ── */
.masthead {
  border-top: 4px solid var(--black);
  border-bottom: 1px solid var(--black);
  text-align: center;
  padding: 18px 20px 12px;
  margin-bottom: 0;
}

.masthead .pub-name {
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

.masthead .pub-name a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-decoration: none;
}

.masthead-logo {
  height: 110px;
  width: 110px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.pub-name-text {
  display: block;
}

.pub-name-top {
  display: block;
  font-size: 5rem;
  letter-spacing: -2px;
  line-height: 1;
}

.pub-name-bottom {
  display: block;
  font-size: 2rem;
  letter-spacing: 0.3em;
  line-height: 1;
  margin-top: 2px;
}

.masthead .tagline {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 5px;
}

/* ── Nav ── */
nav {
  border-top: 1px solid var(--black);
  border-bottom: 3px solid var(--black);
  background: var(--black);
  color: white;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
}

nav li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}

nav li a:hover { background: var(--red); text-decoration: none; }
nav li a.active { background: var(--red); }

/* ── Layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section label ── */
.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

/* ── Index: article grid ── */
.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 30px 0;
}

.index-grid .featured {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--light);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.index-grid .article-card {
  padding: 0 24px 28px 0;
  border-right: 1px solid var(--light);
  margin-right: 24px;
}

.index-grid .article-card:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 14px;
}

.card-headline {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.card-headline a:hover { text-decoration: underline; }

.card-standfirst {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 10px;
}

.card-byline {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Featured card ── */
.featured .card-headline { font-size: 2rem; }
.featured .card-img { height: 360px; }

/* ── Article page ── */
.article-header {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--light);
  margin-bottom: 28px;
}

.article-header .section-label { margin-bottom: 10px; }

.article-headline {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.article-standfirst {
  font-size: 1.15rem;
  color: var(--mid);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 18px;
}

.article-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  border-top: 1px solid var(--light);
  padding-top: 12px;
}

/* ── Article body ── */
.article-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 28px 0 60px;
}

.article-text p { margin-bottom: 20px; }

.article-text h2 {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 3px solid var(--black);
  padding-top: 14px;
  margin: 32px 0 16px;
}

.article-text figure {
  margin: 28px 0;
}

.article-text figure img {
  width: 100%;
  display: block;
}

.article-text figure figcaption {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--mid);
  line-height: 1.45;
  padding: 8px 0 0;
  border-top: 1px solid var(--light);
}

.article-text .dateline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.article-text .closing-note {
  font-style: italic;
  color: var(--mid);
  font-size: 0.9rem;
  border-top: 1px solid var(--light);
  padding-top: 16px;
  margin-top: 32px;
}

/* ── Pull quote ── */
.pull-quote {
  border-top: 3px solid var(--black);
  border-bottom: 1px solid var(--light);
  padding: 18px 0;
  margin: 28px 0;
}

.pull-quote p {
  font-size: 1.25rem;
  line-height: 1.4;
  font-style: italic;
  margin: 0;
}

/* ── Sidebar ── */
.article-sidebar {
  padding-top: 4px;
}

.sidebar-block {
  border-top: 3px solid var(--black);
  padding: 16px 0 24px;
  margin-bottom: 24px;
}

.sidebar-block h3 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.sidebar-block .sidebar-headline {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.sidebar-block .sidebar-blurb {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.45;
}

/* ── Tags ── */
.tags {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--light);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.tags span { color: var(--mid); text-transform: uppercase; margin-right: 4px; }
.tags a {
  display: inline-block;
  background: var(--light);
  padding: 3px 8px;
  margin: 3px 3px 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tags a:hover { background: var(--black); color: white; text-decoration: none; }

/* ── Advertisement blocks ── */
.ad-block {
  border: 2px solid var(--black);
  padding: 18px 16px;
  margin-bottom: 24px;
  text-align: center;
  background: white;
}

.ad-block .ad-label {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid var(--light);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.ad-block .ad-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.ad-block .ad-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.4;
  margin-bottom: 10px;
}

.ad-block .ad-body {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 10px;
}

.ad-block .ad-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  padding: 4px 12px;
}

.ad-block.ad-ink { border-color: #1a1a4e; }
.ad-block.ad-ink .ad-name { color: #1a1a4e; }
.ad-block.ad-ink .ad-cta { border-color: #1a1a4e; color: #1a1a4e; }

.ad-banner {
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  padding: 16px 20px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
}

.ad-banner .ad-label {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
}

.ad-banner .ad-content {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.ad-banner .ad-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.ad-banner .ad-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--mid);
}

/* ── Topic landing page (section filter view) ── */
#topic-list {
  margin: 30px 0;
}

.topic-row {
  display: flex;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--light);
  align-items: flex-start;
}

.topic-row:first-child {
  border-top: 1px solid var(--light);
}

/* Even-indexed rows: reverse — text left, image right */
.topic-row.reverse {
  flex-direction: row-reverse;
}

.topic-row-img {
  flex: 0 0 380px;
}

.topic-row-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.topic-row-img--empty {
  background: var(--light);
  height: 260px;
}

.topic-row-text {
  flex: 1;
  padding-top: 4px;
}

.topic-headline {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.topic-headline a:hover {
  text-decoration: underline;
}

.topic-row-text .card-standfirst {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.topic-row-text .card-byline {
  margin-top: 8px;
}

@media (max-width: 680px) {
  .topic-row,
  .topic-row.reverse {
    flex-direction: column;
  }
  .topic-row-img {
    flex: none;
    width: 100%;
  }
  .topic-headline { font-size: 1.4rem; }
}

/* ── Footer ── */
footer {
  border-top: 3px solid var(--black);
  padding: 20px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.06em;
}

@media (max-width: 680px) {
  .masthead .pub-name { font-size: 2rem; }
  .index-grid { grid-template-columns: 1fr; }
  .index-grid .featured { grid-column: 1; }
  .article-body { grid-template-columns: 1fr; }
  .article-headline { font-size: 1.8rem; }
  .article-sidebar { display: none; }
}
