:root {
  --ds-midnight: #0b1520;
  --ds-slate: #1e3050;
  --ds-teal-core: #0d9e74;
  --ds-teal-link: #0a7a5a;
  --ds-teal-mid: #5dcaa5;
  --ds-teal-ice: #e1f5ee;
  --ds-cloud: #f7f8fa;
  --ds-mist: #dde3ec;
  --ds-iron: #3a4a5a;
  --ds-steel: #4a6580;
  --ds-fog: #6a8099;
  --ds-white: #ffffff;
  --ds-alert: #e86440;
  --ds-caution: #f7be47;
  --ink: var(--ds-midnight);
  --muted: var(--ds-iron);
  --panel: var(--ds-white);
  --line: var(--ds-mist);
  --wash: var(--ds-cloud);
  --deep: var(--ds-midnight);
  --deep-2: var(--ds-slate);
  --accent: var(--ds-teal-core);
  --accent-2: var(--ds-teal-mid);
  --warm: var(--ds-caution);
  --danger: var(--ds-alert);
  --shadow: 0 20px 54px rgba(11, 21, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ds-cloud);
}

body {
  margin: 0;
  background: var(--ds-cloud);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(93, 202, 165, 0.6);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: 4.25rem;
  line-height: 1;
}

h2 {
  font-size: 2.35rem;
  line-height: 1.12;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.28;
}

h4 {
  font-size: 1rem;
  line-height: 1.32;
}

p {
  margin: 0;
}

.container {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.hero,
.blog-hero {
  color: var(--ds-white);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--ds-midnight);
  overflow: hidden;
}

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

.blog-hero {
  padding: 18px 32px 58px;
}

.topbar {
  display: grid;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
}

.brand,
.nav-link {
  color: var(--ds-white);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 8px 0;
}

.brand-logo {
  display: block;
  width: 126px;
  height: 82px;
  flex: 0 0 auto;
  background-image: url("/assets/dualscope-mark-dark.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.brand-lockup {
  display: grid;
  gap: 2px;
}

.brand-wordmark {
  color: var(--ds-white);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.brand-wordmark span {
  color: var(--ds-teal-mid);
}

.brand-subline,
.eyebrow,
.trend-count,
.article-meta,
.signal-label,
.blog-meta {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-subline {
  color: #4a7a96;
}

.brand-motto {
  max-width: 360px;
  color: rgba(221, 227, 236, 0.76);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: right;
}

.nav-actions {
  display: flex;
  gap: 0;
  align-items: center;
  overflow-x: auto;
  border-top: 1px solid rgba(221, 227, 236, 0.16);
  border-bottom: 1px solid rgba(221, 227, 236, 0.16);
  scrollbar-width: none;
}

.nav-actions::-webkit-scrollbar {
  display: none;
}

.primary-menu {
  justify-content: flex-start;
}

.nav-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 0;
  border-right: 1px solid rgba(221, 227, 236, 0.16);
  border-radius: 0;
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-size: 0.92rem;
}

.nav-link:hover {
  color: var(--ds-white);
  background: rgba(93, 202, 165, 0.12);
}

.home-feature {
  margin-top: 18px;
}

.featured-post {
  display: grid;
  gap: 7px;
  max-width: 900px;
  border-left: 3px solid var(--ds-teal-core);
  padding-left: 16px;
}

.featured-post h1,
.featured-post h3 {
  max-width: 760px;
  color: var(--ds-white);
  font-size: 1.45rem;
  line-height: 1.18;
}

.featured-post a {
  color: inherit;
  text-decoration: none;
}

.featured-post a:hover {
  color: var(--ds-teal-mid);
}

.featured-post p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
}

.featured-meta {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: rgba(221, 227, 236, 0.72);
  font-size: 0.82rem;
}

.hero-layout {
  max-width: 1200px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 36px;
  align-items: stretch;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--ds-teal-mid);
}

.lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 22px;
}

.metrics div {
  min-height: 78px;
  border: 1px solid rgba(221, 227, 236, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--ds-white);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.1;
}

.metrics span {
  margin-top: 6px;
  color: rgba(221, 227, 236, 0.72);
}

.signal-panel {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  border: 1px solid rgba(221, 227, 236, 0.18);
  border-radius: 12px;
  padding: 22px;
  background: rgba(30, 48, 80, 0.48);
  box-shadow: var(--shadow);
}

.radar {
  position: absolute;
  inset: 22px 22px auto auto;
  width: 120px;
  aspect-ratio: 1;
  border: 1px solid rgba(221, 227, 236, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--ds-teal-mid) 0 3px, transparent 4px),
    conic-gradient(from 24deg, rgba(247, 190, 71, 0.24), transparent 38%, rgba(93, 202, 165, 0.34), transparent 72%);
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  background: rgba(221, 227, 236, 0.22);
}

.radar::before {
  width: 1px;
  inset: 12px auto 12px 50%;
}

.radar::after {
  height: 1px;
  inset: 50% 12px auto 12px;
}

