/* ======================================================================= */
/* harleypig.llc — site-wide stylesheet ("the garden")                     */
/* ----------------------------------------------------------------------- */
/* One cohesive theme for the landing page and every /whatwedo/ page.      */
/* Aesthetic: "the open blueprint" — deep navy branded bands with a faint  */
/* blueprint grid, warm paper reading surfaces, a brass accent, and a      */
/* serif/technical-sans/mono type system. Fonts are self-hosted as woff2   */
/* under /fonts/ (@font-face below); the stacks degrade gracefully without */
/* them.                                                                   */
/* ======================================================================= */

/* ======================================================================= */
/* Self-hosted web fonts                                                   */
/* ----------------------------------------------------------------------- */
/* Vendored under /fonts/ so the site carries no Google Fonts CDN          */
/* dependency (privacy + "you own it"). Only the weights the type system   */
/* actually uses are included; font-display: swap keeps text visible while */
/* a face loads. All three families are SIL OFL 1.1 — see fonts/LICENSE.   */
/* ======================================================================= */

/* Fraunces — display (--font-display), weights 400/500/600/700 */
@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: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-700.woff2") format("woff2");
}

/* IBM Plex Sans — body (--font-body), weights 400/500/600 */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2");
}

/* IBM Plex Mono — mono (--font-mono), weights 500/600 */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
}

/* ======================================================================= */
/* Design tokens                                                           */
/* ======================================================================= */

:root {
  /* Type ------------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Reading surface (warm paper) ------------------------------------ */
  --bg: #f6f4ee;
  --bg-alt: #efebe1;
  --card: #ffffff;
  --card-border: #e4dfd2;
  --text: #16202c;
  --muted: #5b6673;

  /* Brass accent (interactive / brand) on the paper surface --------- */
  --accent: #8a4f0f;
  --accent-hover: #6f3f0b;
  --ring: rgba(138, 79, 15, .30);

  /* Ink (deep navy) branded bands — identical in both themes so the   */
  /* dark-blue identity is constant. */
  --ink-bg: #0c1a29;
  --ink-bg-2: #112438;
  --ink-border: #22374d;
  --ink-text: #e9edf2;
  --ink-muted: #a2b4c8;
  --ink-accent: #f2b45e;
  --ink-grid: rgba(120, 150, 190, .10);

  --shadow: 0 1px 2px rgba(20, 26, 40, .05), 0 10px 30px rgba(20, 26, 40, .07);
  --shadow-ink: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .30);

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1080px;
  --wrap-read: 900px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1622;
    --bg-alt: #0d1c2c;
    --card: #112436;
    --card-border: #21374d;
    --text: #e9edf2;
    --muted: #a2b4c8;

    --accent: #f2b45e;
    --accent-hover: #f7c67e;
    --ring: rgba(242, 180, 94, .32);

    --ink-bg: #060f18;
    --ink-bg-2: #0f2032;
    --ink-border: #21374d;
    --ink-text: #e9edf2;
    --ink-muted: #a2b4c8;
    --ink-accent: #f2b45e;
    --ink-grid: rgba(120, 150, 190, .08);

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 34px rgba(0, 0, 0, .4);
  }
}

/* ======================================================================= */
/* Base & reset                                                            */
/* ======================================================================= */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

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

/* Visible focus for keyboard users, on any interactive element. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link — first focusable element, hidden until focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink-bg);
  color: var(--ink-text);
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .85rem;
}
.skip-link:focus { left: 0; }

/* ======================================================================= */
/* Layout primitives — wrap + bands                                        */
/* ======================================================================= */

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.wrap-read { width: min(var(--wrap-read), 92vw); margin-inline: auto; }

/* A band is one full-width horizontal stripe of the page. */
.band { padding: clamp(3rem, 7vw, 6rem) 0; }
.band-alt { background: var(--bg-alt); }

/* Ink band — the deep-navy branded surface with a blueprint grid. */
.band-ink {
  position: relative;
  color: var(--ink-text);
  background-color: var(--ink-bg);
  background-image:
    linear-gradient(var(--ink-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center top;
}
.band-ink :is(h1, h2, h3) { color: var(--ink-text); }
.band-ink .lede,
.band-ink .section-lede,
.band-ink p { color: var(--ink-muted); }
.band-ink a { color: var(--ink-accent); }
.band-ink .eyebrow { color: var(--ink-accent); }
.band-ink .eyebrow::before { background: var(--ink-accent); }

/* ======================================================================= */
/* Typography                                                              */
/* ======================================================================= */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.12;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 1.1rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 .7rem;
}

/* Card / sub-heads use the technical sans for a crisper, engineered feel */
/* against the warm serif of the section headings. */
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -.005em;
  line-height: 1.3;
  margin: 0 0 .5rem;
}

p { max-width: 68ch; }
li { max-width: 66ch; }
strong { color: var(--text); font-weight: 600; }
.band-ink strong { color: var(--ink-text); }
.muted { color: var(--muted); }

/* Kicker / eyebrow — mono label with a short leading brass rule. */
.eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  margin-right: .7rem;
  background: var(--accent);
}

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.section-lede {
  color: var(--muted);
  max-width: 64ch;
  margin: 0 0 2.4rem;
}

