/* drewcrawfordapps.com 2026 — "the seam" design system
   core (what I build)  = oxide copper  #A64B21
   surface (what you ship) = deep teal  #176E7D
   The vertical seam between them is the FFI boundary — the site's one signature. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f4f6f5;
  --ink: #1a2226;
  --dim: #5c6b70;
  --core: #a64b21;
  --surface: #176e7d;
  --pane: #141c20;
  --pane-ink: #d7e0e2;
  --hairline: #d8dedd;
  --seam: linear-gradient(180deg, var(--core), var(--surface));
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--surface); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--core); }
:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- nav ---------- */
header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
header.site .wrap {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.brand .tld { color: var(--dim); font-weight: 500; }
nav.main { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
nav.main a {
  font-family: var(--display); font-weight: 500; font-size: 0.92rem;
  color: var(--dim); text-decoration: none;
}
nav.main a[aria-current="page"], nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { border-bottom: 2px solid var(--surface); }

/* ---------- seam devices ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.eyebrow::before {
  content: ""; width: 3px; height: 1.4em; border-radius: 2px;
  background: var(--seam); flex: none;
}
.side { font-family: var(--mono); font-size: 0.72rem; padding: 0.1em 0.5em;
  border-radius: 3px; letter-spacing: 0.04em; }
.side.core { color: var(--core); border: 1px solid color-mix(in srgb, var(--core) 40%, transparent); }
.side.surface { color: var(--surface); border: 1px solid color-mix(in srgb, var(--surface) 40%, transparent); }

/* ---------- type scale ---------- */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 0.9rem; }
h3 { font-size: 1.12rem; font-weight: 700; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--dim); max-width: 44rem; }

section { padding: 3.6rem 0; }
section + section { border-top: 1px solid var(--hairline); }
.eyebrow + h1, .eyebrow + h2 { margin-top: 0.7rem; }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 3.6rem; }
.hero h1 { max-width: 46rem; }
.hero .lede { margin-top: 1rem; }
.hero-cta { margin-top: 1.6rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 500;
  font-size: 0.95rem; text-decoration: none; padding: 0.62em 1.1em; border-radius: 6px;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--surface); color: var(--paper); }
.btn.ghost { color: var(--ink); border: 1px solid var(--hairline); }
.btn.ghost:hover { border-color: var(--surface); color: var(--surface); }

/* the seam figure: one FFI call crossing the boundary */
.seam-figure {
  margin-top: 2.6rem; display: grid; grid-template-columns: 1fr 4px 1fr;
  border-radius: 10px; overflow: hidden; background: var(--pane);
  box-shadow: 0 12px 32px -18px rgba(20, 28, 32, 0.55);
}
.seam-figure > div { min-width: 0; }
.seam-figure .seamline { background: var(--seam); }
.seam-figure pre {
  padding: 1.15rem 1.25rem; font-family: var(--mono);
  font-size: 0.82rem; line-height: 1.65; color: var(--pane-ink); overflow-x: auto;
}
.seam-figure .pane-label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  padding: 0.55rem 1.25rem 0; display: block;
}
.pane-label.core-l { color: #e08a5a; }
.pane-label.surface-l { color: #6cc3ce; }
.k { color: #6cc3ce; }      /* keyword on dark */
.f { color: #e08a5a; }      /* fn/type accent on dark */
.c { color: #7d8f95; }      /* comment on dark */
@media (max-width: 44rem) {
  .seam-figure { grid-template-columns: 1fr; grid-template-rows: 1fr 4px 1fr; }
}

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 54rem) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--hairline); border-radius: 10px; padding: 1.3rem 1.35rem;
  background: #fff;
}
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--dim); font-size: 0.96rem; }
.card .stat { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; }
.card .stat.core { color: var(--core); }
.card .stat.surface { color: var(--surface); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; }
.offer-card .card-top { align-items: flex-start; gap: 1rem; }
.offer-card .card-top h3 { margin-bottom: 0; }
.offer-card .price {
  color: var(--ink); flex: none; font-family: var(--display); line-height: 1; text-align: right;
}
.price-amount { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; }
.price-cadence {
  color: var(--dim); display: block; font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.04em; margin-top: 0.35rem; text-transform: uppercase;
}
.offer-group-title { color: var(--dim); font-size: 0.95rem; margin-top: 2.2rem; }
.offer-group-title + .grid { margin-top: 0.9rem; }
.secondary-offer { background: color-mix(in srgb, #fff 65%, var(--paper)); }

/* case studies */
.case { border-top: 1px solid var(--hairline); padding: 2.2rem 0; display: grid; grid-template-columns: 14rem 1fr; gap: 1.6rem; }
.case:first-of-type { border-top: none; }
.case aside { color: var(--dim); font-size: 0.88rem; }
.case aside .side { display: inline-block; margin-bottom: 0.5rem; }
.case h3 { font-size: 1.3rem; }
.case p { margin-top: 0.55rem; max-width: 46rem; }
.case ul { margin: 0.7rem 0 0 1.1rem; max-width: 46rem; }
.case li { margin-bottom: 0.35rem; }
.case .links { margin-top: 0.8rem; font-size: 0.92rem; font-family: var(--display); }
@media (max-width: 54rem) { .case { grid-template-columns: 1fr; gap: 0.6rem; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
@media (max-width: 54rem) { .quotes { grid-template-columns: 1fr; } }
blockquote {
  border-left: 3px solid; border-image: var(--seam) 1; padding: 0.2rem 0 0.2rem 1rem;
  font-size: 1.02rem;
}
blockquote footer { margin-top: 0.6rem; color: var(--dim); font-size: 0.88rem; font-style: normal; }

/* crate index */
.crates { margin-top: 1.4rem; }
.crates h3 { margin: 1.6rem 0 0.5rem; }
.crates table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.crates td { padding: 0.45rem 0.75rem 0.45rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.crates td:first-child { font-family: var(--mono); font-size: 0.86rem; white-space: nowrap; }
.crates td:last-child { color: var(--dim); }

/* contact strip */
.contact {
  background: var(--pane); color: var(--pane-ink); border-radius: 12px;
  padding: 2.2rem; margin: 3.6rem 0;
}
.contact h2 { color: #fff; }
.contact p { color: #a7b6ba; max-width: 40rem; }
.contact .btn.primary { background: var(--paper); color: var(--ink); }
.contact .btn.primary:hover { background: #fff; color: var(--surface); }
.contact a.plain { color: #9fd3db; }

/* footer */
footer.site {
  border-top: 1px solid var(--hairline); padding: 2rem 0 3rem; color: var(--dim); font-size: 0.88rem;
}
footer.site .wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
footer.site .colophon { max-width: 30rem; }
footer.site nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* prose pages */
.prose { max-width: 46rem; }
.prose p { margin: 0.8rem 0; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { margin: 0.8rem 0 0.8rem 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
