/* Brigadoon Consulting Services
   Palette drawn from Clifton, Virginia: ivory clapboard, shutter green,
   brick chimneys, and the pale "haint blue" of old porch ceilings. */

:root {
  --ground: #f4efe2;      /* ivory clapboard */
  --paper: #fbf8f1;       /* fresh-painted trim */
  --ink: #1e2a22;
  --muted: #58615a;
  --rule: #d8ceb8;
  --green: #22392c;       /* shutter green */
  --brick: #8e3b2e;       /* chimney brick */
  --haint: #b7cdc6;       /* porch-ceiling blue */
  --line: #22392c;
  --btn-bg: #22392c;
  --btn-fg: #fbf8f1;
  --btn-hover: #2f4d3c;
  --focus: #8e3b2e;
  --field: #fffdf8;
  --ok: #2d6a45;
  --err: #9b2c20;
  --footer: #22392c;

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --step-4: clamp(2.35rem, 1.5rem + 3.6vw, 3.75rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #131b16;
    --paper: #1a241e;
    --ink: #ece5d4;
    --muted: #a7ad9f;
    --rule: #34423a;
    --green: #9cc0a8;
    --brick: #d98a74;
    --haint: #3c5a53;
    --line: #cdc4ad;
    --btn-bg: #ece5d4;
    --btn-fg: #16201a;
    --btn-hover: #ffffff;
    --focus: #d98a74;
    --field: #0f1612;
    --ok: #8fd1a5;
    --err: #f09a86;
    --footer: #0c120e;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; color: var(--ink); }

p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--btn-bg); color: var(--btn-fg); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brick);
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}
.wordmark { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.wordmark__mark {
  width: 34px; height: 34px; flex: none;
  fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.wordmark__text {
  font-family: var(--display); font-size: 1.45rem; line-height: 1; color: var(--ink);
  display: flex; flex-direction: column; gap: .2rem;
}
.wordmark__text span {
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .nav__cta {
  color: var(--ink); border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 2px;
}
.nav .nav__cta:hover { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

@media (max-width: 34rem) {
  .nav a:not(.nav__cta) { display: none; }
  .wordmark__text { font-size: 1.25rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: .85rem 1.4rem; border-radius: 2px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--primary[disabled] { opacity: .6; cursor: progress; }
.btn--quiet { color: var(--ink); border-color: var(--rule); }
.btn--quiet:hover { border-color: var(--line); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: end;
}
.hero__copy { display: flex; flex-direction: column; gap: 1.4rem; }
.hero h1 { font-family: var(--display); font-size: var(--step-4); line-height: 1.08; letter-spacing: -.01em; }
.lede { font-family: var(--serif); font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

.hero__art { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.hero__art figcaption {
  font-family: var(--serif); font-style: italic; font-size: var(--step--1);
  color: var(--muted); text-align: right;
}
.house { width: 100%; height: auto; display: block; }
.house .ln { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.house .wall { fill: var(--paper); }
.house .roof { stroke-width: 3; }
.house .clap { stroke-width: 1; opacity: .35; }
.house .glass { fill: var(--haint); }
.house .shutter { fill: var(--green); stroke: none; }
.house .brick { fill: var(--brick); }
.house .porch { fill: var(--paper); }
.house .door { fill: var(--brick); }
.house .knob { fill: var(--paper); stroke: none; }
.house .leaf { fill: color-mix(in srgb, var(--green) 14%, transparent); }
.house .fence { fill: var(--paper); }
.house .lattice { stroke-dasharray: 3 5; }

@media (max-width: 52rem) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 30rem; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section h2 { font-family: var(--display); font-size: var(--step-3); line-height: 1.12; }
.section__head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__intro { color: var(--muted); max-width: 38em; }

/* services: ledger rows */
.practices { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.practice {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: .75rem clamp(1.25rem, 3vw, 2.5rem);
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.practice h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; }
.practice > p { color: var(--muted); max-width: 34em; }
.tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
}
.tags li {
  font-size: .8rem; font-weight: 500; color: var(--ink);
  border: 1px solid var(--rule); background: var(--paper);
  padding: .2rem .55rem; border-radius: 2px; line-height: 1.5;
}
@media (max-width: 60rem) {
  .practice { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .practice .tags { grid-column: 2; }
}
@media (max-width: 40rem) {
  .practice { grid-template-columns: 1fr; }
  .practice .tags { grid-column: auto; }
}

/* about */
.about { background: var(--paper); border-block: 1px solid var(--rule); }
.about__inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.about__copy { display: grid; gap: 1.15rem; max-width: 40rem; }
.about__copy p:not(.eyebrow) { font-family: var(--serif); font-size: 1.075rem; line-height: 1.75; }
.about__copy h2 { margin-bottom: .25rem; }

.ledger { border-top: 2px solid var(--line); padding-top: 1rem; }
.ledger__title {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.ledger dl { margin: 0; }
.ledger dl > div {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem;
  padding-block: .8rem; border-bottom: 1px solid var(--rule);
}
.ledger dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.ledger dd { margin: 0; font-family: var(--serif); font-size: 1rem; line-height: 1.45; }
.ledger dl > div:first-child dd { font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--brick); }

.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(3rem, 6vw, 4.5rem);
}
.principle { display: grid; gap: .35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.principle h3 { font-family: var(--serif); font-style: italic; font-size: var(--step-1); }
.principle p { color: var(--muted); font-size: .98rem; }

@media (max-width: 52rem) {
  .about__inner { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
}

/* contact */
.contact__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.contact__copy { display: grid; gap: 1rem; max-width: 26rem; }
.contact__copy p:not(.eyebrow) { color: var(--muted); }

.form {
  display: grid; gap: 1.1rem;
  background: var(--paper); border: 1px solid var(--rule);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(20, 30, 24, .35);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .25rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field); border: 1px solid var(--rule); border-radius: 2px;
  padding: .7rem .8rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent;
}
.field [aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { font-size: .95rem; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.form__status a { color: inherit; }

@media (max-width: 52rem) { .contact__inner { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .form__row { grid-template-columns: 1fr; } }

/* footer */
.footer {
  background: var(--footer); color: #e9e2cf;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.footer__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem; align-items: start; font-size: .9rem;
}
.footer__name { display: grid; gap: .35rem; }
.footer__brand { font-family: var(--display); font-size: 1.4rem; color: #fbf8f1; }
.footer__note { font-family: var(--serif); line-height: 1.7; color: #d7d0bd; max-width: 40rem; }
.footer__note strong { font-family: var(--sans); font-weight: 600; color: #fbf8f1; }
@media (max-width: 44rem) { .footer__inner { grid-template-columns: 1fr; } }

/* 404 page */
.notfound { display: grid; gap: 1.25rem; max-width: 40rem; }
.notfound h1 { font-family: var(--display); font-size: var(--step-3); line-height: 1.12; }
.notfound__text { color: var(--muted); }
