/* ============================================================
   fachrynuzuli.github.io — Hub Stylesheet
   Terminal-meets-portfolio. Builder-first. Dark, warm, precise.
   ============================================================ */

:root {
  /* ── Color: OKLCH, warm-tinted neutrals ── */
  --bg:           oklch(0.11 0.008 70);
  --bg-raised:    oklch(0.14 0.008 70);
  --text:         oklch(0.91 0.012 75);
  --text-dim:     oklch(0.75 0.012 75);
  --muted:        oklch(0.48 0.012 65);
  --muted-light:  oklch(0.62 0.015 65);
  --border:       oklch(0.22 0.008 65);
  --border-hover: oklch(0.30 0.012 65);

  /* Accents */
  --gold:         oklch(0.74 0.10 75);
  --green:        oklch(0.70 0.12 160);
  --orange:       oklch(0.70 0.15 45);
  --coral:        oklch(0.68 0.14 30);

  /* Sub-brand accents (normalized to oklch) */
  --freebuilder:  oklch(0.76 0.16 75); /* #F5A623 equivalent */
  --freeware:     oklch(0.82 0.28 155); /* #00E87A equivalent */
  --freewriter:   oklch(0.45 0.06 250); /* Elegant Editorial Blue */

  /* ── Typography ── */
  --mono:  'JetBrains Mono', monospace;
  --serif: 'Fraunces', serif;

  /* ── Spacing scale ── */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  48px;
  --space-2xl: 72px;

  /* ── Focus ── */
  --focus-ring: 2px solid var(--gold);
  --focus-offset: 4px;

  /* ── Transitions ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:  0.15s;
  --t-base:  0.25s;
  --t-slow:  0.35s;
  --t-reveal: 0.5s;
}


/* ── Reset ── */

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


/* ── Body ── */

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  padding: var(--space-lg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture: subtle noise for atmospheric depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 100;
}


/* ── Links ── */

a {
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: 3px;
  transition:
    color var(--t-fast) ease,
    text-underline-offset var(--t-base) var(--ease-out-expo);
  cursor: pointer;
  border-radius: 2px;
}

a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 5px;
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

button {
  cursor: pointer;
  border-radius: 2px;
}

button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}




/* ── Container ── */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 8vh;
}


/* ── Views / SPA routing ── */

.view {
  display: none;
  animation: reveal var(--t-slow) var(--ease-out-expo) forwards;
}

.view.active {
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Staggered home reveal ── */

.stagger-1 { animation-delay: 0s; }
.stagger-2 { animation-delay: 0.06s; }
.stagger-3 { animation-delay: 0.14s; }
.stagger-4 { animation-delay: 0.22s; }

/* Children of home view get individual stagger */
#home > .stagger-1,
#home > .stagger-2,
#home > .stagger-3,
#home > .stagger-4 {
  opacity: 0;
  animation: reveal var(--t-reveal) var(--ease-out-expo) forwards;
}


/* ── Typography ── */

h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.subtitle {
  color: var(--muted-light);
  margin-bottom: var(--space-xl);
  max-width: 560px;
  font-size: 13px;
  line-height: 1.7;
}

.section-title {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.03em;
}

.article-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-separator {
  color: var(--border);
}

.source-meta-link {
  color: var(--gold);
  text-decoration: none;
}

.source-meta-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.synthesis-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  border: 1px solid oklch(0.70 0.12 160 / 0.3);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: var(--space-md);
  background: oklch(0.70 0.12 160 / 0.05);
}

/* ── Prompt (resources view) ── */

