:root {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",sans-serif;
  color: #14213d;
  background: #f7f9fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #14213d;
  --muted: #6b7280;
  --line: #e5eaf0;
  --accent: #20bfa9;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
.site-header {
  height: 76px;
  max-width: 1160px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  line-height: 1.05;
}
.brand-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
}
.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
}
.site-header nav {
  display: flex;
  gap: 28px;
}
.site-header nav a,.site-footer a,.text-link,.back-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.site-header nav a:hover,.site-footer a:hover,.text-link:hover,.back-link:hover {
  color: var(--ink);
}
.site-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 32px 100px;
}
.hero {
  max-width: 820px;
  padding: 108px 0 94px;
}
.hero-statement {
  max-width: 650px;
  margin: 0;
  color: #5c6574;
  font-size: clamp(17px, 2.3vw, 20px);
  font-weight: 400;
  line-height: 1.8;
}
.hero-now {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 19px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
}
.hero-now i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-now span {
  color: #168f80;
  font: 10px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing: .08em;
}
.hero-directions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 11px;
  margin: 14px 0 0;
  color: var(--muted);
  font: 10px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.hero-directions span + span:before {
  margin-right: 11px;
  color: var(--accent);
  content: '/';
}
.hero-cta,
.hero-cta:link,
.hero-cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  color: #14213d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: gap .2s, color .2s;
}
.hero-cta:hover {
  gap: 14px;
  color: #168f80;
}
.eyebrow {
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .16em;
  color: #8c9094;
  margin: 0 0 18px;
}
.hero h1,.page-intro h1,.project-hero h1 {
  font-size: clamp(45px,8vw,82px);
  line-height: 1.04;
  letter-spacing: -.075em;
  margin: 0 0 19px;
  font-weight: 800;
}
.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 500;
  letter-spacing: -.055em;
}
.muted,.empty-note {
  color: var(--muted);
}
.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s,background .2s;
}
.button:hover {
  transform: translateY(-2px);
  background: #f0f0ec;
}
.button-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.button-dark:hover {
  background: #33373c;
}
.content-section {
  padding: 26px 0 52px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.section-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-number {
  padding-top: 1px;
  color: var(--accent);
  font: 11px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.section-heading .eyebrow {
  margin: 0;
}
.section-heading h2 {
  font-size: 18px;
  letter-spacing: -.035em;
  margin: 0;
  font-weight: 700;
}
.project-index-list,
.note-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-index-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px 18px;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.project-index-copy h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.project-index-copy h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color .18s, padding .18s;
}
.project-index-copy h3 a:hover {
  padding-left: 4px;
  color: #168f80;
}
.project-index-copy > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.inline-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--muted);
  font: 10px ui-monospace,SFMono-Regular,Menlo,monospace;
  list-style: none;
}
.inline-tech-list li + li:before {
  margin-right: 10px;
  color: var(--accent);
  content: '/';
}
.project-index-meta {
  color: var(--muted);
  font: 10px ui-monospace,SFMono-Regular,Menlo,monospace;
  text-align: right;
  white-space: nowrap;
}
.project-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #168f80;
  font-weight: 650;
}
.project-live i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.project-index-arrow,
.note-reading {
  color: var(--muted);
  text-align: right;
  text-decoration: none;
  transition: color .18s, transform .18s;
}
.project-index-row:hover .project-index-arrow,
.note-row:hover .note-reading {
  color: #168f80;
  transform: translateX(3px);
}
.note-list {
  border-bottom: 1px solid var(--line);
}
.note-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 68px;
  align-items: start;
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.note-row:last-child {
  border-bottom: 0;
}
.note-row > time {
  padding-top: 3px;
  color: var(--muted);
  font: 11px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.note-row-copy h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -.025em;
}
.note-row-copy h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color .18s;
}
.note-row-copy h2 a:hover {
  color: #168f80;
}
.note-row-copy > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.note-reading {
  padding-top: 4px;
  font: 10px ui-monospace,SFMono-Regular,Menlo,monospace;
  white-space: nowrap;
}
.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 9px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--muted);
  font: 10px ui-monospace,SFMono-Regular,Menlo,monospace;
  list-style: none;
}
.note-tags li + li:before {
  margin-right: 9px;
  color: var(--accent);
  content: '/';
}
.detail-section h2,.detail-aside h2 {
  font-size: 24px;
  letter-spacing: -.05em;
  margin: 0;
  font-weight: 750;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.tag-list li {
  background: #eeefeb;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  color: #54575c;
}
.tag-list-compact {
  margin-top: 16px;
}
.tag-list-compact li {
  font-size: 10px;
  padding: 6px 9px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s,box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px #1111;
}
.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-cover {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #eceee7;
}
.project-cover-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg,#e8efdb,#e5e8e0 54%,#e4e7ef);
  color: #7b8570;
  font: 500 12px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing: .18em;
}
.project-card-body {
  padding: 20px 22px 24px;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.project-card h3 {
  font-size: 22px;
  letter-spacing: -.04em;
  margin: 15px 0 7px;
}
.project-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef0e9;
  font-size: 10px;
  font-weight: 700;
  color: #545a4f;
}
.status-development {
  background: #e8f7f4;
  color: #167f72;
}
.status-running {
  background: #e3f4f1;
  color: #147b70;
}
.status-paused {
  background: #f4efe3;
  color: #90733b;
}
.status-completed {
  background: #e9edf4;
  color: #465d83;
}
.status-failed {
  background: #f6e9e7;
  color: #995344;
}
.page-intro {
  padding: 90px 0 52px;
}
.page-intro h1 {
  font-size: clamp(40px,7vw,68px);
}
.page-intro>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.notes-intro {
  max-width: 760px;
  padding-bottom: 45px;
}
.notes-intro h1 {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 550;
  letter-spacing: -.06em;
}
.rss-link,
.about-links a {
  display: inline-flex;
  margin-top: 14px;
  color: #168f80;
  font-size: 11px;
  text-decoration: none;
}
.series-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  max-width: 780px;
  margin: -5px auto 20px;
}
.series-filter a,
.note-series-link {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}
.series-filter a.is-active,
.series-filter a:hover,
.note-series-link:hover {
  color: #168f80;
}
.series-filter a span {
  margin-left: 4px;
  color: #9299a4;
  font: 9px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.note-series-link {
  display: inline-block;
  margin-top: 7px;
  color: #168f80;
}
.note-index {
  border-top: 1px solid var(--line);
}
.note-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 0 90px;
}
.note-back {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.note-back:hover {
  color: #168f80;
}
.note-header {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.note-header .eyebrow {
  margin-bottom: 16px;
}
.note-header h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.note-excerpt {
  margin: 18px 0 0;
  color: #5c6574;
  font-size: 18px;
  line-height: 1.8;
}
.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  margin-top: 20px;
  color: var(--muted);
  font: 10px ui-monospace,SFMono-Regular,Menlo,monospace;
}
.note-meta .note-tags {
  margin: 0;
}
.note-meta .note-series-link {
  margin: 0;
}
.note-reading-layout {
  display: flow-root;
  margin-top: 0;
}
.note-reading-main {
  max-width: 680px;
  margin: 0 auto;
}
.note-toc {
  max-width: 680px;
  margin: 0 auto 28px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.note-toc .eyebrow {
  margin: 0 0 10px;
}
.note-toc .toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.note-toc .toc ul ul {
  margin: 5px 0 2px 5px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.note-toc .toc li {
  margin: 5px 0;
}
.note-toc .toc a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.note-toc .toc a:hover {
  color: #168f80;
}
.article-body {
  padding-top: 28px;
  color: #384152;
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.8em 0 .65em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.4;
}
.article-body h2 { font-size: 27px; }
.article-body h3 { font-size: 21px; }
.article-body h4 { font-size: 17px; }
.article-body p { margin: 0 0 1.25em; }
.article-body a {
  color: #168f80;
  text-decoration-color: rgba(32, 191, 169, .55);
  text-underline-offset: 3px;
}
.article-body blockquote {
  margin: 1.5em 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent);
  color: #687386;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.25em;
}
.article-body li { padding-left: .2em; }
.article-body code {
  padding: .14em .38em;
  border-radius: 4px;
  background: #eaf1f4;
  color: #176b61;
  font: .88em ui-monospace,SFMono-Regular,Menlo,monospace;
}
.article-body pre {
  overflow-x: auto;
  margin: 1.5em 0;
  padding: 19px 21px;
  border-radius: 7px;
  background: #14213d;
  color: #edf5f8;
  line-height: 1.7;
}
.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.article-body table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 14px;
}
.article-body th,
.article-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.article-body th { color: var(--ink); }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.note-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.note-end span {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}
.note-end a {
  color: inherit;
  text-decoration: none;
}
.note-end a:hover { color: #168f80; }
.about-content {
  max-width: 720px;
  padding-bottom: 90px;
}
.about-tags { margin-top: 26px; }
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 20px;
}
.about-links a { margin: 0; }
.back-link {
  display: inline-block;
  margin: 46px 0 32px;
}
.project-hero {
  padding: 10px 0 48px;
}
.project-hero h1 {
  font-size: clamp(40px,7vw,70px);
  margin-top: 20px;
}
.detail-summary {
  max-width: 720px;
  font-size: 19px;
  color: #5c6065;
  line-height: 1.65;
}
.detail-cover {
  margin: 0 0 55px;
}
.detail-cover img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 12px;
  background: #eceee7;
}
.detail-cover figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0,1fr) 230px;
  gap: 70px;
}
.detail-section {
  padding: 0 0 44px;
}
.detail-section .eyebrow {
  margin-bottom: 9px;
}
.prose {
  color: #54585d;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.detail-aside {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  align-self: start;
}
.detail-aside h2 {
  font-size: 15px;
  margin-bottom: 18px;
}
.detail-aside .status {
  margin: 0 0 12px;
}
.detail-aside .muted {
  font-size: 11px;
}
.log-section {
  border-top: 1px solid var(--line);
  padding-top: 38px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.timeline li {
  position: relative;
  margin-left: 5px;
  padding: 0 0 34px 27px;
  border-left: 1px solid var(--line);
}
.timeline li:before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  left: -5px;
  top: 5px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.timeline time {
  font: 11px ui-monospace,SFMono-Regular,Menlo,monospace;
  color: var(--muted);
}
.timeline h3 {
  font-size: 16px;
  margin: 9px 0;
}
.site-footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 32px 38px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.empty-note {
  padding: 27px 0;
  font-size: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}
.site-footer a {
  font-size: 11px;
}
@media (min-width: 1100px) {
  .note-toc {
    position: sticky;
    float: left;
    top: 28px;
    width: clamp(115px, calc(50vw - 438px), 180px);
    max-height: calc(100vh - 56px);
    overflow: auto;
    margin: 0 0 0 calc(422px - 50vw);
    padding: 4px 0 0 13px;
    border: 0;
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 1099px) {
  .note-toc {
    max-width: 680px;
    margin: 0 auto 28px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }
}
@media(max-width:680px) {
  .site-header {
    height: 64px;
    padding: 0 20px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .brand-copy strong {
    font-size: 15px;
  }
  .brand-copy small {
    display: none;
  }
  .site-header nav {
    gap: 14px;
  }
  .site-header nav a {
    font-size: 11px;
  }
  .site-main {
    padding: 0 20px 70px;
  }
  .hero {
    padding: 67px 0 52px;
  }
  .hero h1 {
    font-size: clamp(42px, 12vw, 62px);
  }
  .project-index-row {
    grid-template-columns: minmax(0, 1fr) 78px 16px;
    gap: 10px;
    padding: 19px 0;
  }
  .project-index-copy h3 {
    font-size: 15px;
  }
  .project-index-meta {
    font-size: 9px;
  }
  .note-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }
  .note-reading {
    grid-column: 2;
    text-align: left;
  }
  .note-article {
    padding: 34px 0 65px;
  }
  .note-header h1 {
    font-size: 36px;
  }
  .article-body {
    font-size: 15px;
  }
  .content-section {
    padding: 28px 0 42px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project-cover {
    height: 210px;
  }
  .page-intro {
    padding: 69px 0 35px;
  }
  .detail-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0;
  }
  .detail-cover {
    margin-bottom: 40px;
  }
  .site-footer {
    padding: 20px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-links {
    justify-content: flex-start;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior: auto!important;
    transition: none!important;
  }
}
