:root {
  --ink: #171b19;
  --paper: #f7f8f5;
  --white: #ffffff;
  --green: #24543d;
  --green-2: #3f7659;
  --red: #bf4b3f;
  --yellow: #e8c463;
  --line: #d9ded9;
  --muted: #5f6963;
  --shadow: 0 14px 35px rgba(16, 30, 22, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  padding: 10px 14px;
  border: 2px solid var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(217, 222, 217, 0.9);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}
.nav-shell {
  max-width: var(--max);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-size: 13px;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 9px 10px;
  color: #39423d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.menu-button span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

.hero {
  min-height: min(690px, calc(100vh - 68px));
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: #dfe4de url("publishing-workbench-hero.webp") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 17, 14, 0.9) 0%, rgba(12, 17, 14, 0.69) 38%, rgba(12, 17, 14, 0.08) 76%);
}
.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 76px;
  color: var(--white);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--yellow); }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-copy { max-width: 620px; margin: 25px 0 0; font-size: clamp(18px, 2vw, 22px); color: #eef2ed; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.button:hover { background: var(--green); border-color: var(--green); }
.button-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-light:hover { color: var(--white); }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { color: var(--white); }
.hero .button-ghost { color: var(--white); border-color: rgba(255,255,255,.72); }

.band { border-top: 1px solid var(--line); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 78px 0; }
.section-compact { padding: 48px 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); gap: 48px; align-items: end; margin-bottom: 38px; }
.section-heading h2, .page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.band-ink .section-heading p { color: #bdc7c0; }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.proof-item { min-height: 132px; padding: 28px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; margin-bottom: 6px; font-size: 18px; }
.proof-item span { color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.product-card.featured { border-top: 6px solid var(--green); padding-top: 21px; box-shadow: var(--shadow); }
.product-kicker { color: var(--red); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.product-card h3 { margin: 13px 0 10px; font-size: 24px; line-height: 1.2; }
.product-card p { margin: 0 0 18px; color: var(--muted); }
.product-list { margin: 0 0 24px; padding-left: 20px; color: #3e4842; font-size: 14px; }
.product-list li + li { margin-top: 6px; }
.product-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status { display: inline-flex; padding: 5px 8px; border: 1px solid var(--line); background: #eef2ed; color: var(--green); font-size: 12px; font-weight: 800; }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #465049; }
.workflow-step { min-height: 225px; padding: 25px; border-right: 1px solid #465049; }
.workflow-step:last-child { border-right: 0; }
.step-number { display: block; color: var(--yellow); font: 700 42px/1 Georgia, serif; }
.workflow-step h3 { margin: 28px 0 8px; font-size: 18px; }
.workflow-step p { margin: 0; color: #bdc7c0; font-size: 14px; }

.resource-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.checklist-preview { padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: var(--shadow); }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-box { width: 18px; height: 18px; margin-top: 3px; border: 2px solid var(--green); }

.page-hero { padding: 86px 0 54px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
.prose { max-width: 780px; }
.prose h2 { margin: 42px 0 12px; font-size: 28px; line-height: 1.2; }
.prose h3 { margin: 30px 0 10px; font-size: 20px; }
.prose p, .prose li { color: #3f4843; }
.prose a { color: var(--green); font-weight: 700; }
.note { padding: 20px; border-left: 4px solid var(--yellow); background: var(--white); }
.side-nav { position: sticky; top: 100px; align-self: start; padding-left: 20px; border-left: 1px solid var(--line); }
.side-nav strong { display: block; margin-bottom: 12px; }
.side-nav a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.side-nav a:hover { color: var(--green); }

.tool-table { width: 100%; border-collapse: collapse; background: var(--white); }
.tool-table th, .tool-table td { padding: 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.tool-table th { background: #edf1ec; font-size: 13px; }

.contact-panel { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line); background: var(--white); }
.contact-panel > div { padding: 36px; }
.contact-panel > div + div { border-left: 1px solid var(--line); }

.site-footer { padding: 52px 0 28px; background: #111512; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, .7fr); gap: 40px; }
.footer-grid p { max-width: 440px; color: #aeb9b2; }
.footer-grid h2 { margin: 0 0 10px; font-size: 16px; }
.footer-grid a { display: block; padding: 4px 0; color: #cbd3ce; text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #343b36; color: #8e9b93; font-size: 13px; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 14px 24px 20px; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .section-heading, .resource-layout, .content-grid, .contact-panel { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow-step:nth-child(2) { border-right: 0; }
  .workflow-step:nth-child(-n+2) { border-bottom: 1px solid #465049; }
  .side-nav { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .contact-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .nav-shell, .shell { width: 100%; padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 650px; background-position: 61% center; }
  .hero::before { background: linear-gradient(90deg, rgba(12,17,14,.92), rgba(12,17,14,.66) 72%, rgba(12,17,14,.35)); }
  .hero-inner { width: 100%; padding: 70px 18px 62px; }
  .hero h1 { font-size: 48px; overflow-wrap: anywhere; }
  .section { padding: 58px 0; }
  .proof-strip, .product-grid, .workflow, .footer-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .workflow-step { border-right: 0; border-bottom: 1px solid #465049; }
  .workflow-step:last-child { border-bottom: 0; }
  .product-card { min-height: 0; }
  .tool-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: white; }
  .section { padding: 16px 0; }
  .shell { width: 100%; }
}
