/*
Theme Name: SixDegreesNews Starter
Theme URI: https://www.sixdegreesnews.org
Author: SixDegreesNews
Author URI: https://www.sixdegreesnews.org
Description: Lightweight starter theme for SixDegreesNews — climate, policy and global development journalism. White + Aqua Mint palette. Tagline: Influencing a Sustainable Future.
Version: 0.2.0 (starter — Aqua Mint light mode)
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sixdegreesnews
*/

:root {
  --sdn-bg:        #FFFFFF;
  --sdn-bg-alt:    #F0FDFB;
  --sdn-bg-tint:   #E0F7F5;
  --sdn-text:      #102220;
  --sdn-text-dim:  #5D7572;
  --sdn-accent:    #00BFA5;
  --sdn-accent-dk: #008C78;
  --sdn-border:    #D0EFEC;
  --sdn-max-width: 1200px;
  --sdn-font-display: 'Playfair Display', Georgia, serif;
  --sdn-font-body:    'Source Sans 3', 'Inter', sans-serif;
  --sdn-font-mono:    'Bebas Neue', sans-serif;
}

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

body {
  margin: 0;
  background: var(--sdn-bg);
  color: var(--sdn-text);
  font-family: var(--sdn-font-body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sdn-accent-dk); }
img { max-width: 100%; height: auto; display: block; }

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

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sdn-accent); color: #fff;
  padding: 10px 16px; z-index: 10000;
}
.skip-link:focus { left: 10px; top: 10px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--sdn-accent);
  outline-offset: 2px;
}

/* ── TOP BAR ── */
.sdn-topbar {
  background: var(--sdn-bg-alt);
  border-bottom: 1px solid var(--sdn-border);
  font-size: 12px;
  color: var(--sdn-text-dim);
}
.sdn-topbar .sdn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}
.sdn-topbar a { margin-left: 16px; color: var(--sdn-text-dim); }
.sdn-topbar a:hover { color: var(--sdn-accent-dk); }

/* ── MASTHEAD ── */
.sdn-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 3px solid var(--sdn-accent);
}
.sdn-logo-wrap { display: flex; align-items: center; gap: 12px; }
.sdn-logo-wrap img { max-height: 56px; width: auto; }
.sdn-brand-text { display: flex; flex-direction: column; }
.sdn-brand-name {
  font-family: var(--sdn-font-mono);
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--sdn-text);
}
.sdn-brand-name span { color: var(--sdn-accent); }
.sdn-tagline {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sdn-text-dim);
}

/* ── PRIMARY NAV ── */
.sdn-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.sdn-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--sdn-text-dim);
}
.sdn-nav a:hover,
.sdn-nav .current-menu-item > a { color: var(--sdn-accent-dk); }

.sdn-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sdn-border);
  color: var(--sdn-text);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

/* ── HERO ── */
.sdn-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  border-bottom: 1px solid var(--sdn-border);
}
.sdn-hero-main {
  padding: 40px;
  border-right: 1px solid var(--sdn-border);
  background: linear-gradient(160deg, #fff 60%, var(--sdn-bg-alt));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
}
.sdn-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sdn-accent);
  margin-bottom: 12px;
}
.sdn-hero-title {
  font-family: var(--sdn-font-display);
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--sdn-text);
  max-width: 680px;
}
.sdn-hero-excerpt {
  color: var(--sdn-text-dim);
  max-width: 600px;
  margin-bottom: 10px;
  font-size: 16px;
}
.sdn-hero-meta { font-size: 11px; color: var(--sdn-text-dim); letter-spacing: .06em; text-transform: uppercase; }

.sdn-hero-sidebar {
  padding: 28px 24px;
  background: var(--sdn-bg-alt);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sdn-hero-sidebar-heading {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sdn-text-dim);
  border-bottom: 2px solid var(--sdn-accent);
  padding-bottom: 8px;
}
.sdn-sidebar-story {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sdn-border);
}
.sdn-sidebar-story:last-child { border-bottom: none; }
.sdn-sidebar-story-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sdn-text);
}
.sdn-sidebar-story-title a:hover { color: var(--sdn-accent-dk); }

/* ── TOPIC HUBS ── */
.sdn-topic-hubs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sdn-border);
  border-bottom: 1px solid var(--sdn-border);
}
.sdn-topic-card {
  background: #fff;
  padding: 22px 20px;
  transition: background .2s;
  border-top: 3px solid transparent;
}
.sdn-topic-card:hover {
  background: var(--sdn-bg-alt);
  border-top-color: var(--sdn-accent);
}
.sdn-topic-card h3 {
  font-family: var(--sdn-font-display);
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--sdn-text);
}
.sdn-topic-card p { font-size: 13px; color: var(--sdn-text-dim); margin: 0; }

