/* Rookesbury Forward — base stylesheet
   Type: Source Serif 4 (self-hosted, SIL OFL) with a system-serif fallback.
   Drop SourceSerif4-Variable.woff2 into /assets/fonts/ — see assets/fonts/README.md */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/SourceSerif4-Variable.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/SourceSerif4-Italic-Variable.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #14181c;
  --ink-soft: #4a535c;
  --paper: #fbf9f6;
  --paper-alt: #f3efe9;
  --rule: #e0d9d0;
  /* Brand orange, sampled from the wordmark. Only 2.2:1 on paper, so it is used
     for graphic elements and for text on dark backgrounds — never body text on light. */
  --accent: #f39200;
  /* Accessible sibling for links and small text on light backgrounds (4.53:1 = WCAG AA). */
  --accent-text: #a86200;
  --accent-dark: #8a5200;
  --max: 1120px;
  --narrow: 720px;
  --serif: 'Source Serif 4', Charter, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: oldstyle-nums;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, var(--narrow)); }

.skip {
  position: absolute; left: -9999px; background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1rem 0; flex-wrap: wrap;
}
.wordmark { display: block; line-height: 0; }
.wordmark img { width: auto; height: 30px; }
@media (max-width: 30rem) { .wordmark img { height: 24px; } }
.site-head nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.site-head nav a:hover { color: var(--accent-text); }
.nav-cta {
  border: 1px solid var(--ink); padding: .45rem 1rem; border-radius: 2px;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* ---------- hero / page head ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink-soft); max-width: 46ch; }

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  color: var(--accent-text); margin-bottom: .9rem; font-variant-numeric: normal;
}
.lede { font-size: 1.25rem; color: var(--ink-soft); }
.lede-block p { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: .8rem 1.6rem; border-radius: 2px; text-decoration: none;
  font-size: 1.02rem; border: 1px solid var(--ink); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--paper-alt); }
.prose p { max-width: 66ch; }

/* ---------- service cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  display: block; padding: 1.6rem; background: var(--paper-alt);
  border: 1px solid var(--rule); border-radius: 3px; text-decoration: none;
  color: var(--ink); transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: 1rem; margin-bottom: .8rem; }
.card .more { color: var(--accent-text); font-size: .95rem; }

.whys { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why h3 { color: var(--accent-text); }
.why p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- gains ---------- */
.gains { list-style: none; padding: 0; margin: 0; max-width: 62ch; }
.gains li {
  padding: .85rem 0 .85rem 1.9rem; border-bottom: 1px solid var(--rule); position: relative;
}
.gains li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent-text);
}
.gains li:last-child { border-bottom: 0; }

/* ---------- case studies ---------- */
.cases { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.case { background: var(--paper); border: 1px solid var(--rule); padding: 1.5rem; border-radius: 3px; }
.case p { font-size: 1rem; }

/* ---------- FAQs ---------- */
.faqs details { border-bottom: 1px solid var(--rule); padding: .35rem 0; }
.faqs summary {
  cursor: pointer; padding: .9rem 0; font-size: 1.1rem; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; color: var(--accent-text); font-weight: 400; }
.faqs details[open] summary::after { content: "–"; }
.faqs .ans p { color: var(--ink-soft); max-width: 68ch; font-size: 1.05rem; }

/* ---------- CTA band ---------- */
.band { background: var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.band h2 { color: var(--paper); margin-bottom: .3em; }
.band p { color: #b9c0c7; margin-bottom: 1.6em; }
.band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* On the dark band the full-strength brand orange is safe: 7.6:1 against ink text. */
.band .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- form ---------- */
.form { max-width: 34rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .98rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--rule); border-radius: 2px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.hp { position: absolute; left: -9999px; }
.small { font-size: .92rem; }
.muted { color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 3rem 0 1.5rem; background: var(--paper-alt); }
.foot-inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-mark { width: auto; height: 26px; margin-bottom: .9rem; }
.site-foot h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .45rem; }
.site-foot a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.site-foot a:hover { color: var(--accent-text); text-decoration: underline; }
.foot-base { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.2rem; }
.foot-base p { margin: 0; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
