/* dist-agent-lang.org — shared marketing + articles theme (black-dot) */

:root {
  --black: #000000;
  --ink: #0a0a0a;
  --white: #ffffff;
  --white-92: rgba(255, 255, 255, 0.92);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-18: rgba(255, 255, 255, 0.18);
  --white-10: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.14);
  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1080px;
  --measure: 40rem;
  --live: #22c55e;
  --live-soft: #4ade80;
  /* legacy aliases */
  --primary: #ffffff;
  --primary-dark: #ffffff;
  --primary-light: #4ade80;
  --text: rgba(255, 255, 255, 0.92);
  --text-light: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --bg: #000000;
  --bg-light: #0a0a0a;
  --bg-white: #0a0a0a;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: none;
  --shadow-lg: none;
  --radius: 0;
  --max-width: 1080px;
  /* layout helpers */
  --aside: 15.5rem;
  --pad-x: clamp(1.15rem, 3.5vw, 2rem);
  --space-2: 0.55rem;
  --space-3: 0.85rem;
  --space-4: 1.25rem;
  --space-5: 2rem;
  --space-6: 3rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--white-92);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--white-70);
  text-decoration: none;
}

a:hover {
  color: var(--white);
}

/* DAL dot mark */
.dal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.dal-dot--xs {
  width: 5px;
  height: 5px;
}

/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--white-10);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.site-logo {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.02em;
}

.site-logo span {
  font-weight: 500;
  font-size: inherit;
  opacity: 1;
  letter-spacing: inherit;
}

.site-nav-links {
  display: flex;
  gap: 0.3rem 1.1rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.site-nav-links a {
  color: var(--white-70);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.82rem;
}

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

.site-nav-links a[aria-current="page"] {
  font-weight: 500;
}

/* Buttons */
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  border: 1px solid var(--white);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover,
a.btn:hover {
  background: transparent;
  color: var(--white);
}

.btn-secondary,
a.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--hairline);
}

.btn-secondary:hover,
a.btn-secondary:hover {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.btn-outline,
a.btn-outline {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--white-70);
}

.btn-outline:hover,
a.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-sm,
a.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}

/* Page hero */
.page-hero {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--white-10);
  padding: var(--space-5) var(--pad-x) var(--space-5);
  text-align: center;
}

.page-hero-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-hero h1:has(.agent-live-pill) {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.page-hero p {
  font-size: 0.98rem;
  color: var(--white-70);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.5;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-4);
  justify-content: center;
}

.page-hero-eyebrow {
  margin: 0 auto var(--space-3);
  text-align: center;
}

/* Agent live — hero title (not pill-on-gradient) */
.agent-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.agent-live-dot {
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.22),
    0 0 12px rgba(34, 197, 94, 0.55);
  animation: agent-live-pulse 2.2s ease-in-out infinite;
}

.agent-live-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.agent-live-name {
  color: var(--white);
  font-weight: 400;
}

.agent-live-colon {
  color: var(--white-40);
  font-weight: 400;
}

.agent-live-state {
  color: var(--live-soft);
  font-weight: 400;
  text-transform: lowercase;
}

@keyframes agent-live-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow:
      0 0 0 3px rgba(34, 197, 94, 0.22),
      0 0 12px rgba(34, 197, 94, 0.55);
  }
  50% {
    opacity: 0.82;
    box-shadow:
      0 0 0 6px rgba(34, 197, 94, 0.14),
      0 0 16px rgba(34, 197, 94, 0.7);
  }
}

/* Layout */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--pad-x) var(--space-6);
}

.articles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.articles-primary {
  min-width: 0;
}

.section-head {
  margin-bottom: var(--space-3);
}

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 0.2rem;
}

.section-subtitle {
  color: var(--white-40);
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  max-width: 42rem;
}

.section-head .section-subtitle {
  margin-bottom: 0;
}

/* Audience filters */
.audience-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.audience-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--ink);
  border: 1px solid var(--hairline);
  color: var(--white-70);
}

