/* The Gig Ledger — editorial blog styles */
:root {
  --accent: #167a4c;
  --accent-dark: #0f5f3b;
  --accent-tint: #e9f5ee;
  --ink: #1e242e;
  --ink-soft: #4a5568;
  --ink-faint: #718096;
  --paper: #ffffff;
  --paper-warm: #faf9f6;
  --rule: #e6e1d8;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper-warm);
  line-height: 1.7;
  font-size: 1.0625rem;
}

h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; height: auto; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand svg { flex: 0 0 auto; }

.brand-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #c9d6cf;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #4a5568;
  border-radius: 6px;
  color: #fff;
  padding: 0.4rem 0.65rem;
  font-size: 1rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover { color: #9ae6b4; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 0 3rem;
  border-top: 4px solid var(--accent);
}

.hero h1 { margin-top: 0; font-size: 2.6rem; }

.hero .tagline {
  color: #9ae6b4;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.hero p.lede { color: #d6dee6; max-width: 40rem; }

/* ---------- Cards ---------- */
.section-title {
  font-size: 1.35rem;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 30, 25, 0.08); }

.card .kicker {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-weight: 700;
}

.card h3 { margin: 0; font-size: 1.15rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent-dark); }

.card p.excerpt { margin: 0; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.card .card-meta { font-size: 0.82rem; color: var(--ink-faint); }

.card.featured {
  border-left: 6px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-tint), var(--paper) 70%);
}

/* ---------- About / start here ---------- */
.start-here {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.start-here h2 { margin-top: 0; }

.start-here ol { padding-left: 1.25rem; }
.start-here li { margin-bottom: 0.75rem; }

/* ---------- Newsletter card ---------- */
.newsletter-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.25rem;
  margin: 2rem 0 2.5rem;
  text-align: center;
  border-top: 4px solid var(--accent);
}

.newsletter-card h2 { margin-top: 0; color: #fff; }
.newsletter-card p { color: #d6dee6; max-width: 32rem; margin: 0.5rem auto 0; }

/* ---------- Article pages ---------- */
.article-page { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }

.breadcrumb { margin: 1.25rem 0 0.5rem; font-size: 0.9rem; }

.article-page article { background: var(--paper); border-radius: var(--radius); padding: 2rem 2.25rem; margin-top: 0.75rem; border: 1px solid var(--rule); }

.article-page h1 { margin-top: 0.25rem; }

.byline { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 1rem; }
.byline strong { color: var(--ink-soft); }

.article-intro { font-size: 1.15rem; color: var(--ink-soft); border-left: 4px solid var(--accent); padding-left: 1rem; margin: 1.25rem 0 1.75rem; }

.disclosure-note {
  background: var(--accent-tint);
  border: 1px solid #bfe0cd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
}

table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
th { background: var(--accent-tint); font-weight: 700; }
tr:last-child td { border-bottom: none; }

blockquote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: 0.5rem 1rem; color: var(--ink-soft); background: var(--accent-tint); border-radius: 0 8px 8px 0; }

.callout {
  background: var(--accent-tint);
  border: 1px solid #bfe0cd;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.faq { margin-top: 2rem; }
.faq details { border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 0.6rem; padding: 0.8rem 1rem; background: var(--paper-warm); }
.faq summary { font-weight: 700; cursor: pointer; }

.keep-reading { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--rule); }
.keep-reading h2 { margin-top: 0; }
.keep-reading ul { list-style: none; padding: 0; }
.keep-reading li { margin-bottom: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9d6cf;
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.92rem;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }

.site-footer h3 { color: #fff; font-size: 1rem; margin-top: 0; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #c9d6cf; text-decoration: none; }
.site-footer a:hover { color: #9ae6b4; }

.footer-bottom { width: 100%; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #3a4454; font-size: 0.82rem; color: #93a3b1; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 2.5rem 0 2rem; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid #3a4454;
  }
  .site-header { position: relative; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .site-nav li { padding: 0.55rem 0; border-bottom: 1px solid #3a4454; }
  .site-nav li:last-child { border-bottom: none; }

  .article-page article { padding: 1.4rem 1.25rem; }
  .start-here, .newsletter-card { padding: 1.5rem 1.25rem; }
  table { display: block; overflow-x: auto; }
}
