/* THE STACK — rock.f-me.ai */
:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #161616;
  --border: #1e1e1e;
  --border-soft: #262626;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-dim: #444444;
  --accent: #3b82f6;
  --accent-dim: rgba(59,130,246,0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --red: #ef4444;
  --green: #22c55e;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-block; padding: 0.5rem 1rem;
  background: var(--accent); color: #fff;
  text-decoration: none; border-radius: 5px;
  font-size: 0.8rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #2563eb; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 2rem 4rem;
  max-width: 920px; margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--accent);
}
.hero-name {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.05em; color: var(--text);
  margin-bottom: 2rem;
}
.hero-name em { color: var(--accent); font-style: normal; }
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted); font-weight: 400;
  max-width: 580px; line-height: 1.6;
  margin-bottom: 2.5rem;
}
.hero-tagline strong { color: var(--text); font-weight: 500; }
.hero-meta {
  display: flex; gap: 2rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-dim);
  margin-bottom: 2.5rem;
}
.hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.dot.amber { background: var(--amber); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 0.8rem 1.6rem;
  background: var(--accent); color: #fff;
  text-decoration: none; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; padding: 0.8rem 1.6rem;
  border: 1px solid var(--border-soft); color: var(--text-muted);
  text-decoration: none; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─── SECTIONS ─── */
.section {
  padding: 5rem 2rem;
  max-width: 760px; margin: 0 auto;
}
.section-wide {
  padding: 5rem 2rem;
  max-width: 1000px; margin: 0 auto;
}
.section-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--text); margin-bottom: 1rem;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 1rem; color: var(--text-muted);
  max-width: 540px; line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ─── DIVIDER ─── */
.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── BRIEFING CARDS ─── */
.briefings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.briefing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.15s;
  position: relative; overflow: hidden;
}
.briefing-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.briefing-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.briefing-card:hover::before { opacity: 1; }
.card-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 4px;
  margin-bottom: 0.85rem;
}
.tag-blue { color: var(--accent); background: var(--accent-dim); }
.tag-amber { color: var(--amber); background: var(--amber-dim); }
.tag-red { color: var(--red); background: rgba(239,68,68,0.1); }
.tag-green { color: var(--green); background: rgba(34,197,94,0.1); }
.card-headline {
  font-size: 1rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}
.card-take {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.65;
}
.card-take strong { color: var(--text); font-weight: 600; }

/* ─── ESSAY ─── */
.essay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.essay-meta {
  display: flex; gap: 1rem; align-items: center;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.essay-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--text); line-height: 1.2;
  margin-bottom: 1rem;
}
.reading-time {
  font-size: 0.75rem; color: var(--text-dim);
}
.essay-body {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.8;
}
.essay-body p { margin-bottom: 1.25rem; }
.essay-body p:last-child { margin-bottom: 0; }
.essay-body strong { color: var(--text); font-weight: 600; }
.essay-body em { color: var(--amber); font-style: normal; }

/* ─── NEWSLETTER ARCHIVE CARD ─── */
.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.newsletter-card-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.newsletter-issue-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
}
.newsletter-issue-date {
  font-size: 0.75rem; color: var(--text-dim);
}
.newsletter-card-body { padding: 2rem; }
.nl-section-title {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.nl-section-title:first-child { margin-top: 0; }
.nl-story {
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.nl-story:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.nl-story-headline {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.nl-story-take {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.65;
}
.nl-story-take strong { color: var(--text); }
.nl-deep-dive {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.nl-deep-dive p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7;
}
.nl-deep-dive strong { color: var(--amber); font-weight: 600; }
.nl-rec {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.65;
}
.nl-rec strong { color: var(--accent); }
.nl-signoff {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.7;
}
.nl-signoff strong { color: var(--text); }

/* ─── NEWSLETTER SIGNUP ─── */
.newsletter-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.newsletter-masthead {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.newsletter-box h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--text); margin-bottom: 0.75rem;
}
.newsletter-box p {
  color: var(--text-muted); margin-bottom: 2rem;
  max-width: 420px; margin-left: auto; margin-right: auto;
  line-height: 1.65;
}
.newsletter-form {
  display: flex; gap: 0.75rem;
  max-width: 460px; margin: 0 auto 1rem;
}
.newsletter-form input {
  flex: 1; padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px; color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: var(--text-dim); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 0.8rem 1.4rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.newsletter-form button:hover { background: #2563eb; transform: translateY(-1px); }
.newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.newsletter-note {
  font-size: 0.75rem; color: var(--text-dim);
}
.newsletter-note a { color: var(--text-dim); text-decoration: none; }
.newsletter-note a:hover { color: var(--text-muted); }
#form-message {
  margin-top: 0.75rem; font-size: 0.875rem;
  min-height: 1.2em; font-weight: 500;
}
#form-message.success { color: var(--green); }
#form-message.error { color: var(--red); }

/* ─── ABOUT ─── */
.about-body {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.85;
}
.about-body p { margin-bottom: 1.5rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-body em { color: var(--amber); font-style: normal; }

/* ─── WRITING LIST ─── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, transform 0.15s;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card a { text-decoration: none; display: block; }
.post-meta {
  display: flex; gap: 0.75rem; align-items: center;
  margin-bottom: 0.75rem;
}
.post-tag {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
.post-date { font-size: 0.75rem; color: var(--text-dim); }
.post-read { font-size: 0.75rem; color: var(--text-dim); }
.post-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.35;
  margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.post-excerpt {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.6;
}
.post-footer {
  margin-top: 0.75rem; font-size: 0.8rem;
  color: var(--accent); font-weight: 600;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  max-width: 760px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-left {
  font-size: 0.8rem; color: var(--text-dim);
}
.footer-right {
  display: flex; gap: 1.5rem;
}
.footer-right a {
  font-size: 0.8rem; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
.footer-right a:hover { color: var(--text-muted); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up-1 { animation: fadeUp 0.7s ease 0.1s both; }
.fade-up-2 { animation: fadeUp 0.7s ease 0.2s both; }
.fade-up-3 { animation: fadeUp 0.7s ease 0.3s both; }

.scroll-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── PAGE HEADER ─── */
.page-hero {
  padding: 9rem 2rem 4rem;
  max-width: 760px; margin: 0 auto;
}
.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.05em;
  color: var(--text); line-height: 1.05;
  margin-bottom: 1rem;
}
.page-subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 520px; line-height: 1.7;
}

/* ─── MOBILE ─── */
@media (max-width: 640px) {
  nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  .section, .section-wide { padding: 3.5rem 1.25rem; }
  .briefings-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-box { padding: 2rem 1.25rem; }
  footer { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
  .essay-card { padding: 1.5rem; }
  .newsletter-card-body { padding: 1.25rem; }
  .hero { padding: 7rem 1.25rem 3rem; }
}

/* ─── HIGHLIGHT ─── */
.highlight { color: var(--accent); }
.highlight-amber { color: var(--amber); }

/* ─── INLINE CODE ─── */
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}
