/* Greasegiant Blog — shared stylesheet */
:root {
  --paper: #F1EAD8;
  --paper-deep: #E8DFC8;
  --ink: #161814;
  --ink-soft: #3A3C36;
  --amber: #C89038;
  --amber-deep: #A8761F;
  --moss: #3A4B2E;
  --gray: #6B6760;
  --line: rgba(22, 24, 20, 0.12);
  --line-strong: rgba(22, 24, 20, 0.25);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200, 144, 56, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(58, 75, 46, 0.04) 0%, transparent 50%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.086 0 0 0 0 0.094 0 0 0 0 0.078 0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--amber-deep); }

/* Nav */
nav.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 234, 216, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav.top .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(200, 144, 56, 0.2);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(22, 24, 20, 0.05); }
.nav-links a.active { color: var(--ink); background: rgba(22, 24, 20, 0.08); }
.nav-cta {
  padding: 10px 20px !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--amber-deep) !important; }
.mobile-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.22s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--amber-deep); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Blog index hero */
.blog-hero {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  margin-top: 20px;
  letter-spacing: -0.035em;
}
.blog-hero h1 em { font-style: italic; color: var(--amber-deep); font-weight: 300; }
.blog-hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 22px;
  line-height: 1.55;
}

/* Featured post */
.featured {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.featured-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: 56px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}
.featured-card:hover { transform: translateY(-3px); }
.featured-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200, 144, 56, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.featured-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 6px 12px;
  border: 1px solid rgba(200, 144, 56, 0.4);
  border-radius: 999px;
  margin-bottom: 24px;
}
.featured-card h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 18px;
  max-width: 820px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.featured-card p {
  font-size: 17px;
  color: rgba(241, 234, 216, 0.75);
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.featured-meta {
  font-size: 13px;
  color: rgba(241, 234, 216, 0.55);
  display: flex;
  gap: 20px;
  align-items: center;
}
.featured-meta span.category {
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Post grid */
.posts-section { padding: 80px 0; }
.section-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--amber-deep);
  margin-bottom: 8px;
  font-weight: 500;
}
.section-heading {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  margin-bottom: 48px;
  letter-spacing: -0.025em;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.post-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  border-top-color: var(--amber-deep);
  transform: translateY(-3px);
}
.post-card .meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}
.post-card .meta .cat { color: var(--amber-deep); }
.post-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.post-card:hover h3 { color: var(--amber-deep); }
.post-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.post-card .read-more {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Individual post */
.post-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber-deep); }
.breadcrumbs span { margin: 0 8px; color: var(--gray); }
.post-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 20px;
  display: inline-block;
}
.post-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  line-height: 1.1;
}
.post-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.post-meta strong { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* Post body */
article.post-body {
  padding: 60px 0 80px;
}
article.post-body .lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 3px solid var(--amber);
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}
article.post-body h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  margin-top: 56px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
article.post-body h3 {
  font-size: 22px;
  font-weight: 500;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
article.post-body p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}
article.post-body p strong { color: var(--ink); font-weight: 600; }
article.post-body ul, article.post-body ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}
article.post-body ul li, article.post-body ol li {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
article.post-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber-deep);
  font-weight: 500;
}
article.post-body ol { counter-reset: li; }
article.post-body ol li {
  counter-increment: li;
}
article.post-body ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber-deep);
  font-weight: 500;
  font-size: 14px;
  top: 10px;
}
article.post-body a { color: var(--amber-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
article.post-body a:hover { color: var(--ink); }
article.post-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--paper-deep);
  border-left: 3px solid var(--amber-deep);
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
article.post-body .key-takeaway {
  margin: 48px 0;
  padding: 28px 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
}
article.post-body .key-takeaway h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
article.post-body .key-takeaway p {
  color: rgba(241, 234, 216, 0.9);
  font-size: 17px;
  margin-bottom: 0;
  line-height: 1.55;
}

/* Post CTA */
.post-cta {
  padding: 80px 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.post-cta h3 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.post-cta h3 em { font-style: italic; color: var(--amber-deep); font-weight: 300; }
.post-cta p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Related posts */
.related-posts { padding: 70px 0; border-bottom: 1px solid var(--line); }
.related-posts h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: -0.015em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Footer */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 36px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .logo { color: var(--paper); }
.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(241, 234, 216, 0.6);
  max-width: 320px;
  line-height: 1.55;
}
footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; padding: 0; border: 0; }
.footer-col ul li::before { display: none; }
.footer-col ul li a {
  color: rgba(241, 234, 216, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(241, 234, 216, 0.12);
  font-size: 12px;
  color: rgba(241, 234, 216, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 920px) {
  .post-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { padding: 36px; }
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
  nav.top .inner { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 20px;
    border-bottom: 1px solid var(--line);
    gap: 8px;
  }
  .mobile-toggle { display: block; }
  .post-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .blog-hero { padding: 50px 0; }
  .featured-card { padding: 28px; }
  article.post-body .lede { font-size: 19px; padding-left: 16px; }
}
