:root {
  color-scheme: light;
  --ink: #192231;
  --muted: #637083;
  --line: #e2e6ec;
  --blue: #244ef0;
  --page: #f7f8fa;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: #dce4ff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10; padding: 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1440px, calc(100% - 6rem)); margin: auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .85rem; }
.monogram { width: 39px; height: 39px; display: grid; place-items: center; background: var(--ink); color: white; font-size: 16px; font-weight: 700; letter-spacing: -.8px; border-radius: 9px; }
.brand-name { font-weight: 650; font-size: 16px; letter-spacing: -.3px; }
.brand-slash { margin: 0 .7rem; color: #b7c0cd; font-weight: 400; }
.brand-section { font-size: 14px; color: var(--muted); }
.edition { font-size: 12px; letter-spacing: .11em; font-weight: 550; color: var(--muted); }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; padding: 57px 0 42px; }
.eyebrow { display: flex; gap: .6rem; align-items: center; color: var(--blue); font-size: 12px; font-weight: 650; letter-spacing: .14em; margin: 0 0 17px; }
.status-dot { width: 7px; height: 7px; border-radius: 100%; background: var(--blue); }
h1 { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.22; letter-spacing: -.06em; font-weight: 660; margin: 0; }
.intro-copy { font-size: 16px; color: var(--muted); line-height: 1.9; margin: 19px 0 0; }
.collection { display: flex; flex: 0 0 auto; align-items: baseline; gap: 1rem; padding-bottom: 5px; }
.collection-number { font-size: 76px; line-height: 1; letter-spacing: -.08em; font-weight: 500; }
.collection-text { font-size: 12px; line-height: 1.7; color: var(--muted); letter-spacing: .05em; }
.collection-text strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.category-bar { position: sticky; top: 0; z-index: 5; background: rgba(247, 248, 250, .97); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.category-nav { display: flex; gap: 1.6rem; align-items: center; padding: 0; min-height: 65px; overflow-x: auto; scrollbar-width: thin; }
.category-nav a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .4rem; white-space: nowrap; padding: 23px 0 20px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 550; transition: color .15s; }
.category-nav a:hover, .category-nav a:focus-visible { color: var(--blue); border-bottom-color: var(--blue); }
.category-nav a span { color: #778497; font-size: 12px; font-variant-numeric: tabular-nums; }
.project-section { padding-top: 43px; scroll-margin-top: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 22px; gap: 1rem; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; }
h2 { font-size: 22px; font-weight: 620; margin: 0; letter-spacing: -.025em; }
.section-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-4px); border-color: #b8c5f7; box-shadow: 0 12px 35px #203d7c0d; }
.preview { display: block; position: relative; aspect-ratio: 8/5; background: #e8edf4; overflow: hidden; border-bottom: 1px solid var(--line); }
.preview img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s; }
.preview-kind { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 6px; background: #fff; color: #435168; font-size: 10px; font-weight: 600; letter-spacing: .02em; border: 1px solid #dce2ea; }
.preview-caption { color: #435168; font-size: 13px; }
.detail-preview { display: block; width: 100%; height: auto; margin-top: 28px; border-radius: 12px; border: 1px solid var(--line); }
.project-detail { max-width: 900px; padding-top: 48px; padding-bottom: 64px; font-size: 16px; line-height: 1.8; }
.project-detail h2 { margin-top: 36px; }
.readme-link { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.project-card:hover img { transform: scale(1.025); }
.open-arrow { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #ffffffba; border-radius: 50%; background: #fffffff0; font-size: 18px; color: var(--ink); box-shadow: 0 2px 10px #18203812; }
.card-body { padding: 21px 23px 19px; display: flex; flex-direction: column; flex: 1; }
.card-label { font-size: 12px; font-weight: 550; color: var(--blue); margin-bottom: 8px; letter-spacing: .02em; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 620; letter-spacing: -.5px; margin: 0; overflow-wrap: anywhere; }
.description { font-size: 16px; color: var(--muted); line-height: 1.75; margin: 11px 0 22px; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 13px; padding-top: 15px; border-top: 1px solid #eef0f4; }
.card-index { color: #8994a5; font-size: 12px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.open-label { font-size: 14px; font-weight: 550; }
.open-label span { display: inline-block; margin-left: 7px; color: var(--blue); }
.footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-top: 64px; padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer p { margin: 0; }
.footer a { white-space: nowrap; color: var(--ink); font-size: 14px; }
.local-note { display: none; padding: 14px 18px; border: 1px solid #bdcbff; border-radius: 8px; background: #edf1ff; color: #254094; font-size: 14px; line-height: 1.7; margin-bottom: 1rem; }
html[data-file-origin] .local-note { display: block; }
@media (min-width: 1680px) { .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 3rem); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .category-nav { gap: 1.4rem; }
  .collection-number { font-size: 64px; }
}
@media (max-width: 640px) {
  :root { scroll-padding-top: 6rem; }
  .wrap { width: calc(100% - 2rem); }
  .topbar { height: 74px; }
  .brand-name { font-size: 14px; }
  .brand-slash, .brand-section { display: none; }
  .edition { font-size: 11px; letter-spacing: 0; }
  .monogram { width: 32px; height: 32px; font-size: 14px; }
  .intro { padding: 35px 0 27px; align-items: flex-start; gap: 1rem; }
  .eyebrow { font-size: 11px; letter-spacing: .09em; }
  h1 { font-size: 30px; letter-spacing: -.055em; }
  .intro-copy { font-size: 15px; margin-top: 15px; }
  .collection { display: none; }
  .category-nav { min-height: 58px; gap: 1.35rem; }
  .category-nav a { padding: 19px 0 16px; }
  .project-section { padding-top: 30px; }
  .section-heading { margin-bottom: 17px; }
  h2 { font-size: 20px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card-body { padding: 20px; }
  .description { margin-bottom: 19px; }
  .footer { margin-top: 38px; gap: 1rem; padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
