/* Kincaid Law PLLC
   Layout: full-width colour bands with content held to a 1080px column.
   Most sections use a narrow label column on the left (gold rule + small caps)
   and the content to its right. */

@font-face {
  font-family: "Spectral SC";
  src: url("/assets/fonts/spectral-sc-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-9pt-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours */
  --gold: #a37e49;
  --gold-text: #c9a46e;   /* gold for text on green: passes WCAG AA */
  --gold-dark: #7a5c33;   /* gold for small text on cream: passes WCAG AA */
  --green: #303f30;
  --green-deep: #263226;
  --sage: #626e5f;
  --cream: #f9f9ed;
  --cream-2: #f2f1e3;
  --rule: #d9d6c3;
  --on-green: #dcddd0;
  --nav-ink: #111811;     /* menu text on the gold header: passes WCAG AA */
  --white: #ffffff;

  --display: "Spectral SC", "Cormorant SC", Georgia, serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;

  --measure: 1080px;
  --label-col: 220px;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font: 500 19px/1.45 var(--body);
  font-kerning: normal;
  /* Short pages: keep the contact band and footer at the bottom of the window. */
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > :last-child { flex-grow: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.08; text-wrap: balance; }
address { font-style: normal; }
.justify p, p.justify, .justify li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

.inner {
  max-width: calc(var(--measure) + 80px);
  margin-inline: auto;
  padding-left: max(var(--gutter), 40px);
  padding-right: max(var(--gutter-r), 40px);
}
.cols { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 48px; }
.band { padding-block: 64px; }
.prose { display: grid; gap: 18px; max-width: 66ch; }

.label {
  font: 500 15px/1.2 var(--display);
  letter-spacing: .16em;
  color: var(--gold-dark);
  padding-top: 10px;
  border-top: 1.5px solid var(--gold);
  align-self: start;
}
.eyebrow { font: 500 13px/1.2 var(--display); letter-spacing: .14em; color: var(--gold-dark); }

.text-link {
  font: 500 16px/1 var(--display);
  letter-spacing: .05em;
  color: var(--gold-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.text-link:hover { color: var(--white); }
.text-link.dark { color: var(--green); border-bottom-color: var(--gold); }
.text-link.dark:hover { color: var(--gold-dark); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--green); color: var(--cream); padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--gold); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: var(--header-h); }
.brand { display: block; color: var(--green); flex: 0 1 330px; min-width: 0; }
.brand .logo { width: 100%; height: auto; display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.nav a {
  font: 500 16px/1 var(--display);
  letter-spacing: .06em;
  color: var(--nav-ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--nav-ink); }
.nav a.nav-contact { border: 1.5px solid var(--nav-ink); padding: 10px 15px; }
.nav a.nav-contact:hover { background: var(--nav-ink); color: var(--gold); }
.menu-toggle { display: none; }

/* ------------------------------------------------------------------ home hero */
.hero { background: var(--green) url("/assets/img/banner-lattice.jpg") center / cover no-repeat; color: var(--white); }
.hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  min-height: 500px;
  padding-top: 72px;
}
.tagline { display: grid; gap: 14px; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.02; padding-bottom: 64px; white-space: nowrap; }
.tagline span:nth-child(2) { padding-left: 1.1em; }
.tagline span:nth-child(3) { padding-left: 2.2em; }
.hero-inset {
  justify-self: end;
  width: min(100%, 400px);
  background: var(--white);
  padding: 7px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transform: translateY(64px);
}
.hero-inset img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ------------------------------------------------------------------ home sections */
.about { padding-top: 120px; padding-bottom: 72px; }
.about .prose { font-size: 20px; }
.about .prose p:first-child::first-line { font-family: var(--display); letter-spacing: .03em; }

.fees { background: var(--cream-2); border-block: 1px solid var(--rule); padding-block: 40px 44px; }

.practice-index { background: var(--green); color: var(--cream); }
.practice-index .inner { padding-block: 64px 70px; display: grid; gap: 30px; }
.practice-index h2 { font-size: clamp(32px, 3.4vw, 40px); color: var(--white); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(163, 126, 73, .6); }
.tile { padding: 24px 24px 6px 0; display: grid; gap: 16px; align-content: start; min-width: 0; }
.tile + .tile { padding-left: 24px; border-left: 1px solid rgba(163, 126, 73, .6); }
.tile h3 { font-size: 25px; line-height: 1.12; color: var(--white); }
.tile a { font: 500 15px/1 var(--display); letter-spacing: .08em; color: var(--gold-text); text-decoration: none; }
.tile a:hover { color: var(--white); }

.ledger { padding-block: 72px 76px; }
.ledger-head { display: grid; gap: 18px; align-content: start; }
.ledger-head h2 { font-size: 34px; }
.ledger-head .text-link { justify-self: start; }
.rows { border-top: 1.5px solid var(--green); }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.row-k { font: 500 13px/1.3 var(--display); letter-spacing: .12em; color: var(--gold-dark); padding-top: 6px; }
.row h3 { font-size: 23px; margin-bottom: 6px; }
.row p { font-size: 18px; }

/* ------------------------------------------------------------------ contact band + footer (every page) */
.contact { background: var(--green-deep); color: var(--cream); }
.contact .inner { padding-block: 52px; grid-template-columns: var(--label-col) max-content max-content minmax(0, 1fr); gap: 36px 40px; }
.nw { white-space: nowrap; } /* address lines only break at commas */
.contact .label { color: var(--gold-text); border-top-color: var(--gold-text); }
.cv { display: grid; gap: 8px; align-content: start; min-width: 0; }
.cv-k { font: 500 13px/1 var(--display); letter-spacing: .14em; color: var(--gold-text); }
.cv a, .cv address { font-size: 22px; line-height: 1.3; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.cv address { font-size: 19px; color: var(--on-green); }
.cv a:hover { text-decoration: underline; text-decoration-color: var(--gold-text); text-underline-offset: 4px; }
.cv-sub { font-size: 16px; color: var(--on-green); }

.site-footer { background: var(--green); color: var(--gold-text); font-size: 15.5px; }
.site-footer .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 22px 24px; }
.ft-left { display: flex; align-items: center; gap: 14px; }
.ft-left .kmark { width: 26px; height: auto; flex: none; }
.ft-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft-links a { color: var(--gold-text); text-underline-offset: 3px; }
.ft-links a:hover { color: var(--cream); }

/* ------------------------------------------------------------------ interior page banner */
.page-banner { background: var(--green) url("/assets/img/banner-lattice-short.jpg") center / cover no-repeat; color: var(--white); }
.page-banner .inner { min-height: 190px; display: grid; align-content: end; padding-bottom: 34px; }
.page-banner h1 { font-size: clamp(38px, 4.8vw, 54px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 4px 0 0; padding: 0; }
.chips a { display: inline-block; font: 500 15px/1 var(--display); color: var(--green); text-decoration: none; border: 1px solid var(--gold); padding: 10px 14px; }
.chips a:hover { background: var(--gold); color: var(--white); }

/* ------------------------------------------------------------------ practices page */
.intro { padding-bottom: 24px; }
.intro .prose { font-size: 20px; }
.practice { padding-block: 44px; scroll-margin-top: calc(var(--header-h) + 8px); }
.practice + .practice { border-top: 1px solid var(--rule); }
.practice-grid { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr) 280px; gap: 44px; align-items: start; }
.practice-photo { border-top: 1.5px solid var(--gold); padding-top: 14px; }
.practice-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.practice-photo img.focus-creditors { object-position: 80% 50%; }
.practice-body h2 { font-size: 34px; margin-bottom: 16px; }
.practice-body .prose { font-size: 18.5px; }
.side { background: var(--cream-2); border-top: 1.5px solid var(--green); padding: 18px 20px 20px; display: grid; gap: 12px; align-content: start; font-size: 16.5px; line-height: 1.42; }
.side b { font: 500 16.5px/1.3 var(--display); }
.side .text-link { justify-self: start; font-size: 14.5px; }

/* ------------------------------------------------------------------ experience page */
.exp-intro .inner { padding-block: 48px 28px; display: grid; gap: 22px; }
.exp-intro p.lead { font-size: 20px; max-width: 70ch; }
.disclaimer { font-size: 15.5px; line-height: 1.45; font-style: italic; color: var(--sage); max-width: 80ch; }
.group { border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 8px); }
.group:nth-of-type(even) { background: var(--cream-2); }
.group .inner { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; padding-block: 44px; }
.group h2 { font-size: 30px; line-height: 1.12; margin-bottom: 12px; }
.group-head .text-link { color: var(--green); border-bottom-color: var(--gold); font-size: 15px; }
.matter-list { list-style: none; margin: 0; padding: 0; }
.matter-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 18.5px; line-height: 1.45; }
.matter-list li:first-child { padding-top: 2px; }
.matter-list li:last-child { border-bottom: 0; }
.matter-list b { font: 500 19px/1.3 var(--display); letter-spacing: .02em; }
.status { font: 500 13px/1 var(--display); letter-spacing: .12em; color: var(--gold-dark); white-space: nowrap; margin-left: 6px; }

