/* HHI Computer Guys — "Lowcountry Modern".
   Limewash walls, black steel frames, marsh green for the one action. Steel bars are the only dividers. */

@font-face { font-family: "Gambetta"; src: url("/assets/fonts/gambetta-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("/assets/fonts/gambetta-var-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* primitives */
  --limewash: #f2f3f1;
  --white: #ffffff;
  --steel: #121414;
  --steel-3: #3a3f3d;
  --marsh: #1f4d45;
  --marsh-dark: #163a34;
  --marsh-tint: #dfe8e4;
  --marsh-pale: #b9dccf;
  --marsh-wash: #c3d6ce;
  --tabby: #8c8f88;
  --hairline: #d5d8d3;
  --slate: #555b58;
  --steel-0: #0b0d0d;
  --marsh-lit: #2c6a5f;
  --marsh-lit-2: #357d70;
  --brick: #a3322a;
  --brick-tint: #fbecea;
  --brick-ink: #7a1f19;
  --glass: rgb(242 243 241 / .94);
  --scrim: rgb(11 13 13 / .82);
  --scrim-mid: rgb(11 13 13 / .5);
  --text-shadow: 0 1px 2px rgb(0 0 0 / .45), 0 2px 22px rgb(0 0 0 / .55);
  --scrim-none: rgb(11 13 13 / 0);
  --on-dark-line: rgb(233 235 232 / .7);

  /* semantic */
  --bg: var(--limewash);
  --surface: var(--white);
  --ink: var(--steel);
  --text: #262a29;
  --muted: var(--slate);
  --frame: var(--steel);
  --rule: var(--hairline);
  --action: var(--marsh);
  --action-hover: var(--marsh-dark);
  --on-action: var(--white);
  --dark: var(--steel);
  --on-dark: #e9ebe8;
  --on-dark-muted: #a9aeaa;
  --error: var(--brick);

  /* type: a serif for headings (italic accents in marsh), a neutral grotesk for reading and controls */
  --f-display: "Gambetta", Georgia, "Times New Roman", serif;
  --f: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(3rem, 5.6vw, 5.75rem);
  --fs-h1: clamp(2.6rem, 4.8vw, 4.75rem);
  --fs-h2: clamp(2.05rem, 3.4vw, 3.3rem);
  --fs-h3: 1.35rem;
  --fs-body: 1.0625rem;

  /* frame */
  --bar: 2px;                              /* rules and pane gaps */
  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --sec: clamp(3.5rem, 7vw, 6.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--steel-3) var(--limewash); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.66 var(--f);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--marsh); color: var(--white); }
input, textarea { caret-color: var(--marsh); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--tabby); transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--marsh); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .4em; }
address { font-style: normal; }
strong { font-weight: 600; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .7em 1em; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sec { padding-block: var(--sec); }
.sec-white { background: var(--surface); }
.lede { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head-row h2 { margin: 0; max-width: 18ch; }
.head-row p { margin: 0; max-width: 46ch; color: var(--muted); }

/* buttons: square, steel and marsh */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 600 .98rem/1 var(--f); letter-spacing: .005em; padding: 1.1em 1.65em; border: var(--bar) solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-line { border-color: var(--frame); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--steel); color: var(--white); }
.btn-light { border-color: var(--on-dark-line); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--steel); }
.btn-sm { padding: .78em 1.15em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--marsh); text-decoration-thickness: 2px; text-underline-offset: .3em; color: var(--ink); }
.text-link:hover { color: var(--marsh); }

/* header: logo, nav and the one live signal on a steel rule */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(10px) saturate(1.1); border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: center; gap: 1.75rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 56px; height: 56px; }
.brand-name { font-weight: 650; font-size: 1.45rem; letter-spacing: -.02em; }
@media (max-width: 380px) { .brand { gap: .55rem; } .brand img { width: 48px; height: 48px; } .brand-name { font-size: 1.2rem; } .head-in { gap: 1rem; } }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; letter-spacing: -.015em; color: var(--marsh); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a { text-decoration: none; font-weight: 500; font-size: .97rem; padding: .35em 0; background: linear-gradient(var(--marsh), var(--marsh)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background-size: 100% 2px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 26px; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background-color .2s; margin: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -8px; } .bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }
.site-nav ul a, .btn { white-space: nowrap; }
@media (max-width: 1180px) { .site-nav ul { gap: 1.2rem; } }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--limewash); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.5rem; gap: 1rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .95em 0; border-bottom: 1px solid var(--rule); background: none; font-size: 1.05rem; }
}

