/* Generated static site styles — theme: ivory */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #faf9f7;
  --text: #111111;
  --muted: #5c5c5c;
  --accent: #8bc34a;
  --font-display: 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --max: 72rem;
  --gap: 1.5rem;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none !important; opacity: 1 !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}



.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.site-header .inner,
.site-main,
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
}

.nav-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  border: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.site-main { position: relative; z-index: 1; padding-top: 2rem; padding-bottom: 4rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

a { color: #111111; border-bottom: 1px solid #8bc34a44; }
a:hover { color: #8bc34a; border-color: #8bc34a; }

.fade-in { opacity: 0; animation: fadeIn 0.85s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.12s; }
.fade-in-delay-2 { animation-delay: 0.24s; }
.fade-in-delay-3 { animation-delay: 0.36s; }

@keyframes fadeIn { to { opacity: 1; } }

.hero blockquote.hero-quote {
  margin: 0 0 1.75rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--accent);
  max-width: 38rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--text);
}
.hero blockquote.hero-quote p {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-style: inherit;
  color: inherit;
}
.hero blockquote.hero-quote cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero {
  padding: clamp(0, 8vw, 5rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  margin-bottom: 3rem;
}
.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-role {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}
.hero-tagline {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}
.hero-copy {
  max-width: 42rem;
}
.hero-copy p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}
.hero-copy p:last-child {
  margin-bottom: 0;
}
.hero-copy--compact p {
  margin-bottom: 0.65rem;
}
.hero-copy--compact + .hero-archive-note {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
}
.hero-archive-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 4px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-2px);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card .meta { font-size: 0.85rem; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }
.card a { text-decoration: none; border: none; color: inherit; }
.card a:hover h3 { color: var(--accent); }

.practice-list { list-style: none; padding: 0; margin: 2rem 0; }
.practice-list li {
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.practice-list strong { display: block; font-family: var(--font-display); margin-bottom: 0.25rem; }

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  font-size: 0.9rem;
  color: var(--muted);
}

.article-header { margin-bottom: 2rem; }
.article-header .byline { color: var(--muted); font-size: 0.95rem; }
.article-body { max-width: 42rem; }
.article-body h2 {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
}
.article-body img, .article-body video { max-width: 100%; height: auto; border-radius: 2px; }
.section-figure {
  margin: 1.25rem 0 2rem;
  max-width: 100%;
}
.section-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: 0 12px 40px color-mix(in srgb, #000 35%, transparent);
}
.section-caption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.article-body th, .article-body td { border: 1px solid color-mix(in srgb, var(--text) 15%, transparent); padding: 0.5rem; text-align: left; }
.article-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.article-body pre, .article-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.article-body pre { padding: 1rem; overflow-x: auto; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 0.5rem;
}

.project-stack { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.project-links { margin-top: 2rem; }
.article-body ul { padding-left: 1.25rem; margin: 1rem 0; }
.article-body li { margin-bottom: 0.5rem; }

.blog-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  max-width: 42rem;
}
.blog-pager-link {
  display: block;
  flex: 1 1 14rem;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.blog-pager-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.blog-pager-next { text-align: right; margin-left: auto; }
.blog-pager-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.blog-pager-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.35;
}
.blog-pager-spacer { flex: 1 1 14rem; }
.article-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.archive-banner {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.shell-notice {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 2rem 0 0;
  max-width: 28rem;
}

.shell-section {
  padding: 2rem 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.archive-timeline {
  margin: 1rem 0 2rem;
  padding-left: 1.25rem;
  max-width: 42rem;
}
.archive-timeline li { margin-bottom: 0.65rem; }
.archive-timeline a { font-weight: 500; }

.city-section { margin-top: 2.5rem; }
.city-section:first-of-type { margin-top: 1rem; }
.city-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Consulting layout — kevinmyat.gitlab.io */
.consult-hero {
  padding: clamp(2rem, 6vw, 4rem) 0 3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  margin-bottom: 0;
}
.consult-hero .hero-eyebrow { margin-bottom: 1rem; }
.consult-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 0 1.25rem;
}
.consult-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.consult-hero .lead { max-width: 36rem; font-size: 1.15rem; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.75rem 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { background: color-mix(in srgb, var(--text) 85%, var(--accent)); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 20%, transparent);
}
.callout {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  max-width: 40rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  font-size: 0.98rem;
  color: var(--muted);
}
.callout strong { color: var(--text); font-weight: 500; }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.metric {
  text-align: left;
}
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.metric-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.consult-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.consult-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}
.consult-section .section-lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.consult-section h2 em { font-style: italic; color: var(--accent); }

.service-grid {
  display: grid;
  gap: 1px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
.service-card {
  background: var(--bg);
  padding: 1.5rem 1.75rem;
  transition: background 0.2s;
}
.service-card:hover { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.service-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.service-card h3 em { font-style: italic; }
.service-card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.method-steps {
  display: grid;
  gap: 2rem;
  max-width: 48rem;
}
.method-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.method-marker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.15rem;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}
.principle-card {
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.principle-card .num { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; }
.principle-card h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.principle-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.architecture-section .section-lead { max-width: 40rem; }
.pei-lead-quote {
  margin: 0 0 2rem;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--text);
}
.pei-lead-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
}
.pei-principles {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}
.pei-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.pei-card:last-child { border-bottom: none; padding-bottom: 0; }
.pei-card blockquote {
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}
.pei-card blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
}
.pei-card .applied {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}
.pei-card .applied strong { color: var(--text); font-weight: 500; }

.arch-layers {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 40rem;
  line-height: 1.55;
}
.arch-layers li { margin-bottom: 0.65rem; color: var(--muted); }
.arch-layers strong { color: var(--text); font-weight: 500; }

.viz-panel {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  background: color-mix(in srgb, var(--text) 3%, var(--bg));
}
.viz-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1rem;
}
.viz-panel svg { width: 100%; height: auto; display: block; }

.chart-bars { display: flex; align-items: flex-end; gap: 1rem; height: 10rem; padding-top: 1rem; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.chart-bar {
  width: 100%;
  max-width: 4rem;
  background: color-mix(in srgb, var(--accent) 70%, var(--text));
  border-radius: 2px 2px 0 0;
  height: 0;
  transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.chart-bar.is-visible { height: var(--h); }
.chart-bar-label { font-size: 0.7rem; color: var(--muted); text-align: center; }
.chart-bar-value { font-size: 0.85rem; font-weight: 600; }

.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
}
.pipeline-node {
  padding: 0.4rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  animation: pulseNode 3s ease-in-out infinite;
}
.pipeline-node:nth-child(odd) { animation-delay: 0.4s; }
.pipeline-arrow { color: var(--muted); }
@keyframes pulseNode {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.contact-section { padding-bottom: 4rem; }
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}
.contact-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: var(--bg);
  color: var(--text);
  border-radius: 2px;
}
.contact-form textarea { min-height: 6rem; resize: vertical; }
.contact-links { font-size: 0.95rem; color: var(--muted); }
.contact-links a { font-weight: 500; }

.essay-list { list-style: none; padding: 0; margin: 2rem 0 0; max-width: 40rem; }
.essay-list li {
  margin: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.essay-list a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border: none;
}
.essay-list a:hover { color: var(--accent); }
.essay-list time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.essay-list .essay-tease {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
}

.post-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.post-nav a { font-size: 0.95rem; }

.project-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1.5rem;
}
.project-card {
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.project-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.project-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
