/* TechAbsorb.ai — design system (black · white · blue) */
:root {
  --bg-deep: #000000;
  --bg-surface: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: rgba(17, 17, 20, 0.88);
  --border: rgba(59, 130, 246, 0.18);
  --border-strong: rgba(59, 130, 246, 0.35);
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-faint: #737373;
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.18);
  --accent-2: #93c5fd;
  --gradient-hero: linear-gradient(145deg, #020617 0%, #000000 50%, #0c1220 100%);
  --gradient-accent: linear-gradient(120deg, #60a5fa 0%, #2563eb 45%, #1d4ed8 100%);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max-read: 42rem;
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 50% -30%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 15%, rgba(37, 99, 235, 0.08), transparent 50%),
    var(--gradient-hero);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.logo span.domain {
  font-weight: 500;
  color: var(--accent);
  font-size: 0.95em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(0, 0, 0, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap--narrow {
  max-width: 720px;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.hero__title .gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient-accent);
  color: #041018;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
  color: #020810;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section__head {
  margin-bottom: 2rem;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.section__desc {
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  max-width: 50ch;
}

/* Card grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.card__title a {
  color: var(--text);
}

.card__title a:hover {
  color: var(--accent);
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Feature strip */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.strip__item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.strip__item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-row {
  display: block;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.article-row:first-child {
  padding-top: 0;
}

/* hide any leftover thumb elements */
.article-row__thumb {
  display: none;
}

.article-row__meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.article-row__title {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.article-row__title a {
  color: var(--accent);
}

.article-row__title a:hover {
  color: var(--accent-2);
}

.article-row__excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .article-row {
    padding: 1.25rem 0;
  }
}

/* Long-form article */
.article-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.article-hero__topic {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.article-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.article-hero__dek {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.article-body {
  padding: 2.5rem 0 4rem;
}

.prose {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: #e8e8e8;
}

.prose p {
  margin: 0 0 1.25em;
}

.prose h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose ul {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose .pull {
  font-size: 1.2rem;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

/* Editorial citations */
.sources {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sources h3 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.sources ul {
  margin: 0;
  padding-left: 1.2rem;
}

.sources li {
  margin-bottom: 0.45rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.55);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 32ch;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1rem;
}

/* Legal / tiny */
.tiny {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Page shell for sticky footer */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page main {
  flex: 1;
}

/* About timeline */
.timeline {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  margin: 0;
}

.timeline li {
  margin-bottom: 1.5rem;
  list-style: none;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-deep);
}

.timeline strong {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
