/* Evergreen Innovations — site styles */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-standard-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-opsz-italic.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --paper: #F4F6F3;
  --paper-2: #E9EEE7;
  --ink: #1C2620;
  --ink-2: #4A564E;
  --evergreen: #548235;
  --evergreen-ink: #3F6A26;
  --spruce: #2E4A2A;
  --logo-grey: #A6A6A6;
  --grid: #DCE3DA;
  --grid-major: #C9D3C6;
  --rule: #CDD6CA;
  --code-bg: #1E2A23;
  --code-ink: #E3EAE1;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.125rem;
  line-height: 1.6; font-optical-sizing: auto; }
img { max-width: 100%; height: auto; }
a { color: var(--evergreen-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--spruce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); font-stretch: 112%; color: var(--ink); line-height: 1.15; margin: 0 0 0.5em;
  font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); }
h3 { font-size: 1.22rem; font-stretch: 105%; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 2.6rem; height: auto; flex: none; }
.wordmark { font-family: var(--sans); font-stretch: 112%; font-size: 1.08rem; line-height: 1.05; font-weight: 600; }
.wordmark span:first-child { color: var(--evergreen-ink); }
.site-header nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-header nav a { font-family: var(--sans); font-size: 0.98rem; font-weight: 520; color: var(--ink); text-decoration: none;
  padding: 0.5rem 0.75rem; border-radius: 3px; display: block; }
.site-header nav a:hover { background: var(--paper-2); }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--evergreen); }
.nav-toggle { display: none; font: 600 0.95rem var(--sans); background: none; color: var(--ink); border: 1px solid var(--rule);
  border-radius: 3px; padding: 0.45rem 0.8rem; cursor: pointer; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding-block: 0.6rem; }
  .site-header nav { flex-basis: 100%; padding-bottom: 0.5rem; }
  .site-header nav ul { flex-wrap: wrap; }
  .js .nav-toggle { display: block; }
  .js .site-header nav { display: none; }
  .js .site-header nav.open { display: block; }
  .js .site-header nav ul { flex-direction: column; }
}

/* ---------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none;
  background: var(--spruce); color: #fff; padding: 0.75rem 1.2rem; border-radius: 3px; border: 1px solid var(--spruce); }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--spruce); }
.btn-quiet:hover { background: var(--paper-2); color: var(--spruce); border-color: var(--spruce); }

/* ---------- home hero: strip-chart recorder */
.hero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px; }
.hero-text { position: relative; z-index: 1; padding-top: clamp(3rem, 8vw, 6.5rem); }
.hero h1 { max-width: 15ch; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 36rem; color: var(--ink-2); }
.hero .lead { background: color-mix(in srgb, var(--paper) 82%, transparent); }
.trace { margin: clamp(1.5rem, 4vw, 3rem) 0 0; height: clamp(120px, 18vw, 220px); }
.trace svg { width: 100%; min-width: 900px; height: 100%; display: block; overflow: visible; }
.trace-line { fill: none; stroke: var(--evergreen); stroke-width: 2.25; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .trace-line { animation: record 3.2s cubic-bezier(.3,.1,.3,1) both 0.2s; stroke-dashoffset: 1; }
  @keyframes record { to { stroke-dashoffset: 0; } }
}

