/* ============================================================
   DAILY DIGEST — The Outline-inspired dark editorial design
   ============================================================ */

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

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #04284a;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Variables --- */
:root {
  --bg:      #04284a;
  --bg2:     #04284a;
  --white:   #ffffff;
  --text:    #ffffff;
  --muted:   rgba(255,255,255,0.55);
  --dim:     rgba(255,255,255,0.32);
  --border:  rgba(255,255,255,0.1);
  --dt-shadow:    #04284a;
  --dt-highlight: #ce2c36;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #04284a;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 56px;
}
.nav-logo {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-right: 2rem;
  flex-shrink: 0;
}
.nav-logo a { color: #fff; }
.nav-logo .accent { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
}
.nav-links li a {
  display: block;
  padding: 0 0.75rem;
  height: 56px;
  line-height: 56px;
  color: rgba(255,255,255,0.52);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s;
}
.nav-links li a:hover,
.nav-links li a.active { color: #ffffff; }

.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-date {
  color: rgba(255,255,255,0.28);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
  margin-left: 1rem;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: #04284a;
    padding: .5rem 0;
    z-index: 999;
  }
  .nav-links li a {
    height: auto;
    line-height: 1;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .hamburger { display: block; }
  .nav-date { display: none; }
}

/* ============================================================
   MASTHEAD (hero)
   ============================================================ */
.hero {
  background: #04284a;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero::before,
.hero::after { display: none; }
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.hero-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  margin: 0;
}
.hero h1 {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.hero-tagline { display: none; }
.hero-cta { display: none; }

/* ============================================================
   PAGE HEADER (category pages)
   ============================================================ */
.page-header {
  background: #04284a;
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.page-header::before,
.page-header::after { display: none; }
.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.page-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 0.65rem;
  display: block;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255,255,255,0.38);
  font-size: 0.92rem;
  max-width: 520px;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   CATEGORY BADGE
   ============================================================ */
.cat-badge {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.42);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  border: none;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   IMAGE COLOUR OVERLAY
   Shows the photo clearly with a semi-transparent tint on top.
   ============================================================ */
.fc-image,
.card-img,
.fa-image {
  position: relative;
  overflow: hidden;
}
.fc-image img,
.card-img img,
.fa-image img {
  display: block;
  width: 100%;
  transition: transform 0.4s ease;
}
.fc-image::after,
.card-img::after,
.fa-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dt-highlight, #ce2c36);
  opacity: 0.38;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   FEATURED CARD (homepage top story — title overlaid on image)
   ============================================================ */
.featured-section { padding: 2.5rem 0 0; }

.featured-card {
  position: relative;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}
.featured-card .fc-image {
  width: 100%;
}
.featured-card .fc-image img {
  width: 100%;
  height: 560px;
  min-height: 0;
  object-fit: cover;
}
.featured-card:hover .fc-image img { transform: scale(1.02); }

.featured-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem 2.5rem;
  background: linear-gradient(to top, rgba(4,40,74,0.95) 0%, rgba(4,40,74,0.7) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.featured-card-body .cat-badge { margin-bottom: 0.75rem; }
.featured-card-body h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.08;
  max-width: 800px;
}
.featured-card-body h2 a { color: inherit; }
.featured-card-body h2 a:hover { opacity: 0.82; }
.featured-card-body p {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 680px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.featured-card-body p + p { margin-top: 0.75rem; }
.read-link { display: none; }

@media (max-width: 720px) {
  .featured-card .fc-image img { height: 380px; }
  .featured-card-body { padding: 1.5rem; }
}

/* ============================================================
   CATEGORY SECTIONS (homepage)
   ============================================================ */
.category-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.cat-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cat-section-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: #fff;
  border-left: none;
  padding-left: 0;
  line-height: 1.0;
}
.view-all-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  transition: color .15s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1rem;
}
.view-all-link:hover { color: #fff; }

/* --- Big Picture Box --- */
.big-picture-box {
  background: transparent;
  border-left: 2px solid rgba(255,255,255,0.14);
  border-radius: 0;
  padding: 0.65rem 1.25rem;
  margin-bottom: 2rem;
}
.big-picture-box .bp-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.3rem;
}
.big-picture-box p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
}

/* ============================================================
   ARTICLE CARDS (homepage — inline content)
   ============================================================ */
.articles-grid,
.articles-grid.cols-2,
.articles-grid.cols-1 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;
  border-radius: 0;
  color: #fff;
  overflow: visible;
  transition: none;
}
.article-card:first-child { border-top: none; }
.article-card:hover { transform: none; box-shadow: none; }

.article-card .card-img img {
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}
.article-card:hover .card-img img { transform: scale(1.03); }

.article-card-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.article-card-body .cat-badge { margin-bottom: 0.5rem; }
.article-card-body h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  color: #fff;
  margin-bottom: 0.85rem;
  line-height: 1.05;
}
.article-card-body h3 a { color: inherit; }
.article-card-body h3 a:hover { opacity: 0.72; }
.article-card-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.68;
}
.article-card-body p + p { margin-top: 0.65rem; }
.card-meta { display: none; }

@media (max-width: 720px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card .card-img img { min-height: 210px; height: 210px; }
  .article-card-body { padding: 1.25rem 0; }
}

/* ============================================================
   CATEGORY PAGE — FULL CONTENT
   ============================================================ */
.cat-page-wrap { padding: 3rem 0 4rem; }

.big-picture-full {
  background: transparent;
  border: none;
  border-left: 2px solid rgba(255,255,255,0.14);
  border-radius: 0;
  padding: 0.65rem 1.5rem;
  margin-bottom: 3rem;
}
.big-picture-full .bp-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.35rem;
}
.big-picture-full p {
  color: rgba(255,255,255,0.48);
  font-size: 0.95rem;
  line-height: 1.7;
}

.articles-list { display: flex; flex-direction: column; gap: 0; }

.full-article {
  background: transparent;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;
  padding: 3.5rem 0;
}
.full-article:first-child { border-top: none; }

.full-article .fa-image {
  margin-bottom: 2rem;
}
.full-article .fa-image img {
  height: 480px;
  object-fit: cover;
}
.full-article:hover .fa-image img { transform: scale(1.01); }

.full-article-body { padding: 0; }
.full-article-body .cat-badge { margin-bottom: 1rem; display: block; }
.full-article-body h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.0;
  max-width: 820px;
}
.full-article-body .meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 1.25rem;
}
.full-article-body .meta .dot::before { content: '·'; margin-right: 1.25rem; }
.full-article-body p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.82;
  max-width: 700px;
}
.full-article-body p + p { margin-top: 1.25rem; }

@media (max-width: 720px) {
  .full-article .fa-image img { height: 240px; }
  .full-article { padding: 2.5rem 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #03213d;
  color: rgba(255,255,255,0.42);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.footer-logo .accent { color: #fff; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.28);
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}
.footer-col li { margin-bottom: 0.5rem; }
.footer-col li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.38);
  transition: color .15s;
}
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
