/* Published text, not source: see docs/STATUS.md for why this file carries
 * no rationale. No inline styles anywhere — style-src is 'self'. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --panel: #f7f9fa;
  --ink: #0f1419;
  --muted: #596673;
  --rule: #e2e7ec;
  --rule-strong: #c2ccd5;
  --field: #7f8b97;
  --accent: #0a5a7a;
  --accent-ink: #ffffff;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 68rem;
  --gutter: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1115;
    --panel: #161c22;
    --ink: #e8edf2;
    --muted: #9aa8b5;
    --rule: #222b33;
    --rule-strong: #38444f;
    --field: #64727e;
    --accent: #6cc9e8;
    --accent-ink: #06121a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- header ------------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  display: inline-block;
  border: 1.5px solid var(--ink);
  padding: 0.5rem 0.9rem 0.45rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.logo:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* --- type -------------------------------------------------------------- */

main {
  padding-bottom: 5rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 640;
  margin: 0 0 1.25rem;
  max-width: 30ch;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 620;
  margin: 0 0 1.75rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.005em;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

/* --- sections ---------------------------------------------------------- */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.section {
  padding: 3.5rem 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
}

.prose {
  max-width: 62ch;
  color: var(--muted);
}

.prose strong {
  color: var(--ink);
  font-weight: 620;
}

/* --- services ---------------------------------------------------------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  grid-template-columns: 1fr;
}

/* 1, 2 or 4 columns — never 3, which orphans the fourth card. */
@media (min-width: 38rem) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68rem) {
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.services li {
  background: var(--bg);
  padding: 1.6rem 1.5rem;
  transition: background 0.15s;
}

.services li:hover {
  background: var(--panel);
}

.services .idx {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.services p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.6;
}

/* --- call to action ---------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-top: 2.25rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 620;
  font-size: 1rem;
  transition: opacity 0.15s;
}

.cta:hover {
  opacity: 0.88;
}

.cta-alt {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --- form -------------------------------------------------------------- */

.form-wrap {
  max-width: 34rem;
}

form p {
  margin: 0 0 1.25rem;
}

label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 620;
  margin-bottom: 0.4rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--field);
  border-radius: 3px;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.15s;
}

input:hover,
textarea:hover {
  border-color: var(--muted);
}

textarea {
  resize: vertical;
  min-height: 9rem;
}

button {
  font: inherit;
  font-weight: 620;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 3px;
  padding: 0.8rem 1.75rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

button:hover {
  opacity: 0.88;
}

.hint {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 52ch;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- footer ------------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9062rem;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.site-foot p {
  margin: 0;
}

.site-foot .mark {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-foot a {
  color: var(--muted);
}

.site-foot a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
