/* site.css v1.6 — 2026-07-04 — shared styles for all fmcoder pages
   Changelog: v1.6 fix wordmark gap — flex `gap` on .brand was propagating
              between FileMaker and Coder. Moved spacing to img.mark margin.
              v1.5 align header/footer max-width to 720px to match content
              container — brand, H1, and footer text now share left edge.
              v1.4 add .related block for cross-linking pattern.
              v1.3 self-host fonts via @font-face (drop Google Fonts CDN).
              v1.2 header mark alignment via flex only, hero h1 max-width 640→680.
              v1.1 add .brand logo mark rules.
              v1.0 initial from fmcoder-homepage-preview v1.0 */

/* ─── Fonts (self-hosted, latin subset, woff2 only) ─────────── */
/* Fraunces: display face — 400 regular, 500 medium, 400 italic
   Inter: body face — 400, 500, 600
   font-display: swap = show fallback immediately, swap on load */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}

:root {
  --paper: #fbf8f2;
  --paper-soft: #f4f0e6;
  --ink: #1a1a1a;
  --ink-soft: #3a3a38;
  --muted: #6a655c;
  --rule: #d9d5cc;
  --rule-soft: #ebe6da;
  --accent: #0b5d8a;
  --accent-soft: #1a749f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }

.container { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
header.site .row {
  display: flex; align-items: baseline; justify-content: space-between;
  max-width: 720px; margin: 0 auto; padding: 0 1.5rem;
}
.brand {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}
.brand em { font-style: italic; color: var(--accent); }
.brand img.mark {
  height: 28px;
  width: auto;
  display: block;
  margin-right: 0.55rem;
}
header.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  margin-left: 1.5rem;
}
header.site nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--rule-soft);
}
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1.2rem;
  max-width: 680px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: 2px;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent); color: var(--paper); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-inline { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.phone { font-size: 14px; color: var(--muted); margin-left: 0.5rem; }

/* Sections */
section { padding: 3rem 0; border-bottom: 1px solid var(--rule-soft); }
section:last-of-type { border-bottom: none; }

h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.005em;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1rem; }

/* Trigger bullets */
.triggers { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.triggers li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  color: var(--ink-soft);
}
.triggers li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.triggers li:last-child { border-bottom: none; }

.closing-line {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* Three ways */
.ways .way {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.ways .way:last-child { border-bottom: none; }
.ways .way .label {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.ways .way h3 { margin-bottom: 0.5rem; }

/* Advice / prose section */
.advice p { font-size: 18px; line-height: 1.65; }

/* CTA block */
.cta-block {
  background: var(--paper-soft);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 1.5rem;
  margin: 2rem 0 0;
}
.cta-block h3 {
  margin-bottom: 0.75rem;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 22px;
}
.cta-block p { margin-bottom: 1.25rem; color: var(--ink-soft); }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.testimonial {
  padding: 1.25rem;
  background: var(--paper-soft);
  border-left: 2px solid var(--accent);
}
.testimonial q {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 17px;
  line-height: 1.5;
  quotes: none;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.testimonial q:before, .testimonial q:after { content: none; }
.testimonial .attr { font-size: 14px; color: var(--muted); line-height: 1.4; }
.testimonial .attr strong { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .testimonials { grid-template-columns: 1fr; } }

/* Case study cards on homepage */
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.case h3 {
  font-size: 22px;
  margin-bottom: 0.75rem;
  font-family: "Fraunces", serif;
  font-weight: 500;
  line-height: 1.25;
}
.case .eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.case p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.case .readmore {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.case .readmore:after { content: " →"; }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; } }

/* Why me */
.why-me ul { padding: 0; list-style: none; margin: 1rem 0; }
.why-me li {
  padding: 0.6rem 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.why-me li:last-child { border-bottom: none; }
.why-me .links a { margin-right: 1.25rem; font-size: 15px; }

/* FAQ */
.faq .qa { padding: 1.25rem 0; border-bottom: 1px solid var(--rule-soft); }
.faq .qa:last-child { border-bottom: none; }
.faq .q {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.faq .a { color: var(--ink-soft); line-height: 1.6; }

/* Long-form article (case studies, trigger pages) */
.article-header { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--rule-soft); }
.article-header .eyebrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
.article-header h1 em { font-style: italic; color: var(--accent); }
.article-header .lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 600px;
}
.article-body { padding: 2.5rem 0; }
.article-body h2 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-style: italic;
  font-size: 24px;
  margin: 2.25rem 0 0.75rem;
  color: var(--ink);
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 18px; line-height: 1.7; margin-bottom: 1.25rem; }
.article-body p.pullquote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
}
.article-body ol, .article-body ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ol li, .article-body ul li { margin-bottom: 0.5rem; color: var(--ink-soft); }

/* Related-reading block (cross-linking between trigger pages) */
.related {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--rule-soft);
}
.related h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.related ul { padding: 0; list-style: none; margin: 0; }
.related li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: 16px;
}
.related li:last-child { border-bottom: none; }
.related li a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.related li a:hover { color: var(--accent); text-decoration: underline; }
.related li .ctx { color: var(--muted); }

/* Article footer / close */
.article-close {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--rule-soft);
}
.article-close .close-line {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

/* Assessment page */
.assessment-list { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: step; }
.assessment-list li {
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  color: var(--ink-soft);
  counter-increment: step;
}
.assessment-list li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  width: 2.25rem;
  text-align: right;
}
.assessment-list li:last-child { border-bottom: none; }
.assessment-list li strong {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-style: normal;
  color: var(--ink);
  font-size: 18px;
  display: block;
  margin-bottom: 0.25rem;
}

.slot-block {
  background: var(--paper-soft);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 1.5rem;
  margin: 2rem 0;
}
.slot-block h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 0.75rem;
}
.slot-block p { color: var(--ink-soft); margin-bottom: 1.25rem; }

/* Footer */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 1rem;
  font-size: 14px;
  color: var(--muted);
}
footer.site .row {
  max-width: 720px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer.site a { color: var(--muted); text-decoration: none; margin-right: 1rem; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }

footer.site .adopt {
  max-width: 720px; margin: 1.5rem auto 0; padding: 1.25rem 1.5rem 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
  color: var(--muted);
}
footer.site .adopt a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); }
footer.site .adopt a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Mobile refinements */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 32px; }
  .hero .sub { font-size: 17px; }
  h2 { font-size: 24px; }
  .article-header h1 { font-size: 30px; }
  .article-body p { font-size: 17px; }
  .article-body p.pullquote { font-size: 19px; }
  header.site .row { flex-wrap: wrap; }
  header.site nav a { margin-left: 0; margin-right: 1.25rem; }
}
