/* ═══════════════════════════════════════════════
   ClayFulk.com — Shared Stylesheet
   Engineer's lab notebook × venture portfolio
   ═══════════════════════════════════════════════ */

:root {
  --black:       #0d0d0d;
  --dark:        #111111;
  --charcoal:    #1a1a1a;
  --mid:         #252525;
  --steel:       #3a3a3a;
  --gray:        #5a5a5a;
  --muted:       #888888;
  --light:       #b0b0b0;
  --white:       #e8e8e8;
  --red:         #c0392b;
  --red-dim:     rgba(192,57,43,0.15);
  --red-border:  rgba(192,57,43,0.3);
  --grid-line:   rgba(192,57,43,0.04);
  --grid-line2:  rgba(255,255,255,0.025);

  --font-head:  'Oswald', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-body:  'Inter', sans-serif;

  --max-w: 1100px;
  --transition: 0.25s ease;
  --radius: 2px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  /* Blueprint grid */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line2) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(13,13,13,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-brand .red { color: var(--red); }
.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-color: rgba(255,255,255,0.1);
}
.nav-links a.active { color: var(--red); border-color: var(--red-border); }

/* ── Page wrapper ── */
main { padding-top: 60px; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── Section ── */
section { padding: 5rem 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.title-rule {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-bottom: 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:hover { background: var(--red); color: var(--white); transform: translateY(-1px); }
.btn-solid { background: var(--red); color: var(--white); }
.btn-solid:hover { background: transparent; color: var(--red); }
.btn-ghost {
  border-color: rgba(255,255,255,0.15);
  color: var(--light);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: transparent; }

/* ── Tag/Badge ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--steel);
  color: var(--muted);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.tag.red { border-color: var(--red-border); color: var(--red); }
.tag.active-tag { border-color: rgba(46,204,113,0.4); color: #2ecc71; }
.tag.dev-tag { border-color: rgba(241,196,15,0.4); color: #f1c40f; }
.tag.exp-tag { border-color: rgba(52,152,219,0.4); color: #3498db; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin: 0;
}

/* ── Code line style ── */
.code-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--light);
  line-height: 2;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.code-line .comment { color: var(--gray); }
.code-line .keyword { color: var(--red); }
.code-line .value { color: var(--white); }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  background: var(--black);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.08em;
}
.footer-left span { color: var(--red); }
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red); }

/* ── Mobile ── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.68rem; }
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .nav-links a { display: none; }
  .nav-links a.active { display: inline-block; }
}
