:root {
  --bg: #fdfcfa;
  --paper: #ffffff;
  --ink: #15130f;
  --ink-2: #3a352d;
  --muted: #76706a;
  --line: #e3ddd3;
  --line-strong: #cfc8bd;
  --accent: #a8131c;
  --accent-ink: #7d0d14;
  --serif: "Source Serif 4", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

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

/* ---------- HEADER ---------- */
header.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 32px;
}
.masthead .container { text-align: center; }
.brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: inline-block;
}
.brand .dot { color: var(--accent); }

/* ---------- AD SLOTS ---------- */
.ad-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
}
.ad-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-slot {
  background:
    repeating-linear-gradient(
      135deg,
      #f4f0e9 0 10px,
      #efeae1 10px 20px
    );
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.ad-slot a {
  display: block;
  width: 100%;
  height: 100%;
}
.ad-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.ad-slot img.banner-fading {
  opacity: 0;
}

.ad-728 { width: 728px; height: 90px; max-width: 100%; }
.ad-300 { width: 300px; height: 250px; }

@media (max-width: 760px) {
  .ad-728 {
    width: 100%;
    max-width: 728px;
    height: auto;
    aspect-ratio: 728 / 90;
    min-height: 60px;
  }
}

/* ---------- HERO ---------- */
section.hero {
  padding: 16px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero-image {
  aspect-ratio: 4 / 3;
  background: #ded7cb
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 12px, transparent 12px 24px);
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-tag {
  position: absolute;
  bottom: 10px; left: 12px;
  background: rgba(21,19,15,0.78);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 8px;
  z-index: 1;
}
.img-cap {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(21,19,15,0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text .kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero-text h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-text h1 a:hover { color: var(--accent-ink); }
.hero-text .summary {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.meta .by { color: var(--ink-2); font-weight: 600; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* ---------- SECTION TITLES ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 56px 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head .more {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head .more:hover { color: var(--accent); }

/* ---------- NEWS GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
}
.card { display: flex; flex-direction: column; }
.card .thumb {
  aspect-ratio: 16 / 10;
  background: #e3dcd0
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 10px, transparent 10px 20px);
  border: 1px solid var(--line-strong);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .thumb .img-cap {
  top: 8px; right: 10px;
  font-size: 9px;
}
.card .cat {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}
.card .date {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: auto;
}
.card a:hover h3 { color: var(--accent-ink); }

/* in-grid ad card */
.card-ad {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-ad .ad-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-ad .ad-slot {
  width: 100%;
  flex: 1;
  aspect-ratio: 16 / 10;
}

/* mid-grid ad: spans full row */
.grid .ad-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.grid .ad-row .ad-wrap { margin: 0; }

/* ---------- ARTICLE PAGE ---------- */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 80px;
}
.breadcrumb {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep-bc { margin: 0 6px; }
.article-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.article-summary {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.article-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ded7cb repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 12px, transparent 12px 24px);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  margin-bottom: 12px;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-photo-credit {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}
.article-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article-body p { margin: 0 0 1.4em; }
.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin: 2em 0 0.6em;
  letter-spacing: -0.01em;
}
.article-ad {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 32px 0 60px; }
}
