:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-deep: #042f2e;
  --primary-light: #f0fdfa;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --font-main: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-w: 1140px;
}

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

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--primary-deep);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: 100%;
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Strip */
.top-strip {
  background: var(--primary-deep);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-strip a {
  color: #5eead4;
  text-decoration: none;
}

.top-strip a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
  line-height: 1.1;
}

.brand-name span {
  color: var(--accent);
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mobile Nav Toggle (CSS-only) */
#nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  z-index: 1001;
}

.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-deep);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Navigation Links */
.site-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary-dark);
}

.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Main Layout */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, #f0fdfa 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  background: #ccfbf1;
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-deep);
  margin-bottom: 16px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.hero-highlights svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(4, 47, 46, 0.85);
  color: #e2e8f0;
  font-size: 0.75rem;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}

.hero-media-caption a {
  color: #5eead4;
}

/* Section styling */
.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Post Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-media {
  position: relative;
  background: var(--surface-alt);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(4, 47, 46, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.card-title a {
  text-decoration: none;
  color: inherit;
}

.card-title a:hover {
  color: var(--primary-dark);
}

.card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.read-more {
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover {
  color: var(--accent-hover);
}

/* Feature band */
.feature-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.feature-item p {
  font-size: 0.92rem;
  color: #475569;
}

/* Single Article Layout */
.article-container {
  padding: 40px 0 60px;
}

.breadcrumb {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.breadcrumb-sep {
  color: #94a3b8;
}

.article-header {
  margin-bottom: 32px;
}

.article-kicker {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.article-title {
  font-size: 2.35rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.article-standfirst {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 20px;
  font-weight: 500;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.article-hero {
  margin-bottom: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.image-credit {
  background: var(--surface-alt);
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.image-credit a {
  color: var(--primary-dark);
}

/* Article Body Typography */
.article-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1e293b;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-size: 1.65rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--primary-deep);
  margin-top: 40px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 700;
  color: #0f172a;
  margin-top: 28px;
  margin-bottom: 14px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: #fffbeb;
  padding: 16px 20px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #78350f;
}

.callout-box {
  background: var(--primary-light);
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.callout-box h4 {
  color: var(--primary-deep);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

table.data-table th {
  background: var(--surface-alt);
  color: var(--primary-deep);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table tr:hover td {
  background: #f8fafc;
}

/* Related articles / Internal Links */
.article-references {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px dashed var(--border);
}

.article-references h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 14px;
}

.article-references ul {
  list-style: square;
  padding-left: 20px;
}

.article-references li {
  margin-bottom: 8px;
}

.article-author-card {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-dark);
}

.author-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Static Pages: About, Contact, Write-for-us, 404 */
.page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.page-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.page-header h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 12px;
}

.page-header p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.page-body {
  font-size: 1.02rem;
  line-height: 1.75;
}

.page-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-top: 36px;
  margin-bottom: 16px;
}

.page-body p {
  margin-bottom: 20px;
}

.page-body ul,
.page-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.page-body li {
  margin-bottom: 10px;
}

/* Contact box */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 28px 0;
  text-align: center;
}

.contact-email-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 16px;
  transition: background 0.2s;
}

.contact-email-btn:hover {
  background: var(--primary-dark) !important;
}

/* 404 Page */
.not-found-box {
  text-align: center;
  padding: 60px 20px;
}

.not-found-code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 16px;
}

.btn-home {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 20px;
}

.btn-home:hover {
  background: var(--primary-dark) !important;
}

/* Footer */
.site-footer {
  background: var(--primary-deep);
  color: #cbd5e1;
  padding: 56px 0 28px;
  margin-top: auto;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-disclaimer {
  max-width: 700px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nav-toggle-btn {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  #nav-toggle:checked ~ .site-nav {
    display: block;
  }

  #nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  #nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked ~ .header-inner .nav-toggle-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav a {
    font-size: 1.05rem;
    display: block;
    width: 100%;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