/* the window: a photo, tagged illustrative; no frame and nothing drawn over the picture */
.window { position: relative; overflow: hidden; background: var(--steel); margin: 0; }
.window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .js .window.draw img { filter: blur(6px) saturate(.85); transform: scale(1.04); transition: filter 1.4s var(--ease), transform 1.8s var(--ease); }
  .js .window.drawn img { filter: none; transform: none; }
}

/* home hero: one full-bleed photo, the copy over it on a steel scrim */
.hero { position: relative; display: flex; align-items: flex-end; min-height: calc(100svh - 79px); background: var(--steel); overflow: hidden; }
.hero .window { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero-video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
/* the scrim is anchored to the copy's left edge, so the words sit on it at any screen width */
.hero { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.hero .window::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--scrim) 0, var(--scrim) calc(var(--edge) + 720px), var(--scrim-mid) calc(var(--edge) + 1000px), var(--scrim-none) calc(var(--edge) + 1350px)),
  linear-gradient(0deg, var(--scrim) 0%, var(--scrim-none) 55%); }
.hero-copy { position: relative; z-index: 1; padding-block: clamp(5rem, 14vh, 9rem) clamp(2rem, 6vh, 3.5rem); }
.hero h1, .hero .lede, .hero-proof { text-shadow: var(--text-shadow); }
.hero h1 { color: var(--white); font-size: var(--fs-hero); line-height: 1; letter-spacing: -.028em; margin-bottom: .45em; max-width: 13ch; }
.hero .lede { color: var(--on-dark); max-width: 44ch; }
.hero h1 em { color: var(--marsh-pale); }
.hero .btn-row { margin-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 15rem)); border-top: 1px solid var(--on-dark-line); }
.hero-proof p { margin: 0; padding: 1rem 1.5rem 0 0; font-size: .92rem; line-height: 1.4; color: var(--on-dark-muted); }
.hero-proof strong { display: block; font-size: 1.02rem; color: var(--white); }
@media (max-width: 900px) {
  /* a square crop over the creek (the phone video is cut to the same square), the words on steel beneath */
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero .window { position: relative; inset: auto; aspect-ratio: 1 / 1; }
  .hero .window img { object-position: 92% 50%; }
  .hero .window::after { background: linear-gradient(0deg, var(--steel) 0%, var(--scrim-none) 22%); }
  .hero-copy { padding-block: 1.75rem 2.5rem; }
  .hero h1, .hero .lede, .hero-proof { text-shadow: none; }

  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof p { padding: .6rem 0; border-bottom: 1px solid var(--steel-3); }
}

/* inner page header: the page's photo full-bleed and the copy over it on a steel scrim, like the home hero (never side by side) */
.page-head { position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 44vw, 640px); background: var(--steel); overflow: hidden; --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.page-head .window { position: absolute; inset: 0; }
.page-head .window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim-mid) 45%, var(--scrim-none) 78%), linear-gradient(0deg, var(--scrim-mid) 0%, var(--scrim-none) 40%); }
.page-head-copy { position: relative; z-index: 1; padding: clamp(4.5rem, 10vw, 8rem) var(--gutter) clamp(2.75rem, 5vw, 4.5rem) var(--edge); width: min(100%, calc(var(--edge) + 880px)); }
.page-head h1 { max-width: 16ch; color: var(--white); }
.page-head h1 em { color: var(--marsh-pale); }
.page-head .lede { max-width: 50ch; color: var(--on-dark); }
.page-head :is(h1, .lede, .crumbs, .post-meta) { text-shadow: var(--text-shadow); }
.page-head .crumbs, .page-head .crumbs a, .page-head .post-meta { color: var(--on-dark); }
.page-head .btn-line { border-color: var(--on-dark-line); color: var(--white); }
.page-head .btn-line:hover { background: var(--white); color: var(--steel); }
.page-head .btn-primary, .cta-band .btn-primary { background: var(--marsh-lit); }
.page-head .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--marsh-lit-2); }
.page-head.no-photo { background: var(--bg); min-height: 0; }
.page-head.no-photo h1 { color: var(--ink); }
.page-head.no-photo h1 em { color: var(--marsh); }
.page-head.no-photo .lede { color: var(--text); }
.page-head.no-photo :is(h1, .lede, .crumbs, .post-meta) { text-shadow: none; }
.page-head.no-photo :is(.crumbs, .crumbs a, .post-meta) { color: var(--muted); }
.page-head.no-photo .btn-line { border-color: var(--frame); color: var(--ink); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 .5em; color: var(--tabby); }
.post-meta { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .page-head, .cta-band { flex-direction: column; align-items: stretch; min-height: 0; }
  .page-head .window { position: relative; inset: auto; order: -1; aspect-ratio: 16 / 10; }
  .page-head .window::after { background: linear-gradient(0deg, var(--steel) 0%, var(--scrim-none) 30%); }
  .page-head-copy { padding-block: 1.75rem 2.75rem; }
  .page-head :is(h1, .lede, .crumbs, .post-meta), .cta-band :is(h2, p) { text-shadow: none; }

}

