/* Neutral starter styles. Replace the tokens with the client's brand first;
   the components below only use the tokens. Fonts: self-host woff2 files in
   /assets/fonts/ (the CSP blocks external font CDNs). */

:root {
  --ink: #16181d;
  --muted: #5b616e;
  --bg: #ffffff;
  --surface: #f5f5f2;
  --line: #e3e3de;
  --primary: #1f4fd8;
  --primary-ink: #ffffff;
  --error: #b42318;
  --ok: #067647;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.todo { color: var(--muted); font-style: italic; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 40rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

.btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  padding: .8em 1.5em; font: 600 1rem/1 var(--font);
  background: var(--primary); color: var(--primary-ink); text-decoration: none;
}
.btn:disabled { opacity: .6; cursor: progress; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.logo { font-weight: 700; color: var(--ink); text-decoration: none; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .js .nav-toggle { display: inline-block; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .8rem; font: inherit; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .75rem; padding-bottom: 1rem; }
}

/* Sections */
.hero { padding-block: clamp(3rem, 10vw, 7rem); }
.section, .page { padding-block: clamp(2rem, 6vw, 4rem); }
.prose { max-width: 42rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }

/* Contact + forms */
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__list { list-style: none; padding: 0; }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field input, .field textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field--check { grid-template-columns: auto 1fr; align-items: start; }
.field--check label { font-weight: 400; }
.field--check .field__error { grid-column: 1 / -1; }
.field__error { color: var(--error); font-size: .9rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--ok); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding-block: 2rem; font-size: .95rem; }
.site-footer__details { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.site-footer__key { color: var(--muted); margin-right: .35rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); }
.site-footer__legal span + span::before { content: " · "; }
.site-footer__links { list-style: none; padding: 0; margin: 0; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--quiet { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
