/* ============================================================
   CONNOLLY INDUSTRIES · shared stylesheet for the static pages
   (audit, thank-you, privacy, terms, 404). Mirrors the tokens and
   type scale in src/styles.css so these pages match the React home
   page. Fonts are the self-hosted files in /fonts.
   ============================================================ */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('./fonts/fraunces-normal-400-500.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('./fonts/fraunces-italic-400-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('./fonts/inter-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('./fonts/inter-normal-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('./fonts/jetbrains-mono-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('./fonts/jetbrains-mono-normal-500.woff2') format('woff2'); }

:root {
  --ink: #1e2a4a;
  --deep-ink: #141b33;
  --cream: #eee4cf;
  --cream-surface: #f4ecd9;
  --saffron: #e8a83c;
  --slate: #5b6480;
  --slate-light: #8392b0;
  --hairline-dark: rgba(131, 146, 176, 0.22);
  --hairline-light: rgba(91, 100, 128, 0.22);
  --grid-dark: rgba(131, 146, 176, 0.11);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 24px;
  --pill: 999px;
  --max: 1120px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 3.5rem;

  --t0: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --t1: clamp(1.1rem, 1rem + 0.5vw, 1.33rem);
  --t2: clamp(1.3rem, 1.1rem + 0.9vw, 1.66rem);
  --t3: clamp(1.55rem, 1.2rem + 1.5vw, 2.07rem);
  --t4: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem);
  --t5: clamp(2.2rem, 1.5rem + 3vw, 3.24rem);
  --t6: clamp(2.6rem, 1.6rem + 4.2vw, 4.05rem);
  --small: 0.85rem;
  --label: 0.74rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  font-size: var(--t0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img, iframe { max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}
::selection { background: var(--saffron); color: var(--deep-ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 44rem; margin-inline: auto; }

/* ---- type ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: var(--t6);
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
h1 span, .t-accent { display: block; font-style: italic; color: var(--saffron); }
h2 { font-size: var(--t3); }
.deck { margin-top: 1.1rem; font-size: var(--t1); line-height: 1.5; opacity: 0.82; max-width: 40ch; }
.label {
  font-family: var(--font-mono);
  font-size: var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.wordmark { font-family: var(--font-display); font-weight: 500; font-variation-settings: 'opsz' 36; font-size: 1.25rem; white-space: nowrap; }
.wordmark em { font-style: italic; color: var(--saffron); }

/* ---- buttons and links ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--saffron);
  color: var(--deep-ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), transform 300ms var(--ease-out);
}
.btn:hover { background: #f0b656; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; text-align: center; padding: 1rem; font-size: 1.05rem; }
.link { color: var(--saffron); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.chev { display: inline-block; font-size: 1.15em; line-height: 1; }

/* ---- nav ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(20, 27, 51, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--hairline-dark);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { text-decoration: none; }
.nav-back { font-size: var(--small); color: var(--cream); opacity: 0.8; text-decoration: none; }
.nav-back:hover { opacity: 1; }

/* ---- page header on the blueprint grid ---- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3.5rem, 9vw, 6.5rem)) 0 clamp(3rem, 7vw, 5rem);
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.crumbs { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; font-size: var(--small); color: var(--slate-light); }
.crumbs a { color: var(--slate-light); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }

/* ---- cards ---- */
.card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.card + .card { margin-top: 1rem; }
.card h2 { color: var(--ink); }
.card .sub { margin-top: 0.5rem; color: var(--slate); }
.card-dark { background: var(--deep-ink); color: var(--cream); }
.card-dark h2 { color: var(--cream); }
.card-dark .sub { color: var(--cream); opacity: 0.78; }
.card-dark .label { color: var(--slate-light); }

/* ---- list of short points ---- */
.points { list-style: none; display: grid; gap: 0.6rem; }
.points li { position: relative; padding-left: 1.2rem; }
.points li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 2px; background: var(--saffron); }

/* ---- forms ---- */
.field { margin-top: 1.25rem; }
.field label { display: block; margin-bottom: 0.45rem; color: var(--slate); }
.field .opt { color: var(--slate-light); }
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hairline-light);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field input::placeholder { color: var(--slate-light); }
.field input:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232, 168, 60, 0.25); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.5rem; }
.status { margin-top: 0.75rem; min-height: 1.4em; color: var(--ink); font-size: var(--small); }
.fine { margin-top: 0.9rem; color: var(--slate); font-size: var(--small); }

/* ---- footer ---- */
.footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: 2.5rem 3rem;
  background: var(--deep-ink);
  border-radius: 2.5rem 2.5rem 0 0;
}
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 2.5rem; }
.footer-logo { text-decoration: none; }
.footer-tagline { margin-top: 0.15rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; }
.footer-links a { font-size: 0.88rem; color: var(--cream); opacity: 0.75; text-decoration: none; }
.footer-links a:hover { opacity: 1; }
.footer-note { font-size: 0.82rem; color: var(--slate-light); }

/* ---- entrance ---- */
.rise { opacity: 0; transform: translateY(18px); animation: rise 900ms var(--ease-out) forwards; }
.rise:nth-child(2) { animation-delay: 120ms; }
.rise:nth-child(3) { animation-delay: 240ms; }
.rise:nth-child(4) { animation-delay: 360ms; }
.rise:nth-child(5) { animation-delay: 480ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .btn { transition: none; }
}