/* cards: no outlines; a card stands off its section by ground (white on limewash, limewash on white) */
.panes { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.sec-white :is(.pane, .feats > div, .steps li, .person-card) { background: var(--bg); }
.panes-3 { grid-template-columns: repeat(3, 1fr); }
.panes-2 { grid-template-columns: repeat(2, 1fr); }
.panes-4 { grid-template-columns: repeat(4, 1fr); }
.pane { background: var(--surface); padding: clamp(1.4rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; position: relative; }
.pane > .window { margin: calc(-1 * clamp(1.4rem, 2.5vw, 2.2rem)) calc(-1 * clamp(1.4rem, 2.5vw, 2.2rem)) 1.6rem; aspect-ratio: 4 / 3; }
.pane > .window img { transition: transform .9s var(--ease); }
.pane:hover > .window img { transform: scale(1.035); }
.pane h3 { font-size: 1.55rem; font-weight: 550; }
.pane p { color: var(--muted); }
.pane .text-link { margin-top: auto; align-self: flex-start; }
.pane-link { text-decoration: none; }
.pane-link h3 { margin-bottom: .45rem; font-size: 1.4rem; font-weight: 550; transition: color .2s; }
.pane-link:hover h3 { color: var(--marsh); }
.pane-link p { margin: 0; font-size: 1rem; line-height: 1.55; }
.pane-link::after { content: ""; position: absolute; right: .35rem; top: 1.95rem; width: 9px; height: 9px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.pane-link:hover::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 1000px) { .panes-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .panes-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .panes-2, .panes-4 { grid-template-columns: 1fr; } }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split-wide { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr); align-items: start; }
.split .window { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* values set on steel rules, no boxes */
.ruled { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.ruled > div { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.ruled h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.ruled p { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .ruled { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ruled { grid-template-columns: 1fr; } }
.link-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--rule); }
.link-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 2rem 1rem 0; font: 550 1.3rem/1.25 var(--f-display); color: var(--ink); text-decoration: none; position: relative; }
.link-list span { font: 400 .95rem/1.45 var(--f); color: var(--muted); text-align: right; }
.link-list a::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.link-list a:hover { color: var(--marsh); }
.link-list a:hover::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 560px) { .link-list a { flex-direction: column; gap: .2rem; } .link-list span { text-align: left; } }

/* prose */
.prose { max-width: 60ch; }  /* about 75 characters a line */
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose > :first-child { margin-top: 0; }
.prose ul:not(.checks) li::marker, .prose ol li::marker { color: var(--marsh); }
.callout { background: var(--marsh-tint); border: 0; padding: 1.25rem 1.4rem; margin: 2rem 0; }
.callout p:last-child { margin: 0; }
.callout-warn { background: var(--white); border-color: var(--marsh); box-shadow: inset 0 0 0 4px var(--marsh-tint); }
.post-body { font-size: 1.125rem; line-height: 1.72; }
.post-body.read { max-width: 68ch; }
.post-body h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); margin: 2.4em 0 .6em; }
.post-body h3 { margin: 1.8em 0 .5em; }
.post-body .feats, .post-body .steps { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; margin: 2rem 0; }
.post-body .feats p, .post-body .steps p { font-size: 1rem; }
@media (max-width: 640px) { .post-body .feats, .post-body .steps { grid-template-columns: 1fr; } }
.post-body blockquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: var(--bar) solid var(--marsh); font-size: 1.15rem; color: var(--ink); }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .75rem; height: .42rem; border-left: 2px solid var(--marsh); border-bottom: 2px solid var(--marsh); transform: rotate(-45deg); }

