/* 3conomics — editorial */
:root {
  --paper: #f3efe6;
  --ink: #161513;
  --muted: #6a645c;
  --rule: #d4cec2;
  --accent: #1f4a43;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Public Sans", system-ui, sans-serif;
  --measure: 720px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.3rem); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; font-family: var(--font-sans); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); }
p { color: var(--ink); }
code { font-size: 0.9em; }

.container, .wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }
.container { max-width: var(--measure); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
}
.nav-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  gap: 1rem;
}
.logo, .wordmark {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark, .wordmark em { font-style: normal; color: var(--accent); }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--ink); cursor: pointer; padding: 0.25rem;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-links {
  display: flex; gap: 1.25rem; list-style: none;
  font-size: 0.82rem; font-weight: 500;
}
.nav-links a {
  text-decoration: none; color: var(--muted);
  padding: 0; background: none !important;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta, .nav-links a.nav-cta, .nav-links a.primary {
  color: var(--ink) !important;
  text-decoration: underline !important;
  background: none !important;
  font-weight: 500 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.85rem;
  }
  .nav-links.open { display: flex; }
}

/* Type helpers */
.eyebrow, .kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.gradient { background: none; -webkit-text-fill-color: inherit; color: inherit; }
.lead, .standfirst, .hero-lead, .section-subtitle {
  font-size: 1.12rem;
  color: var(--muted);
  font-weight: 400;
  max-width: 36em;
}

/* Hero / homepage */
.hero {
  text-align: left;
  padding: 4.25rem 0 2rem;
}
.hero .container { max-width: var(--measure); }
.hero h1 { margin-bottom: 1.15rem; }
.hero-lead { margin: 0 0 2.1rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero-stats { display: none; }

.section { padding: 0 0 3rem; background: transparent !important; }
.section-title { margin-bottom: 0.85rem; }
.section-sm { padding: 2.5rem 0 4rem; }
.page-header { padding: 3.25rem 0 0.5rem; }
.page-header h1 { margin-bottom: 1rem; }
.text-center { text-align: left; }
.text-center .hero-cta { justify-content: flex-start; }

/* Buttons */
.btn, button[type=submit] {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper) !important;
  border: none;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
}
.btn:hover, button[type=submit]:hover { color: var(--paper) !important; opacity: 0.88; }
.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  padding: 0.5rem 1.05rem;
}
.btn-secondary:hover { color: var(--accent) !important; }

/* Forms */
.newsletter-form, form.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 0 0.55rem;
  background: none;
  padding: 0;
  border: none;
}
.newsletter-form input[type=email] {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.55rem 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.newsletter-form input[type=email]::placeholder { color: var(--muted); }
.netlify-honeypot { position: absolute; left: -9999px; }
.form-note, .newsletter-success, .newsletter-error {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-bottom: 2rem;
}
.newsletter-error { color: #8a2b2b; }

/* Cards / grids become lists */
.grid { display: block; }
.grid.grid-2, .grid.grid-3 { display: block; }
.card, a.card {
  display: block;
  background: none;
  border: none;
  border-top: 1px solid var(--rule);
  padding: 1.05rem 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}
.card:last-child, a.card:last-child { border-bottom: 1px solid var(--rule); }
.card-icon, .card-icon-accent { display: none; }
.card h3 { margin-bottom: 0.25rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: underline;
}

/* Issue list */
.issue-preview-grid { display: block; }
.issue-preview {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  background: none;
}
.issue-preview:last-child { border-bottom: 1px solid var(--rule); }
.issue-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}
.issue-preview h4 { margin-bottom: 0.2rem; }
.issue-preview p { color: var(--muted); font-size: 0.92rem; }
.issue-preview-magnet { display: none; }

.format-steps { display: block; }
.format-step {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.format-step:last-child { border-bottom: 1px solid var(--rule); }
.format-step-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  margin-right: 0.5rem;
}

.faq { display: block; }
.faq-item { padding: 1rem 0; border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h4 { margin-bottom: 0.35rem; }
.faq-item p { color: var(--muted); }

/* Article interiors */
.content-layout { display: block; }
.toc {
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.toc-title { font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.toc ul { list-style: none; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a.active, .toc a:hover { color: var(--ink); }
.content { max-width: 38em; }
.content p, .content li { margin-bottom: 1rem; }
.content h2 { margin: 2rem 0 0.75rem; }
.content h3 { margin: 1.5rem 0 0.5rem; }
.feature-list { list-style: disc; padding-left: 1.2rem; margin-bottom: 1.25rem; }
.feature-list li { margin-bottom: 0.55rem; color: var(--ink); }

.callout, .callout-warning {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: none;
  padding: 1rem 0;
  margin: 1.5rem 0;
}

/* Glossary */
.glossary-search { margin-bottom: 1.5rem; }
.glossary-search input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0.55rem 0;
  font: inherit;
  outline: none;
}
.glossary-list { max-width: 38em !important; }
.glossary-item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.glossary-term {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.glossary-def { color: var(--muted); font-size: 0.95rem; }

/* Newsletter page hero */
.newsletter-hero {
  padding: 4rem 0 2rem;
  text-align: left;
  background: none;
}
.newsletter-hero h1 { margin-bottom: 1.1rem; }

/* Footer */
.footer {
  margin-top: 1rem;
}
.footer .container { max-width: var(--measure); }
.newsletter-footer { display: none; }
.footer-grid { display: none; }
.footer-bottom {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.15rem 1.5rem 2.5rem;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.exit-modal { display: none !important; }

/* Misc leftover prototype */
.hero-stat, .card-icon, body::before { display: none !important; content: none; }
