/* Concept C — "Counsel" · Blue Ridge Law face-off · tokens per DESIGN-NOTES.md */
:root {
  --navy: #13273a;
  --navy-2: #1b3650;
  --pale: #e8eef4;
  --mist: #c1d1df;
  --paper: #ffffff;
  --ink: #13273a;
  --ink-2: #4a5a6a;
  --brass: #b8955a;
  --hair: rgba(184, 149, 90, 0.75);
  --hair-navy: rgba(19, 39, 58, 0.18);
  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --fs-0: 15px; --fs-1: 17px; --fs-2: 21px; --fs-3: 26px; --fs-4: 34px; --fs-5: 46px; --fs-6: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--navy); color: var(--pale);
  font-family: var(--sans); font-size: var(--fs-1); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grounds */
.on-paper { background: var(--paper); color: var(--ink); }
.on-navy { background: var(--navy); color: var(--pale); }
.on-paper a { text-decoration-color: var(--brass); }
.on-paper .muted, .on-paper .lede { color: var(--ink-2); }
.on-navy .muted, .on-navy .lede { color: var(--mist); }
section { padding-block: clamp(56px, 8vw, 112px); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(232, 238, 244, 0.12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { width: 190px; height: 52px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: var(--fs-0); letter-spacing: 0.01em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.btn { display: inline-block; font-family: var(--sans); font-size: var(--fs-0); font-weight: 500; text-decoration: none; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.on-navy .btn, .site-header .btn { background: var(--pale); color: var(--navy); }
.on-navy .btn:hover, .site-header .btn:hover { background: #ffffff; }
.on-paper .btn { background: var(--navy); color: var(--pale); }
.on-paper .btn:hover { background: var(--navy-2); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(232, 238, 244, 0.4); color: var(--pale); padding: 8px 12px; font: inherit; font-size: var(--fs-0); }

/* hero */
.hero { padding-block: clamp(72px, 10vw, 150px) 0; }
.hero h1 { font-weight: 300; font-size: clamp(38px, 5.4vw, var(--fs-6)); max-width: 19ch; line-height: 1.08; }
.hero h1 .thin { font-weight: 300; }
.hero .after { display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: flex-end; justify-content: space-between; margin-top: clamp(32px, 4vw, 56px); }
.hero .lic { font-size: var(--fs-1); color: var(--mist); max-width: 34ch; line-height: 1.5; }
.hero .lic span { display: block; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .actions .link { align-self: center; font-size: var(--fs-0); }
.ridge { display: block; width: 100%; height: clamp(70px, 9vw, 130px); margin-top: clamp(40px, 6vw, 88px); overflow: visible; }
.ridge path { fill: none; stroke: var(--brass); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ridge .base { stroke: rgba(232, 238, 244, 0.28); }

/* section titles */
.section-title { font-size: clamp(30px, 3.4vw, var(--fs-5)); margin-bottom: 0.35em; text-wrap: balance; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { font-size: var(--fs-2); line-height: 1.5; margin: 0; max-width: 52ch; }

/* practice areas */
.pa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; }
.pa { border-top: 1px solid var(--hair); padding-top: 22px; display: flex; flex-direction: column; }
.pa.lead { border-top-width: 2px; }
.pa h3 { font-size: var(--fs-3); margin-bottom: 12px; }
.pa h3 a { text-decoration: none; }
.pa h3 a:hover { text-decoration: underline; }
.pa p { font-size: var(--fs-1); color: var(--ink-2); flex: 1; max-width: none; }
.pa .more { font-size: var(--fs-0); font-weight: 500; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 72px; align-items: center; }
.duotone { position: relative; background: var(--navy); aspect-ratio: 4 / 5; overflow: hidden; }
.duotone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.95); mix-blend-mode: luminosity; opacity: 0.85; }
.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 39, 58, 0.55), rgba(19, 39, 58, 0) 55%); pointer-events: none; }
.about-copy h2 { font-size: clamp(30px, 3.4vw, var(--fs-5)); margin-bottom: 0.5em; }
.about-copy .statement { font-family: var(--serif); font-size: var(--fs-2); line-height: 1.45; color: var(--pale); border-left: 1px solid var(--hair); padding-left: 20px; margin: 0 0 1.4em; }
.about-copy p.long { color: var(--mist); }

/* team ledger */
.ledger { width: 100%; border-collapse: collapse; font-size: var(--fs-1); }
.ledger th { text-align: left; font-weight: 500; font-size: var(--fs-0); color: var(--ink-2); padding: 0 0 12px; border-bottom: 1px solid var(--ink); }
.ledger td { padding: 18px 0; border-bottom: 1px solid var(--hair-navy); vertical-align: top; }
.ledger td:first-child { font-family: var(--serif); font-size: var(--fs-2); white-space: nowrap; padding-right: 32px; }
.ledger td:nth-child(2) { color: var(--ink-2); padding-right: 32px; }
.ledger td:last-child { white-space: nowrap; }
.ledger tr:last-child td { border-bottom: 1px solid var(--ink); }

/* associations */
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-tiles li { list-style: none; background: var(--paper); padding: 14px; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; }
.logo-tiles img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.logo-tiles ul, ul.logo-tiles { margin: 0; padding: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px 80px; align-items: start; }
.addr { font-style: normal; font-size: var(--fs-2); font-family: var(--serif); line-height: 1.45; }
.addr a { display: inline-block; }
.contact-side p { color: var(--ink-2); }
.contact-side .links { display: grid; gap: 10px; margin-top: 20px; font-size: var(--fs-1); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-0); font-weight: 500; }
.field input, .field textarea { font: inherit; font-size: var(--fs-1); padding: 12px 14px; border: 1px solid var(--mist); border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--navy); }
.field textarea { min-height: 150px; resize: vertical; }
.field .err { font-size: 14px; color: #8a2f2a; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #8a2f2a; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; align-items: start; }
.consent input { margin-top: 5px; accent-color: var(--navy); }
.form .submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.thanks { border-top: 1px solid var(--hair); padding-top: 24px; font-family: var(--serif); font-size: var(--fs-2); }

/* footer */
.site-footer { border-top: 1px solid rgba(232, 238, 244, 0.12); padding-block: 56px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr; gap: 36px 48px; align-items: start; }
.foot-grid h3 { font-family: var(--sans); font-size: var(--fs-0); font-weight: 500; color: var(--mist); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-0); }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.dba { width: min(300px, 100%); }
.dba img { width: 100%; height: auto; }
.foot-addr { font-style: normal; font-size: var(--fs-0); line-height: 1.6; }
.foot-bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(232, 238, 244, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--mist); }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* inner page */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-head .back { font-size: var(--fs-0); display: inline-block; margin-bottom: 28px; }
.page-head h1 { font-weight: 300; font-size: clamp(36px, 5vw, var(--fs-6)); max-width: 16ch; }
.page-head .lede { font-size: var(--fs-2); line-height: 1.5; max-width: 60ch; margin-top: 20px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: 48px 88px; align-items: start; }
.rich h2 { font-size: var(--fs-4); margin: 0 0 0.6em; }
.rich p { font-size: var(--fs-1); }
.rich ul { padding-left: 0; list-style: none; columns: 2; column-gap: 40px; margin: 0 0 1.5em; }
.rich li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--hair-navy); font-size: var(--fs-1); }
.rich figure { margin: 2em 0 0; }
.rich figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.aside { position: sticky; top: 100px; }
.aside h2 { font-size: var(--fs-2); margin-bottom: 16px; }
.aside ul { list-style: none; margin: 0 0 32px; padding: 0; }
.aside li { border-top: 1px solid var(--hair-navy); }
.aside li a { display: block; padding: 12px 0; text-decoration: none; }
.aside li a:hover { text-decoration: underline; }
.aside li:last-child { border-bottom: 1px solid var(--hair-navy); }
.aside .card { border-top: 2px solid var(--hair); padding-top: 18px; }
.aside .card p { font-size: var(--fs-1); color: var(--ink-2); }

/* responsive */
@media (max-width: 1000px) {
  .pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-2); border-bottom: 1px solid rgba(232, 238, 244, 0.12); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(232, 238, 244, 0.08); }
  .nav .btn { margin-top: 12px; text-align: center; }
  .nav-toggle { display: inline-block; }
  .section-head, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pa-grid { grid-template-columns: 1fr; gap: 32px; }
  .form { grid-template-columns: 1fr; }
  .duotone { aspect-ratio: 4 / 3; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--hair-navy); }
  .ledger td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  .ledger td:first-child { padding-right: 0; }
  .ledger tr:last-child td { border: 0; }
  .ledger tr:last-child { border-bottom: 1px solid var(--ink); }
  .rich ul { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
}