/* ---------- home sections */
.page-home main > section:not(.hero):not(.contact-band) { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-home main > section + section:not(.contact-band) { border-top: 1px solid var(--rule); }
.section-lead { color: var(--ink-2); max-width: var(--measure); }
.chain-steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; counter-reset: none; }
.chain-steps li { position: relative; padding: 2.1rem 1.5rem 0 0; }
.chain-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0.55rem; height: 2px; background: var(--evergreen); }
.chain-steps li::after { content: ""; position: absolute; left: 0; top: 0.1rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--evergreen); }
.chain-steps li:last-child::before { right: auto; width: 2rem; }
.chain-steps h3 { margin-bottom: 0.4rem; }
.chain-steps p { font-size: 1rem; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) {
  .chain-steps { grid-template-columns: 1fr; }
  .chain-steps li { padding: 0 0 1.75rem 2.25rem; }
  .chain-steps li::before { left: 0.45rem; right: auto; top: 0.6rem; bottom: 0; width: 2px; height: auto; }
  .chain-steps li:last-child::before { display: none; width: 2px; }
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); }
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { padding: 0.9rem 0; border-top: 1px solid var(--rule); font-size: 1.02rem; color: var(--ink-2); }
.work-list li:last-child { border-bottom: 1px solid var(--rule); }
.work-list strong { display: block; font-family: var(--sans); font-stretch: 105%; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.15rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.toolbox dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; margin: 2rem 0 0; }
.toolbox dt { font-family: var(--sans); font-weight: 650; font-stretch: 105%; margin-bottom: 0.3rem; }
.toolbox dd { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.aside-note { margin-top: 2.5rem; max-width: var(--measure); font-style: italic; color: var(--ink-2); }
@media (max-width: 700px) { .toolbox dl { grid-template-columns: 1fr; } }

.latest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.latest-head a { font-family: var(--sans); font-weight: 600; }

/* ---------- post lists */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.post-list a { text-decoration: none; color: var(--ink); }
.post-list a:hover h3 { color: var(--evergreen-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.post-list h3 { margin-bottom: 0.35rem; }
.post-list p { margin: 0 0 0.35rem; color: var(--ink-2); font-size: 1.02rem; max-width: var(--measure); }
.post-list .meta { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-2); }
.post-list-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .post-list-row { grid-template-columns: 1fr; } }

/* ---------- contact band */
.contact-band { background: var(--spruce); color: #EEF3EC; }
.contact-inner { padding-block: clamp(3rem, 7vw, 5rem); }
.contact-band h2 { color: #fff; max-width: 24ch; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.contact-band p { max-width: 36rem; }
.contact-band .btn { background: var(--paper); color: var(--spruce); border-color: var(--paper); }
.contact-band .btn:hover { background: #fff; color: var(--ink); }

/* ---------- interior page heads */
.page-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.dek { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem); color: var(--ink-2); max-width: 40rem; }

/* ---------- prose */
.prose { max-width: var(--measure); min-width: 0; }
.prose-wide { max-width: 44rem; }
.prose h2 { margin-top: 2.2em; }
.prose > :first-child { margin-top: 0; }
.post-grid { padding-top: 1.5rem; }
.prose h3 { margin-top: 1.8em; }
.prose section:first-of-type > h2:first-child { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--evergreen); }
.prose img { display: block; margin: 1.5rem 0; border-radius: 2px; }
.prose p > img:only-child { margin-inline: auto; }
.prose figure { margin: 1.75rem 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-2); margin-top: 0.5rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--evergreen); color: var(--ink-2); }
.prose code { font-variant-ligatures: none; font-feature-settings: "calt" 0; font-family: var(--mono); font-size: 0.84em; background: var(--paper-2); padding: 0.1em 0.3em; border-radius: 2px;
  overflow-wrap: anywhere; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.math.display { display: block; text-align: center; margin: 1.25rem 0; font-size: 1.08em; overflow-x: auto; }
.float-right { float: right; width: min(42%, 15rem); margin: 0.3rem 0 1rem 1.75rem !important; }
@media (max-width: 600px) { .float-right { float: none; width: 60%; margin: 1rem auto !important; } }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-family: var(--sans); }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); }
table.spec th { white-space: nowrap; font-weight: 650; padding-left: 0; }

