/* Linework Light Aesthetic Design System */
:root {
  --bg: #ffffff;
  --bg-subtle: #fbfbfb;
  --panel: #ffffff;
  --panel-elevated: #fafafa;
  --border: #e8e8e8;
  --border-focus: #111111;
  --line: #e4e4e7;
  --fg: #0a0a0a;
  --fg-secondary: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --accent: #111111;
  --accent-soft: rgba(0, 0, 0, 0.05);
  --accent-glow: rgba(0, 0, 0, 0.08);
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --mono: "Linework Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Linework Mono";
  src: url("fonts/LineworkMono-Regular.woff2") format("woff2"),
       url("fonts/LineworkMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
}

.brand-text {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-version {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: var(--fg);
  background: #f4f4f5;
}

.nav-item.active {
  color: var(--fg);
  background: #f4f4f5;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-github:hover {
  border-color: #a1a1aa;
}

/* Page Layout */
main.page-main {
  flex: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}

.page-hero {
  margin-bottom: 48px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fafafa;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #09090b;
}

.page-title em {
  font-style: italic;
  font-family: "Georgia", serif;
  font-weight: 400;
}

.page-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

/* Cards & Shelves */
.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 40px 0 20px;
}

.shelf-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.shelf-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.figure-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.figure-tile {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.figure-tile:hover {
  border-color: #a1a1aa;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.figure-stage {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  cursor: crosshair;
}

.figure-foot {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.figure-name-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}

.figure-shelf-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* Drawer / Code Preview Box */
.code-box {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: #18181b;
  line-height: 1.6;
  overflow-x: auto;
}

.btn-copy {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy:hover {
  border-color: #71717a;
}

/* Animated Creator Banner */
.creator-banner {
  margin-top: 72px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #09090b;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.btn-bimo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #09090b;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-bimo:hover {
  opacity: 0.9;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

@media (max-width: 900px) {
  .figure-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .creator-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .figure-grid-4 { grid-template-columns: 1fr; }
}
