:root {
  --ink: #182235;
  --text: #303642;
  --muted: #6d7280;
  --line: rgba(24, 34, 53, 0.16);
  --paper: #fffdf9;
  --mist: #f3efe7;
  --navy: #071a30;
  --brass: #a4773e;
  --shadow: 0 22px 55px rgba(16, 28, 47, 0.14);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--mist);
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: linear-gradient(180deg, #ffffff 0, var(--mist) 58%, #ece5d9 100%);
}

a {
  color: var(--ink);
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: #000000;
}

:where(a:any-link, summary):focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding: 16px 56px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(24, 34, 53, 0.1);
  box-shadow: 0 8px 28px rgba(15, 28, 45, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 190px;
  height: auto;
}

.desktop-nav {
  flex: 1 1 auto;
}

.nav-menu {
  display: none;
}

.menu-button {
  display: none;
  cursor: pointer;
  list-style: none;
}

.menu-button::-webkit-details-marker {
  display: none;
}

.menu-button::marker {
  content: "";
}

.site-nav {
  font-size: 0.88rem;
}

.site-nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--brass);
}

.site-nav .subnav {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 30;
  min-width: 250px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 35px rgba(16, 28, 47, 0.15);
}

.site-nav .subnav a {
  padding: 9px 10px;
  border-bottom: 0;
}

.site-nav li:hover > .subnav,
.site-nav li:focus-within > .subnav {
  display: block;
}

.site-main {
  width: min(100% - 32px, var(--max-width));
  margin: 44px auto 64px;
}

.content-card {
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: 48px;
}

.page-home .site-main {
  width: 100%;
  margin: 0;
}

.page-home .content-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero {
  min-height: 500px;
  display: grid;
  align-items: center;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(5, 18, 34, 0.94) 0%, rgba(7, 26, 48, 0.78) 38%, rgba(7, 26, 48, 0.24) 70%),
    url("../img/bridge-authority.jpg");
  background-position: center 43%;
  background-size: cover;
}

.hero-inner {
  width: min(100% - 64px, var(--max-width));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #d6ad73;
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: 3.25rem;
}

h2 {
  margin-top: 1.35em;
  font-size: 2rem;
}

h3 {
  margin-top: 1.15em;
  font-size: 1.35rem;
}

.hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: 3.9rem;
}

p {
  margin: 0 0 1.05em;
  text-wrap: pretty;
}

.hero-copy {
  font-size: 1.25rem;
  line-height: 1.55;
}

.hero-copy {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
}

.section-shell {
  width: min(100% - 64px, var(--max-width));
  margin: 0 auto;
  padding: 50px 0;
}

.home-overview {
  display: block;
}

.overview-copy {
  max-width: 820px;
}

.overview-copy h2,
.section-header h2 {
  margin-top: 0;
}

.section-divider {
  border-top: 1px solid var(--line);
}

.section-header {
  max-width: 720px;
  margin-bottom: 22px;
}

.practice-preview-list,
.practice-list,
.client-list,
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 38px;
}

.practice-preview-list li,
.practice-list li,
.client-list li,
.link-list li {
  border-bottom: 1px solid rgba(24, 34, 53, 0.14);
}

.practice-preview-list li,
.practice-list span,
.client-list span,
.link-list a {
  display: block;
  padding: 12px 0;
}

.practice-list,
.client-list {
  columns: 2;
  column-gap: 44px;
}

.practice-list li,
.client-list li {
  break-inside: avoid;
}

.attorney-preview-list,
.attorney-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.attorney-preview-link,
.attorney-card {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 34, 53, 0.16);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.attorney-preview-link:hover,
.attorney-preview-link:focus-visible,
.attorney-card:hover,
.attorney-card:focus-visible {
  background: #ffffff;
  border-color: rgba(164, 119, 62, 0.58);
}

.attorney-preview-link strong,
.attorney-card strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: normal;
  line-height: 1.25;
}

.attorney-preview-link span,
.attorney-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.text-link {
  margin-top: 8px;
  color: var(--brass) !important;
  font-weight: 700;
}

