:root {
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --ink: #1f2328;
  --ink-muted: #59636e;
  --line: #d0d7de;
  --brand: #0969da;
  --brand-strong: #0550ae;
  --accent: #bf8700;
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-soft); color: var(--ink); font-size: 1rem; line-height: 1.65; }
a { color: var(--brand); text-underline-offset: .2em; }
a:focus-visible, select:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner, main, footer { width: min(1152px, calc(100% - 48px)); margin: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 36px; }
.brand { color: var(--ink); font-size: 1.5rem; font-weight: 650; letter-spacing: -.04em; text-decoration: none; }
.brand span { font-weight: 400; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: .9375rem; text-decoration: none; color: var(--ink-muted); }
nav a:hover, nav a[aria-current] { color: var(--brand); }
nav a[aria-current] { font-weight: 600; }
.locale { margin-left: auto; }
select { font: inherit; font-size: .875rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-height: 38px; min-width: 76px; padding: 6px 10px; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
main { padding-top: 40px; }
.intro { max-width: 790px; margin-bottom: 30px; }
h1 { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; margin: 0 0 16px; }
p { margin: 0 0 18px; }
.intro p, .lead { color: var(--ink-muted); font-size: 1.0625rem; line-height: 1.75; }
.project-list { display: flex; flex-direction: column; gap: 24px; }
.project-card { width: 100%; display: grid; grid-template-columns: 28% minmax(0,1fr); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.project-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px #1f23280a; }
.preview { min-width: 0; min-height: 0; width: 100%; overflow: hidden; background: #edf1f5; border-right: 1px solid var(--line); aspect-ratio: 1.6; align-self: stretch; }
.preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project-info { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 32px; min-width: 0; }
h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; margin: 0 0 14px; }
.project-info h2 { margin: 0 0 12px; font-size: 1.625rem; }
.project-info p { color: var(--ink-muted); font-size: 1.125rem; line-height: 1.75; max-width: 68ch; margin-bottom: 16px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kind-pill, .tag-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border: 1px solid #e2e8ef; border-radius: 999px; font-size: .8125rem; line-height: 1.4; }
.kind-pill { color: var(--brand-strong); background: #eef5ff; border-color: #c8dcf6; font-weight: 600; }
.tag-pill { color: var(--ink-muted); background: var(--surface-soft); }
.card-bottom { width: 100%; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 22px; }
.domain { font-size: .875rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.read-more { color: var(--brand); font-size: .875rem; font-weight: 600; }
footer { display: flex; justify-content: space-between; gap: 24px; font-size: .875rem; color: var(--ink-muted); border-top: 1px solid var(--line); padding: 24px 0; margin-top: 56px; }
footer div { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--ink-muted); text-decoration: none; }
.back { display: inline-block; font-size: .9375rem; margin-bottom: 28px; text-decoration: none; }
.detail-header { margin-bottom: 32px; }
.detail-header .lead { margin-bottom: 16px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 36px; align-items: start; }
.detail-preview { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
section { margin: 32px 0; }
section p { color: var(--ink-muted); }
.tech-group { margin: 20px 0; }
h3 { font-size: .9375rem; font-weight: 600; margin: 0 0 10px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tech-list li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: .875rem; }
.project-links { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.project-links h2 { font-size: 1.125rem; }
.project-links ul { list-style: none; padding: 0; margin: 0; }
.project-links li + li { border-top: 1px solid #e8edf2; }
.project-links a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; font-size: .9375rem; text-decoration: none; }
.source { color: var(--ink-muted); font-size: .875rem; padding-top: 24px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.prose { max-width: 790px; padding: 4px 0; }
.prose .lead { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-card { background: var(--surface); border: 1px solid var(--line); padding: 28px 32px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.article-card:hover { border-color: var(--brand); }
.article-card p { color: var(--ink-muted); }
.prose .code-example { margin: 24px 0 32px; overflow: hidden; border: 1px solid #26354a; border-radius: 10px; background: #111827; box-shadow: 0 8px 24px #1f23281a; }
.code-example figcaption { padding: 10px 16px; color: #c4d2e3; background: #1b2738; border-bottom: 1px solid #34445a; font-size: .8125rem; font-weight: 600; }
.code-example pre { margin: 0; padding: 20px; overflow-x: auto; color: #e6edf3; font: .875rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 4; white-space: pre; }
.code-example code { font: inherit; }
.prose .code-example.diagram { border-color: #b8cbe0; background: #eef5ff; box-shadow: none; }
.code-example.diagram figcaption { color: #23466d; background: #dcecff; border-color: #c6dcf4; }
.code-example.diagram pre { color: #173a5e; font-weight: 600; }
.related { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 12px 24px; }
@media (max-width: 850px) {
  .project-card { grid-template-columns: 28% minmax(0,1fr); }
  .project-info { padding: 22px; }
  .project-info h2 { font-size: 1.375rem; }
  .preview { aspect-ratio: 1.35; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 24px; }
  .header-inner { gap: 24px; }
  nav { gap: 18px; }
  footer { flex-direction: column; gap: 12px; }
}
@media (max-width: 640px) {
  .header-inner, main, footer { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 16px; padding: 16px 0; }
  nav { order: 3; width: 100%; gap: 22px; flex-wrap: wrap; }
  .locale { margin-left: auto; }
  main { padding-top: 28px; }
  .project-card { grid-template-columns: minmax(0,1fr); }
  .preview { aspect-ratio: 1.6; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-info { padding: 24px; }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
  .project-links { grid-row: 1; }
  .article-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .project-card { transition: none; } }
