/* St. Pierre Advisory, Native Operator, Fieldeng Advisory: one stylesheet, three accents. */
:root {
  --paper: #f5f7f6;
  --ink: #17252b;
  --muted: #55656c;
  --rule: #d5dddb;
  --field: #ffffff;
  --accent: #2f5d50;        /* St. Pierre Advisory: spruce */
  --accent-ink: #ffffff;
  --night: #1e2552;          /* Native Operator */
  --lamp: #f2c14e;
  --survey: #0e6e7a;         /* Fieldeng Advisory */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --measure: 66ch;
  --wide: 1080px;
}
/* Each site gets its own paper tint so the three are easy to tell apart. */
body.spa { --paper: #e3eee5; --rule: #d3ddd6; }
body.no { --accent: var(--night); --paper: #e2e5f7; --rule: #d3d7ea; }
body.fe { --accent: var(--survey); --paper: #dcf0ef; --rule: #cbe0e0; }
html.spa body { --paper: #e3eee5; } html.no body { --paper: #e2e5f7; } html.fe body { --paper: #dcf0ef; }
body.fe h1 { max-width: 24ch; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }

header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap; padding: 28px 0 20px;
}
.mark { font: 700 1.15rem/1.2 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.mark small { display: block; font: 400 0.85rem/1.3 var(--body); color: var(--muted); letter-spacing: 0; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 0.98rem; }
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 650; margin-top: 0; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink); max-width: 58ch; }

section { padding: 56px 0; border-top: 1px solid var(--rule); }
section.hero { border-top: 0; padding: 48px 0 64px; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font: 600 1.05rem/1 var(--body); padding: 16px 24px; border-radius: 6px;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }

/* Parent page: the two practices side by side */
.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.practice { border-left: 4px solid var(--c); padding: 4px 0 4px 24px; }
.practice.no { --c: var(--night); }
.practice.fe { --c: var(--survey); }
.practice h2 { font-size: 1.7rem; }
.practice .domain { font-weight: 600; color: var(--c); }

/* Native Operator: the overnight log */
.hero-no { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.log {
  background: var(--night); color: #e8eaf6; border-radius: 10px; padding: 28px 28px 22px;
  font: 400 0.95rem/1.55 var(--mono);
}
.log h2 { font: 600 0.95rem/1.4 var(--mono); color: var(--lamp); letter-spacing: 0; margin: 0 0 16px; }
.log ol { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.log time { color: var(--lamp); }
.log .note { margin: 16px 0 0; font-size: 0.82rem; color: #b5bbdc; font-family: var(--body); }

/* Fieldeng: where the experience comes from */
.companies { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none;
  font: 650 1.35rem/1.2 var(--display); color: var(--survey); letter-spacing: -0.01em; }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols p { color: var(--muted); }
.cols h3 { color: var(--ink); }
.cols.day { margin-top: 32px; }
.cols.day > div { border-top: 3px solid var(--accent); padding-top: 14px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tiers > div { background: var(--field); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; }

/* Inquiry form */
form.inquiry { display: grid; gap: 18px; max-width: 560px; }
form.inquiry label { display: grid; gap: 6px; font-weight: 600; font-size: 1rem; }
form.inquiry label span.opt { font-weight: 400; color: var(--muted); }
form.inquiry input, form.inquiry textarea, form.inquiry select {
  font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1px solid #b9c5c2;
  border-radius: 6px; background: var(--field); color: var(--ink); width: 100%;
}
form.inquiry textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.error { color: #a12d2d; }

footer.site { border-top: 1px solid var(--rule); padding: 28px 0 48px; color: var(--muted); font-size: 0.95rem; }
footer.site a { color: var(--muted); }

@media (max-width: 820px) {
  .practices, .hero-no, .cols, .tiers { grid-template-columns: 1fr; }
  nav.site a { margin: 0 16px 0 0; }
  section { padding: 44px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .log li { animation: line-in 0.4s ease both; }
  .log li:nth-child(2) { animation-delay: 0.15s; } .log li:nth-child(3) { animation-delay: 0.3s; }
  .log li:nth-child(4) { animation-delay: 0.45s; } .log li:nth-child(5) { animation-delay: 0.6s; }
  .log li:nth-child(6) { animation-delay: 0.75s; } .log li:nth-child(7) { animation-delay: 0.9s; }
  @keyframes line-in { from { opacity: 0; } to { opacity: 1; } }
}
