/* Native media queries set the first paint, with no theme-switching script. */
:root { color-scheme: light dark; }
body { min-width: 0; }
header nav { max-width: 1140px; gap: 4px 20px; }
header nav a { min-height: 44px; display: inline-flex; align-items: center; }
main.container { width: 100%; max-width: 1140px; padding: 0 28px; min-width: 0; }
.landing { --muted: rgb(var(--text) / .7); padding-bottom: 32px; }
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; min-width: 0; }
.landing a { text-underline-offset: 4px; }
.landing a:focus-visible { outline: 3px solid rgb(var(--primary)); outline-offset: 5px; }
.landing p { line-height: 1.65; }
.landing h1, .landing h2, .landing h3, .landing h4 { color: rgb(var(--text)); line-height: 1.15; letter-spacing: -.035em; }
.landing .eyebrow { font: 600 11px/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--primary)); margin: 0 0 16px; }
.intro { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 64px; padding: 72px 0 56px; }
.landing h1 { font-size: clamp(38px, 4vw, 57px); font-weight: 750; margin: 0 0 24px; }
.landing h1 span { color: rgb(var(--primary)); }
.intro-description { font-size: 17px; max-width: 560px; color: var(--muted); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.landing a.action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 7px; font-size: 14px; font-weight: 650; text-decoration: none; border: 1px solid rgb(var(--primary)); }
.landing a.primary { background: rgb(var(--primary)); color: #fff; }
.landing a.secondary { color: rgb(var(--primary)); }
.landing a.action:hover { filter: brightness(.93); }
.intro-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.identity-panel { padding: 30px; border: 1px solid rgb(var(--border)); border-radius: 14px; background: radial-gradient(ellipse at top right, rgb(var(--primary) / .1), transparent 70%), rgb(var(--surface)); }
.identity-panel img { border-radius: 50%; width: 88px; height: 88px; margin-bottom: 18px; }
.identity-name { font-weight: 650; margin: 0 0 6px; }
.identity-caption { font-size: 13px; color: var(--muted); }
.hero-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 22px 0; margin: 18px 0 10px; border-block: 1px solid rgb(var(--border)); }
.hero-numbers dt { font-size: 22px; font-weight: 750; letter-spacing: -.04em; }
.hero-numbers dd { font-size: 11px; color: var(--muted); margin-top: 4px; }
.landing a.small-link { font-size: 13px; font-weight: 600; text-decoration: none; display: inline-block; padding-block: 10px; }
.section-block { padding: 40px 0; border-top: 1px solid rgb(var(--border)); scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.landing h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 0; }
.section-lead { max-width: 730px; font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.work-loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 24px 0 0; border: 1px solid rgb(var(--border)); border-radius: 10px; background: rgb(var(--surface)); }
.work-loop li { padding: 22px; position: relative; }
.work-loop li + li { border-left: 1px solid rgb(var(--border)); }
.work-loop li:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 20px; color: rgb(var(--primary)); background: rgb(var(--surface)); z-index: 1; }
.step-number { font: 12px ui-monospace, monospace; color: rgb(var(--primary)); }
.work-loop h3 { font-size: 18px; margin: 18px 0 10px; font-weight: 650; }
.work-loop p { font-size: 13px; color: var(--muted); margin: 0; }
.feedback-line { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid rgb(var(--primary) / .25); border-top: 0; border-radius: 0 0 10px 10px; margin: 0 14px; background: rgb(var(--primary) / .04); }
.feedback-line > span { color: rgb(var(--primary)); font-size: 26px; }
.feedback-line p, .fleet-line p { font-size: 13px; color: var(--muted); margin: 0; }
.fleet-line { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.fleet-line p:nth-child(2) { flex: 1; }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
.activity-tile, .activity-repos { padding: 22px; border: 1px solid rgb(var(--border)); border-radius: 10px; background: rgb(var(--surface)); }
.activity-tile strong { display: block; font-size: 38px; font-weight: 750; letter-spacing: -.05em; line-height: 1.2; }
.activity-tile span { color: var(--muted); font-size: 13px; }
.activity-repos h3 { font-size: 13px; margin: 0 0 12px; font-weight: 650; }
.repo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; margin-top: 10px; font-size: 12px; }
.repo-row span { overflow-wrap: anywhere; }
.repo-track { height: 4px; background: rgb(var(--border)); grid-column: 1 / -1; margin-top: 5px; border-radius: 3px; }
.repo-bar { height: 100%; background: rgb(var(--primary)); border-radius: 3px; }
.snapshot-note { font-size: 11px; color: var(--muted); margin: 12px 0 0; }
.post-group-title { font-size: 13px; font-weight: 600; margin: 24px 0 14px; letter-spacing: 0 !important; }
.post-grid { display: grid; gap: 20px; }
.featured-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.latest-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing a.post-card { display: block; border: 1px solid rgb(var(--border)); border-radius: 10px; overflow: hidden; text-decoration: none; background: rgb(var(--surface)); transition: border-color .15s; }
.landing a.post-card:hover, .landing a.project-tile:hover { border-color: rgb(var(--primary)); }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid rgb(var(--border)); }
/* Keep editorial thumbnails visible without JavaScript, unlike global blur-up images. */
.landing .post-card img { opacity: 1; filter: none; }
.post-copy { padding: 18px; }
.post-copy time { font: 11px ui-monospace, monospace; color: var(--muted); }
.post-copy h4 { font-size: 19px; font-weight: 650; margin: 10px 0; overflow-wrap: anywhere; }
.post-copy p { font-size: 13px; color: var(--muted); margin: 0; }
.build-panel { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 32px; margin: 16px 0 40px; border: 1px solid rgb(var(--primary) / .3); border-radius: 12px; background: rgb(var(--primary) / .05); }
.build-panel p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin-top: 18px; }
.build-panel ul { font-size: 14px; list-style: none; padding: 0; margin: 4px 0 20px; }
.build-panel li { margin-bottom: 10px; }
.build-panel li::before { content: '↳ '; color: rgb(var(--primary)); }
.build-panel .small-link { display: block !important; margin-top: 6px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.landing a.project-tile { padding: 24px; border: 1px solid rgb(var(--border)); border-radius: 10px; text-decoration: none; }
.project-index { font: 11px ui-monospace, monospace; color: var(--muted); }
.project-tile h3 { font-size: 20px; margin: 14px 0 10px; overflow-wrap: anywhere; font-weight: 650; }
.project-tile p { color: var(--muted); font-size: 14px; margin: 0; }
@media (prefers-color-scheme: dark) { .landing a.primary { color: #161627; } }
@media (max-width: 760px) {
  main.container { padding-inline: 20px; }
  header nav { padding-inline: 12px; gap: 0 6px; }
  header nav a { font-size: 13px; padding-inline: 8px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 40px 0; }
  .intro-description { font-size: 16px; }
  .identity-panel { padding: 22px; }
  .identity-panel img { float: right; width: 64px; height: 64px; margin-left: 10px; }
  .hero-numbers { clear: both; }
  .section-block { padding: 30px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 0; }
  .section-heading > .small-link { padding-top: 12px; }
  .work-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-loop li { padding: 18px; }
  .work-loop li:nth-child(3) { border-left: 0; }
  .work-loop li:nth-child(n+3) { border-top: 1px solid rgb(var(--border)); }
  .work-loop li:nth-child(2)::after { content: none; }
  .feedback-line { margin-inline: 8px; padding: 14px; }
  .fleet-line { flex-direction: column; align-items: start; gap: 6px; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-repos { grid-column: 1 / -1; }
  .featured-posts, .latest-posts, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .build-panel { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 18px; }
  .hero-actions .action { flex: 1 0 auto; }
}
