:root {
  --cream: #f7f4ee;
  --paper: #fffdf8;
  --green: #1e3a2f;
  --green-light: #355a4a;
  --gold: #b08d3e;
  --gold-dark: #806522;
  --ink: #20231f;
  --muted: #686b64;
  --line: #cfc8bb;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", Arial, sans-serif;
  --container: 1160px;
  --section-space: clamp(4.75rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip; /* avoid body becoming a scroll container (Safari scroll clamp) */
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--green);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.masthead {
  padding-top: 1.25rem;
  background: var(--cream);
}

.masthead-inner {
  padding-block: 0.75rem 1.4rem;
  border-top: 3px double var(--green);
  border-bottom: 3px double var(--green);
  text-align: center;
}

.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wordmark {
  display: block;
  width: fit-content;
  margin: 1.1rem auto 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 12vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-decoration: none;
}

.wordmark span {
  color: var(--gold-dark);
  font-style: italic;
  font-weight: 600;
}

.masthead-tagline {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.site-nav a {
  padding: 0.4rem 0;
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.intro {
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  gap: 3rem;
}

.issue-label,
.editorial-heading > p {
  margin: 0 0 1rem;
  color: var(--gold-dark);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 11ch;
  margin: 0 auto;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 11vw, 6.3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-align: center;
}

.intro h1 em {
  color: var(--gold-dark);
  font-weight: 600;
}

.intro-copy {
  max-width: 44rem;
  margin-inline: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--green);
}

.intro-copy p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.intro-copy .dropcap {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
}

.dropcap::first-letter {
  float: left;
  margin: 0.05em 0.08em 0 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 3.7em;
  font-weight: 700;
  line-height: 0.78;
}

.editorial-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
}

.practice {
  background: var(--paper);
}

.editorial-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: clamp(2.8rem, 7vw, 5rem);
  text-align: center;
}

.editorial-heading > p {
  margin: 0;
}