.prompt {
  color: var(--green);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.prompt span {
  color: var(--text);
  font-weight: normal;
}


/* ── Directory Tree ── */

.tree {
  margin-left: 0;
  margin-bottom: var(--space-lg);
}

.tree-root {
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-item {
  padding: 3px 0 3px 20px;
  position: relative;
}


.tree-item::before {
  content: '└─';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.tree-subitem {
  padding: 5px 0 5px 44px;
  position: relative;
}

.tree-subitem::before {
  content: '└─';
  position: absolute;
  left: 24px;
  color: var(--muted);
}

.tree-desc {
  color: var(--muted-light);
  font-size: 12px;
  margin-left: var(--space-sm);
}

.tree-node {
  padding: 5px 0 5px 20px;
  position: relative;
}

.tree-node::before {
  content: '├──';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.tree-node:last-child::before {
  content: '└──';
}

/* ── Flat tree (home view) ── */
.tree-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-sm);
}

.tree-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 14px;
}

.tree-prefix {
  color: var(--muted);
  white-space: pre;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}


.tree-plain {
  color: var(--text-dim);
}


/* ── Notes List ── */

.notes-group {
  margin-bottom: var(--space-xl);
}

.year-group-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.1em;
}

.note-item {
  display: grid;
  grid-template-columns: 40px 1fr 100px 80px;
  align-items: baseline;
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--t-fast) ease;
  margin-left: calc(-1 * var(--space-md));
  width: calc(100% + (2 * var(--space-md)));
  border-radius: 4px;
  gap: var(--space-md);
}

.list-header {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  background: transparent !important;
  pointer-events: none;
}

.note-col {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-col-rank {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.note-col-title a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--t-fast) ease;
}

.note-col-tier, .note-col-score, .note-col-category, .note-col-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-light);
}

.note-col-score {
  font-weight: 700;
  color: var(--text-dim);
}

.tier-s {
  background: oklch(0.74 0.10 75 / 0.15);
  color: var(--gold);
  border: 1px solid oklch(0.74 0.10 75 / 0.3);
}

.tier-a {
  background: oklch(0.70 0.12 160 / 0.1);
  color: var(--green);
  border: 1px solid oklch(0.70 0.12 160 / 0.2);
}

.tier-b {
  background: oklch(0.68 0.14 30 / 0.1);
  color: var(--coral);
  border: 1px solid oklch(0.68 0.14 30 / 0.2);
}



.note-badge {
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 9px;
  font-family: var(--mono);
  display: inline-block;
}

.note-item:hover {
  background-color: oklch(0.14 0.008 70 / 0.8);
}

.note-item:hover .note-col-title a {
  color: var(--green);
}

/* ── Notes Announcement ── */

.notes-announcement {
  margin-bottom: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.announcement-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.announcement-main {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.announcement-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-light);
  line-height: 1.6;
  max-width: 600px;
}

.claude-highlight {
  color: var(--orange);
  font-weight: 700;
}


/* ── Prompt list ── */

.prompt-category {
  color: var(--gold);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: var(--space-sm);
  padding-left: 0;
}

.prompt-item {
  padding: 6px 0 6px 24px;
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
}

.prompt-item::before {
  content: '└─';
  position: absolute;
  left: 4px;
  color: var(--muted);
}

.prompt-item a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.prompt-item a:hover {
  color: var(--text);
}

/* ── Prompt toolbar ── */

.prompt-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.copy-prompt-btn,
.view-toggle-btn {
  display: inline-block;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 12px;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}

.copy-prompt-btn:hover,
.view-toggle-btn:hover {
  border-color: var(--gold);
}

.view-toggle-btn {
  color: var(--muted-light);
}

.view-toggle-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ── Prompt raw block (toggle view) ── */

.prompt-block {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
  background: oklch(0.13 0.006 70);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow-x: auto;
}

/* ── Prompt rendered (Obsidian-style markdown view) ── */

.prompt-rendered {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  padding-bottom: var(--space-2xl);
}

.prompt-rendered h1 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.prompt-rendered h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.prompt-rendered h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.prompt-rendered h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prompt-rendered h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  letter-spacing: 0.04em;
}

.prompt-rendered p {
  margin-bottom: 0.85em;
  max-width: 68ch;
}

.prompt-rendered strong {
  color: var(--text);
  font-weight: 700;
}