/* ── ARTICLE GRID ── */
.sdn-section { padding: 48px 0; }
.sdn-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--sdn-accent);
  padding-bottom: 10px;
}
.sdn-section-heading h2 {
  font-family: var(--sdn-font-display);
  font-size: 24px;
  margin: 0;
  color: var(--sdn-text);
}
.sdn-section-heading a {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--sdn-text-dim);
  font-weight: 700;
}
.sdn-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sdn-card { display: flex; flex-direction: column; gap: 8px; }
.sdn-card-thumb {
  background: var(--sdn-bg-tint);
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--sdn-border);
}
.sdn-card-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sdn-accent);
  font-weight: 700;
}
.sdn-card-title {
  font-family: var(--sdn-font-display);
  font-size: 17px;
  line-height: 1.35;
  color: var(--sdn-text);
}
.sdn-card-title a:hover { color: var(--sdn-accent-dk); }
.sdn-card-meta { font-size: 11px; color: var(--sdn-text-dim); }

/* ── VIDEO / PODCAST BLOCK ── */
.sdn-media-block {
  background: var(--sdn-bg-alt);
  border: 1px solid var(--sdn-border);
  border-left: 4px solid var(--sdn-accent);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
  margin: 24px 0;
}
.sdn-play-ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--sdn-accent);
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.sdn-play-triangle {
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent var(--sdn-accent);
  margin-left: 4px;
}

/* ── REPORT TEMPLATE ── */
.sdn-report-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sdn-accent);
  color: #fff;
  padding: 12px 22px;
  font-weight: 700;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 14px;
}
.sdn-report-download:hover { background: var(--sdn-accent-dk); color: #fff; }
.sdn-report-meta {
  font-size: 13px;
  color: var(--sdn-text-dim);
  border-top: 1px solid var(--sdn-border);
  border-bottom: 1px solid var(--sdn-border);
  padding: 12px 0;
  margin-bottom: 24px;
}
.sdn-content-body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--sdn-text);
}
.sdn-content-body h2 {
  font-family: var(--sdn-font-display);
  color: var(--sdn-text);
  margin-top: 2em;
  border-bottom: 2px solid var(--sdn-border);
  padding-bottom: 8px;
}

/* ── NEWSLETTER WIDGET ── */
.sdn-newsletter {
  background: var(--sdn-accent);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
}
.sdn-newsletter .sdn-hero-sidebar-heading { color: rgba(255,255,255,.8); border-bottom-color: rgba(255,255,255,.3); }
.sdn-newsletter p { font-size: 13px; opacity: .9; margin-bottom: 12px; }
.sdn-newsletter input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  background: #fff;
  border: none;
  border-radius: 4px;
  color: var(--sdn-text);
  font-size: 13px;
}
.sdn-newsletter button {
  width: 100%;
  padding: 10px;
  background: var(--sdn-accent-dk);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
.sdn-newsletter button:hover { background: #006655; }

/* ── FOOTER ── */
.sdn-footer {
  border-top: 3px solid var(--sdn-accent);
  padding: 48px 0 24px;
  background: var(--sdn-text);
  color: #cfd8d5;
}
.sdn-footer .sdn-brand-name { color: #fff; }
.sdn-footer .sdn-brand-name span { color: #5EE6D0; }
.sdn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.sdn-footer-desc { font-size: 13px; color: #8fa39d; max-width: 300px; margin-top: 10px; }
.sdn-footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #8fa39d;
  margin-bottom: 14px;
  border-bottom: 1px solid #1e3330;
  padding-bottom: 8px;
}
.sdn-footer-col a { display: block; font-size: 13px; margin-bottom: 8px; color: #cfd8d5; }
.sdn-footer-col a:hover { color: #5EE6D0; }
.sdn-footer-bottom {
  border-top: 1px solid #1e3330;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5D7572;
}

/* ── PAGINATION ── */
.nav-links { display: flex; gap: 8px; margin-top: 32px; }
.nav-links a, .nav-links span {
  padding: 8px 14px;
  border: 1px solid var(--sdn-border);
  font-size: 13px;
  border-radius: 4px;
}
.nav-links .current { background: var(--sdn-accent); color: #fff; border-color: var(--sdn-accent); }
.nav-links a:hover { border-color: var(--sdn-accent); color: var(--sdn-accent-dk); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .sdn-hero { grid-template-columns: 1fr; }
  .sdn-hero-main { border-right: none; border-bottom: 1px solid var(--sdn-border); min-height: auto; }
  .sdn-topic-hubs { grid-template-columns: repeat(2, 1fr); }
  .sdn-article-grid { grid-template-columns: repeat(2, 1fr); }
  .sdn-footer-grid { grid-template-columns: 1fr 1fr; }
  .sdn-media-block { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 640px) {
  .sdn-nav { display: none; }
  .sdn-nav.is-open {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--sdn-border);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .sdn-nav.is-open ul { flex-direction: column; padding: 16px 20px; gap: 14px; }
  .sdn-menu-toggle { display: block; }
  .sdn-topic-hubs { grid-template-columns: 1fr; }
  .sdn-article-grid { grid-template-columns: 1fr; }
  .sdn-footer-grid { grid-template-columns: 1fr; }
  .sdn-hero-title { font-size: 26px; }
  .sdn-hero-main { padding: 24px; }
}