/* ------------------------------------------------------------------ team + bio */
.btn { display: inline-block; background: var(--green); color: var(--cream); font: 500 16px/1 var(--display); letter-spacing: .05em; text-decoration: none; padding: 15px 30px; }
.btn:hover { background: var(--gold); color: var(--white); }
/* Team page: one framed card per person; two across from three people up (see the 1001px rule below). */
.people .inner { padding-block: 56px 72px; }
.cards { display: grid; gap: 28px; }
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; background: var(--cream-2); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: 28px; }
.person-photo img, .photo-ph { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.photo-ph { background: repeating-linear-gradient(135deg, var(--cream-2) 0 10px, #ebe9d8 10px 20px); }
.person h2 { font-size: 34px; margin-top: 8px; }
.person h2 a { color: inherit; text-decoration: none; }
.person h2 a:hover { color: var(--gold-dark); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 18px 0 24px; font-size: 16px; line-height: 1.45; }
.facts dt { font: 500 12.5px/1.2 var(--display); letter-spacing: .14em; color: var(--gold-dark); margin-bottom: 5px; }
.facts dd { margin: 0; }
.facts a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.facts a:hover { border-bottom-color: var(--gold); }
.person .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.person .actions .text-link { font: 500 15px/1 var(--display); letter-spacing: .05em; }
@media (min-width: 1001px) {
  .cards:has(> :nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards:has(> :nth-child(3)) .person { grid-template-columns: 150px minmax(0, 1fr); gap: 26px; padding: 24px; align-items: stretch; }
  .cards:has(> :nth-child(3)) .person-photo { align-self: start; }
  .cards:has(> :nth-child(3)) .person-body { display: flex; flex-direction: column; }
  .cards:has(> :nth-child(3)) .person h2 { font-size: 28px; }
  .cards:has(> :nth-child(3)) .facts { grid-template-columns: 1fr; gap: 12px; }
  .cards:has(> :nth-child(3)) .actions { margin-top: auto; }
}
.icon-link { display: inline-flex; width: 34px; height: 34px; color: var(--green); }
.icon-link svg { width: 100%; height: 100%; }

.bio .inner { padding-block: 56px 72px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.bio-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.bio h1 { font-size: clamp(40px, 5vw, 52px); }
.bio .role { font: 500 22px/1 var(--display); color: var(--sage); margin: 10px 0 18px; }
.bio .contact-line { font-size: 17px; color: var(--sage); margin-bottom: 26px; }
.bio .contact-line a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.bio .prose { max-width: none; }
.bio h2 { font-size: 30px; margin: 36px 0 12px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bio .matter-list li { font-size: 18px; }
.bio .text-link { display: inline-block; margin-top: 18px; }

/* ------------------------------------------------------------------ legal pages */
.legal .inner { padding-block: 56px 80px; max-width: 900px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 48px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; letter-spacing: .04em; margin-top: 18px; }
.legal p, .legal li { font-size: 18px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* ------------------------------------------------------------------ phone call bar */
.callbar { display: none; }

/* ================================================================== responsive */
@media (max-width: 1000px) {
  .practice-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .side { grid-column: 2; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3) { padding-left: 0; border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid rgba(163, 126, 73, .6); padding-top: 22px; margin-top: 10px; }
  .contact .inner { grid-template-columns: max-content max-content minmax(0, 1fr); gap: 28px 40px; }
  .contact .label { grid-column: 1 / -1; justify-self: start; padding-right: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .inner { padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .site-header .inner { gap: 16px; }
  .brand { flex: 0 1 210px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--nav-ink); cursor: pointer;
  }
  .menu-toggle svg { width: 26px; height: 26px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--gold); border-top: 1px solid rgba(17, 24, 17, .25); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter-r) 16px var(--gutter); }
  .nav a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 0; }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
  .nav a.nav-contact { border: 0; padding: 14px 0; }

  .cols, .practice-grid, .group .inner, .bio .inner { grid-template-columns: 1fr; gap: 18px; }
  .label { justify-self: start; padding-right: 40px; }
  .band { padding-block: 44px; }

  .hero { background-image: url("/assets/img/banner-lattice-mobile.jpg"); }
  .hero .inner { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; gap: 0; }
  .tagline { font-size: clamp(26px, 7.6vw, 34px); gap: 8px; padding-bottom: 28px; }
  .tagline span:nth-child(2) { padding-left: .6em; }
  .tagline span:nth-child(3) { padding-left: 1.2em; }
  .hero-inset { justify-self: center; width: min(72%, 320px); transform: translateY(40px); }
  .about { padding-top: 76px; }
  .about .prose, .intro .prose { font-size: 18.5px; }

  .tiles { grid-template-columns: 1fr; }
  .tile, .tile + .tile, .tile:nth-child(n+3) { padding: 18px 0 16px; margin-top: 0; border-left: 0; border-top: 0; border-bottom: 1px solid rgba(163, 126, 73, .6); }
  .row { grid-template-columns: 1fr; gap: 6px; }

  .practice-photo { border-top: 0; padding-top: 0; }
  .practice-photo img { aspect-ratio: 16 / 9; }
  .side { grid-column: auto; }

  .contact .inner { grid-template-columns: 1fr; gap: 22px; padding-bottom: 96px; }
  .site-footer .inner { flex-direction: column; align-items: flex-start; padding-bottom: 90px; }

  .person { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .person-photo { max-width: 220px; }
  .bio-photo { position: static; max-width: 260px; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--green); border-top: 1px solid rgba(163, 126, 73, .6);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; color: var(--cream); text-decoration: none; font: 500 17px/1 var(--display); letter-spacing: .04em; }
  .callbar a + a { border-left: 1px solid rgba(163, 126, 73, .6); }
  .callbar svg { width: 20px; height: 20px; color: var(--gold-text); }
}

/* Justified text needs a wide line. On phones it opens large gaps between
   words, so narrow screens use ragged-right text (as the Wix mobile site did).
   Delete this block to justify on phones too. */
@media (max-width: 600px) {
  .justify p, p.justify, .justify li { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .callbar, .hero, .page-banner { display: none; }
  body { background: #fff; color: #000; }
}

@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 14px; } }
