:root {
  --bg: #0a0a0a;
  --bg-subtle: #0f0f0f;
  --text: #ebebeb;
  --text-secondary: #666666;
  --accent: #e63946;
  --border: #1a1a1a;
  --line: #141414;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  position: relative;
}

/* Notebook ruled lines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      var(--line) 31px,
      var(--line) 32px
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Red margin line like a notebook */
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(50% - 360px);
  width: 1px;
  background: var(--accent);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Custom cursor - dot + trail */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s ease, height 0.2s ease;
}

.cursor.hovering {
  transform: translate(-50%, -50%) scale(1.5);
}

.cursor-trail.hovering {
  width: 28px;
  height: 28px;
}

a, button, .inline-link, .list-row, .vibe-card {
  cursor: none;
}

.page-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  position: relative;
  z-index: 1;
}

/* ——— Topbar ——— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
}

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

.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.brand-mark.small {
  width: 6px;
  height: 6px;
  animation: none;
}

.brand-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

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

.nav-links a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.mode-toggle {
  display: none;
}

/* ——— Section ——— */
.section {
  margin-top: 0;
}

.section-header {
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section h2 {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* ——— List ——— */
.list-block {
  display: grid;
  gap: 0;
}

.list-row,
.vibe-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.list-row:first-child,
.vibe-card:first-child {
  border-top: 1px solid var(--border);
}

.list-row:hover,
.vibe-card:hover {
  background: var(--bg-subtle);
  margin: 0 -16px;
  padding: 24px 16px;
  border-color: var(--accent);
}

.list-row:hover + .list-row,
.vibe-card:hover + .vibe-card {
  border-top-color: transparent;
}

.title-with-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.project-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.list-title {
  margin: 0 0 6px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.title-with-logo .list-title {
  margin: 0;
}

.list-body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}

.list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  padding-top: 2px;
}

.inline-link {
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.inline-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.inline-link:hover {
  color: var(--accent);
}

.inline-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ——— Footer ——— */
.footer {
  margin-top: 80px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer.minimal {
  border: none;
  margin-top: 100px;
}

.footnote {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

/* ——— Utilities ——— */
.hero {
  display: grid;
  gap: 12px;
}

.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(36px, 8vw, 56px);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .lede,
.lede {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.hero-links {
  display: inline-flex;
  gap: 20px;
  margin-top: 8px;
}

.text-link {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: relative;
}

.text-link::after {
  content: '→';
  margin-left: 6px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.status {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

/* ——— Responsive ——— */
@media (max-width: 800px) {
  body::after {
    left: 24px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 40px 20px 80px;
  }
  
  .topbar {
    margin-bottom: 60px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .list-row,
  .vibe-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .list-row:hover,
  .vibe-card:hover {
    margin: 0;
    padding: 24px 0;
    background: transparent;
  }
  
  .list-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
  
  body::after {
    left: 16px;
  }
  
  /* Hide custom cursor on mobile */
  .cursor {
    display: none;
  }
  
  body, a, button, .inline-link, .list-row, .vibe-card {
    cursor: auto;
  }
}
