/* Blessing Builders — the shared sheet for the pages beside the homepage.
 *
 * The homepage carries its own CSS inline, because it is one document that ships
 * with everything it needs. The pages next to it — 404, privacy, terms — are three
 * small documents with the same chrome (header, footer, buttons, type), so those
 * declarations live here once rather than three times. Every value is copied from
 * index.html's own sheet rather than invented: the same tokens, the same two font
 * stacks with the same metric-matched fallbacks, the same 1px hairline ghost boxes
 * and the same 44px minimum hit target. If a value here drifts from index.html,
 * the site stops being one design, so the copy is deliberate and comments say which
 * part of the homepage each block is copied from.
 *
 * No gradients, no shadows, no light fills — the same rule the homepage's surface
 * audit enforces: depth on this site is a hairline read against near-black, plus the
 * four sanctioned glass boxes on the homepage and nothing else anywhere.
 */

/* Type: Fraunces (display), Inter (body), system mono (labels). The fallbacks are
   the homepage's own, at the same 96% / 106% adjustments, so a blocked Google Fonts
   request leaves these pages with the same shape as the homepage rather than a jolt. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 96%;
  ascent-override: 98%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 106%;
  ascent-override: 97%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --canvas: #000000;
  --ink: #F1EDE3;
  --muted: #B8B3A6;
  --brass: #C9A227;
  --hairline: #292d30;
  --hairline-strong: #3d4448;
  --field-fill: #0A0A0A;
  --radius: 6px;
  --radius-panel: 16px;
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-body: Inter, "Inter Fallback", "Helvetica Neue", Arial, ui-sans-serif, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-width: 1200px;
  /* Fluid, exactly as the homepage declares it: a hard 28px here made the gutters a
     different width from the homepage's at every viewport. */
  --side-pad: clamp(20px, 5vw, 72px);
  --section-space: clamp(84px, 10vw, 156px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(var(--page-width), 100% - var(--side-pad) * 2); margin-inline: auto; }

