/* Linked Operations — shared styles for guide / landing pages.
   Matches index.html + projects.html (same tokens, nav, footer). */

:root {
  --black: #0a0a0a;
  --white: #f5f2ed;
  --accent: #c8392b;
  --accent-dim: #8a2520;
  --mid: #2a2a2a;
  --rule: #333;
  --muted: #888;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'IBM Plex Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
}
.nav-brand .mark { width: 22px; height: 12px; flex-shrink: 0; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-toggle { display: none; }

/* ── ARTICLE HEADER ── */
.article-header {
  padding: 150px 64px 48px;
  max-width: 880px;
  margin: 0 auto;
}
.article-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}
.article-eyebrow a { color: var(--accent); text-decoration: none; }
.article-h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.article-h1 em { font-style: italic; color: var(--accent); }
.article-sub {
  font-size: 1.1rem; color: #aaa; line-height: 1.7; max-width: 720px;
}

/* ── PROSE ── */
.prose {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 64px 24px;
  font-size: 1.02rem;
  color: #c4c4c4;
  line-height: 1.8;
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  color: var(--white);
  margin: 48px 0 18px;
}
.prose h3 {
  font-family: var(--sans);
  font-size: 1.12rem; font-weight: 500; color: var(--white);
  margin: 32px 0 12px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.prose li {
  position: relative; padding-left: 22px; margin-bottom: 10px; color: #c4c4c4;
}
.prose li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--accent);
}
.prose strong { color: var(--white); font-weight: 500; }
.prose a { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose blockquote {
  border-left: 2px solid var(--accent);
  background: #161616;
  padding: 18px 24px; margin: 24px 0;
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; color: #b8b8b8;
}
.prose .lede { font-size: 1.12rem; color: #cfcfcf; }
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ── PROOF CALLOUT (links to /projects) ── */
.proof {
  max-width: 880px; margin: 36px auto; padding: 0 64px;
}
.proof-inner {
  border: 1px solid var(--rule); background: var(--mid);
  padding: 32px 34px;
}
.proof-label {
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.proof-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 12px; color: var(--white);
}
.proof-body { font-size: 0.96rem; color: #bdbdbd; line-height: 1.75; margin-bottom: 18px; }
.proof-link {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.proof-link:hover { color: var(--white); }

/* ── CTA ── */
.cta-section {
  max-width: 880px; margin: 0 auto; padding: 64px 64px 96px;
}
.cta-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 22px;
}
.cta-body { font-size: 1.05rem; color: #bbb; line-height: 1.7; margin-bottom: 32px; max-width: 600px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-primary {
  background: var(--accent); color: var(--white);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 32px; text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--rule); color: var(--muted);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 32px; text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.cta-email { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); letter-spacing: 0.05em; }

/* ── GUIDES HUB GRID ── */
.hub-grid {
  max-width: 1100px; margin: 0 auto; padding: 24px 64px 48px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.hub-card {
  background: var(--black); padding: 32px 30px;
  text-decoration: none; display: block; transition: background 0.2s;
}
.hub-card:hover { background: #161616; }
.hub-card-kicker {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.hub-card-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--white); margin-bottom: 10px; line-height: 1.25;
}
.hub-card-desc { font-size: 0.92rem; color: #a8a8a8; line-height: 1.65; }

/* ── FOOTER ── */
footer {
  padding: 48px 64px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-brand .mark { width: 20px; height: 11px; }
.footer-meta {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.footer-meta a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-meta a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.7rem; }
  .article-header { padding: 120px 24px 40px; }
  .prose, .proof, .cta-section { padding-left: 24px; padding-right: 24px; }
  .hub-grid { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  footer { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .footer-meta { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 34px;
    padding: 6px 8px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--white);
    transition: transform 0.25s, opacity 0.2s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--rule);
    padding: 6px 0 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 28px; font-size: 0.82rem; }
}

@media (max-width: 540px) {
  nav { padding: 16px 20px; }
}
