/* ============================================================
   Elaf Insights — Stylesheet
   Guardian-inspired reading experience: white, minimal, image-led
   Fonts: Lora (body) | Playfair Display (headlines) | DM Sans (UI)
   Accent: Navy #0A1628 | Gold #C9A84C
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:       #0A1628;
  --gold:       #C9A84C;
  --text:       #1a1a1a;
  --text-mid:   #444;
  --text-light: #888;
  --border:     #e5e5e5;
  --white:      #ffffff;
  --max-w:      1200px;
  --article-w:  720px;
}

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

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────── */

.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 60px;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
}

.nav-logo span {
  color: var(--navy);
}

.nav-links {
  position: absolute;
  right: 0;
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

/* ── Page wrapper ────────────────────────────────────────── */

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

/* ── Category tag ────────────────────────────────────────── */

.cat-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  display: inline-block;
}

/* ── Homepage hero ───────────────────────────────────────── */

.hero-section {
  padding: 3rem 0 0;
  margin-bottom: 3.5rem;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
}

.hero-card:hover .hero-title {
  opacity: 0.75;
}

.hero-image-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0ece6;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-image-wrap img {
  transform: scale(1.02);
}

.hero-text {
  padding: 0 0 0 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text .cat-tag {
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.hero-standfirst {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ── Section label ───────────────────────────────────────── */

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
}

/* ── Article grid ────────────────────────────────────────── */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  padding-bottom: 5rem;
}

.article-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: #f0ece6;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img img {
  transform: scale(1.03);
}

.card-no-img {
  aspect-ratio: 3/2;
  background: #f5f3ef;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-no-img-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: #bbb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card .cat-tag {
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 0.6rem;
  transition: opacity 0.2s;
}

.article-card:hover .card-title {
  opacity: 0.7;
}

.card-standfirst {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
  margin-top: auto;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--article-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.footer-contact-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.footer-contact a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.footer-contact a:hover { opacity: 0.6; }

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ── Article page hero ───────────────────────────────────── */

.article-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #f0ece6;
}

.article-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.article-no-hero {
  width: 100%;
  height: 3rem;
  background: var(--white);
}

/* ── Article page ────────────────────────────────────────── */

.article-header {
  max-width: var(--article-w);
  margin: 2.5rem auto 2rem;
  padding: 0 2rem;
}

.article-header .cat-tag {
  margin-bottom: 1rem;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.article-standfirst {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.article-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.article-divider {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 0 2rem;
  border: none;
  border-top: 1px solid var(--border);
}

.article-body {
  max-width: var(--article-w);
  margin: 2.5rem auto 4rem;
  padding: 0 2rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-body blockquote {
  border-left: 2px solid var(--navy);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.05rem;
}

.article-body strong {
  font-weight: 600;
  color: var(--navy);
}

.article-body .signal-source {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--text-mid);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 3rem;
  font-style: normal;
}

/* ── Article footer nav ──────────────────────────────────── */

.article-footer-nav {
  max-width: var(--article-w);
  margin: 0 auto 4rem;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--border);
}

.back-link {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link:hover { opacity: 0.55; }

/* ── About page ──────────────────────────────────────────── */

.about-wrap {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.about-headline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.about-wrap p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.about-wrap em {
  font-style: italic;
  color: var(--text-mid);
}

.about-closing {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .hero-image-wrap { aspect-ratio: 16/9; }
  .hero-text { padding: 1.5rem 0 0; }
  .hero-title { font-size: 2rem; }
  .footer-inner { gap: 0.75rem; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 2rem; }
  .page-wrap { padding: 0 1.25rem; }
  .article-hero img { height: 260px; }
}

/* ── About page — Option A2 ──────────────────────────────── */

.about-quote-section {
  max-width: 860px;
  margin: 5rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.about-pull-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0;
}

.about-hero-image {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  margin: 3rem 0;
}

.about-hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

@media (max-width: 768px) {
  .about-pull-quote { font-size: 1.6rem; }
  .about-hero-image img { height: 280px; }
}