.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); margin: 1.6rem 0 2rem; }
.feats > div { background: var(--surface); padding: 1.35rem 1.4rem; }
.feats h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.feats p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 700px) { .feats { grid-template-columns: 1fr; } }

/* steps: a real sequence */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); margin: 0 0 2rem; }
.steps li { counter-increment: s; background: var(--surface); padding: 1.5rem 1.4rem 1.6rem; margin: 0; }
.steps li::before { content: counter(s); display: block; font: italic 400 2.6rem/1 var(--f-display); color: var(--marsh); margin-bottom: 1rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
.prose .steps { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .prose .steps { grid-template-columns: 1fr; } }

/* faq */
.faq { border-bottom: 1px solid var(--rule); }
.faq:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0; position: relative; font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 14px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0); }
.faq p { margin: 0 0 1.4rem; color: var(--text); max-width: 60ch; }

/* blog cards: the post's photo, title, summary, then category and reading time */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.25rem); }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card .row-thumb { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.2rem; transition: transform .9s var(--ease); }
.post-card h2, .post-card h3, .post-card h4 { margin: 0 0 .5rem; font: 550 clamp(1.3rem, 1.7vw, 1.55rem)/1.2 var(--f-display); letter-spacing: -.01em; }
.post-card h2 a, .post-card h3 a, .post-card h4 a { text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after, .post-card h4 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0 0 .9rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.post-card .card-meta { margin: auto 0 0; padding-top: .8rem; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--muted); }
.post-card:hover :is(h2, h3, h4) { color: var(--marsh); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* closing band: the dusk photo full-bleed, the invitation over it on a steel scrim */
.cta-band { position: relative; display: flex; align-items: center; min-height: clamp(440px, 40vw, 580px); background: var(--dark); color: var(--on-dark); overflow: hidden; }
.cta-band .window { position: absolute; inset: 0; }
.cta-band .window img { object-position: 70% 60%; }
.cta-band .window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim-mid) 50%, var(--scrim-none) 85%); }
.cta-copy { position: relative; z-index: 1; padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(4rem, 8vw, 7rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.cta-band h2 { color: var(--white); max-width: 13ch; font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 1.02; }
.cta-band h2 em { color: var(--marsh-pale); }
.cta-band p { color: var(--on-dark); max-width: 42ch; font-size: 1.15rem; }
.cta-band :is(h2, p) { text-shadow: var(--text-shadow); }
@media (max-width: 900px) {
  .cta-band { flex-direction: column; align-items: stretch; min-height: 0; }
  .cta-band .window { position: relative; inset: auto; order: -1; aspect-ratio: 16 / 10; }
  .cta-band .window::after { background: linear-gradient(0deg, var(--steel) 0%, var(--scrim-none) 30%); }
  .cta-copy { padding-block: 1.75rem 3rem; }
  .cta-band :is(h2, p) { text-shadow: none; }
}

/* footer */
.site-foot { background: var(--steel-0); color: var(--on-dark-muted); font-size: .95rem; padding-top: clamp(3rem, 6vw, 5rem); }
.site-foot a { color: var(--on-dark); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.foot-grid h3 { color: var(--white); font: 600 .98rem/1.3 var(--f); letter-spacing: .005em; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; }
.foot-brand .brand { color: var(--white); margin-bottom: 1.2rem; }
.foot-brand p { max-width: 34ch; }
.family { border-top: 1px solid var(--steel-3); padding-top: 1rem; margin-top: 1.2rem; }
.foot-base { border-top: 1px solid var(--steel-3); padding-block: 1.4rem 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.foot-base p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* form */
.form { display: grid; gap: 1.1rem; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: var(--bar) solid var(--hairline); border-radius: 0; padding: .8em .9em; transition: border-color .2s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--tabby); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--marsh); }
.field input:user-invalid { border-color: var(--error); }
.btn[disabled] { opacity: .55; cursor: progress; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 1rem 1.2rem; display: none; border: var(--bar) solid; margin: 0; }
.form-msg.ok { display: block; border-color: var(--marsh); background: var(--marsh-tint); color: var(--marsh-dark); }
.form-msg.err { display: block; border-color: var(--error); background: var(--brick-tint); color: var(--brick-ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.small { font-size: .9rem; }
.form .small { margin: 0; }


/* flow: a page's prose as one section on one ground (Nick 10/28, after the Symbios build: "less choppy").
   Chapters are set apart by space and a hairline, never by a new band. */
.flow .ch { padding-block: clamp(3rem, 6vw, 5.5rem); }
.flow .ch:first-child { padding-top: 0; }
.flow .ch:last-child { padding-bottom: 0; }
.flow .ch + .ch { border-top: 1px solid var(--rule); }
.ch-split, .ch-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 6vw, 6rem); align-items: start; }
.ch h2 { font-size: clamp(2.1rem, 3.3vw, 3.1rem); max-width: 15ch; margin: 0; }
.ch-body.prose, .ch-intro { max-width: 62ch; font-size: 1.125rem; line-height: 1.7; }
.ch-body > :last-child, .ch-intro > :last-child { margin-bottom: 0; }
.ch-intro { color: var(--text); }
.ch-comp { max-width: none; margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.ch-comp > p, .ch-comp > h3, .ch-comp > blockquote, .ch-comp > .callout { max-width: 62ch; }
.ch-comp > :last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.25rem, 1.6vw, 1.45rem); line-height: 1.5; color: var(--ink); font-weight: 400; letter-spacing: -.01em; }
/* short text chapters side by side: a steel bar over each statement */
.ch-row { display: grid; gap: 2.5rem clamp(2rem, 4vw, 4.5rem); }
.ch-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ch-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-row > div { border-top: var(--bar) solid var(--ink); padding-top: 1.5rem; }
.ch-row .h-stmt { font-size: clamp(1.6rem, 2.2vw, 2rem); max-width: 18ch; margin-bottom: .7rem; }
.ch-row p { font-size: 1.0625rem; line-height: 1.68; }
.ch-row p:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .ch-row-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .ch-split, .ch-top { grid-template-columns: 1fr; }
  .ch h2 { max-width: none; }
  .ch-row-2 { grid-template-columns: 1fr; }
}
/* inside the flow, cards and steps lose their boxes: hairline over each, like the values on the About page */
.flow .feats, .flow .ch-comp .steps { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); margin: 0; }
.flow .feats > div, .post-body .feats > div { background: none; padding: 1.3rem 0 0; border-top: 1px solid var(--rule); }
.flow .feats h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.flow .feats p { font-size: 1.03rem; line-height: 1.62; color: var(--text); }
.flow .steps { margin: 0; gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.flow .steps li, .post-body .steps li { background: none; padding: 1.3rem 0 0; border-top: var(--bar) solid var(--ink); }
.flow .steps li::before { font-size: 3.2rem; margin-bottom: .9rem; }
.flow .steps h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.flow .steps p { font-size: 1.03rem; line-height: 1.62; color: var(--text); }
[data-cols="1"] { --cols: 1; } [data-cols="2"] { --cols: 2; } [data-cols="4"] { --cols: 4; }
@media (max-width: 1000px) { .flow .feats, .flow .ch-comp .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .flow .feats, .flow .ch-comp .steps { grid-template-columns: 1fr; } }

.sec-white.flow :is(.feats > div, .steps li) { background: none; }
/* About: each person on the same two columns as the chapters, so every text column starts on one line */
.flow .person { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); }
.flow .person .prose { max-width: 62ch; font-size: 1.125rem; line-height: 1.7; }
.flow .person .prose > :last-child { margin-bottom: 0; }
.flow .person .initials-lg { width: clamp(160px, 18vw, 240px); aspect-ratio: 4 / 5; }

