:root {
  --de-blue: #0086a8;
  --de-blue-dark: #006d8f;
  --de-ink: #111827;
  --de-muted: #64748b;
  --de-line: #d8e1e8;
  --de-soft: #eef8fb;
  --de-paper: #ffffff;
  --de-font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --de-font-serif: "Libre Baskerville", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--de-ink);
  background: var(--de-paper);
  font-family: var(--de-font-sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--de-blue); }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1500px, calc(100% - 56px)); margin: 0 auto; }
.container-wide { width: min(1640px, calc(100% - 56px)); margin: 0 auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--de-blue);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 28px;
}
.text-logo {
  color: var(--de-blue);
  display: inline-flex;
  flex-direction: column;
  font-size: 46px;
  font-weight: 800;
  line-height: .78;
  letter-spacing: 0;
}
.custom-logo-link img {
  max-width: 260px;
  max-height: 82px;
  width: auto;
  height: auto;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 34px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav a { font-weight: 700; font-size: 15px; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}
.header-search input {
  width: 0;
  opacity: 0;
  border: 0;
  outline: 0;
  font: inherit;
  transition: width .2s ease, opacity .2s ease;
}
.header-search:focus-within input,
.header-search:hover input {
  width: 180px;
  opacity: 1;
  border-bottom: 1px solid var(--de-line);
}
.header-search button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.search-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid #0f172a;
  border-radius: 50%;
  position: relative;
}
.search-icon::after {
  content: "";
  width: 10px;
  height: 3px;
  background: #0f172a;
  position: absolute;
  right: -8px;
  bottom: -4px;
  transform: rotate(45deg);
}
.newsletter-link,
.button,
.load-more,
.next-article-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 3px;
  background: var(--de-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.newsletter-link:hover,
.button:hover,
.load-more:hover,
.next-article-loader:hover {
  background: var(--de-blue-dark);
  color: #fff;
}
.menu-toggle { display: none; }

.home-hero { padding: 28px 0 22px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, .9fr);
  gap: 32px;
}
.hero-feature {
  display: grid;
  grid-template-columns: .74fr 1fr;
  min-height: 420px;
  background: var(--de-soft);
}
.hero-copy {
  padding: clamp(28px, 4vw, 48px);
  align-self: center;
}
.eyebrow,
.kicker {
  color: var(--de-blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}
.hero-copy h1 {
  margin: 12px 0 18px;
  font-family: var(--de-font-serif);
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}
.article-header h1 {
  margin: 12px 0 18px;
  font-family: var(--de-font-serif);
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}
.hero-excerpt {
  max-width: 430px;
  font-size: 22px;
  line-height: 1.35;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.today-list h2,
.section-title {
  margin: 0 0 16px;
  color: var(--de-blue);
  font-family: var(--de-font-serif);
  font-size: 30px;
  line-height: 1.2;
}
.today-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--de-line);
}
.today-item h3,
.section-column h3,
.post-card h3 {
  margin: 4px 0 0;
  font-family: var(--de-font-serif);
  font-size: 20px;
  line-height: 1.28;
}
time { color: var(--de-muted); font-size: 14px; white-space: nowrap; }

.section-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding: 18px 0 30px;
}
.section-column {
  border-right: 1px solid var(--de-line);
  padding-right: 28px;
}
.section-column:last-child { border-right: 0; }
.section-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 14px;
}
.mini-list article {
  padding: 15px 0;
  border-top: 1px solid var(--de-line);
}
.home-deepdive,
.home-opinions,
.latest-feed {
  padding: 26px 0;
  border-top: 1px solid var(--de-line);
}
.deepdive-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  min-width: 0;
}
.post-grid .post-card {
  grid-template-columns: 1fr;
}
.post-card-image {
  background: #e7eef2;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card p { margin: 8px 0; color: #334155; }
.de-ad {
  margin: 26px 0;
  min-height: 90px;
  display: grid;
  place-items: center;
  background: #f4f7f9;
  border: 1px dashed #b9c8d2;
  color: #64748b;
  overflow: hidden;
}
.de-ad iframe,
.de-ad img { max-width: 100%; }

.archive-header { padding: 40px 0 24px; }
.archive-header h1 {
  margin: 0;
  color: var(--de-ink);
  font-family: var(--de-font-serif);
  font-size: clamp(34px, 4vw, 58px);
}
.single-article { padding-top: 40px; }
.article-header {
  max-width: 960px;
  text-align: center;
}
.article-deck {
  margin: 0 auto 18px;
  max-width: 780px;
  font-size: 22px;
  color: #334155;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  color: var(--de-muted);
  font-weight: 600;
}
.article-meta a { color: var(--de-blue); }
.article-featured { margin-top: 32px; }
.article-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}
.article-featured figcaption {
  color: var(--de-muted);
  font-size: 13px;
  margin-top: 8px;
}
.article-layout {
  max-width: 840px;
  padding-top: 36px;
}
.article-content {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.78;
}
.article-content p { margin: 0 0 1.25em; }
.article-content a {
  color: var(--de-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.author-box {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  margin: 42px 0;
  padding: 24px 0 0;
  border-top: 3px solid var(--de-blue);
  font-family: var(--de-font-sans);
}
.author-box img { border-radius: 50%; }
.author-label {
  margin: 0;
  color: var(--de-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.author-box h2 { margin: 2px 0 6px; font-size: 24px; }
.post-navigation {
  margin: 40px 0 20px;
}
.nav-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.nav-links a {
  display: block;
  border-top: 1px solid var(--de-line);
  padding-top: 14px;
  font-family: var(--de-font-serif);
  font-size: 20px;
}
.nav-links span {
  display: block;
  color: var(--de-blue);
  font-family: var(--de-font-sans);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.next-article-wrap { padding-bottom: 50px; text-align: center; }

.site-footer {
  margin-top: 50px;
  padding: 34px 0;
  background: #0f172a;
  color: #cbd5e1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}
.footer-logo {
  color: #fff;
  font-weight: 800;
  font-size: 26px;
}
.site-footer ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 220px 1fr auto; }
  .text-logo { font-size: 38px; }
  .hero-grid { grid-template-columns: 1fr; }
  .today-list { padding-top: 12px; }
  .section-trio,
  .deepdive-grid,
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .container,
  .container-wide { width: min(100% - 28px, 720px); }
  .site-header { position: relative; }
  .header-inner {
    min-height: 86px;
    grid-template-columns: 1fr auto;
  }
  .text-logo { font-size: 34px; }
  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--de-line);
    background: #fff;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--de-ink);
  }
  .primary-nav,
  .header-actions {
    display: none;
    grid-column: 1 / -1;
  }
  .menu-open .primary-nav,
  .menu-open .header-actions { display: block; }
  .primary-nav ul {
    display: grid;
    gap: 0;
    justify-content: stretch;
  }
  .primary-nav a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--de-line);
  }
  .header-actions { padding-bottom: 16px; }
  .header-search input { width: 100%; opacity: 1; }
  .newsletter-link { margin-top: 12px; width: 100%; }
  .hero-feature,
  .section-trio,
  .deepdive-grid,
  .post-grid,
  .post-card,
  .nav-links,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-feature { min-height: 0; }
  .hero-copy h1 { font-size: 34px; }
  .article-header h1 { font-size: 36px; }
  .section-column {
    border-right: 0;
    border-bottom: 1px solid var(--de-line);
    padding-right: 0;
    padding-bottom: 24px;
  }
  .today-item { grid-template-columns: 1fr; gap: 4px; }
  .article-content { font-size: 18px; }
}