/* ======================================================================= */
/* Site header (topbar) + navigation                                       */
/* ======================================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding: .85rem 0;
}

/* Wordmark — Fraunces plus a small brass square standing in for the       */
/* logo the client will have reworked later. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.brand::before {
  content: "";
  width: .85rem;
  height: .85rem;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
}
.brand:hover { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1.25rem;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: .93rem;
  text-decoration: none;
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
/* A nav item promoted to a compact call-to-action. */
.nav .nav-cta {
  padding: .4rem .9rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 600;
}
.nav .nav-cta:hover {
  background: var(--accent);
  color: var(--card);
}
@media (prefers-color-scheme: dark) {
  .nav .nav-cta:hover { color: var(--ink-bg); }
}

/* ======================================================================= */
/* Hero                                                                    */
/* ======================================================================= */

.hero {
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
/* Warm brass glow bleeding in from the top-right for depth. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 120% at 100% -10%,
      rgba(242, 180, 94, .16), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 20ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}

/* ======================================================================= */
/* Buttons                                                                 */
/* ======================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .82rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .16s ease,
    border-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost { border-color: var(--card-border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* On the deep-navy bands the accent flips to bright brass on navy text. */
.band-ink .btn-primary { background: var(--ink-accent); color: var(--ink-bg); }
.band-ink .btn-primary:hover { background: #f7c67e; color: var(--ink-bg); }
.band-ink .btn-ghost { border-color: var(--ink-border); color: var(--ink-text); }
.band-ink .btn-ghost:hover {
  border-color: var(--ink-accent);
  color: var(--ink-accent);
}

/* ======================================================================= */
/* Cards & grids                                                           */
/* ======================================================================= */

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); max-width: none; }

/* A whole card that is a link (used for the /whatwedo/ overview grid). */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, border-color .16s ease,
    box-shadow .16s ease;
}
.card-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.card-link .more {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: .85rem;
}

/* Inline links inside a plain (non-link) card. */
.card-links {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
}
.card-links a {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
}
.card-links a:hover { text-decoration: underline; }

/* Small mono tag/label above a card heading. */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* ======================================================================= */
/* Numbered steps                                                          */
/* ======================================================================= */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.8rem 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
  margin: 1.4rem 0;
  max-width: 66ch;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-bg);
  color: var(--ink-accent);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .82rem;
}
.steps > li strong { display: block; margin-bottom: .2rem; }

/* ======================================================================= */
/* Callout                                                                 */
/* ======================================================================= */

.callout {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  padding: 1rem 1.3rem;
  margin: 2.2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  max-width: 72ch;
}
.callout strong { color: var(--text); }
.band-ink .callout {
  border-left-color: var(--ink-accent);
  background: color-mix(in srgb, var(--ink-accent) 8%, transparent);
  color: var(--ink-muted);
}

/* ======================================================================= */
/* CTA & contact blocks                                                    */
/* ======================================================================= */

.centered { text-align: center; }
.centered h1, .centered h2 { max-width: 24ch; margin-inline: auto; }
.centered .section-lede, .centered .lede { margin-inline: auto; }
.centered .cta-row { justify-content: center; }

/* Boxed CTA used at the foot of /whatwedo/ pages. */
.cta {
  background: var(--ink-bg);
  color: var(--ink-text);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  margin: 3rem 0 0;
  text-align: center;
  box-shadow: var(--shadow-ink);
}
.cta h2 { margin-top: 0; color: var(--ink-text); }
.cta p { margin-inline: auto; color: var(--ink-muted); }
.cta .btn-primary { background: var(--ink-accent); color: var(--ink-bg); }
.cta .btn-primary:hover { background: #f7c67e; }

/* Direct email / phone contact — the primary working conversion path. */
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.contact-note {
  margin: 1.4rem auto 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-muted);
}

/* ======================================================================= */
/* Article content (/whatwedo/ long-form pages)                            */
/* ======================================================================= */

main { display: block; }
.article { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.article h2 { margin-top: 2.9rem; }
.article ul { padding-left: 1.3rem; }
.article li { margin: .4rem 0; }

/* Prev / next page navigation. */
.pagenav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}
.pagenav a {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
}
.pagenav a:hover { text-decoration: underline; }

/* ======================================================================= */
/* Footer                                                                  */
/* ======================================================================= */

.site-footer {
  border-top: 1px solid var(--ink-border);
  background: var(--ink-bg);
  color: var(--ink-muted);
  padding: 2.4rem 0;
  font-size: .92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink-accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }

/* ======================================================================= */
/* Motion — one orchestrated hero reveal, honouring reduced-motion         */
/* ======================================================================= */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal .7s cubic-bezier(.2, .7, .2, 1) forwards;
  }
  .reveal-1 { animation-delay: .05s; }
  .reveal-2 { animation-delay: .18s; }
  .reveal-3 { animation-delay: .31s; }
  .reveal-4 { animation-delay: .44s; }

  @keyframes reveal {
    to { opacity: 1; transform: none; }
  }
}

/* ======================================================================= */
/* Responsive tweaks                                                       */
/* ======================================================================= */

@media (max-width: 640px) {
  body { font-size: .98rem; }
  .topbar .wrap { padding: .7rem 0; }
  .nav { gap: .25rem .9rem; }
  .nav a { font-size: .88rem; }
}
