:root{--accent:#000000}
/* --accent is injected at build time from site.config.json (brand brown #271b09) */
/* Brand fonts. To swap one, change the three --head / --body / --label lines below. */
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-alternates-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-alternates-700.woff2") format("woff2"); }
@font-face { font-family: "Kollektif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/kollektif-400.woff2") format("woff2"); }
@font-face { font-family: "Kollektif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/kollektif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Kollektif"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/kollektif-700.woff2") format("woff2"); }
@font-face { font-family: "Norwester"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/norwester-400.woff2") format("woff2"); }
:root {
  --paper: #ffffff;
  --surface: #faf6f0;
  --ink: #271b09;
  --muted: #6b5d4a;
  --rule: #e8e0d3;
  --tan: #8a6a35;
  --panel: #271b09;
  --panel-ink: #fbf7f0;
  --panel-muted: #cdbfa8;
  --head: "Montserrat Alternates", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Kollektif", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --label: "Norwester", "Arial Narrow", system-ui, sans-serif;
  --measure: 42rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.75 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; font-family: var(--body); z-index: 10; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.eyebrow { font: 400 1rem/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--tan); margin: 0 0 .9rem; }

/* Buttons */
.btn, .lead-form button {
  display: inline-block; font: 700 1rem/1.2 var(--body); background: var(--accent); color: #fff; text-decoration: none;
  border: 2px solid var(--accent); border-radius: 999px; padding: .85rem 1.5rem; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover, .lead-form button:hover { background: #4a3716; border-color: #4a3716; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); font-family: var(--body); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 3.2rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { background: var(--accent); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; }
.site-nav .nav-cta:hover { background: #4a3716; color: #fff; }
@media (max-width: 40rem) {
  .brand img { height: 2.5rem; }
  .site-nav a:not(.nav-cta) { display: none; }
}
.site-foot { background: var(--surface); border-top: 1px solid var(--rule); font: .95rem/1.6 var(--body); color: var(--muted); margin-top: 0; }
.site-foot .wrap { display: grid; gap: 1.5rem 3rem; padding-block: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .site-foot .wrap { grid-template-columns: 1fr auto; } .site-foot .copy { grid-column: 1 / -1; } }
.foot-brand img { height: 3rem; width: auto; margin-bottom: .6rem; }
.foot-brand p { margin: 0; max-width: 28rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-self: start; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.site-foot .copy { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: .88rem; }

/* Home hero */
.hero { background: linear-gradient(180deg, var(--surface), var(--paper)); border-bottom: 1px solid var(--rule); }
.hero .wrap { padding-block: clamp(3rem, 8vw, 6rem); }
.hero .wrap > * { max-width: 46rem; }
.hero h1 { font: 700 clamp(2.1rem, 5.4vw, 3.6rem)/1.04 var(--head); letter-spacing: -0.015em; margin: 0 0 1.1rem; text-wrap: balance; }
.hero-text { font: 1.25rem/1.6 var(--body); color: var(--muted); margin: 0 0 1.8rem; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }
.intro { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; max-width: 52rem; }
.intro h1 { font: 700 clamp(1.8rem, 4.4vw, 2.7rem)/1.12 var(--head); letter-spacing: -0.012em; margin: 0 0 .8rem; }
.intro p { font: 1.15rem/1.6 var(--body); color: var(--muted); margin: 0; max-width: 40rem; }

/* News-style cards */
.listing { padding-top: 3rem; }
.listing:last-child { padding-bottom: 4rem; }
.section-title { font: 700 1.4rem/1.2 var(--head); letter-spacing: -0.01em; margin: 0 0 1.5rem; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem 2rem; }
.featured { margin-bottom: 3rem; }
.card { display: flex; flex-direction: column; gap: 1rem; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #271b09, #5a4023); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.03); }
.ph { display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center; color: #e9dcc4; font: 400 clamp(1.1rem, 2.4vw, 1.5rem)/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; }
.card-body { display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; font: .85rem/1.5 var(--body); color: var(--muted); }
.kicker { color: var(--tan); font-family: var(--label); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; }
.card h2, .card h3 { font: 700 1.2rem/1.3 var(--head); letter-spacing: -0.012em; margin: 0; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card p { margin: 0; color: var(--muted); font: 1rem/1.6 var(--body); }
.more { font: 700 .95rem var(--body); text-decoration: none; margin-top: auto; padding-top: .3rem; }
.more:hover { text-decoration: underline; }
@media (min-width: 52rem) {
  .featured .card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
  .featured .card h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.2; }
  .featured .card p { font-size: 1.1rem; }
  .featured .card-media { aspect-ratio: 16 / 10; }
}
.tags { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font: .9rem/1.5 var(--body); }
.tags a { color: var(--muted); }
.tags a:hover { color: var(--accent); }
.empty { padding: 3rem 0; font-family: var(--body); color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2.5rem; font: 1rem var(--body); }

/* Post */
.crumbs { font: .92rem var(--body); color: var(--muted); padding: 1.5rem 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 .45rem; }
.post-head { padding: 1.5rem 0 2rem; max-width: 52rem; }
.post-head h1 { font: 700 clamp(1.8rem, 4.4vw, 2.8rem)/1.15 var(--head); letter-spacing: -0.015em; margin: 0 0 1rem; text-wrap: balance; }
.post-head .lede { font: 1.2rem/1.55 var(--body); color: var(--muted); margin: 0 0 1.1rem; max-width: 40rem; }
.byline { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font: .95rem var(--body); color: var(--muted); }
.post-cover { margin: 0 0 2.5rem; }
.post-cover img { width: 100%; max-height: 32rem; object-fit: cover; border-radius: 10px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 62rem) {
  .post-grid { grid-template-columns: 14rem minmax(0, var(--measure)); gap: 3.5rem; }
}
.toc { font: .95rem/1.45 var(--body); }
.toc-inner { position: sticky; top: 6rem; }
.toc h2 { font: 700 .95rem var(--body); margin: 0 0 .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc li a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc li a:hover { color: var(--ink); border-left-color: var(--accent); }
.toc li.l3 a { padding-left: 1.8rem; font-size: .9rem; }
@media (max-width: 61.99rem) { .toc { border-block: 1px solid var(--rule); padding: .9rem 0; } .toc-inner { position: static; } }

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 700 1.5rem/1.25 var(--head); letter-spacing: -0.015em; margin: 2.6rem 0 .8rem; scroll-margin-top: 6rem; }
.prose h3 { font: 700 1.2rem/1.3 var(--head); margin: 2rem 0 .6rem; scroll-margin-top: 6rem; }
.prose h4 { font: 700 1.1rem/1.4 var(--body); margin: 1.6rem 0 .4rem; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table, .prose figure, .prose blockquote { margin: 0 0 1.25rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: 8px; margin: 1.5rem 0; }
.prose figure { margin: 1.75rem 0; }
.prose figure img { margin: 0 0 .5rem; }
.prose figcaption { font: .9rem var(--body); color: var(--muted); }
.prose blockquote { border-left: 3px solid var(--tan); padding: .1rem 0 .1rem 1.2rem; color: var(--muted); font-style: italic; }
.prose code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--rule); padding: .1em .35em; border-radius: 3px; }
.prose pre { background: var(--surface); border: 1px solid var(--rule); padding: 1rem 1.2rem; overflow-x: auto; border-radius: 6px; line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; font-size: .9rem; }
.prose table { border-collapse: collapse; width: 100%; font: .95rem/1.5 var(--body); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .55rem .8rem .55rem 0; text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* The two forms: newsletter (light) and free consultation (brand brown) */
.cta { background: var(--surface); border-block: 1px solid var(--rule); margin-top: 4.5rem; font-family: var(--body); }
.cta-grid { display: grid; gap: 1.75rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
@media (min-width: 56rem) { .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.25rem; } }
.cta-card { border-radius: 14px; padding: clamp(1.5rem, 3.5vw, 2.5rem); scroll-margin-top: 6rem; }
.cta-card h2 { font: 700 clamp(1.4rem, 2.8vw, 1.8rem)/1.2 var(--head); letter-spacing: -0.015em; margin: 0 0 .8rem; text-wrap: balance; }
.cta-text { margin: 0 0 1.5rem; font-size: 1.02rem; line-height: 1.6; }
.cta-light { background: #fff; border: 1px solid var(--rule); color: var(--ink); }
.cta-light .cta-text { color: var(--muted); }
.cta-dark { background: var(--panel); color: var(--panel-ink); }
.cta-dark .eyebrow { color: #d9bf8c; }
.cta-dark .cta-text { color: var(--panel-muted); }
.lead-form { display: grid; gap: 1rem; }
.lead-form label { display: grid; gap: .35rem; font-size: .95rem; font-weight: 600; }
.lead-form .opt { font-weight: 400; opacity: .75; }
.lead-form input:not([type=checkbox]), .lead-form textarea {
  font: 1.02rem/1.4 var(--body); width: 100%; border-radius: 8px; padding: .8rem .9rem;
  color: var(--ink); background: #fff; border: 1px solid #cfc5b3;
}
.lead-form textarea { min-height: 6.5rem; resize: vertical; }
.lead-form input:focus-visible, .lead-form textarea:focus-visible { outline: 3px solid var(--tan); outline-offset: 1px; }
.lead-form .row { display: flex; flex-wrap: wrap; gap: .75rem; }
.lead-form .row label { flex: 1 1 14rem; }
.lead-form .check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .88rem; line-height: 1.45; }
.cta-light .check { color: var(--muted); }
.cta-dark .check { color: var(--panel-muted); }
.lead-form .check input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--tan); }
.cta-dark .lead-form button { background: var(--panel-ink); color: var(--panel); border-color: var(--panel-ink); justify-self: start; }
.cta-dark .lead-form button:hover { background: #fff; border-color: #fff; }
.cta-dark .lead-form input:focus-visible, .cta-dark .lead-form textarea:focus-visible { outline-color: #fff; }
.lead-form button:disabled { opacity: .6; cursor: progress; }
.lead-status { margin: 0; min-height: 1.4em; font-size: .93rem; }
.cta-light .lead-status { color: #9a3b12; }
.cta-dark .lead-status { color: #ffd3a8; }
.lead-done { font-size: 1.1rem; line-height: 1.5; padding: .5rem 0; margin: 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.related { padding-block: 3.5rem 4rem; }
.page-plain { padding: 3rem 0; max-width: var(--measure); }
.page-plain h1 { font: 700 2.4rem/1.1 var(--head); letter-spacing: -0.012em; }
@media (max-width: 40rem) {
  body { font-size: 1.06rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card-media img { transition: none; } }
@media print { .site-head, .cta, .toc, .site-foot, .related { display: none; } body { background: #fff; color: #000; } }

.hero-link { margin: 1rem 0 0; }
.hero-link a { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hero-link a:hover { text-decoration-thickness: 2px; }
