/* =========================================================================
   pointarcher.com — shared stylesheet
   =========================================================================
   Typography-first design: no photography anywhere on the site. The old
   WordPress build hotlinked every image from the theme vendor's demo server
   (demo.bosathemes.com), which we deliberately did not carry over — see
   DEPLOY.md. Structure, type scale and colour do the work instead.

   Fonts are the system UI stack: zero network requests, no licensing to
   track, and they render natively on every platform. If you later want a
   distinctive typeface, self-host a .woff2 in assets/fonts/ and swap the
   --display / --body values below — nothing else needs to change.

   Everything is driven by the custom properties in :root. Change a colour
   or a size there and it updates across all four pages.
   ========================================================================= */

:root {
  /* ── Palette ─────────────────────────────────────────────────────────── */
  --ink:        #16232F;   /* headings, primary text */
  --ink-soft:   #3A4C5C;   /* body copy */
  --slate:      #5B7286;   /* muted / meta text */
  --copper:     #A9662F;   /* accent: links, rules, eyebrows */
  --copper-dk:  #8A5122;   /* accent hover */
  --bone:       #FAF8F5;   /* page background */
  --bone-deep:  #F0ECE5;   /* alternating band background */
  --line:       #DFD8CD;   /* hairlines */
  --tan-deep:   #7C6B50;   /* logo disc — see note below */
  --white:      #FFFFFF;

  /* --tan-deep is --line darkened: same hue (37deg) and saturation, lightness 84% -> 40%.
     Derived rather than picked so the logo disc belongs to the tan family already in the
     palette instead of adding a new colour. White on it is 5.2:1; on the bone page it is
     4.9:1. The SVGs in assets/ hardcode #7C6B50 because a file loaded via <img> or as a
     favicon cannot read these variables — change it here AND in pa-mark.svg, favicon.svg
     and apple-touch-icon.png together. */

  /* ── Type ────────────────────────────────────────────────────────────── */
  --display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --body:    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ── Rhythm ──────────────────────────────────────────────────────────── */
  --measure:  68ch;    /* max line length for readable prose */
  --shell:    1140px;  /* max page width */
  --gap:      clamp(3rem, 7vw, 6rem);   /* vertical section spacing */
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bone);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Layout primitives ──────────────────────────────────────────────────── */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.section { padding-block: var(--gap); }
.section--tint { background: var(--bone-deep); border-block: 1px solid var(--line); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

/* Skip link — keyboard users land here first. */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; z-index: 100; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Visible focus ring for keyboard navigation. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }

/* Small uppercase label above a heading — the "eyebrow" pattern the old site used. */
.eyebrow {
  font-family: var(--body);
  font-size: .74rem; font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: .9rem;
}
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--ink-soft); }

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--copper-dk); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--body); font-size: .82rem; font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.9rem;
  border: 1px solid var(--ink);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--solid  { background: var(--ink); color: var(--bone); }
.btn--solid:hover  { background: var(--copper); border-color: var(--copper); color: var(--white); }
.btn--ghost  { background: transparent; color: var(--ink); }
.btn--ghost:hover  { background: var(--ink); color: var(--bone); }

/* ── Masthead ───────────────────────────────────────────────────────────── */
.masthead { border-bottom: 1px solid var(--line); background: var(--bone); }
.masthead__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.4rem; flex-wrap: wrap;
}
/* Oswald, self-hosted and subset to the ten letters of "PointArcher" — about 1 KB. It is
   the site's only webfont; everything else stays on the system stack. Because the file is
   subset, it can render nothing but the wordmark: any other text set in Oswald silently
   falls back. See assets/fonts/README.md before reusing it anywhere.
   font-display:swap paints the fallback immediately rather than leaving the masthead blank
   while the font loads — on a file this small the swap is usually imperceptible. */