/* faq: heading left, questions right, on the chapters' columns */
.faq-list { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-list h2 { font-size: clamp(2.1rem, 3.3vw, 3.1rem); max-width: 15ch; margin: 0; }
@media (max-width: 900px) { .faq-list { grid-template-columns: 1fr; } }
.sub-head { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; font-size: 1.1rem; }
.sub-head + .rows { margin-top: 1rem; }
.read { max-width: 60ch; margin-inline: auto; }
.cols-2 { columns: 2; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; }
@media (max-width: 700px) { .cols-2 { columns: 1; } }
.steps-tight { grid-template-columns: 1fr; margin: 1rem 0 0; }
.steps-tight li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .4rem; padding: 1rem 1.2rem; }
.steps-tight li::before { grid-row: span 2; font-size: 1.8rem; margin: 0; }
.steps-tight h3 { margin: 0 0 .2rem; }
.prose .feats h3, .prose .steps h3 { margin-top: 0; }

/* home: everything past the first four sections folds, still in the page for search */
.more summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding: 1.4rem 3rem 1.4rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; font: 500 clamp(1.5rem, 2.4vw, 2.1rem)/1.15 var(--f-display); letter-spacing: -.015em; color: var(--ink); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before, .more summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.more summary::after { transform: rotate(90deg); }
.more[open] summary::after { transform: rotate(0); }
.more-hint { font: 400 .95rem/1.4 var(--f); letter-spacing: 0; color: var(--muted); }
.more-body { padding-top: clamp(2.5rem, 5vw, 4rem); }
.more-body > h2, .more-body .head-row { margin-top: clamp(3rem, 6vw, 5rem); }
.more-body > h2:first-child { margin-top: 0; }
.more-body .ruled { margin: 2rem 0 0; }
.more-body .steps { margin-top: 2rem; }