.prompt-rendered em {
  color: var(--muted-light);
  font-style: italic;
}

.prompt-rendered ul,
.prompt-rendered ol {
  padding-left: 1.25em;
  margin-bottom: 0.85em;
  max-width: 68ch;
}

.prompt-rendered ul {
  list-style: none;
  padding-left: 0;
}

.prompt-rendered ul > li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.3em;
}

.prompt-rendered ul > li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.prompt-rendered ol > li {
  margin-bottom: 0.35em;
  color: var(--text-dim);
}

.prompt-rendered ol > li::marker {
  color: var(--gold);
  font-weight: 700;
}

.prompt-rendered hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

.prompt-rendered code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  padding: 0;
  border-radius: 0;
}

.prompt-rendered pre {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-light);
  background: oklch(0.13 0.006 70);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow-x: auto;
  margin: 1.2em 0;
  white-space: pre-wrap;
}

.prompt-rendered blockquote {
  border: 1px solid var(--border);
  background: oklch(0.13 0.006 70 / 0.5);
  padding: var(--space-md) var(--space-lg);
  border-radius: 2px;
  margin: 1.2em 0;
  color: var(--muted-light);
  font-style: italic;
}

/* ── Project Cards (works view) ── */

.project-card {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition:
    border-color var(--t-base) ease,
    background-color var(--t-base) ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-raised);
}

.project-title {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-live {
  background: oklch(0.70 0.12 160 / 0.12);
  color: var(--green);
  border: 1px solid oklch(0.70 0.12 160 / 0.25);
}

.project-metrics {
  color: var(--gold);
  font-size: 11px;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.project-desc {
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.6;
}


/* ── Venture Cards ── */
.venture-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.venture-card {
  display: grid;
  grid-template-columns: 35% 1fr;
  background: oklch(0.14 0.006 70 / 0.3);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--t-base) var(--ease-out-expo);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-md);
}

.venture-card:hover {
  background: oklch(0.16 0.008 70 / 0.5);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px oklch(0 0 0 / 0.3);
}

.venture-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
}

.venture-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform var(--t-slow) var(--ease-out-expo);
  filter: grayscale(0.1);
}



.venture-card:hover .venture-image img {
  transform: scale(1.03);
  filter: grayscale(0);
}

.venture-content {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venture-name {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.venture-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  max-width: 50ch;
}

.venture-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.venture-status {
  padding: 1px 6px;
  border-radius: 2px;
  background: oklch(1 0 0 / 0.03);
  border: 1px solid var(--border);
}

/* ── Brand Specific Accents ── */
.venture-freeware:hover { border-color: var(--freeware); }
.venture-freeware .venture-name { color: var(--freeware); }

.venture-freebuilder:hover { border-color: var(--freebuilder); }
.venture-freebuilder .venture-name { color: var(--freebuilder); }

.venture-freewriter:hover { border-color: var(--freewriter); }
.venture-freewriter .venture-name { color: var(--freewriter); }



/* ── Navigation ── */

.nav-back {
  display: inline-block;
  margin-bottom: var(--space-lg);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nav-back:hover {
  color: var(--coral);
}


/* ── Contact Line ── */

.contact-line {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--muted-light);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.contact-line a {
  transition: color var(--t-fast) ease;
}


/* ── Cursor Blink ── */

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--green);
  animation: blink 1.2s step-end infinite;
  vertical-align: middle;
  margin-left: var(--space-xs);
}

@keyframes blink {
  50% { opacity: 0; }
}


/* ── Section Layout Elements ── */

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
  margin-top: var(--space-xl);
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ── Article Content (long-form reading) ── */

.article-content {
  max-width: 65ch;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  font-weight: 400;
  margin-bottom: var(--space-2xl);
}

/* ── Article Footer / Read More ── */

.article-footer {
  margin-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-line {
  height: 1px;
  background: var(--border);
  margin-bottom: var(--space-lg);
}

.read-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.read-more-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-light);
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--t-base) var(--ease-out-expo);
  border-radius: 4px;
}

