:root {
  --bg: #f7f4ef;
  --paper: #ffffff;
  --ink: #0e1a2b;
  --ink-2: #2c3a4d;
  --muted: #7b8493;
  --line: #e0d9ce;
  --line-strong: #c5bdb0;
  --accent: #1a56a0;
  --accent-2: #c9922a;
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1320px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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: 2px solid var(--ink);
  padding: 28px 0 22px;
}
.masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.brand-mark {
  width: 50px;
  height: 50px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.04em;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1;
}
.brand-mark .accent { color: var(--accent-2); }
.brand-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
}
.head-actions .date {
  color: var(--muted);
  text-transform: capitalize;
}

/* ---------- 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: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-slot {
  background:
    linear-gradient(135deg, transparent 49%, rgba(14,26,43,0.08) 49% 51%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(14,26,43,0.08) 49% 51%, transparent 51%),
    var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  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: 36px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.hero-image {
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hero-image:hover img { transform: scale(1.03); }
.img-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: var(--accent-2);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  z-index: 1;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-text .kicker,
.hero-text p.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero-text .kicker::before,
.hero-text p.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-text h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-text h1 a { color: inherit; }
.hero-text h1 a:hover { color: var(--accent); }
.hero-text .summary {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 26px;
  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 .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: 60px 0 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 52px;
  height: 3px;
  background: var(--accent-2);
}
.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.2em;
  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;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 26, 43, 0.10);
}
.card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 0 4px;
}
.card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .thumb img { transform: scale(1.05); }
.card .cat {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 16px 18px 8px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 18px 12px;
  color: var(--ink);
  text-wrap: balance;
}
.card .date {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: auto 18px 16px;
}
.card a:hover h3 { color: var(--accent); }

/* in-grid banner */
.card-ad {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-ad .ad-slot {
  width: 100%;
  flex: 1;
  aspect-ratio: 16 / 10;
}

/* mid-grid ad row */
.grid .ad-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid 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: 0 0 16px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.article-summary {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  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: var(--ink-2);
  border-radius: var(--radius);
  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-photo-credit a { color: var(--muted); text-decoration: underline; }
.article-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.74;
  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;
}

/* ---------- FOOTER ---------- */
footer.site {
  margin-top: 64px;
  background: var(--ink);
  color: #c2c9d4;
  padding: 40px 0 28px;
}
footer.site .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
footer .brand-foot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
footer .brand-foot .brand-mark {
  background: #fff;
  color: var(--ink);
}
footer .brand-foot .brand-mark .accent { color: var(--accent-2); }
footer .brand-foot .brand-name {
  color: #fff;
  font-size: 28px;
}
footer .divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background: #2c3a4d;
}
footer .copy {
  font-size: 12px;
  color: #7b8493;
  letter-spacing: 0.06em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .head-actions .date { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .masthead .container { flex-direction: column; align-items: flex-start; }
  .head-actions { display: none; }
  .article-wrap { padding: 32px 0 60px; }
}