.audience-pill.highlight {
  border-color: var(--white-40);
  color: var(--white);
}

/* Article cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--white-10);
  border: 1px solid var(--white-10);
}

.article-card {
  background: var(--black);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.15s;
}

.article-card:hover {
  background: var(--ink);
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white-40);
}

.article-tag {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-40);
  background: none;
  padding: 0;
  border-radius: 0;
  font-weight: 500;
}

.article-card h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--white);
}

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

.article-card h2 a:hover {
  opacity: 0.78;
}

.article-card-excerpt {
  margin: 0;
  color: var(--white-40);
  font-size: 0.8rem;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  border-top: none;
}

.read-link {
  color: var(--white-40);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
}

.read-link:hover {
  color: var(--white);
}

/* CTA band */
.cta-band {
  margin-top: 2.5rem;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: none;
}

.cta-band h2 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.cta-band p {
  color: var(--white-70);
  margin-bottom: var(--space-4);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--white-40);
  margin-bottom: var(--space-4);
}

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

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

.article-header {
  margin-bottom: var(--space-4);
  max-width: var(--measure);
}

.article-header h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.article-lede {
  font-size: 1rem;
  color: var(--white-70);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 0.75rem;
}

/* Prose */
.prose {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: var(--measure);
}

.prose h2 {
  font-size: 1.1rem;
  color: var(--white);
  margin: 2rem 0 0.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--white-70);
  line-height: 1.65;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--white-70);
}

.prose li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.prose code {
  font-family: "SF Mono", "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.86em;
  background: var(--ink);
  padding: 0.12rem 0.35rem;
  border-radius: 0;
  color: var(--live-soft);
  border: 1px solid var(--hairline);
}

.prose strong {
  color: var(--white);
  font-weight: 500;
}

/* Sticky sidebar */
.article-aside {
  position: sticky;
  top: 5.4rem;
  display: grid;
  gap: 0.65rem;
}

.aside-card {
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.85rem 0.95rem;
  box-shadow: none;
  margin-bottom: 0;
}

.aside-card h3 {
  font-size: 0.82rem;
  color: var(--white);
  margin: 0 0 0.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.aside-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.aside-card li {
  margin-bottom: 0;
}

.aside-card a {
  text-decoration: none;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--white-70);
  border-bottom: 1px solid transparent;
}

.aside-card a:hover {
  color: var(--white);
  border-bottom-color: var(--white-40);
}

.aside-card a.btn,
.aside-card a.btn-sm {
  color: var(--black);
  border-bottom: 0;
  font-weight: 500;
}

.aside-card a.btn:hover,
.aside-card a.btn-sm:hover {
  color: var(--white);
  border-bottom: 0;
}

.aside-card a.btn-secondary,
.aside-card a.btn-outline {
  color: var(--white);
  border-bottom: 0;
}

.aside-card a.btn-secondary:hover,
.aside-card a.btn-outline:hover {
  color: var(--white);
  border-bottom: 0;
}

.aside-card p {
  font-size: 0.78rem;
  color: var(--white-40);
  line-height: 1.4;
  margin: 0 0 0.7rem;
}

.aside-card .btn {
  width: 100%;
  margin-bottom: 0.4rem;
}

.aside-card .btn:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--black);
  color: var(--white);
  padding: var(--space-4) var(--pad-x) var(--space-5);
  text-align: center;
  border-top: 1px solid var(--white-10);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.45rem 1.1rem;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white-70);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--white);
}

.site-footer p {
  color: var(--white-40);
  font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 960px) {
  .article-layout,
  .articles-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-nav-links {
    justify-content: center;
  }

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

  .article-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav-links {
    gap: 0.3rem 0.75rem;
  }

  .site-main {
    padding: var(--space-4) var(--pad-x) var(--space-5);
  }

  .page-hero {
    padding: var(--space-4) var(--pad-x);
  }

  .agent-live-text {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .cta-band {
    padding: var(--space-4) var(--space-3);
  }
}
