/* Bricolage Grotesque, self-hosted (SIL Open Font License). No third-party requests. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
}

/* Palette: change these and the whole site follows. */
:root {
  --bg: #f5f6f2;
  --surface: #e8ede6;
  --ink: #1c2622;
  --muted: #55615b;
  --line: #d6ddd3;
  --accent: #2f4a3c;
  --accent-hover: #1f3328;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
  --head: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font); font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; height: var(--head); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; text-decoration: none; }
.logo svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; min-height: 44px; padding: 0 .85rem; text-decoration: none; font-size: .95rem; color: var(--muted); border-radius: 999px; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a svg { width: 11px; height: 11px; }
.nav-extra { display: none !important; }

/* type */
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variation-settings: "opsz" 48; }
h1 { font-size: clamp(2.75rem, 7vw, 5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); text-wrap: balance; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 36ch; text-wrap: pretty; }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 1px solid var(--accent); font: inherit; font-weight: 500; text-decoration: none; transition: background-color .15s, color .15s; }
.btn svg { width: 12px; height: 12px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--quiet { background: transparent; color: var(--accent); }
.btn--quiet:hover { background: var(--accent); color: #fff; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.link:hover { color: var(--accent); }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* hero */
.hero { padding: clamp(4rem, 12vw, 9rem) 0 0; }
.hero .wrap { display: grid; gap: 1.5rem; justify-items: start; }
.hero .btn-row { margin-top: .75rem; }
.ridge { display: block; width: 100%; height: clamp(90px, 11vw, 150px); margin-top: clamp(3rem, 8vw, 5rem); color: var(--surface); }
.ridge path { fill: currentColor; }

/* sections */
.block { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }

.company-card { background: var(--surface); }
.company-card .stack { display: grid; gap: 1.5rem; justify-items: start; }
.company-card p { color: var(--muted); max-width: 44ch; }

dl.facts { display: grid; margin: 0; }
dl.facts div { display: grid; gap: .1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
dl.facts div:last-child { border-bottom: 1px solid var(--line); }
dl.facts dt { font-size: .88rem; color: var(--muted); }
dl.facts dd { margin: 0; }
@media (min-width: 640px) { dl.facts div { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; } }

.contact { border-top: 1px solid var(--line); }
.contact .stack { display: grid; gap: 1.25rem; justify-items: start; }
.contact .mail { font-size: clamp(1.25rem, 3.4vw, 1.75rem); font-weight: 500; overflow-wrap: anywhere; text-decoration-color: var(--line); text-decoration-thickness: 1px; }
.contact .mail:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* text pages */
.page { padding: clamp(3rem, 8vw, 5rem) 0 clamp(3.5rem, 9vw, 6rem); }
.prose { max-width: 64ch; display: grid; gap: 1rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); margin-bottom: .5rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.75rem; }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.prose .updated, .prose .muted { color: var(--muted); }
.prose .updated { font-size: .92rem; }
.prose a { text-decoration-color: var(--accent); }

/* footer */
.site-footer { background: var(--surface); color: var(--muted); padding: 3rem 0 3.5rem; font-size: .94rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid p { max-width: 46ch; }
.footer-grid strong { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--accent); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* menu: desktop bar, phone sheet */
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 999px; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.is-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.is-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
html:not(.js) .nav a:not(.pill) { display: none; }

@media (max-width: 719px) {
  .js .menu-toggle { display: inline-block; }
  .js .nav { display: none; }
  .js .site-header.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .js .site-header.is-open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: fixed; inset: var(--head) 0 0 0; z-index: 9; background: var(--bg); padding: .5rem 1.25rem 2rem; overflow-y: auto; }
  .js .nav a { justify-content: space-between; min-height: 64px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
  .js .nav a:hover { background: none; color: var(--accent); }
  .js .nav a svg { width: 16px; height: 16px; }
  .js .nav .nav-extra { display: flex !important; }
  .menu-open { overflow: hidden; }
}
@media (min-width: 720px) { .nav-extra { display: none !important; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