/* Copied from index.html: label tracking at +0.12em, the top of the band. */
.mono { font: 400 .6875rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.display { font-family: var(--font-display); font-weight: 400; font-optical-sizing: auto; letter-spacing: -.035em; line-height: 1.04; }
.eyebrow { margin: 0 0 20px; color: var(--muted); }

.skip-link {
  position: fixed; z-index: 30; top: 12px; left: 12px; padding: 12px 16px;
  transform: translateY(-180%); border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--canvas); color: var(--ink); text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header: the homepage's, with root-absolute links ---------- */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--hairline); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--font-display); font-size: 21px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--brass); }
/* The lockup: the official wireframe-B mark beside the wordmark. Same values
   as the homepage's own rules — pages-shots.cjs compares the two. */
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark-mark { display: block; width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
.nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; text-decoration: none; transition: color 180ms var(--ease-ui); }
.nav a:hover { color: var(--ink); }
.nav .nav-project { padding: 0 16px; border: 1px solid var(--hairline); color: var(--ink); transition: border-color 180ms var(--ease-ui); }
.nav .nav-project:hover { border-color: var(--hairline-strong); }

/* ---------- buttons: the homepage's .cta / .cta-quiet ---------- */
.cta, .cta-quiet {
  min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px;
  border: 1px solid var(--hairline); color: var(--ink); font-size: 16px; text-decoration: none;
  transition: border-color 180ms var(--ease-ui), color 180ms var(--ease-ui);
}
.cta:hover, .cta-quiet:hover { border-color: var(--hairline-strong); }
.cta-quiet { border-color: transparent; padding-inline: 4px; color: var(--muted); }
.cta-quiet:hover { color: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

/* ---------- footer: the homepage's, plus the two legal links ---------- */
.site-footer { padding-block: clamp(48px, 6vw, 80px) 44px; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 34px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 25px; }
.footer-links a { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: none; transition: color 180ms var(--ease-ui); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hairline); color: var(--muted); }

/* ---------- long-form pages (privacy, terms) ---------- */
.page { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.page-head { max-width: 62ch; }
.page-head h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head p { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.page-updated { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hairline); color: var(--muted); }

/* Each section is a hairline rule and a heading in the display face; the copy is
   held to a comfortable measure rather than the full page width. */
.prose { max-width: 68ch; margin-top: clamp(36px, 5vw, 56px); }
.prose-section { padding-block: 26px; border-top: 1px solid var(--hairline); }
.prose-section:first-of-type { border-top: 0; padding-top: 0; }
.prose-section h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -.02em; }
.prose-section h3 { margin: 22px 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; letter-spacing: -.01em; }
.prose-section p { margin: 0 0 14px; color: var(--muted); }
.prose-section p strong { color: var(--ink); font-weight: 500; }
.prose-section ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.prose-section li { margin-bottom: 8px; }
.prose-section li::marker { color: var(--brass); }
.prose-section a { color: var(--ink); text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.prose-section a:hover { text-decoration-color: var(--brass); }
.prose-section:last-of-type { padding-bottom: 0; }

/* ---------- service pages: a starting price and a cross-link ----------
   The price is the one number most visitors scan for, so it gets its own line in the
   accent colour rather than being buried in a sentence. It renders only when
   /api/config publishes a figure (site-config.js fills the text), which is what keeps
   a page from ever naming a price the studio did not choose. */
.price { margin: 0 0 14px; color: var(--brass); font-size: 1.0625rem; letter-spacing: .01em; }

/* ---------- location pages (web-design-malden-ma, web-design-boston) ----------
   The same chrome as every other page, but the body is local fact rather than legal
   prose. One list, two columns: the place on the left in the site's own ink, what it
   means on the right. A page arguing that it knows the streets has to show them in a
   shape that reads at a glance rather than bury them in a paragraph. */
.local-facts { margin: 0 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.local-facts li { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 4px 28px; padding: 15px 0; border-bottom: 1px solid var(--hairline); }
.local-facts li > span:first-child { color: var(--ink); }
.local-facts li > span:last-child { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 84px - 240px); display: grid; align-content: center; padding-block: clamp(48px, 8vw, 110px); }
.notfound-code { margin: 0 0 22px; color: var(--brass); }
.notfound h1 { max-width: 22ch; margin: 0 0 20px; font-size: clamp(2.4rem, 6vw, 4rem); }
.notfound-lead { max-width: 52ch; margin: 0 0 30px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.notfound-list { max-width: 52ch; margin: 42px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hairline); column-gap: 40px; }
.notfound-list p { margin: 0 0 12px; color: var(--muted); }
.notfound-list a { color: var(--ink); text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.notfound-list a:hover { text-decoration-color: var(--brass); }

/* ---------- concept study (work/lark-and-loaf) ---------- */
/* The stills are the point of the page, so they are shown as the artifacts they are:
   a hairline frame, the image, and a caption naming the viewport it was captured at.
   The two tall ones sit inside their own scroll frame rather than being scaled down to
   nothing — a full page at 8% of its size is a decoration, not evidence. */
.concept-badge {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 24px; padding: 10px 14px; border: 1px solid var(--hairline-strong); color: var(--ink);
}
.concept-badge b { color: var(--brass); font-weight: 500; }
.stills { margin-top: clamp(32px, 4.5vw, 52px); display: grid; gap: clamp(26px, 3.6vw, 42px); }
.still { margin: 0; border: 1px solid var(--hairline); }
.still > img, .still-scroll > img { display: block; width: 100%; height: auto; }
.still figcaption {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
  padding: 13px 16px; border-top: 1px solid var(--hairline); color: var(--muted);
}
.still-scroll { overflow: auto; max-height: clamp(420px, 62vh, 740px); }
.still-pair { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(22px, 4vw, 44px); align-items: start; }
.still-pair .still-scroll { max-height: clamp(400px, 58vh, 620px); }
.measure { margin: 0; padding: 0; list-style: none; }
.measure li { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding-block: 11px; border-top: 1px solid var(--hairline); color: var(--muted); }
.measure li:first-child { border-top: 0; }
.measure b { color: var(--ink); font-weight: 500; }
.prose-section p.note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 15px; }

/* The responsive rules are index.html's, at index.html's own breakpoints (700 and 390,
   not a rounded-off 720), because these pages carry the same header, the same nav and
   the same buttons: a breakpoint that differs by twenty pixels is a header that changes
   shape on one page and not on the other. The homepage's 700px block hides the nav's
   "Get a quote" (the mobile header has room for the links and not for the button), so
   these pages hide it too; its 390px block makes the buttons full-width, so these do.
   `docs/verify/pages-shots.cjs` compares the computed styles of both against the
   homepage at every width, so this cannot drift again without failing. */
@media (max-width: 900px) {
  :root { --section-space: 96px; }
  .still-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  :root { --side-pad: 22px; --section-space: 72px; }
  /* The two columns of a local fact sheet become one stack: at this width the label
     column would take half the line to say three words. */
  .local-facts li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .header-inner { min-height: auto; display: grid; grid-template-columns: 1fr; gap: 0; padding-block: 18px 12px; }
  .nav { justify-content: space-between; margin-top: 16px; }
  .nav a { font-size: 13px; }
  .nav .nav-project { display: none; }
}
@media (max-width: 390px) {
  :root { --side-pad: 18px; }
  .footer-links { gap: 12px 18px; }
  .cta-actions { align-items: stretch; gap: 10px; }
  .cta, .cta-quiet { flex: 1 1 100%; justify-content: center; }
}
/* Breadcrumb trail on local and blog pages: quiet, one line, above the page head. */
.crumbs{font-size:.8125rem;letter-spacing:.02em;color:var(--muted);margin:0 0 22px}
.crumbs a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--hairline-strong)}
.crumbs a:hover{color:var(--ink)}
.crumbs [aria-current]{color:var(--ink)}