.editorial-heading h2,
.office-copy h2,
.contact-card h2 {
  max-width: 13ch;
  margin: 0 auto;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.practice-list {
  border-top: 2px solid var(--green);
}

.practice-list article {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.8rem 1rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.practice-list article > span {
  padding-top: 0.3rem;
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.practice-list h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.practice-list p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.practice-list a {
  grid-column: 2;
  width: fit-content;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 600;
}

.pull-quote {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: var(--green);
  color: var(--paper);
  text-align: center;
}

.pull-quote blockquote {
  max-width: 20ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4.8rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.pull-quote p {
  margin: 2rem 0 0;
  color: #d7d8cf;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stats-section {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.stats-inline {
  display: grid;
}

.stats-inline > div {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.stats-inline > div:last-child {
  border-bottom: 0;
}

.stat-number {
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 11vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stats-inline > div > span:last-child {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.attorneys {
  background: var(--cream);
}

.attorney-grid {
  display: grid;
  gap: 1rem;
}

.attorney-card {
  display: flex;
  min-width: 0;
  min-height: 33rem;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}

.portrait {
  position: relative;
  height: 20rem;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(176, 141, 62, 0.18), transparent 48%),
    #d8d6cd;
}

.portrait::before {
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgba(30, 58, 47, 0.2);
  content: "";
}

.portrait::after {
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(30, 58, 47, 0.25);
  border-radius: 50%;
  content: "";
}

.portrait-head {
  position: absolute;
  z-index: 2;
  top: 4.3rem;
  left: 50%;
  width: 5rem;
  height: 6.2rem;
  border-radius: 48% 48% 45% 45%;
  background: #a99b88;
  transform: translateX(-50%);
}

.portrait-head::before {
  position: absolute;
  inset: -0.45rem -0.15rem 42%;
  border-radius: 50% 50% 35% 35%;
  background: var(--green);
  content: "";
}

.portrait-body {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  width: 14rem;
  height: 10rem;
  border-radius: 50% 50% 0 0;
  background: var(--green);
  transform: translateX(-50%);
}

.portrait-body::after {
  position: absolute;
  inset: 0 40% auto;
  height: 8rem;
  background: #ede7da;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 28% 100%);
  content: "";
}

.portrait--two {
  background:
    linear-gradient(155deg, rgba(30, 58, 47, 0.16), transparent 50%),
    #d6cab8;
}

.portrait--two .portrait-head {
  width: 5.4rem;
}

.portrait--two .portrait-head::before {
  inset: -0.25rem -0.25rem 55%;
  border-radius: 45% 45% 30% 30%;
  background: #262722;
}

.portrait--two .portrait-body {
  background: #303933;
}

.portrait--three {
  background:
    linear-gradient(140deg, rgba(176, 141, 62, 0.24), transparent 55%),
    #d7d1c2;
}

.portrait--three .portrait-head::before {
  inset: -0.5rem -0.7rem 25%;
  border-radius: 50% 50% 40% 40%;
  background: #40362e;
}

.portrait--three .portrait-body {
  background: var(--gold-dark);
}

.attorney-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.attorney-info > p:first-child {
  margin: 0 0 0.4rem;
  color: var(--gold-dark);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.attorney-info h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.attorney-info > p:nth-of-type(2) {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.attorney-info a {
  width: fit-content;
  margin-top: auto;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 600;
}

.office-feature {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.office-frame {
  display: grid;
  gap: 2.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--green);
  outline: 1px solid var(--line);
  outline-offset: -0.55rem;
}

.office-photo {
  position: relative;
  min-width: 0;
}

.office-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 38% 55%;
}

.office-photo > span {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.45rem 0.65rem;
  background: var(--paper);
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.office-copy {
  align-self: center;
  text-align: center;
}

.office-copy h2 {
  max-width: 10ch;
}

.office-copy > p:not(.issue-label) {
  max-width: 31rem;
  margin: 1.3rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.office-copy address {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  color: var(--green);
  font-size: 0.72rem;
  font-style: normal;
}

.contact {
  background: var(--cream);
}

.contact-card {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 6vw, 4rem);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1.5rem 4rem rgba(30, 58, 47, 0.08);
}

.contact-card header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.contact-card header > h2 + p {
  max-width: 31rem;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.fee-note {
  display: grid;
  max-width: 23rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 1rem;
  align-items: baseline;
  margin: 1.8rem auto 0;
  padding-block: 0.8rem;
  border-block: 3px double var(--line);
  color: var(--green);
  text-align: left;
}

.fee-note span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fee-note strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.fee-note small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.62rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aaa496;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.7rem 0.15rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold-dark);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.contact-card button {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 0;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.form-status {
  min-height: 1.7em;
  margin: 0.8rem 0 0;
  color: var(--gold-dark);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer {
  padding-block: 1.4rem;
  border-top: 3px double var(--green);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  text-align: center;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
}

@media (min-width: 620px) {
  .stats-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-inline > div {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .stats-inline > div:last-child {
    border-right: 0;
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .intro-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }

  .intro h1 {
    margin: 0;
    text-align: left;
  }

  .intro-copy {
    margin: 2.5rem 0 0;
    columns: 2;
    column-gap: 2rem;
  }

  .intro-copy .editorial-link {
    column-span: all;
  }

  .practice-list article {
    grid-template-columns: 3rem minmax(12rem, 0.75fr) minmax(16rem, 1.25fr) auto;
    gap: 2rem;
    align-items: center;
    min-height: 8.5rem;
  }

  .practice-list p,
  .practice-list a {
    grid-column: auto;
  }

  .attorney-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .office-frame {
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }

  .footer-inner {
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1000px) {
  .masthead {
    padding-top: 1.8rem;
  }

  .masthead-meta {
    justify-content: space-between;
  }

  .site-nav {
    gap: 2.6rem;
  }

  .intro-copy {
    margin-top: 3.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .site-nav a,
  .editorial-link,
  .practice-list a,
  .attorney-info a,
  .attorney-card,
  .contact-card button {
    transition:
      color 180ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      transform 180ms ease;
  }

  .site-nav a:hover,
  .editorial-link:hover,
  .practice-list a:hover,
  .attorney-info a:hover {
    color: var(--gold-dark);
  }

  .attorney-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
  }

  .contact-card button:hover {
    background: var(--gold-dark);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Standard: back-to-top button with scroll-progress ring */
.btt-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, 0.85); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btt-button.btt-visible { opacity: 1; visibility: visible; transform: none; }
.btt-button:focus-visible { outline: 3px solid #b08d3e; outline-offset: 3px; }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-ring circle { fill: none; stroke-width: 3; }
.btt-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.btt-ring-fill { stroke: #b08d3e; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; stroke-linecap: round; }
.btt-arrow { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .btt-button { transition: none; } }
