* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --canvas: #EFF3F8; --card: #F8FAFC; --hairline: #D5DEE9;
  --ink: #070B12; --ink-2: #475569; --muted: #64748B;
  --emerald: #10B981; --emerald-tint: #E6F9F1; --emerald-ink: #065F46;
  --pitch: #000;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
body { font-family: 'Inter', sans-serif; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(248,250,252,0.9);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline);
}
.topbar-in { max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 16px; }
.brand { font-family: 'Geist', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--emerald); }
.tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--hairline); }
.nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 12.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 7px 11px; border-radius: 99px; white-space: nowrap; transition: all 0.2s; }
.nav a:hover { color: var(--ink); background: #E6ECF4; }
.hero { max-width: 1440px; margin: 0 auto; padding: 40px 24px 4px; }
.hero h1 { font-family: 'Geist', sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.035em; line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero p { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 620px; line-height: 1.6; }
section { max-width: 1440px; margin: 0 auto; padding: 30px 24px 6px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--hairline); padding-bottom: 9px; position: sticky; top: 56px; background: var(--canvas); z-index: 10; }
.sec-head h2 { font-family: 'Geist', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.sec-head .cnt { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-left: auto; }
.sec-head .plat { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); background: #E6ECF4; padding: 3px 9px; border-radius: 6px; }
.grid { display: grid; gap: 18px; margin-top: 18px; }
.grid.mobile { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.grid.desktop { grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; cursor: zoom-in; transition: all 0.3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(15,23,42,0.18); border-color: #b8c6d6; }
.card img { width: 100%; display: block; background: #fff; }
.grid.mobile .card img { aspect-ratio: 9/17; object-fit: cover; object-position: top; }
.grid.desktop .card img { aspect-ratio: 16/10.5; object-fit: cover; object-position: top; }
.card-body { padding: 12px 14px 14px; border-top: 1px solid var(--hairline); }
.card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.card-id { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; }
.badge { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2.5px 7px; border-radius: 99px; }
.badge.dark { background: var(--pitch); color: #fff; }
.badge.light { background: var(--emerald-tint); color: var(--emerald-ink); }
.card h3 { font-family: 'Geist', sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card p { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,6,10,0.88); backdrop-filter: blur(10px); display: none; place-items: center; cursor: zoom-out; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.lightbox .lb-cap { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: 13px; background: rgba(0,0,0,0.6); padding: 8px 18px; border-radius: 99px; }
.footer { border-top: 1px solid var(--hairline); margin-top: 44px; padding: 26px; text-align: center; }
.footer p { font-size: 12px; color: var(--muted); }
.footer .mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-top: 3px; }
@media (max-width: 640px) { .grid.desktop { grid-template-columns: 1fr; } .tag { display: none; } }

/* ------------------------------ slideshow ------------------------------ */
.lightbox { cursor: default; padding: 0; }
.lb-stage {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  max-width: min(92vw, 1200px); max-height: 100vh; pointer-events: none;
}
.lb-stage img {
  max-width: 100%; max-height: 78vh; border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6); pointer-events: auto;
}
.lb-meta {
  margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: rgba(0,0,0,0.55); padding: 10px 22px; border-radius: 14px;
  pointer-events: auto; max-width: 90vw; text-align: center;
}
.lb-title { color: #fff; font-family: 'Geist', sans-serif; font-weight: 600; font-size: 14px; }
.lb-line { color: #94A3B8; font-size: 12px; line-height: 1.4; max-width: 560px; }
.lb-count { color: var(--emerald); font-size: 10.5px; letter-spacing: 0.08em; margin-top: 2px; }
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 210;
  width: 52px; height: 52px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07); color: #fff; font-size: 20px; cursor: pointer;
  backdrop-filter: blur(8px); transition: all 0.2s var(--ease); font-family: inherit;
}
.lb-arrow:hover { background: var(--emerald); border-color: var(--emerald); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close {
  position: fixed; top: 16px; right: 18px; z-index: 210;
  width: 42px; height: 42px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07); color: #fff; font-size: 15px; cursor: pointer;
  backdrop-filter: blur(8px); font-family: inherit;
}
.lb-close:hover { background: #DC2626; border-color: #DC2626; }
@media (max-width: 640px) { .lb-arrow { width: 42px; height: 42px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ---------------------------- design system ---------------------------- */
.ds-block { margin-top: 26px; }
.ds-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ds-head h3 { font-family: 'Geist', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.ds-role { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 9px; }
.sw {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 11px;
  overflow: hidden; cursor: copy; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease); position: relative;
}
.sw:hover { transform: translateY(-2px); }
.sw-color { height: 44px; display: block; border-bottom: 1px solid var(--hairline); }
.sw-hex { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; padding: 7px 10px 0; }
.sw-name { font-size: 11px; font-weight: 600; padding: 1px 10px 0; }
.sw-role { font-size: 9.5px; color: var(--muted); padding: 1px 10px 8px; line-height: 1.35; }
.sw.copied::after {
  content: "copied"; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.75); color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 99px;
}
.type-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.type-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 13px; padding: 15px 16px; }
.type-card .type-sample { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 9px; }
.type-card strong { font-family: 'Geist', sans-serif; font-size: 13px; display: block; }
.type-card span { font-size: 11.5px; color: var(--ink-2); display: block; margin-top: 2px; line-height: 1.45; }