.attorney-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.attorney-card img,
.profile-photo {
  display: block;
  width: 142px;
  height: auto;
  margin-bottom: 16px;
  border: 1px solid rgba(24, 34, 53, 0.18);
}

.profile-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.profile-photo {
  width: 170px;
  margin: 0;
}

.page-attorney-detail .site-main {
  width: min(100% - 32px, 1120px);
}

.page-attorney-detail .content-card {
  padding: clamp(38px, 5vw, 76px);
}

.profile-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 58px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.profile-heading h1 {
  margin-bottom: 0.25em;
}

.page-attorney-detail .profile-layout {
  grid-template-columns: minmax(150px, 220px) minmax(0, 72ch);
  gap: clamp(42px, 7vw, 86px);
}

.profile-media {
  padding-top: 4px;
}

.page-attorney-detail .profile-photo {
  width: min(100%, 190px);
}

.profile-copy {
  max-width: 72ch;
}

.profile-section + .profile-section {
  margin-top: clamp(42px, 6vw, 68px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.profile-section h2 {
  margin-top: 0;
  margin-bottom: 0.72em;
}

.profile-section p {
  margin-bottom: 1.28em;
}

.email-line {
  margin: -0.2em 0 1.6em;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a0a4ad;
}

.rule {
  height: 1px;
  margin: 30px 0;
  background: var(--line);
}

.office-panel {
  color: rgba(255, 255, 255, 0.86);
  background-image:
    linear-gradient(90deg, rgba(7, 26, 48, 0.94), rgba(7, 26, 48, 0.82)),
    url("../img/office-clocktower.jpg");
  background-position: center 48%;
  background-size: cover;
}

.page-home .office-panel {
  margin-top: 0;
}

.office-panel-inner {
  width: min(100% - 64px, var(--max-width));
  margin: 0 auto;
  padding: 42px 0;
}

.office-panel h2 {
  margin-top: 0;
  color: #ffffff;
}

.office-panel address {
  margin: 0 0 1em;
  font-style: normal;
}

.office-panel a {
  color: #ffffff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  padding: 8px 12px;
  background: #000000;
  color: #ffffff;
}

.skip-link:focus {
  left: 10px;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 960px) {
  .site-header {
    padding: 14px 24px;
  }

  .brand img {
    width: 168px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .menu-button {
    display: block;
    padding: 9px 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: #ffffff;
  }

  .nav-menu:not([open]) > .site-nav {
    display: none;
  }

  .nav-menu[open] {
    position: absolute;
    right: 24px;
    top: 20px;
    width: min(320px, calc(100dvw - 48px));
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-menu[open] > .menu-button {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu[open] > .site-nav {
    display: block;
    padding: 8px;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav a {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(24, 34, 53, 0.1);
  }

  .site-nav .subnav {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero {
    min-height: 460px;
    background-position: center 42%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .practice-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .site-main {
    width: calc(100% - 24px);
    margin-top: 24px;
  }

  .page-home .site-main {
    width: 100%;
    margin-top: 0;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand img {
    width: 150px;
  }

  .hero {
    min-height: 430px;
    background-image:
      linear-gradient(180deg, rgba(5, 18, 34, 0.96), rgba(7, 26, 48, 0.62)),
      url("../img/bridge-authority.jpg");
  }

  .hero-inner,
  .section-shell,
  .office-panel-inner {
    width: calc(100% - 36px);
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .content-card {
    padding: 28px 22px;
  }

  .section-shell {
    padding: 38px 0;
  }

  .practice-preview-list,
  .attorney-preview-list,
  .practice-list,
  .client-list {
    display: block;
    columns: 1;
  }

  .attorney-preview-link + .attorney-preview-link {
    margin-top: 14px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .page-attorney-detail .profile-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .profile-heading {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .profile-section + .profile-section {
    margin-top: 34px;
    padding-top: 28px;
  }
}

@media print {
  body {
    color: #000000;
    background: #ffffff;
  }

  .site-header,
  .content-card,
  .office-panel {
    box-shadow: none;
  }

  .site-nav,
  .menu-button,
  .nav-menu {
    display: none;
  }
}

@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;
  }
}
