:root {
  --bg:              #ffffff;
  --bg-cream:        #f8f5f0;
  --text:            #1f2020;
  --text-muted:      #7a7566;
  --link:            #325d88;
  --link-hover:      #244363;
  --link-visited:    #4a5d7a;
  --rule:            #dfd7ca;
  --rule-strong:     #c3b99f;
  --header-bg:       #3e3f3a;
  --header-text:     #ffffff;
  --focus:           #3e3f3a;

  --font-serif:      "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:       "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure:         760px;
  --measure-wide:    1040px;
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.65rem; margin-top: 2em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; }

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-skip-ink: auto;
  transition: color 150ms ease;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 1px;
}

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

ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}

/* Masthead */
.masthead {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}

.masthead__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
}

.masthead__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
  line-height: 1.15;
}

.masthead__name a,
.masthead__name a:visited {
  color: var(--header-text);
  text-decoration: none;
}

.masthead__name a:hover {
  color: var(--header-text);
}

.masthead__credentials {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* Site nav */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0 1.5rem;
}

.site-nav__list {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.site-nav__item {
  margin: 0;
}

.site-nav__item a {
  display: inline-block;
  padding: 0.95rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 150ms ease, border-color 150ms ease;
}

.site-nav__item a:hover {
  color: var(--text);
  border-bottom-color: var(--rule-strong);
}

.site-nav__item--active a,
.site-nav__item--active a:hover {
  border-bottom-color: var(--header-bg);
  color: var(--text);
}

.site-nav__item a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  border-radius: 1px;
}

/* Page container */
.page {
  flex: 1;
  padding: 3rem 1.5rem 4rem;
}

.page__inner {
  max-width: var(--measure);
  margin: 0 auto;
}

/* Welcome (index) */
.welcome {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 2rem;
  align-items: start;
}

.welcome__photo {
  border: 1px solid var(--rule);
}

.welcome__intro p:first-child {
  margin-top: 0;
}

/* Section */
.section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.section__title {
  margin-top: 0;
}

/* Credentials block (professional background) */
.credentials {
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.credentials__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.credentials p {
  margin-bottom: 0.4rem;
  color: var(--text);
}

/* Two-column lists (practice areas) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.two-col__heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}

/* Articles listing */
.articles-group {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.articles-group:first-of-type {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
}

.articles-group__heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.article {
  margin-bottom: 1rem;
  line-height: 1.55;
}

.article:last-child {
  margin-bottom: 0;
}

/* Contact tiles */
.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.office {
  background: var(--bg-cream);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.75rem;
}

.office__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.office p {
  margin-bottom: 0.3rem;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.office p:last-child {
  margin-bottom: 0;
}

/* Contact block (non-cream, on index) */
.contact-block p {
  margin-bottom: 0.3rem;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

/* Footer (cream strip: contact summary + copyright) */
.site-footer {
  background: var(--bg-cream);
  border-top: 1px solid var(--rule);
  padding: 1.5rem 1.5rem 1.75rem;
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  text-align: center;
}

.site-footer__contact {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.site-footer__contact strong {
  font-weight: 600;
}

.site-footer__sep {
  color: var(--rule-strong);
  margin: 0 0.5em;
}

.site-footer__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile */
@media (max-width: 760px) {
  html {
    font-size: 16px;
  }

  .masthead {
    padding: 1.25rem 1rem 1rem;
  }

  .masthead__name {
    font-size: 1.45rem;
  }

  .masthead__credentials {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .site-nav {
    padding: 0 0.5rem;
  }

  .site-nav__item a {
    padding: 0.7rem 0.75rem;
    font-size: 0.88rem;
  }

  .page {
    padding: 2rem 1.25rem 2.5rem;
  }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }

  .welcome {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .welcome__photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .offices,
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .site-footer {
    padding: 1.25rem 1rem 1.5rem;
    margin-top: 3rem;
  }

  .site-footer__sep {
    display: inline-block;
    margin: 0 0.35em;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Print */
@media print {
  .site-nav,
  .masthead {
    background: #fff !important;
    color: #000 !important;
    border: 0;
    border-bottom: 1px solid #000;
  }

  .masthead__name a,
  .masthead__credentials {
    color: #000 !important;
  }

  .site-footer {
    background: #fff !important;
    border-top: 1px solid #000;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .office {
    background: #fff !important;
    border: 1px solid #000;
  }
}
