:root {
  --bg: #f3efe6;
  --bg-strong: #e2d6be;
  --paper: rgba(255, 251, 244, 0.9);
  --ink: #1e2430;
  --muted: #5d6473;
  --accent: #0c7c59;
  --accent-soft: #dcefe8;
  --line: rgba(30, 36, 48, 0.12);
  --shadow: 0 18px 60px rgba(60, 47, 28, 0.12);
  --heading-font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --body-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --mono-font: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(180deg, #efe6d5 0%, var(--bg) 48%, #ece8e0 100%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 252, 247, 0.92), rgba(241, 233, 216, 0.88)),
    var(--paper);
  box-shadow: var(--shadow);
}

.subpage-hero,
.post-page {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 252, 247, 0.92), rgba(241, 233, 216, 0.88)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 124, 89, 0.18), transparent 70%);
}

.topbar,
.hero-grid,
.section-heading,
.about-stats,
.nav-links,
.signal-header,
.tag-row {
  display: flex;
}

.topbar,
.hero-grid,
.split-section,
.about-stats {
  gap: 24px;
}

.topbar,
.signal-header,
.tag-row {
  align-items: center;
}

.topbar,
.split-section {
  justify-content: space-between;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.45rem;
  color: #fff;
  background: linear-gradient(135deg, #0e5f48, #2d9c76);
}

.eyebrow,
.hero-kicker,
.post-meta,
.lab-item span,
.nav-links a,
.tag {
  font-family: var(--heading-font);
}

.eyebrow,
.hero-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: var(--heading-font);
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 4vw, 4.8rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
  font-size: 1.4rem;
}

.nav-links {
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-grid {
  margin-top: 52px;
  align-items: end;
}

.hero-copy,
.signal-card,
.post-card,
.lab-panel,
.about-card {
  border-radius: 24px;
}

.hero-copy {
  flex: 1.35;
}

.hero-summary,
.page-summary,
.section-copy,
.about-card p,
.post-card p,
.lab-item p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #30384a;
}

.page-summary {
  max-width: 70ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--heading-font);
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover,
.tag:hover,
.post-card:hover {
  transform: translateY(-2px);
}

.primary {
  color: #fff;
  background: var(--accent);
}

.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.signal-card,
.post-card,
.lab-panel,
.about-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 30px rgba(49, 52, 62, 0.06);
}

.signal-card {
  flex: 0.92;
  padding: 22px;
  backdrop-filter: blur(8px);
}

.signal-header {
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--heading-font);
  font-size: 0.9rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #46b97d;
  box-shadow: 0 0 0 6px rgba(70, 185, 125, 0.12);
}

.signal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(30, 36, 48, 0.08);
  font-size: 0.98rem;
}

.signal-list li:first-child {
  border-top: 0;
}

.terminal-block {
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 18px;
  overflow-x: auto;
  color: #d9ffe6;
  background: #15231d;
  font-family: var(--mono-font);
  font-size: 0.85rem;
  line-height: 1.7;
}

.content-section {
  margin-top: 34px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.74);
  box-shadow: var(--shadow);
}

.compact-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.section-heading {
  gap: 16px;
  align-items: baseline;
  margin-bottom: 18px;
}

.tag-row {
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 26px;
}

.tag {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  cursor: pointer;
}

.tag.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shortcut-grid,
.archive-list {
  display: grid;
  gap: 16px;
}

.shortcut-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shortcut-card,
.archive-item {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(49, 52, 62, 0.06);
}

.shortcut-card strong,
.archive-item strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--heading-font);
  font-size: 1.15rem;
}

.shortcut-card span,
.archive-item span,
.archive-item em {
  color: var(--muted);
  font-style: normal;
}

.archive-item {
  display: grid;
  grid-template-columns: 120px 1fr 110px;
  align-items: center;
  gap: 18px;
}

.archive-item:hover,
.shortcut-card:hover {
  transform: translateY(-2px);
}

.post-card {
  padding: 22px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.post-card a {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--heading-font);
  color: var(--accent);
  text-decoration: none;
}

.post-meta,
.lab-item span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: start;
}

.lab-panel {
  padding: 14px 18px;
}

.lab-item {
  padding: 16px 4px;
  border-top: 1px solid rgba(30, 36, 48, 0.08);
}

.lab-item:first-child {
  border-top: 0;
}

.about-card {
  padding: 24px;
}

.about-link-row {
  margin-top: 18px;
}

.about-link-row a,
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--heading-font);
}

.static-card {
  cursor: default;
}

.post-page {
  max-width: 860px;
  margin: 0 auto;
}

.post-title {
  margin-top: 10px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.post-content {
  margin-top: 28px;
}

.post-content p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #2b3242;
}

.about-stats {
  margin-top: 24px;
  flex-wrap: wrap;
}

.about-stats div {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--accent-soft);
}

.about-stats strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.8rem;
}

.about-stats span {
  color: var(--muted);
}

.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .article-grid,
  .split-section,
  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    display: grid;
  }

  .article-grid {
    display: grid;
  }

  .archive-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

  .hero,
  .content-section {
    padding: 22px 18px;
    border-radius: 22px;
  }

  h1 {
    max-width: none;
  }

  .topbar,
  .brand {
    display: block;
  }

  .nav-links {
    margin-top: 18px;
  }

  .about-stats div {
    width: 100%;
  }
}
