/* The Production Audit — shared design system */

:root {
  --ink: #1a1a1a;
  --ink-soft: #32322f;
  --text-muted: #62615d;
  --bg: #ffffff;
  --bg-warm: #f2f2f3;
  --bg-pine: #17302b;
  --pine: #1f3a34;
  --pine-light: #2c4d45;
  --amber: #ff5c1a;
  --amber-dark: #d1450d;
  --amber-light: #ffdac0;
  --border: #e1e1e3;
  --border-strong: #c7c7cb;
  --good: #2f6b4f;
  --warn: #a13d2e;
  --radius: 6px;
  --max: 1120px;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(34px, 5.5vw, 54px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.005em; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.lede { font-size: 20px; color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--text-muted); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 600;
  margin: 0 0 14px;
  display: block;
}

/* Anchor targets should clear the sticky nav instead of landing underneath it */
[id] { scroll-margin-top: 96px; }

/* Nav */
.site-nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: var(--serif); font-size: 19px; font-weight: 600; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand span { color: var(--amber-dark); }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--pine);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--pine-light); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-light); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-dark); }

/* Sections */
section { padding: 80px 0; }
.section-warm { background: var(--bg-warm); }
.section-pine { background: var(--bg-pine); color: #f2efe6; }
.section-pine h1, .section-pine h2, .section-pine h3 { color: #fff; }
.section-pine .muted { color: #b9c4bf; }
.section-tight { padding: 56px 0; }
.hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* Hero */
.hero { padding: 88px 0 64px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  max-width: 720px;
}
.hero-stats div { background: #fff; padding: 18px 20px; }
.hero-stats .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.hero-stats .value { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
}
.card h3 { margin-bottom: 10px; }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--amber-dark); font-weight: 700; margin-bottom: 8px; display: block; }

.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.deliverables .item { background: #fff; padding: 26px 28px; }

/* Timeline */
.timeline { margin-top: 36px; }
.timeline .step { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--border); }
.timeline .step:last-child { border-bottom: 1px solid var(--border); }
.timeline .when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--amber-dark); padding-top: 4px; }
.timeline .what { font-weight: 600; margin-bottom: 4px; }

/* Fit table */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.fit-box { border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--border); }
.fit-box.good { border-top: 3px solid var(--good); }
.fit-box.bad { border-top: 3px solid var(--warn); }
.fit-box ul { margin: 0; padding-left: 20px; }
.fit-box li { margin-bottom: 8px; }

/* Numbers table */
table.numbers { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; }
table.numbers th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--border-strong); }
table.numbers td { padding: 12px; border-bottom: 1px solid var(--border); }
table.numbers td:last-child, table.numbers th:last-child { text-align: right; font-family: var(--mono); }
table.numbers tr.total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: none; }
table.numbers tr.price td { font-weight: 700; color: var(--amber-dark); }
table.numbers tbody tr:last-child td { border-bottom: 1px solid var(--border); }

/* Guarantee box */
.guarantee {
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--amber);
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 24px;
}

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: start; }
.pricing-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; background: var(--bg); display: flex; flex-direction: column; }
.pricing-card.featured { border: 2px solid var(--amber); background: var(--bg-warm); }
.pricing-card .badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-dark); font-weight: 700; margin-bottom: 12px; display: block; }
.pricing-card h3 { font-size: 25px; margin-bottom: 2px; }
.pricing-card .tier-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.pricing-card .price { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; }
.pricing-card .price .per { font-family: var(--sans); font-size: 15px; color: var(--text-muted); font-weight: 400; }
.pricing-card .price-sub { font-size: 13px; color: var(--text-muted); margin: 10px 0 24px; }
.pricing-card ul { list-style: none; margin: 0 0 auto; padding: 0; }
.pricing-card li { padding-left: 20px; position: relative; margin-bottom: 14px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.pricing-card li::before { content: "+"; position: absolute; left: 0; color: var(--amber-dark); font-weight: 700; }
.pricing-card .btn { margin-top: 28px; width: 100%; justify-content: center; }

/* Quote / pull */
blockquote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber);
  margin: 0;
  padding: 4px 0 4px 24px;
}

/* Footer */
footer { background: var(--pine); color: #d9e0dc; padding: 56px 0 32px; }
footer a { color: #f2efe6; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 13px; color: #a9b4af; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Blog */
.post-list { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.post-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--border); text-decoration: none; }
.post-row:last-child { border-bottom: 1px solid var(--border); }
.post-row .date { font-family: var(--mono); font-size: 12px; color: var(--text-muted); padding-top: 4px; }
.post-row h3 { margin-bottom: 6px; color: var(--ink); }
.post-row:hover h3 { color: var(--amber-dark); }
.post-row p { color: var(--text-muted); margin: 0; font-size: 15px; }

article.post { padding-top: 56px; }
article.post .post-meta { font-family: var(--mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
article.post h1 { max-width: min(28ch, 90vw); }
article.post .post-body { max-width: 68ch; margin-top: 40px; font-size: 18px; }
article.post .post-body h2 { font-size: 26px; margin-top: 1.6em; }
article.post .post-body h3 { font-size: 20px; margin-top: 1.4em; }
article.post .post-body ul, article.post .post-body ol { padding-left: 22px; }
article.post .post-body li { margin-bottom: 8px; }
article.post .post-body blockquote {
  max-width: min(calc(68ch + 220px), 100%);
  margin: 36px 0;
  padding: 22px 28px;
  background: var(--bg-warm);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  font-size: 21px;
  line-height: 1.5;
}
article.post .post-body blockquote p { margin: 0; }
.post-cta {
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 860px) {
  .grid-2, .grid-3, .deliverables, .fit-grid, .footer-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 56px 0; }
  .timeline .step { grid-template-columns: 1fr; gap: 6px; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
}
