/* crucial.supply — design system
   Grounded in the world of EU pharma regulatory documents: pharmacopeia
   monograph typesetting, amber apothecary glass, GMP audit trails, and the
   hard deadlines (T-12mnd / T-6mnd) that drive this product's core value. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #14243c;
  --ink-soft: #3d4a5e;
  --paper: #eeece4;
  --paper-raised: #f8f7f2;
  --amber: #a8710e;
  --amber-deep: #7c540a;
  --brick: #9b3a2c;
  --sage: #3f6357;
  --line: #d7d2c3;
  --line-soft: #e4e0d3;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
strong { color: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--brick); display: inline-block; }

/* ---- Nav ---- */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark span { color: var(--amber-deep); }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  padding: 0.7em 1.3em; border-radius: 3px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper-raised); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero p.lead { font-size: 1.14rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

/* Signature element: the deadline strip — a literal rendering of the
   12/6-month notification clock that is the product's core mechanic. */
.deadline-strip {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px 22px;
}
.deadline-strip .ds-label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px;
}
.ds-track { position: relative; height: 2px; background: var(--line); margin: 0 6px 0; }
.ds-fill { position: absolute; left: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brick), var(--amber)); width: 100%; }
.ds-points { display: flex; justify-content: space-between; margin-top: -1px; }
.ds-point { position: relative; text-align: center; width: 33%; }
.ds-point .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-raised); border: 2px solid var(--brick); margin: -5px auto 10px; }
.ds-point:last-child .dot { border-color: var(--sage); background: var(--sage); }
.ds-point .t { font-family: var(--mono); font-size: 0.78rem; color: var(--ink); font-weight: 500; }
.ds-point .d { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.35; }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2.2em; }

/* ---- Pipeline (numbered — a genuine process sequence) ---- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pipeline-step {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.pipeline-step:last-child { border-right: none; }
.pipeline-step .num { font-family: var(--mono); color: var(--amber-deep); font-size: 0.82rem; display: block; margin-bottom: 0.7em; }
.pipeline-step h3 { font-size: 0.98rem; margin-bottom: 0.4em; }
.pipeline-step p { font-size: 0.88rem; margin: 0; }

/* ---- Cards / grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.card h3 { font-size: 1.02rem; }
.card p:last-child { margin-bottom: 0; }

table.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 500; }
table.compare td.brand { font-weight: 600; color: var(--ink); }

/* ---- FAQ ---- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary { font-family: var(--serif); font-size: 1.05rem; cursor: pointer; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--amber-deep); flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 0.8em; }

/* ---- Blog article list ---- */
.post-list { display: grid; gap: 20px; }
.post-card { display: block; text-decoration: none; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-card .meta { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5em; }
.post-card h3 { color: var(--ink); margin-bottom: 0.3em; }
.post-card p { margin: 0; }

/* ---- Article page ---- */
.article-head { padding: 48px 0 20px; border-bottom: 1px solid var(--line); }
.article-head .meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.article-body { max-width: 70ch; padding: 40px 0; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body ul, .article-body ol { color: var(--ink-soft); padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; }
.callout {
  border-left: 3px solid var(--brick);
  background: var(--paper-raised);
  padding: 16px 20px;
  margin: 1.8em 0;
  font-size: 0.95rem;
}
.callout strong { color: var(--brick); }
.breadcrumb { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 1.2em; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer .fw { font-family: var(--serif); font-weight: 600; color: var(--ink); }
footer .fine { font-size: 0.82rem; color: var(--ink-soft); max-width: 44ch; }
footer nav { display: flex; gap: 20px; }
footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; }
footer nav a:hover { color: var(--ink); }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline-step { border-right: none; border-bottom: 1px solid var(--line); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