/* ---------- code */
.code { position: relative; margin: 1.5rem 0; }
.code pre { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 1.1rem 1.2rem; border-radius: 3px;
  overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; tab-size: 4;
  font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.code pre code { background: none; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.code-lang { position: absolute; right: 0.6rem; top: 0.45rem; font-family: var(--sans); font-size: 0.72rem; color: #9DB09A; }
.code-lang + pre { padding-top: 1.6rem; }
@media (min-width: 1100px) { .page-post .code { margin-right: -6rem; } }
.code .c, .code .c1, .code .cm, .code .ch, .code .cs, .code .cp, .code .cpf { color: #8FA38C; font-style: italic; }
.code .k, .code .kd, .code .kn, .code .kr, .code .kt, .code .kc, .code .kp, .code .ow { color: #9ED37A; }
.code .s, .code .s1, .code .s2, .code .sb, .code .sc, .code .sd, .code .se, .code .sh, .code .si, .code .sx, .code .sr, .code .ss, .code .sa, .code .dl { color: #E6C98A; }
.code .m, .code .mi, .code .mf, .code .mh, .code .mo, .code .il, .code .mb { color: #8FCFE0; }
.code .nf, .code .fm { color: #C7E3A8; }
.code .nb, .code .bp, .code .nc, .code .nn { color: #B5D9EE; }
.code .nt, .code .na { color: #9ED37A; }
.code .err { color: inherit; background: none; }
.code .gp { color: #8FA38C; }

/* ---------- blog post */
.post-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 1.5rem; }
.post-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); max-width: 22ch; }
.crumb { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.crumb a { color: var(--ink-2); }
.byline { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); margin-top: 1.25rem; padding-top: 1rem;
  border-top: 2px solid var(--evergreen); display: inline-block; }
.post-grid { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3.5rem; padding-bottom: 2rem; }
.post-aside { order: 0; }
.toc { position: sticky; top: 1.5rem; font-family: var(--sans); font-size: 0.9rem; }
.toc h2 { font-size: 0.95rem; font-stretch: 100%; margin: 0.4rem 0 0.6rem; color: var(--ink-2); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.8rem; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--evergreen-ink); box-shadow: inset 2px 0 0 var(--evergreen); }
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-aside:empty { display: none; }
  .toc { position: static; margin-bottom: 1rem; }
}
.post-foot { padding-bottom: 4rem; }
.post-foot .prose { margin-left: calc(13rem + 3.5rem); border-top: 1px solid var(--rule); padding-top: 1.5rem; }
@media (max-width: 1000px) { .post-foot .prose { margin-left: 0; } }
.post-foot h2 { font-size: 1.2rem; margin-top: 0.5rem; }
.more { padding-left: 1.2em; }
.talk { font-family: var(--sans); font-weight: 600; margin-top: 1.5rem; }
.video { aspect-ratio: 16 / 9; margin: 1.5rem 0; background: var(--paper-2); }
.video iframe { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem 1.25rem; margin: 2rem 0; }
.prose .gallery figure { margin: 0; }
.prose .gallery img { margin: 0; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 0.82rem; line-height: 1.45; }

/* ---------- blog index */
.blog-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; padding-bottom: 4rem; }
.blog-jump { font-family: var(--sans); font-size: 0.95rem; }
.blog-jump > * { }
.blog-jump h2 { font-size: 1rem; color: var(--ink-2); font-stretch: 100%; }
.blog-jump ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.blog-jump li a { display: block; padding: 0.35rem 0; color: var(--ink); text-decoration: none; }
.blog-jump li a:hover { color: var(--evergreen-ink); text-decoration: underline; }
@media (min-width: 900px) { .blog-jump { position: sticky; top: 1.5rem; align-self: start; } }
.blog-cat { margin-bottom: 3rem; scroll-margin-top: 1.5rem; }
.blog-cat > h2 { padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.blog-cat .post-list li:first-child { border-top: 0; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- services */
.with-index { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3.5rem; padding-bottom: 4rem; }
.page-index { font-family: var(--sans); font-size: 0.95rem; }
.page-index h2 { font-size: 1rem; color: var(--ink-2); font-stretch: 100%; }
.page-index ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.page-index a { display: block; padding: 0.35rem 0 0.35rem 0.8rem; color: var(--ink); text-decoration: none; }
.page-index a:hover { box-shadow: inset 2px 0 0 var(--evergreen); color: var(--evergreen-ink); }
@media (min-width: 900px) { .page-index { position: sticky; top: 1.5rem; align-self: start; } }
@media (max-width: 900px) { .with-index { grid-template-columns: 1fr; gap: 0.5rem; } }
.page-services section { scroll-margin-top: 1.5rem; }
.page-services section > h2 { padding-top: 1.2em; border-top: 2px solid var(--ink); }
.page-services h3 { scroll-margin-top: 1.5rem; }
.page-services .prose > p:first-child { font-size: 1.1rem; }

/* ---------- projects */
.project-list { list-style: none; padding: 0; margin: 0 0 4rem; }
.project { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2.5rem; padding: 2rem 0; border-top: 1px solid var(--rule);
  align-items: start; }
.project h2 { font-size: 1.35rem; }
.project p { max-width: var(--measure); color: var(--ink-2); margin: 0; }
.project .partner { font-family: var(--sans); font-size: 0.92rem; font-weight: 550; color: var(--ink-2); padding-top: 0.35rem; margin: 0; }
.logo { max-height: 4.5rem; max-width: 10rem; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: 0.85;
  mix-blend-mode: multiply; }
@media (max-width: 700px) { .project { grid-template-columns: 1fr; gap: 0.4rem; } .project .partner { padding-top: 0; } }

/* ---------- team */
.people { list-style: none; padding: 0; margin: 0 0 4rem; }
.person { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.person h2 { font-size: 1.5rem; }
.person p { max-width: var(--measure); margin: 0; }
.portrait { width: 11rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; gap: 1rem; } .portrait { width: 7rem; } }

/* ---------- publications */
.pubs { padding-left: 1.4em; font-size: 1rem; }
.pubs li { margin-bottom: 0.9em; padding-left: 0.3em; }
.pubs li::marker { font-family: var(--sans); font-size: 0.85em; color: var(--ink-2); }

/* ---------- contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 5rem; padding-top: 1rem; }
.contact-grid > div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.contact-grid h2 { font-size: 1.05rem; font-stretch: 105%; }
address { font-style: normal; }
.big-link { font-family: var(--sans); font-stretch: 108%; font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  overflow-wrap: anywhere; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); font-size: 0.98rem; }
.contact-band + .site-footer, main:has(> .contact-band:last-child) + .site-footer { border-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-brand .mark { width: 2.4rem; margin-top: 0.2rem; }
.site-footer h2 { font-size: 0.98rem; font-stretch: 100%; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--ink); }
.footer-base { border-top: 1px solid var(--rule); padding-block: 1rem 1.5rem; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

@media print {
  .site-header nav, .nav-toggle, .contact-band, .site-footer, .toc, .blog-jump, .page-index { display: none; }
  body { background: #fff; font-size: 11pt; }
  .post-grid, .with-index, .blog-layout { display: block; }
  .code pre { background: #f4f4f4; color: #000; white-space: pre-wrap; }
}

/* ---------- photo banners */
.banner { position: relative; padding: 0; color: #fff; background: var(--spruce) var(--bg) center / cover no-repeat;
  margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.banner::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18, 28, 22, 0.82) 0%, rgba(18, 28, 22, 0.55) 55%, rgba(18, 28, 22, 0.25) 100%); }
.banner > .wrap { position: relative; padding-top: clamp(4.5rem, 11vw, 9rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.banner h1, .banner .dek, .banner .byline, .banner .crumb, .banner a, .banner .crumb a { color: #fff; }
.banner .dek { color: rgba(255, 255, 255, 0.9); }
.banner a:hover { color: #fff; }
.banner .byline { border-top-color: #9ED37A; }
.post-head.banner, .page-head.banner { padding: 0; }
.page-post .post-grid { padding-top: 0; }

.hero.has-photo { background-image: linear-gradient(100deg, rgba(18, 28, 22, 0.85) 0%, rgba(18, 28, 22, 0.6) 50%, rgba(18, 28, 22, 0.2) 100%), var(--bg);
  background-size: cover; background-position: center; border-bottom: 0; }
.hero.has-photo h1 { color: #fff; }
.hero.has-photo .lead { color: rgba(255, 255, 255, 0.92); background: none; }
.hero.has-photo .btn { background: var(--paper); color: var(--spruce); border-color: var(--paper); }
.hero.has-photo .btn:hover { background: #fff; color: var(--ink); }
.hero.has-photo .btn-quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.8); }
.hero.has-photo .btn-quiet:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hero.has-photo .trace-line { stroke: #9ED37A; stroke-opacity: 0.9; }

.contact-band.photo { background: linear-gradient(rgba(36, 60, 33, 0.86), rgba(36, 60, 33, 0.86)), var(--bg) center / cover no-repeat; }
.photo-strip { height: clamp(180px, 28vw, 360px); background: var(--paper-2) var(--bg) center / cover no-repeat; }

.page-projects .banner { background-position: center 22%; }

/* ---------- real logo */
.brand .logo-full { height: 2.75rem; width: auto; display: block; }
.footer-brand img.mark { width: auto; height: 2.4rem; }
@media (max-width: 420px) { .brand .logo-full { height: 2.3rem; } }