@font-face {
  font-family: "Oswald";
  src: url("fonts/oswald-wordmark.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -.02em; white-space: nowrap;
}
/* The mark is sized in em, so it tracks the wordmark's font-size instead of needing its
   own breakpoint. width/height are also set on the <img> itself: the attributes reserve
   the space before the SVG loads, which stops the nav from jumping on first paint. */
.wordmark img { width: 1.5em; height: 1.5em; display: block; flex: none; }
/* The name is wrapped in .wordmark__text so it stays ONE flex item. Left as a bare text
   node, "Point" and the "Archer" span become two separate anonymous flex items and the
   container's gap pushes them apart — the wordmark renders as "Point Archer".
   Oswald is condensed, so it reads visually smaller than the serif at the same size and
   needs a little positive tracking to stop the letters packing together; the size bump and
   letter-spacing here undo the -.02em set on .wordmark for the serif. */
.wordmark__text {
  display: block;
  font-family: "Oswald", var(--display);
  font-size: .95em;
  text-transform: uppercase;
  letter-spacing: .08em;
  /* letter-spacing also adds trailing space AFTER the final R, which makes the wordmark
     look off-centre against the mark. Pulling the same amount back off the right edge
     cancels it. */
  margin-right: -.08em;
}
.wordmark__text span { color: var(--copper); }
.nav ul { display: flex; gap: clamp(1.1rem, 3vw, 2.3rem); flex-wrap: wrap; align-items: center; }
.nav a {
  font-size: .85rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding-block: .3rem; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--copper); }
.nav a[aria-current="page"] { border-bottom-color: var(--copper); color: var(--copper); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero h1 { max-width: 20ch; }
.hero .lede { max-width: 54ch; margin-top: 1.5rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ── Card grids ─────────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.2rem); }
.card h3 { margin-bottom: .7rem; }
.card--plain { background: transparent; border: 0; padding: 0; border-top: 2px solid var(--copper); padding-top: 1.4rem; }

/* Numbered process steps (01. / 02. / 03.) */
.step__num {
  font-family: var(--display); font-size: 2.6rem; font-weight: 600;
  color: var(--line); line-height: 1; display: block; margin-bottom: .6rem;
}

/* ── Capability list ────────────────────────────────────────────────────── */
.caps { columns: 2; column-gap: 2.5rem; }
@media (max-width: 34rem) { .caps { columns: 1; } }
.caps li { break-inside: avoid; padding: .55rem 0 .55rem 1.5rem; position: relative; border-bottom: 1px solid var(--line); }
.caps li::before { content: "→"; position: absolute; left: 0; color: var(--copper); font-weight: 700; }

/* ── Stat band ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 2rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--display); font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); color: var(--ink); line-height: 1; font-weight: 600; }
.stat__label { font-size: .78rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--slate); margin-top: .65rem; }

/* ── Call-to-action band ────────────────────────────────────────────────── */
.cta { background: var(--ink); color: #C9D4DD; text-align: center; }
.cta h2 { color: var(--white); max-width: 24ch; margin-inline: auto; }
.cta p { max-width: 52ch; margin: 1.2rem auto 2.2rem; }
.cta .btn { background: var(--copper); border-color: var(--copper); color: var(--white); }
.cta .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .85rem 1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--copper); }
.field textarea { min-height: 11rem; resize: vertical; }
.req { color: var(--copper); }

/* Honeypot: a real field that humans never see and bots happily fill in.
   Hidden off-screen rather than display:none — some bots skip display:none. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.25rem; margin-bottom: 1.75rem; border-left: 3px solid; }
.notice--ok  { background: #EDF5EE; border-color: #3E7D4B; color: #1F4A29; }
.notice--err { background: #FBEDEA; border-color: #B03A22; color: #7A2415; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #9FB0BE; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .93rem; }
.footer h4 { color: var(--white); font-family: var(--body); font-size: .78rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: #C9D4DD; text-decoration: none; }
.footer a:hover { color: var(--copper); text-decoration: underline; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.footer__grid p { max-width: 38ch; }
.footer li + li { margin-top: .5rem; }
.footer__base { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid #2C3D4C; font-size: .84rem; color: #7C8F9D; }
