/* ============================================================
   REVENDEAVOR — Editorial B2B Revenue Journal
   Palette: warm paper, deep emerald, brass, ink
   Type: Fraunces (display serif) + Inter (body)
   ============================================================ */

:root {
  --ink: #16181B;
  --paper: #F8F6F0;
  --paper-2: #F1EEE5;
  --emerald: #1B6B53;
  --emerald-light: #2A8A6E;
  --emerald-dark: #114635;
  --brass: #B08D4C;
  --muted: #54585C;
  --faint: #8A8E92;
  --rule: #E3DFD4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typographic helpers ---------- */
.font-display { font-family: 'Fraunces', Georgia, serif; }
.serif { font-family: 'Fraunces', Georgia, serif; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
}

/* ---------- Category badge ---------- */
.category-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid var(--emerald);
  border-radius: 2px;
  padding: 3px 9px;
  line-height: 1;
}

/* ---------- Accent rule under headings ---------- */
.accent-line {
  width: 56px;
  height: 3px;
  background: var(--emerald);
  border-radius: 2px;
}
.accent-line--brass { background: var(--brass); }

.author-byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.5rem;
}

/* ---------- Nav ---------- */
.nav-edge-border { border-bottom: 1px solid var(--rule); }
#main-nav.scrolled { box-shadow: 0 1px 16px rgba(20,30,25,0.08); }

.nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--emerald); }

/* ---------- Masthead wordmark ---------- */
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
}
.wordmark .rev { color: var(--emerald); }
.wordmark .dot { color: var(--brass); }

/* ---------- Hamburger ---------- */
.hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 28px; height: 28px; background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; height: 2px; width: 24px; background: var(--ink);
  border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
  background: var(--paper); z-index: 60; padding: 6rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: -8px 0 40px rgba(20,25,22,0.12); transition: right 0.35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 600;
  color: var(--ink); padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--emerald); }

/* ---------- Article cards ---------- */
.article-card {
  border: 1px solid var(--rule);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(20,40,32,0.35);
  border-color: var(--emerald);
}
.card-image img { transition: transform 0.5s ease; }
.article-card:hover .card-image img { transform: scale(1.04); }

/* ---------- "Want the summary?" jump link ---------- */
.summary-jump {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--emerald); cursor: pointer; text-decoration: none;
  padding: 7px 14px; border: 1px solid var(--emerald);
  border-radius: 999px; transition: all 0.25s ease;
}
.summary-jump:hover { background: var(--emerald); color: #fff; }
.summary-jump svg { transition: transform 0.25s ease; }
.summary-jump:hover svg { transform: translateY(2px); }

/* ---------- LinkedIn-ready summary card ---------- */
.summary-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--emerald);
  border-radius: 4px;
  box-shadow: 0 24px 60px -32px rgba(17,70,53,0.4);
  scroll-margin-top: 90px;
}
.summary-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.summary-card__label {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald-dark);
}
.summary-card__body {
  padding: 1.75rem 1.75rem 2rem;
  font-family: 'Inter', sans-serif; font-size: 1.0625rem; line-height: 1.7;
  color: var(--ink); white-space: pre-wrap;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.03em; color: #fff; background: var(--emerald);
  border: none; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.copy-btn:hover { background: var(--emerald-dark); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.copied { background: var(--brass); }
.summary-card__meta {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; color: var(--faint);
  padding: 0 1.75rem 1.5rem; letter-spacing: 0.02em;
}

/* ---------- Pull quote ---------- */
.pullquote {
  border-left: 4px solid var(--emerald); padding-left: 1.5rem; margin: 2rem 0;
}
.pullquote p { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.35rem; line-height: 1.6; color: var(--ink); }

/* ---------- Newsletter ---------- */
.newsletter-dark { background: var(--ink); position: relative; overflow: hidden; }
.newsletter-accent-top { height: 4px; background: linear-gradient(90deg, var(--emerald) 0%, var(--brass) 100%); }
.newsletter-input {
  padding: 14px 18px; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: #fff; outline: none; transition: border-color 0.2s ease;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: var(--emerald-light); }

.btn-emerald {
  background: var(--emerald); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border: none; cursor: pointer; transition: background 0.2s ease;
}
.btn-emerald:hover { background: var(--emerald-light); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  border-radius: 999px; background: var(--ink); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all 0.3s ease; z-index: 40;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--emerald); }

/* ---------- Footer ---------- */
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--emerald) 0%, var(--brass) 100%); }
.footer-watermark {
  position: absolute; bottom: -2.5rem; right: -1rem; font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 9rem; color: rgba(255,255,255,0.03);
  letter-spacing: -0.02em; pointer-events: none; user-select: none; line-height: 1;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
