@font-face { font-family: 'Outfit'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }

:root {
  --ground: #F2F4F1; --surface: #FFFFFF;
  --text: #14202B; --text-soft: #4B5A66;
  --primary: #1F4E79; --on-primary: #F2F4F1;
  --line: #A9C4D6; --tint: #E3ECF2;
  --logo: #1F4E79;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --font-head: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1B26; --surface: #172733;
    --text: #F2F4F1; --text-soft: #A9C4D6;
    --primary: #8DB8DA; --on-primary: #0F1B26;
    --line: #2A3D4D; --tint: #1D3345;
    --logo: #F2F4F1;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 16px/1.4 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.01em; max-width: 18ch; }
h2 { font-weight: 300; font-size: 28px; }
h3 { font-weight: 400; font-size: 18px; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); min-height: 48px; }
.j { width: 40px; height: 40px; }
.wordmark { font-family: var(--font-head); font-weight: 300; font-size: 24px; letter-spacing: 0.01em; }
.nav { display: flex; gap: 8px; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: 14px; padding: 12px 8px; min-height: 48px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--primary); }

/* The hand-drawn J */
.j path, .hero-j path { fill: none; stroke: var(--logo); stroke-linecap: round; stroke-linejoin: round; }
.j-main { stroke-width: 5; }
.j-pass { stroke-width: 2.5; }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 48px; }
.hero-j { width: 120px; height: 120px; margin: 0 0 24px -12px; display: block; }
.lead { margin-top: 24px; font-size: 18px; color: var(--text-soft); max-width: 36em; }

/* Sections */
.block { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.intro { margin-top: 12px; color: var(--text-soft); max-width: 38em; }

.grid { margin-top: 32px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card p { font-size: 14px; color: var(--text-soft); }
.card h3 a { color: var(--text); }
.chip { align-self: flex-start; background: var(--tint); color: var(--text); font-size: 12px; border-radius: var(--r-sm); padding: 4px 8px; letter-spacing: 0.04em; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.steps p { margin-top: 4px; font-size: 14px; color: var(--text-soft); }
.n { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--primary); color: var(--primary); font-family: var(--font-head); display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* Contact */
.btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 24px; height: 48px; padding: 0 24px; border-radius: var(--r-md); background: var(--primary); color: var(--on-primary); text-decoration: none; font-size: 16px; }
.btn:hover { opacity: 0.92; }
.small { margin-top: 12px; font-size: 14px; color: var(--text-soft); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-soft); }
.foot .small { margin: 0; font-size: 12px; }
.credit { display: inline-flex; align-items: center; gap: 8px; }
.j-small { width: 16px; height: 16px; }
.j-small path { fill: none; stroke: var(--primary); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .nav { display: none; }
  .hero { padding-top: 24px; }
  .btn { width: 100%; }
}