/* people: initials tiles until there are real portraits */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); margin-top: 1.5rem; }
.person-card { background: var(--surface); padding: 1.4rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1.1rem; align-items: center; text-decoration: none; transition: background-color .2s; }
.person-card:hover { background: var(--marsh-tint); }
.person-card .initials { grid-row: span 2; }
.person-name { font: 600 1.35rem/1.2 var(--f-display); color: var(--ink); align-self: end; }
.person-role { color: var(--muted); font-size: .95rem; }
.initials { display: inline-grid; place-items: center; width: 64px; aspect-ratio: 1; background: var(--steel); color: var(--limewash); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; }
.initials-lg { width: clamp(120px, 14vw, 180px); font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
.portrait-sm { object-fit: cover; object-position: 50% 18%; padding: 0; }
.portrait { width: clamp(160px, 18vw, 240px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
@media (max-width: 640px) { .portrait { width: min(60vw, 240px); } }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.person h2 { margin-bottom: .15em; }
.person .person-role { margin-bottom: 1.4rem; }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } .person { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 0; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: .2rem 0 0; color: var(--ink); font-weight: 600; }
.facts-stack { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* contact: copy left, form right */
.contact-split { align-items: start; }
.contact-phone { font: 500 clamp(2.1rem, 3.6vw, 3rem)/1.1 var(--f-display); letter-spacing: -.02em; margin: 0 0 .5rem; }
.contact-phone a { text-decoration: none; }
.form-pane { background: var(--bg); border: 0; padding: clamp(1.4rem, 3vw, 2.4rem); }
.form-pane h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }

/* phones: a fixed call bar that never wraps, even at 320 px */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--steel); border-top: var(--bar) solid var(--steel); gap: var(--bar); padding-bottom: env(safe-area-inset-bottom); }
  .callbar .btn { min-height: 52px; padding: .8em .5em; font-size: .97rem; border: 0; }
  .callbar .btn-line { background: var(--limewash); }
  .callbar .btn-line:hover { background: var(--white); color: var(--ink); }
  body { padding-bottom: 52px; }
}

