/* ============================================================================
   sammons.io — site styles
   Layout + shared patterns. Design tokens live in tokens.css.
   ============================================================================ */

html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: var(--font-sans); color: var(--fg2); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent-subtle); }

/* ---- Page shell ------------------------------------------------------------
   <body class="shell"> <site-nav/> <main>…</main> <site-footer/> */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell > main { flex: 1; }
/* Pages whose content should stretch (the mission hero) */
.shell > main.full { display: flex; flex-direction: column; }

/* Standard content column for every page except the hero */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 80px) clamp(20px, 5vw, 32px);
}

/* ---- Headings & labels ---------------------------------------------------- */
.page-title {
  margin: 14px 0 32px;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--fg1);
}
.page-title.detail { margin: 20px 0 20px; }    /* after a backlink, before a lead */
.page-title.listhead { margin: 20px 0 8px; }   /* after a backlink, before .page-sub */
.page-title.article-head { margin: 0 0 24px; } /* after a date line */
.page-sub { margin: 0 0 24px; font-size: var(--text-base); color: var(--fg2); }

.backlink {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg3);
  transition: color var(--dur-fast) var(--ease-standard);
}
.backlink:hover { color: var(--accent); }

/* Mono section label ("Sound familiar?", "Process", "Pricing") */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 12px;
}

/* Mono footnote at the bottom of a page */
.footnote {
  margin: 32px 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* ---- List rows (the standard pattern used across the site) ---------------- */
.list { display: flex; flex-direction: column; }
.list a.row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 4px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard);
}
.list a.row:hover { background: var(--bg-subtle); }
.row .row-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--fg1);
}
.row .row-title .arrow { color: var(--accent); }
.row .row-sum { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--fg2); }
.row .row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.row .row-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg3);
  white-space: nowrap;
}
.row .row-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg3);
}
/* Update / post rows are slightly denser with an lg title */
.list a.row.update { gap: 5px; padding: 18px 4px; }
.row .row-title-lg { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--fg1); }

/* About-page link table: label left, value right */
.list a.linkrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 4px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard);
}
.list a.linkrow:hover { background: var(--bg-subtle); }
.linkrow .linkrow-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg1);
}
.linkrow .linkrow-value { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); }

/* ---- Body copy ------------------------------------------------------------- */
.lead { margin: 0; font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--fg2); text-wrap: pretty; }
.paras { display: flex; flex-direction: column; gap: 16px; font-size: var(--text-base); line-height: var(--leading-normal); color: var(--fg2); }
.paras.snug { gap: 12px; }
.paras p { margin: 0; text-wrap: pretty; }

/* "Sound familiar?" quote rows */
.quotes { display: flex; flex-direction: column; }
.quotes p {
  margin: 0;
  padding: 14px 4px;
  border-top: 1px solid var(--border);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg1);
  text-wrap: pretty;
}

/* Process step cards (Postmortem Facilitation) */
.steps { display: flex; flex-direction: column; }
.step {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
}
.step .step-n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); padding-top: 2px; }
.step .step-body { display: flex; flex-direction: column; gap: 8px; }
.step .step-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg1);
}
.step .step-desc { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--fg2); text-wrap: pretty; }
.step-connector { width: 1px; height: 24px; background: var(--border-strong); margin-left: 40px; }

/* Dashed "coming soon" boxes */
.dashed-box {
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.dashed-box.products { padding: 24px; gap: 12px; }
.dashed-box.topics { margin-top: 32px; padding: 16px 20px; gap: 8px 12px; }
.dashed-box .topics-list { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .05em; color: var(--fg3); }

.section { margin-top: 40px; }

/* ---- Mission hero ----------------------------------------------------------- */
.hero {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 14vh, 140px) 24px;
}
.hero .hero-hex {
  position: absolute;
  inset: 0;
  background-image: var(--hex-pattern);
  background-size: 58px 100.5px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 45%, #000 0%, transparent 75%);
}
.hero .hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  max-width: 640px;
}
.hero .hero-wordmark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(17px, 3.4vw, 24px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg1);
}
.hero .mission { margin: 0; font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--fg2); text-wrap: pretty; }
.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Mono uppercase text links ("Services →", "About →") */
.textlink {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg1);
  transition: color var(--dur-fast) var(--ease-standard);
}
.textlink:hover { color: var(--accent); }

/* Plain accent link (e.g. "Request a topic", external repo links) */
.accent-link { color: var(--accent); text-decoration: none; }
.accent-link:hover { color: var(--accent-hover); }
.mono-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); text-decoration: none; }
.mono-link:hover { color: var(--accent-hover); }

/* ---- Article (knowledge writeups) ------------------------------------------ */
.article { display: flex; flex-direction: column; gap: 16px; font-size: var(--text-base); line-height: var(--leading-normal); color: var(--fg2); }
.article p, .article ul, .article ol { margin: 0; text-wrap: pretty; }
.article ul, .article ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article h2 {
  margin: 24px 0 0;
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--fg1);
}
.article h3 {
  margin: 16px 0 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--fg1);
}
.article h4 {
  margin: 8px 0 0;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--fg1);
}
.article strong { color: var(--fg1); font-weight: var(--weight-semibold); }
.article code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-muted);
  color: var(--fg1);
  padding: 0.15em 0.4em;
}
.article pre {
  margin: 0;
  padding: 16px 20px;
  /* Fixed dark code surface in both themes — bg-inverse flips in dark mode */
  background: var(--slate-900);
  color: var(--slate-50);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.article pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.article blockquote {
  margin: 0;
  padding: 12px 20px;
  border-left: 2px solid var(--accent);
  color: var(--fg1);
}
