:root {
  --bg: #f4efe7;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffdf9;
  --ink: #1e2430;
  --muted: #586172;
  --line: rgba(30, 36, 48, 0.12);
  --accent: #0f766e;
  --accent-strong: #0b4f5a;
  --highlight: #f59e0b;
  --shadow: 0 24px 60px rgba(33, 37, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(30, 36, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 36, 48, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 15% 12%, rgba(245, 158, 11, 0.12), transparent 20%),
    radial-gradient(circle at 82% 10%, rgba(15, 118, 110, 0.11), transparent 24%),
    linear-gradient(180deg, #fdfaf4 0%, #f0ece2 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(252, 250, 246, 0.82);
  border-bottom: 1px solid rgba(30, 36, 48, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 3.9rem;
  height: 3.9rem;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-text strong {
  font-family: "Orbitron", "Manrope", sans-serif;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 0.98;
  text-transform: uppercase;
  color: #2d9ccb;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-text span,
.site-nav a,
.meta,
.footer-title,
.eyebrow {
  color: var(--muted);
}

.brand-text span {
  font-family: "Orbitron", "Manrope", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b3b8bf;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-nav a {
  font-size: 0.95rem;
  transition: color 160ms ease;
}

.site-nav a:hover,
.post-card a:hover,
.contact-panel a:hover {
  color: var(--accent-strong);
}

.hero,
.section,
.page-intro {
  padding: 4.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.page-intro h1,
.section-heading h2,
.article-body h1,
.article-section h2,
.post-card h2,
.post-card h3,
.content-card h3 {
  font-family: "Newsreader", "Fraunces", Georgia, serif;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  max-width: 12ch;
}

.page-intro h1 {
  font-size: clamp(1.55rem, 3.35vw, 2.5rem);
  max-width: 15ch;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
}

.article-body h1 {
  font-size: clamp(2rem, 4.9vw, 3.65rem);
  max-width: 12ch;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-intro h1 + .card-grid,
.page-intro h1 + .post-list,
.page-intro h1 + .contact-panel,
.page-intro h1 + .stacked-copy {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 36, 48, 0.1);
}

.hero-panel {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 1rem;
}

.hero-diagram {
  position: relative;
  width: min(100%, 420px);
  min-height: 260px;
  border-radius: 32px;
  border: 1px solid rgba(30, 36, 48, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.14)),
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(11, 79, 90, 0.04));
  overflow: hidden;
  z-index: 1;
  justify-self: start;
}

.hero-card,
.content-card,
.post-card,
.contact-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  width: min(100%, 420px);
  padding: 1.6rem;
  border-radius: 28px;
  z-index: 2;
  justify-self: start;
}

.hero-card-link {
  display: block;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.hero-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 28px 64px rgba(33, 37, 41, 0.16);
}

.card-label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.74rem;
}

.signal-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.signal-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--highlight);
  line-height: 1.5;
}

.hero-card-cta {
  display: inline-flex;
  margin-top: 1.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}

.hero-grid-lines,
.hero-link,
.hero-node,
.hero-chip {
  position: absolute;
}

.hero-grid-lines {
  inset: 0;
  background:
    linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-node {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 6px rgba(30, 36, 48, 0.06);
}

.hero-node-a {
  top: 72px;
  left: 68px;
  background: #0f766e;
}

.hero-node-b {
  top: 128px;
  right: 92px;
  background: #f59e0b;
}

.hero-node-c {
  bottom: 100px;
  left: 126px;
  background: #1e2430;
}

.hero-node-d {
  bottom: 64px;
  right: 66px;
  background: #0f766e;
}

.hero-link {
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.72), rgba(245, 158, 11, 0.42));
}

.hero-link-a {
  top: 79px;
  left: 82px;
  width: 180px;
  transform: rotate(18deg);
}

.hero-link-b {
  top: 142px;
  left: 136px;
  width: 154px;
  transform: rotate(132deg);
}

.hero-link-c {
  bottom: 74px;
  left: 140px;
  width: 160px;
  transform: rotate(-9deg);
}

.hero-chip {
  right: 22px;
  bottom: 22px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 36, 48, 0.12);
  background: rgba(255, 253, 249, 0.86);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-muted {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(30, 36, 48, 0.08);
  border-bottom: 1px solid rgba(30, 36, 48, 0.08);
}

.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
}

.card-grid,
.post-list {
  display: grid;
  gap: 1.25rem;
}

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

.content-card,
.post-card,
.contact-panel {
  border-radius: 24px;
  padding: 1.5rem;
}

.content-card h3,
.post-card h2,
.post-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.content-card p,
.post-card p,
.stacked-copy p,
.article-section p,
.contact-panel p,
.site-footer p,
.site-footer a {
  line-height: 1.7;
  color: var(--muted);
}

.post-card-wide {
  max-width: 860px;
}

.post-list .post-card + .post-card {
  margin-top: 0.25rem;
}

.article-body {
  display: grid;
  gap: 1.5rem;
}

.markdown-body {
  display: grid;
  gap: 1rem;
}

.markdown-body > * {
  margin: 0;
}

.markdown-body h2,
.markdown-body h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
  color: var(--ink);
}

.markdown-body h2 {
  font-size: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.markdown-body h3 {
  font-size: 1.45rem;
  padding-top: 0.5rem;
}

.markdown-body p,
.markdown-body li,
.markdown-body blockquote {
  line-height: 1.8;
  color: var(--muted);
}

.markdown-body ul,
.markdown-body ol {
  margin: 0;
  padding-left: 1.25rem;
}

.markdown-body code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(30, 36, 48, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
}

.markdown-body pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: rgba(30, 36, 48, 0.92);
  color: #f3f4f6;
  border-radius: 1rem;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.markdown-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

.article-section {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.stacked-copy {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-panel {
  margin-top: 1.75rem;
}

.contact-panel a {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 36, 48, 0.08);
}

.footer-title {
  margin-bottom: 0.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .page-intro {
    padding: 3.5rem 0;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 0.8rem 1rem;
  }

  .hero-copy h1 {
    font-size: 1.7rem;
  }

  .article-body h1 {
    font-size: 1.95rem;
  }

  .page-intro h1 {
    font-size: 1.55rem;
  }

  .content-card,
  .post-card,
  .contact-panel,
  .hero-card {
    border-radius: 20px;
  }
}