.read-more-btn:hover {
  background: oklch(0.18 0.008 70);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-arrow {
  transition: transform var(--t-base) var(--ease-out-expo);
}

.read-more-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 3rem auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ── Thread Specific Styles ── */

.article-content.is-thread {
  position: relative;
  padding-left: 40px;
  margin-top: var(--space-xl);
}

/* The vertical thread line */
.article-content.is-thread::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

/* Each element in the thread gets a node */
.article-content.is-thread p,
.article-content.is-thread blockquote,
.article-content.is-thread ul,
.article-content.is-thread h2,
.article-content.is-thread h3 {
  position: relative;
  margin-bottom: 2.5rem;
}

.article-content.is-thread p::before,
.article-content.is-thread blockquote::before,
.article-content.is-thread h2::before,
.article-content.is-thread h3::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  z-index: 1;
  transition: border-color var(--t-base) ease;
}

.article-content.is-thread p:hover::before {
  border-color: var(--green);
}

/* Custom styling for blockquotes in threads (comments/replies) */
.article-content.is-thread blockquote {
  background: oklch(0.14 0.006 70 / 0.3);
  border-left: 3px solid var(--border);
  padding: 1.5rem;
  font-style: normal;
  color: var(--text-dim);
}

/* Hide HRs in threads as we use nodes instead */
.article-content.is-thread hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 4rem 0;
  opacity: 0.3;
}

.article-content p {
  margin-bottom: 1.4em;
}

.article-content h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.8em;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-content h4 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content a {
  text-decoration: underline;
  text-decoration-color: oklch(0.74 0.10 75 / 0.4);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--green);
}

.article-content pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-light);
  background: oklch(0.13 0.006 70);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.5em 0;
  white-space: pre-wrap;
}

.article-content blockquote,
.article-content .callout {
  border-left: 2px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  background: oklch(0.13 0.006 70 / 0.5);
  margin: 1.5em 0;
  font-style: italic;
  color: var(--muted-light);
}

/* ── Tools / Stack List ── */

.tools-container {
  margin-top: var(--space-xl);
}

.tool-group {
  margin-bottom: var(--space-xl);
}

.tool-group-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.tool-item {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  align-items: baseline;
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--t-fast) ease;
  margin-left: calc(-1 * var(--space-md));
  width: calc(100% + (2 * var(--space-md)));
  border-radius: 4px;
  gap: var(--space-md);
}

.tool-item:hover {
  background-color: oklch(0.14 0.008 70 / 0.8);
}

.tool-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.tool-desc {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-light);
  line-height: 1.5;
}

.tool-meta {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.tool-status {
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--bg-raised);
  color: var(--muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-status-primary {
  color: var(--green);
  border-color: oklch(0.70 0.12 160 / 0.3);
  background: oklch(0.70 0.12 160 / 0.05);
}

.tool-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--t-fast) ease;
}

.tool-item:hover .tool-link {
  opacity: 1;
}

.tool-item:hover .tool-name {
  color: var(--green);
}
/* ── Responsive ── */

@media (max-width: 600px) {
  body {
    padding: var(--space-md);
  }

  .container {
    padding-top: 5vh;
  }

  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 12px;
    margin-bottom: var(--space-lg);
  }

  .project-card {
    padding: var(--space-md);
  }

  .venture-card {
    padding: var(--space-md);
  }

  .article-content {
    font-size: 14px;
  }

  .contact-line {
    margin-top: var(--space-xl);
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.3rem;
  }

  .tool-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: var(--space-md);
  }

  .tool-meta {
    justify-content: flex-start;
    margin-top: var(--space-xs);
  }

  .list-item {
    flex-direction: column;
    gap: var(--space-xs) !important;
  }
}

/* ── Prompt footer (Maker attribution) ── */

.prompt-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: opacity var(--t-base) ease;
}

.prompt-footer:hover {
  opacity: 1;
}