/* Copyright 2026 and onwards, Memdance Inc. All Rights Reserved. */
/* Author: amaltas@memdance.com (Amaltas Bohra) */
@font-face {
  font-family: Inter;
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f9f9;
  --surface: #ffffff;
  --ink: #14232f;
  --muted: #64727d;
  --line: #dce4e7;
  --green: #087d74;
  --accent: #65d9c5;
  --night: #091722;
  --night-muted: #a9bbc7;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: calc(100% - 80px); max-width: 1160px; margin-inline: auto; }
.masthead { background: var(--night); color: #f1f7fa; }
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #203440;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 620; letter-spacing: -1px; }
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 29px; height: 32px; filter: brightness(0) invert(1); }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 500; }
.site-header nav > a { color: #c3d1d9; }
.site-header nav > a:hover { color: #fff; }
.site-header nav span { margin-left: 8px; color: var(--accent); }
.social-link { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; }
.linkedin-icon { width: 18px; height: 18px; fill: currentColor; }
.masthead a:focus-visible, .intro a:focus-visible { outline-color: var(--accent); }
.skip { position: absolute; top: -100px; left: 20px; z-index: 5; padding: 12px 18px; background: var(--accent); color: var(--night); }
.skip:focus { top: 12px; }

/* The complete company introduction is one compact, connected composition. */
.intro {
  padding: 26px 0 30px;
  color: #f5f9fc;
  background: radial-gradient(ellipse at 85% 42%, #123038 0%, transparent 48%), var(--night);
}
.intro h1 { margin: 0 0 26px; max-width: 1000px; font-size: clamp(42px, 5.25vw, 68px); line-height: 1.05; font-weight: 620; letter-spacing: -3.3px; }
.intro h1 em { color: var(--accent); font-style: normal; font-weight: 550; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; gap: 44px; }
.intro-copy { max-width: 650px; }
.intro-copy p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; letter-spacing: -.15px; color: #c6d4dd; }
.intro-copy p:last-child { margin-bottom: 0; color: #9eb2be; }
.hero-architecture { margin: 0; }
.hero-architecture img { width: 100%; height: 205px; object-fit: contain; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: end; gap: 50px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #29404b; }
.hero-thesis p:first-child { margin: 0 0 10px; color: #98adb9; font-size: 14px; line-height: 1.6; }
.hero-thesis p:last-child { margin: 0; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.34; font-weight: 470; letter-spacing: -.8px; }
.hero-thesis strong { display: block; white-space: nowrap; color: var(--accent); font-weight: 580; }
.hero-status { margin: 0; border-left: 2px solid #4b9c8d; padding-left: 18px; font-size: 12.5px; line-height: 1.75; color: #9db1bd; }

/* Journal listings use the same grid, type scale, and quiet separators. */
.recent { padding-top: 40px; padding-bottom: 36px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 10px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 580; letter-spacing: -.9px; }
.recent-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.recent-list li { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); }
.recent-list h3 { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.5; font-weight: 530; letter-spacing: -.35px; }
.recent-list h3 span { margin-left: 8px; color: var(--green); font-size: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.post-meta a { text-decoration: underline; text-decoration-color: #bbc7cd; text-underline-offset: 3px; }
.post-meta a:hover { color: var(--green); text-decoration-color: currentColor; }
.recent-list .post-meta { flex-direction: column; gap: 3px; text-align: right; }
.text-link { font-size: 13px; line-height: 1.6; font-weight: 570; color: var(--green); }
.journal-more { margin: 23px 0 0; text-align: right; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.6; color: var(--muted); }
.journal { padding-top: 54px; padding-bottom: 72px; }
.journal h1 { margin: 0 0 22px; max-width: 880px; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.12; font-weight: 610; letter-spacing: -2px; }
.lede { max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 32px; }
.tags a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 11px; line-height: 1.5; color: #47616c; }
.tags a:hover { border-color: #80aca8; background: #edf5f3; text-decoration: none; }
.article-list { border-top: 1px solid var(--line); }
.article-list article { padding: 28px 0; border-bottom: 1px solid var(--line); }
.article-list h2 { max-width: 850px; margin: 12px 0 10px; font-size: 26px; line-height: 1.35; font-weight: 560; letter-spacing: -.7px; }
.article-list h2 span { font-size: 18px; color: var(--green); }
.article-list p { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* Long-form articles keep generous reading space without oversized titles. */
.article { max-width: 900px; padding-top: 42px; padding-bottom: 64px; }
.article-header { padding-bottom: 4px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.article-header > .text-link { display: inline-block; margin-bottom: 26px; }
.article-header h1 { max-width: 850px; margin: 0 0 20px; font-size: clamp(34px, 4vw, 52px); line-height: 1.14; font-weight: 610; letter-spacing: -1.8px; }
.article-header .lede { font-size: 18px; }
.article-header .tags { margin-bottom: 24px; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.85; color: #263c49; }
.prose p { margin-bottom: 23px; }
.prose h2 { margin: 42px 0 17px; color: var(--ink); font-size: 27px; line-height: 1.35; font-weight: 590; letter-spacing: -.7px; }
.prose h3 { margin: 28px 0 14px; color: var(--ink); font-size: 19px; line-height: 1.45; font-weight: 590; letter-spacing: -.3px; }
.prose strong { font-weight: 620; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 26px; padding-left: 23px; }
.prose li { margin-bottom: 9px; }
.prose blockquote { margin: 30px 0; padding: 20px 25px; border-left: 3px solid var(--green); background: #edf4f3; }
.prose blockquote p { margin: 0; }
.prose code { padding: 2px 5px; border-radius: 3px; background: #e9eef0; font-family: monospace; font-size: .86em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose .table-scroll { max-width: 100%; overflow-x: auto; margin: 28px 0; }
.prose table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; line-height: 1.7; }
.prose th, .prose td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { color: var(--ink); background: #eaf0f1; font-size: 12px; font-weight: 620; }
.prose tbody th { font-weight: 590; }
.prose table code { white-space: nowrap; }
.prose caption { padding-bottom: 12px; color: var(--muted); text-align: left; font-size: 12px; }
.article-end { max-width: 760px; margin-top: 42px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Figures share the product's restrained architectural drawing language. */
.prose .tech-diagram { margin: 32px 0; padding: 24px; border: 1px solid #cfdee0; border-radius: 6px; background: #eef4f4; font-size: 14px; line-height: 1.6; }
.tech-diagram .diagram-label { margin-bottom: 22px; color: #56727c; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.2px; }
.diagram-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.diagram-card { position: relative; padding: 21px; border: 1px solid #d4e0e1; border-radius: 4px; background: #fff; }
.tech-diagram .diagram-card h3 { margin: 8px 0 18px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.diagram-kicker { color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: 1px; text-transform: uppercase; }
.diagram-bit { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.diagram-bit strong { color: var(--green); font-size: 36px; line-height: 1; font-weight: 560; font-variant-numeric: tabular-nums; }
.diagram-bit-actual strong { color: #95532e; }
.diagram-join, .diagram-branch { display: block; width: 100%; height: 40px; fill: none; stroke: #789ba2; stroke-width: 1.5; }
.diagram-verdict { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding: 15px; border: 1px solid #dbc6a8; border-radius: 4px; background: #f6ecdf; font-size: 13px; }
.diagram-verdict > span:last-child { color: #7b5c34; font-family: monospace; font-size: 12px; }
.diagram-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #95532e; }
.diagram-arrow, .diagram-check { display: block; flex-shrink: 0; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--green); }
.prose .diagram-steps { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.prose .diagram-steps > li { position: relative; flex: 1; min-width: 0; padding: 17px 12px; margin: 0; border: 1px solid #d4e0e1; border-radius: 4px; background: #fff; font-size: 12px; line-height: 1.65; }
.diagram-step-number { display: block; margin-bottom: 10px; font-family: monospace; font-size: 10px; letter-spacing: 1px; color: var(--green); }
.diagram-steps .diagram-arrow { position: absolute; right: -24px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); }
.tech-diagram figcaption { margin-top: 21px; padding-top: 15px; border-top: 1px solid #cfdee0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.prose .tech-diagram .table-scroll { margin: 0; }
.candidate-table { background: #fff; }
.candidate-table th, .candidate-table td { white-space: nowrap; }
.candidate-accepted { background: #e0efe9; }
.result-badge { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.result-fail { color: #874721; background: #f3e7d9; }
.result-pass { color: #176147; background: #d7ebe0; }
.diagram-assurance .diagram-check { margin-bottom: 14px; }
.tech-diagram .diagram-assurance h3 { margin: 0 0 12px; }
.tech-diagram .diagram-assurance p { margin: 0; color: var(--muted); font-size: 12px; }
.diagram-assurance p strong { color: var(--ink); }
.evidence-flow { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; padding: 18px 12px; border-radius: 4px; color: #fff; background: #1a4e52; font-size: 13px; }
.evidence-flow .diagram-arrow { color: var(--accent); }
.tech-diagram .agent-flow h3 { margin: 0 0 13px; font-size: 12px; font-weight: 600; }
.agent-flow + .agent-flow { margin-top: 24px; padding-top: 21px; border-top: 1px solid #cfdee0; }
.agent-flow-direct .diagram-steps > li { border-color: #bed8d2; background: #e5f1ee; }
.prose .investigation-steps { list-style: none; padding: 0; margin: 0; }
.prose .investigation-steps > li { position: relative; display: flex; align-items: baseline; gap: 17px; padding: 17px 19px; margin: 0; border: 1px solid #d4e0e1; border-radius: 4px; background: #fff; }
.prose .investigation-steps > li + li { margin-top: 16px; }
.investigation-steps > li + li::before { content: ''; position: absolute; left: 31px; top: -17px; height: 16px; border-left: 1px solid #789ba2; }
.investigation-steps .diagram-step-number { margin: 0; }
.tech-diagram .investigation-steps h3 { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 590; }
.prose .investigation-steps > li.investigation-focus { background: #e5f1ee; border-color: #bed8d2; }
.prose .investigation-steps ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; list-style: disc; padding-left: 18px; margin: 12px 0 0; font-size: 12px; }
.prose .investigation-steps ul li { margin: 0; }
.tech-diagram .stack-stage-detail { margin: 7px 0 0; font-size: 12px; line-height: 1.75; color: var(--muted); }
.stack-principle { margin-top: 22px; padding: 17px; border-radius: 4px; background: #15363f; color: #a7e3d9; font-size: 12px; line-height: 1.8; text-align: center; }
.engineering-sequence { padding: 17px 21px; border-left: 3px solid var(--green); background: #eef4f4; font-size: 14px; line-height: 2; }

@media (min-width: 1101px) and (max-height: 760px) {
  .site-header { min-height: 64px; }
  .intro { padding: 20px 0 22px; }
  .intro h1 { font-size: 58px; margin-bottom: 20px; }
  .intro-copy p { font-size: 16px; line-height: 1.55; margin-bottom: 12px; }
  .intro-copy p:last-child { margin-bottom: 0; }
  .hero-architecture img { height: 175px; }
  .hero-bottom { margin-top: 20px; padding-top: 17px; }
  .hero-thesis p:first-child { margin-bottom: 8px; font-size: 13px; }
  .hero-thesis p:last-child { font-size: 24px; }
  .hero-status { font-size: 12px; }
}
@media (max-width: 1100px) {
  .hero-grid { display: block; }
  .hero-architecture { display: none; }
  .intro-copy { max-width: 820px; }
  .intro { padding-top: 24px; }
  .intro h1 { font-size: clamp(42px, 5.5vw, 60px); }
  .hero-bottom { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 64px; }
  .wordmark { font-size: 23px; gap: 10px; }
  .wordmark img { width: 25px; height: 28px; }
  .site-header nav { gap: 14px; font-size: 12px; }
  .intro { padding: 24px 0; }
  .intro h1 { font-size: clamp(36px, 7vw, 48px); line-height: 1.09; letter-spacing: -1.8px; margin-bottom: 20px; }
  .intro-copy p { font-size: 15.5px; line-height: 1.7; }
  .hero-bottom { display: block; margin-top: 20px; padding-top: 18px; }
  .hero-thesis p:last-child { font-size: clamp(17px, 4.75vw, 23px); letter-spacing: -.5px; }
  .hero-status { margin-top: 16px; max-width: 570px; font-size: 12px; }
  .recent { padding-top: 30px; }
  .section-heading h2 { font-size: 24px; }
  .recent-list li { grid-template-columns: 1fr; gap: 10px; padding: 21px 0; }
  .recent-list h3 { font-size: 16px; }
  .recent-list .post-meta { flex-direction: row; text-align: left; gap: 5px 15px; font-size: 11px; }
  .site-footer { flex-wrap: wrap; gap: 12px 20px; font-size: 10px; }
  .site-footer span:nth-child(2) { display: none; }
  .journal, .article { padding-top: 32px; }
  .journal h1, .article-header h1 { font-size: 34px; line-height: 1.18; letter-spacing: -1.2px; }
  .lede, .article-header .lede { font-size: 16px; }
  .article-list h2 { font-size: 23px; }
  .prose { font-size: 16px; line-height: 1.85; }
  .prose h2 { font-size: 24px; }
  .article-header { margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .prose .tech-diagram { padding: 18px; }
  .diagram-columns { grid-template-columns: 1fr; gap: 12px; }
  .diagram-card { padding: 18px; }
  .diagram-join { display: none; }
  .diagram-verdict { margin-top: 14px; }
  .prose .diagram-steps { flex-direction: column; gap: 20px; }
  .prose .diagram-steps > li { display: flex; align-items: center; gap: 14px; padding: 14px; font-size: 13px; }
  .diagram-steps .diagram-step-number { margin: 0; }
  .diagram-steps .diagram-arrow { top: auto; bottom: -22px; left: 21px; right: auto; transform: rotate(90deg); }
  .evidence-flow { flex-direction: column; gap: 12px; text-align: center; }
  .evidence-flow .diagram-arrow { transform: rotate(90deg); }
  .prose .investigation-steps ul { grid-template-columns: 1fr; }
  .tech-diagram .diagram-label { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .masthead, .site-footer, .tags, .skip, .article-end { display: none; }
  :root, body { background: #fff; color: #000; }
  .wrap, .article, .prose { width: 100%; max-width: none; padding: 0; }
  .intro { background: #fff; color: #000; }
  .intro p, .intro h1 em, .hero-thesis strong { color: #000; }
  .hero-architecture { display: none; }
  .prose .tech-diagram { break-inside: avoid; background: #fff; }
  a { text-decoration: underline; }
}