.radar span {
  position: absolute;
  border: 1px solid rgba(221, 227, 236, 0.18);
  border-radius: 50%;
}

.radar span:nth-child(1) {
  inset: 18%;
}

.radar span:nth-child(2) {
  inset: 34%;
}

.radar span:nth-child(3) {
  inset: 48%;
  background: var(--ds-caution);
  border-color: var(--ds-caution);
}

.signal-label {
  margin: 0 0 10px;
  color: var(--ds-teal-mid);
}

.signal-panel h2 {
  max-width: 260px;
  font-size: 1.22rem;
  line-height: 1.18;
}

.signal-panel p:last-child {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
}

.section-band {
  padding: 88px 0;
  background: var(--ds-white);
}

.section-heading {
  margin-bottom: 28px;
}

.workspace-section {
  display: grid;
  gap: 48px;
  padding: 72px 0 88px;
}

.rss-home {
  gap: 22px;
  padding-top: 42px;
}

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.workspace-heading .eyebrow,
.section-band .eyebrow {
  color: var(--ds-steel);
}

.section-deck {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
}

.workspace-panel {
  display: grid;
  gap: 18px;
  scroll-margin-top: 20px;
}

.panel-heading {
  display: grid;
  gap: 4px;
}

.panel-heading .eyebrow {
  color: var(--ds-steel);
}

.panel-heading h3 {
  font-size: 1.6rem;
}

.rss-filters,
.blog-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.blog-index-link {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--ds-white);
  color: var(--ds-slate);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active,
.blog-index-link[aria-current="true"],
.blog-index-link:hover {
  border-color: var(--ds-teal-core);
  color: var(--ds-teal-link);
  background: var(--ds-teal-ice);
}

.trend-card,
.news-item,
.deep-dive-card,
.latest-post,
.weekly-update,
.daily-summary,
form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 21, 32, 0.07);
}

.trend-card,
.deep-dive-card {
  padding: 22px;
}

.trend-count,
.article-meta {
  color: var(--ds-steel);
}

.trend-card p,
.trend-card small,
.news-item p,
.deep-dive-card p,
.latest-post p,
.weekly-deck,
.weekly-focus p,
.weekly-focus small,
.blog-section p,
.blog-section-body p,
.comment-policy,
.comment-meta {
  color: var(--muted);
}

.latest-post {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.latest-post h3,
.latest-post p {
  margin: 0;
}

.latest-post a,
.news-item a,
.deep-dive-card a,
.weekly-focus small a,
.weekly-reading-list a,
.source-links a,
.blog-article a {
  color: var(--ds-teal-link);
  text-decoration: none;
}

.contact-note {
  margin-top: 14px;
}

.contact-note a {
  color: var(--ds-teal-link);
  text-decoration: none;
}

.latest-post a:hover,
.news-item a:hover,
.deep-dive-card a:hover,
.weekly-focus small a:hover,
.weekly-reading-list a:hover,
.source-links a:hover,
.blog-article a:hover,
.contact-note a:hover {
  color: var(--ds-teal-core);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rss-filters {
  margin: 0 0 20px;
}

.news-grid,
.deep-dive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-item {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.article-summary {
  color: var(--ds-iron);
}

.weekly-update {
  display: grid;
  gap: 24px;
  padding: 26px;
}

.daily-summary {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.daily-summary h3 {
  font-size: 1.8rem;
}

.daily-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.daily-summary-item {
  display: grid;
  align-content: start;
  gap: 10px;
  border-top: 3px solid var(--ds-teal-core);
  padding-top: 14px;
}

.daily-summary-item p {
  color: var(--muted);
}

.daily-why {
  color: var(--ds-iron);
}

.compact-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.compact-source-links a {
  padding: 7px 10px;
  font-size: 0.86rem;
}

.weekly-update.container {
  margin-top: 64px;
  margin-bottom: 88px;
}

.weekly-update h3 {
  font-size: 2.2rem;
  line-height: 1.12;
}

.weekly-deck {
  max-width: 920px;
  font-size: 1.08rem;
}

.weekly-focus-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.weekly-focus {
  border-top: 3px solid var(--ds-teal-core);
  padding-top: 14px;
}

.weekly-research-notes,
.weekly-actions,
.blog-bullet-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding-left: 22px;
  color: var(--ds-iron);
}

.weekly-actions {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.weekly-reading-list,
.source-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.weekly-reading-list {
  max-width: 960px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.weekly-reading-list a,
.source-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--ds-white);
}

.blog-post-card {
  align-content: start;
  display: grid;
  gap: 12px;
}

.blog-post-dek {
  color: var(--ds-iron);
  font-weight: 500;
}

.deep-dive-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.deep-dive-links a {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.about-preview {
  max-width: 920px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.about-preview h3 {
  max-width: 760px;
  font-size: 1.8rem;
}

.about-preview p {
  color: var(--muted);
}

.text-link {
  color: var(--ds-teal-link);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  color: var(--ds-teal-core);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subscribe-band {
  background: var(--ds-slate);
  color: var(--ds-white);
}

.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.62fr);
  gap: 48px;
  align-items: start;
}

.subscribe-layout p {
  color: rgba(255, 255, 255, 0.78);
}

form {
  padding: 24px;
  color: var(--ink);
}

form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ds-slate);
  font-weight: 500;
}

form input,
form select,
form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--ds-cloud);
  color: var(--ink);
  font: inherit;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

form button {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--ds-teal-core);
  color: var(--ds-white);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

form button:hover {
  background: var(--ds-teal-link);
}

#subscribe-message,
.comment-message {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 500;
}

.success-message {
  color: var(--ds-teal-link);
}

.error-message {
  color: var(--danger);
}

.blog-hero {
  padding-bottom: 92px;
}

.blog-hero-copy {
  padding-top: 88px;
}

.blog-hero h1 {
  max-width: 1080px;
  font-size: 4.7rem;
}

.blog-meta {
  margin-top: 18px;
  color: rgba(221, 227, 236, 0.74);
}

.blog-page {
  background: var(--ds-cloud);
}

.blog-article {
  max-width: 900px;
  padding: 72px 0 88px;
}

.blog-index {
  margin-bottom: 34px;
}

.archive-nav {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 32px;
  padding: 14px;
  background: var(--ds-white);
}

.archive-nav-controls,
.archive-nav-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-nav a,
.archive-nav span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ds-slate);
  text-decoration: none;
  font-size: 0.9rem;
}