/* first-visit intro (markup and driver in shell.INTRO) */
.intro { display: none; position: fixed; inset: 0; z-index: 200; background: var(--limewash); align-items: center; justify-content: center; transition: opacity 1.2s ease; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); }
.intro-kicker { margin: 0 0 1.4rem; font-weight: 600; font-size: .95rem; letter-spacing: .04em; color: var(--muted); opacity: 0; animation: intro-up 1.4s var(--ease) .4s forwards; }
.intro-logo { width: clamp(96px, 12vw, 128px); height: auto; opacity: 0; animation: intro-up 1.6s var(--ease) .9s forwards; }
.intro-rule { display: block; width: min(240px, 50vw); height: var(--bar); background: var(--steel); margin: 1.8rem 0 1.5rem; transform: scaleX(0); animation: intro-draw 1.4s var(--ease) 2.1s forwards; }
.intro-line { margin: 0; font: 500 clamp(1.35rem, 2.6vw, 2rem)/1.2 var(--f-display); letter-spacing: -.015em; color: var(--ink); opacity: 0; animation: intro-up 1.3s var(--ease) 2.7s forwards; }
.intro-skip { position: absolute; right: var(--gutter); bottom: max(1.5rem, env(safe-area-inset-bottom)); font: 600 .95rem var(--f); color: var(--ink); background: none; border: 1px solid var(--tabby); padding: .7em 1.1em; min-height: 44px; cursor: pointer; }
.intro-skip:hover { background: var(--steel); color: var(--white); }
@keyframes intro-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes intro-draw { to { transform: scaleX(1); } }
html.intro-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }
.ch-body > .link-list { margin-top: 0; }
.ch-body .link-list a { padding-block: 1.15rem; }
.ch-body .link-list span { max-width: 32ch; }
.flow .ch + .ch-row { border-top: 0; padding-top: clamp(1rem, 2vw, 1.5rem); }
/* related links sit on a steel bar like the statements, no boxes */
.panes:has(> .pane-link) { gap: 2.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
section .panes > a.pane.pane-link { background: none; padding: 1.4rem 2.25rem 0 0; border-top: var(--bar) solid var(--ink); }
.page-head .post-meta a { color: var(--white); text-decoration-color: var(--on-dark-line); }
.page-head.no-photo .post-meta a { color: var(--ink); text-decoration-color: var(--tabby); }

/* emphasis under the hero (Nick 10/29: "the text under them doesn't emphasize anything").
   Section headings take the italic marsh accent (auto_accent() in build.py), the opening paragraph is set in the serif,
   the feature cards sit on a limewash ground, the statements on pale marsh, and one marsh band asks for the call. */
.ch-ground, .ch-tint, .ch-cta, .post-cta { background: var(--g); box-shadow: 0 0 0 100vmax var(--g); clip-path: inset(0 -100vmax); }
.ch-ground { --g: var(--bg); }
.ch-tint { --g: var(--marsh-tint); }
.ch-cta, .post-cta { --g: var(--marsh); color: var(--on-dark); }
.flow .ch.ch-ground, .flow .ch.ch-tint, .flow .ch.ch-cta { border-top: 0; padding-block: clamp(3.5rem, 7vw, 6rem); }
.flow .ch:is(.ch-ground, .ch-tint, .ch-cta) + .ch { border-top: 0; }
.flow:has(> .wrap > :is(.ch-ground, .ch-tint, .ch-cta):last-child) { padding-bottom: 0; }
.flow .ch-tint.ch-row > div { border-top-color: var(--marsh); }
.flow .ch-ground .feats > div { border-top: var(--bar) solid var(--marsh); }
.ch-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.ch-cta .btn-row { margin: 0; }
.h-cta { color: var(--white); font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.08; max-width: 18ch; margin: 0 0 .45em; }
.flow .ch-cta .h-cta { max-width: 18ch; }
.h-cta em { color: var(--marsh-pale); }
.ch-cta p, .post-cta p { color: var(--on-dark); max-width: 52ch; margin: 0; font-size: 1.1rem; }
.btn-white { background: var(--white); color: var(--marsh-dark); }
.btn-white:hover { background: var(--limewash); color: var(--marsh-dark); }
.post-cta { margin: 3rem 0; padding: clamp(2.25rem, 5vw, 3.25rem) 0; }
.post-body .post-cta h2 { margin: 0 0 .45em; }
.post-cta .btn-row { margin-top: 1.5rem; }
@media (max-width: 900px) { .ch-cta { grid-template-columns: 1fr; } }

.lead, .post-body .lead { font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.42 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
/* bold text stays plain bold: the marsh highlight under it is gone (Nick 10/30) */
/* in-text links: marsh and medium weight, no underline until hover (Nick 10/29: "drop the underline but keep the links") */
:is(.prose, .ch-row, .faq, .lede, .lead) :is(p, li) > a:not(.btn) { color: var(--marsh-dark); font-weight: 600; text-decoration: none; }
:is(.prose, .ch-row, .faq, .lede, .lead) :is(p, li) > a:not(.btn):hover { color: var(--marsh); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.flow:has(> .wrap > :is(.ch-ground, .ch-tint, .ch-cta):first-child) { padding-top: 0; }
/* optional text-message consent on the contact form: unchecked, never required */
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; font-size: .9rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: .12rem 0 0; accent-color: var(--marsh); }
.check a { color: var(--marsh-dark); font-weight: 600; }
.prose h2[id] { scroll-margin-top: 100px; }
