@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg: #FAFAF7;
  --ink: #1A1A1A;
  --orange: #E8590C;
  --teal: #0D9488;
  --muted: rgba(100, 90, 75, 0.5);
  --mono: 'Space Mono', 'Courier New', monospace;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-family: var(--sans);
  transition: background 0.3s;
  gap: 0;
}

.site-nav.nav-transparent {
  background: transparent;
}

.site-nav.nav-solid {
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.nav-logo-line {
  display: inline;
}

.nav-logo-line + .nav-logo-line::before {
  content: ' ';
}

.nav-logo:hover {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
}

.nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 6px;
}

.nav-social {
  color: rgba(0, 0, 0, 0.2) !important;
  font-size: 11px !important;
}

.nav-social:hover {
  color: var(--ink) !important;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ---- MOBILE NAV ---- */
@media (max-width: 640px) {
  .site-nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: block;
  }
}

/* ---- CONTENT PAGES ---- */
.page-body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: 140px 40px 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-heading {
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(100, 90, 75, 0.6);
  line-height: 1.5;
  max-width: 500px;
}

.page-detail {
  margin-top: 32px;
  font-size: 14px;
  color: rgba(100, 90, 75, 0.45);
  line-height: 1.6;
}

.page-detail a {
  color: rgba(80, 70, 55, 0.55);
  text-decoration: none;
}

.page-detail a:hover {
  color: var(--ink);
}

/* ---- SKETCHES PAGE ---- */
.sketches-content {
  flex: 1;
  padding: 0 40px 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.sketches-hero {
  padding: 120px 0 0;
  position: relative;
}

.hero-title {
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 900;
  color: var(--orange);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-wip {
  position: absolute;
  top: 120px;
  right: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #999;
  text-align: right;
  line-height: 1.6;
}

.sketches-controls {
  padding: 48px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: none;
  color: #999;
  padding: 8px 0;
  margin-right: 24px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.filter-btn:hover {
  color: var(--ink);
}

.filter-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--orange);
}

/* ---- SKETCH LIST ---- */
.sketch-list {
  list-style: none;
  margin-top: 32px;
  padding: 0;
}

.sketch-item {
  border-top: 1px solid #E8E5E0;
}

.sketch-item:last-child {
  border-bottom: 1px solid #E8E5E0;
}

.sketch-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  position: relative;
}

.sketch-link::before {
  content: '';
  position: absolute;
  left: -20px;
  right: -20px;
  top: 0;
  bottom: 0;
  background: transparent;
  transition: background 0.15s;
  z-index: -1;
  border-radius: 2px;
}

.sketch-link:hover::before {
  background: rgba(0, 0, 0, 0.03);
}

.sketch-link:hover .sketch-name {
  letter-spacing: 0.01em;
}

.sketch-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: letter-spacing 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sketch-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
  grid-column: 1;
  padding-top: 2px;
}

.sketch-meta {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.cat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sketch-cat-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
}

.sketch-badge {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
}

.badge-final {
  background: #D1FAE5;
  color: #059669;
}

.badge-wip {
  background: #FEF3C7;
  color: #D97706;
}

.badge-sketch {
  background: transparent;
  color: #BBB;
}

/* Category hover colors */
[data-category="pretext"] .sketch-link:hover .sketch-name {
  color: var(--orange);
}

[data-category="vibescript"] .sketch-link:hover .sketch-name {
  color: var(--teal);
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 32px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(100, 90, 75, 0.4);
  letter-spacing: 0.3px;
}

.site-footer a {
  color: rgba(80, 70, 55, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .page-content {
    padding: 100px 20px 60px;
  }

  .sketches-content {
    padding: 0 24px 60px;
  }

  .sketches-hero {
    padding-top: 80px;
  }

  .hero-wip {
    position: static;
    margin-top: 16px;
    text-align: left;
  }

  .sketches-controls {
    padding-top: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-btn {
    margin-right: 16px;
    margin-bottom: 8px;
  }

  .sketch-link {
    grid-template-columns: 1fr;
  }

  .sketch-meta {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }

  .sketch-name {
    font-size: 1.1rem;
  }

  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