.archive-nav span {
  color: var(--ds-fog);
  background: var(--ds-cloud);
}

.archive-nav a:hover,
.archive-nav a[aria-current="page"] {
  border-color: var(--ds-teal-core);
  color: var(--ds-teal-link);
  background: var(--ds-teal-ice);
}

.blog-dek,
.blog-intro,
.blog-conclusion {
  color: var(--ink);
  font-size: 1.16rem;
}

.blog-dek {
  border-left: 4px solid var(--ds-teal-core);
  margin-bottom: 28px;
  padding-left: 18px;
  font-weight: 500;
}

.blog-intro,
.blog-conclusion,
.blog-section-body {
  display: grid;
  gap: 14px;
}

.blog-takeaways {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0;
  padding: 24px 0;
}

.blog-takeaways h2 {
  font-size: 1.35rem;
}

.blog-section {
  border-top: 1px solid var(--line);
  padding: 38px 0;
}

.blog-section h2 {
  font-size: 2.35rem;
  line-height: 1.12;
}

.blog-section-body {
  margin-top: 16px;
}

.blog-section p,
.blog-section-body p {
  font-size: 1.05rem;
}

.blog-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.blog-control-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ds-white);
  padding: 16px;
}

.blog-control-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.blog-comments {
  border-top: 1px solid var(--line);
  margin-top: 52px;
  padding-top: 36px;
}

.blog-comments h2 {
  font-size: 2.2rem;
}

.comment-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ds-white);
  padding: 16px;
}

.comment-item p {
  margin-bottom: 8px;
}

.comment-form {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.comment-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero,
  .blog-hero {
    padding-right: 24px;
    padding-left: 24px;
  }

  .brand-motto {
    max-width: 300px;
  }

  h1,
  .blog-hero h1 {
    font-size: 3.1rem;
  }

  h2,
  .blog-section h2 {
    font-size: 2rem;
  }

  .hero-layout,
  .subscribe-layout {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .signal-panel {
    min-height: 210px;
  }

  .news-grid,
  .deep-dive-grid,
  .daily-summary-list,
  .weekly-focus-list,
  .blog-control-grid {
    grid-template-columns: 1fr;
  }

  .latest-post {
    grid-template-columns: 1fr;
  }

  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 14px 16px 24px;
  }

  .blog-hero {
    padding: 16px 16px 40px;
  }

  .topbar {
    gap: 10px;
  }

  .brand-row {
    align-items: flex-start;
    gap: 8px;
    min-height: auto;
  }

  .brand {
    width: 100%;
  }

  .brand-motto {
    max-width: 100%;
    font-size: 0.78rem;
    text-align: left;
  }

  .brand-logo {
    width: 86px;
    height: 56px;
  }

  .brand-wordmark {
    font-size: 1.6rem;
  }

  .home-feature {
    margin-top: 18px;
  }

  .featured-post {
    padding-left: 16px;
  }

  .featured-post h1,
  .featured-post h3 {
    font-size: 1.35rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  h1,
  .blog-hero h1 {
    font-size: 2.1rem;
  }

  h2,
  .blog-section h2,
  .weekly-update h3,
  .blog-comments h2 {
    font-size: 1.72rem;
  }

  .container {
    width: min(100% - 32px, 1200px);
  }

  .hero-layout,
  .blog-hero-copy {
    margin-top: 28px;
    padding-top: 0;
  }

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

  .radar {
    position: relative;
    inset: auto;
    width: 118px;
  }

  .section-band,
  .workspace-section,
  .blog-article {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .weekly-update {
    padding: 20px;
  }
}
