@font-face {
  font-family: "Libre Caslon Text";
  src: url("fonts/libre-caslon-normal400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("fonts/libre-caslon-italic400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("fonts/libre-caslon-normal700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --ink-2: #3b3b38;
  --ink-3: #62625c;
  --paper: #ffffff;
  --paper-2: #f9f9f9;
  --graphite: #252525;
  --green: #257e00;
  --green-dark: #1d6600;
  --green-tint: #eef5ea;
  --rule: #e4e4df;

  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px -12px rgb(0 0 0 / 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 2rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); }
p { margin: 0 0 1.1em; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
.skip:hover { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font: 600 1rem/1 var(--sans);
  color: #fff; background: var(--green);
  border: 1px solid var(--green); border-radius: var(--radius);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { color: #fff; background: var(--green-dark); border-color: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.55); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: #c8c8c1; }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { padding: 0.7rem 1.1rem; font-size: 0.9375rem; }

.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; padding-block: 1.5rem; }
.logo { display: block; flex: none; }
.logo img { height: 3.25rem; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  color: rgb(255 255 255 / 0.86); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding-block: 0.4rem; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav ul a:hover { color: #fff; border-bottom-color: rgb(255 255 255 / 0.5); }
.nav ul a[aria-current="page"] { color: #fff; border-bottom-color: var(--green); }

.menu, .call-sm { display: none; }
.site-header :focus-visible, .site-footer :focus-visible, .helpbox :focus-visible, .contact-card :focus-visible,
.hero :focus-visible, .page-hero :focus-visible, .cta :focus-visible, .card--cta :focus-visible { outline-color: #fff; }
.facts > :last-child:nth-child(even) { grid-column: 1 / -1; }

/* ---------- Heroes ---------- */

.hero {
  position: relative; isolation: isolate;
  color: #fff; background: var(--graphite);
  min-height: min(52rem, 92svh);
  display: flex; align-items: center;
  padding-block: 9rem 10rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(11 11 11 / 0.9) 0%, rgb(11 11 11 / 0.72) 45%, rgb(11 11 11 / 0.3) 100%),
    linear-gradient(0deg, rgb(11 11 11 / 0.55), transparent 40%);
}
.hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.04; max-width: 13ch; }
.hero .lede {
  margin: 1.75rem 0 2.5rem; max-width: 34rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: rgb(255 255 255 / 0.86);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__bg img { animation: settle 2.4s var(--ease) both; }
  .hero .wrap > * { animation: rise 1s var(--ease) both; }
  .hero .wrap > :nth-child(2) { animation-delay: 0.1s; }
  .hero .wrap > :nth-child(3) { animation-delay: 0.2s; }
}
@keyframes settle { from { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.page-hero {
  position: relative; isolation: isolate;
  color: #fff; background: var(--graphite);
  padding-block: 11rem 5rem;
}
.page-hero .hero__bg::after { background: linear-gradient(90deg, rgb(11 11 11 / 0.88), rgb(11 11 11 / 0.6)); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero p { margin: 1.25rem 0 0; max-width: 40rem; font-size: 1.1875rem; line-height: 1.55; color: rgb(255 255 255 / 0.85); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); }
.section-head p { margin: 1rem 0 0; color: var(--ink-2); font-size: 1.125rem; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; flex-wrap: wrap; }
.section-head--row > div { max-width: 42rem; }

/* ---------- Practice cards ---------- */

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
}
.cards--lift { position: relative; z-index: 2; margin-top: -6rem; }
.card {
  display: flex; flex-direction: column;
  padding: 2rem 2rem 1.75rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s;
}
.card:hover { color: var(--ink); transform: translateY(-3px); border-color: #d2d2cb; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 22px 40px -16px rgb(0 0 0 / 0.24); }
.card h3 { font-size: 1.625rem; margin-bottom: 0.75rem; }
.card p { color: var(--ink-2); margin-bottom: 1.5rem; }
.card .more { margin-top: auto; color: var(--green); }
.card:hover .more { text-decoration: underline; }
.card--cta { background: var(--green); border-color: var(--green); color: #fff; }
.card--cta:hover { color: #fff; border-color: var(--green-dark); background: var(--green-dark); }
.card--cta p { color: #fff; }
.card--cta .actions { margin-top: auto; }
.card--cta:hover { transform: none; background: var(--green); border-color: var(--green); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.kw { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }
.card .kw { margin: -0.75rem 0 1.5rem; }
.facts-line { margin: 2rem 0 0; font-size: 0.9375rem; color: rgb(255 255 255 / 0.75); }

/* ---------- Welcome ---------- */

.welcome { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.welcome h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); margin-bottom: 1.5rem; }
.welcome .prose { font-size: 1.125rem; color: var(--ink-2); max-width: 40rem; }

.glance {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 2rem;
}
.glance h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.glance dl { margin: 0; }
.glance div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.glance dt { font-weight: 600; font-size: 0.9375rem; color: var(--ink-3); }
.glance dd { margin: 0; }

/* ---------- Attorneys ---------- */

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.person {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.person figure { margin: 0; background: var(--paper-2); }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person > div { padding: 1.75rem 1.75rem 1.5rem; display: flex; flex-direction: column; }
.person h3 { font-size: 1.625rem; }
.person .role { margin: 0.35rem 0 1rem; color: var(--green); font-weight: 600; font-size: 0.9375rem; }
.person p { color: var(--ink-2); font-size: 1rem; }
.person .more { margin-top: auto; }

/* ---------- CTA band ---------- */

.cta {
  position: relative; isolation: isolate; color: #fff; background: var(--graphite);
  padding-block: clamp(5rem, 10vw, 7.5rem);
}
.cta .hero__bg::after { background: linear-gradient(90deg, rgb(11 11 11 / 0.9), rgb(11 11 11 / 0.65)); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.cta p { margin: 1rem 0 0; max-width: 36rem; font-size: 1.125rem; color: rgb(255 255 255 / 0.85); }

/* ---------- Bios (Our Firm) ---------- */

.bio {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2.5rem clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.bio + .bio { border-top: 1px solid var(--rule); }
.bio__photo { position: sticky; top: 2rem; align-self: start; }
.bio__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.bio h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.bio .role { margin: 0.5rem 0 1.75rem; color: var(--green); font-weight: 600; font-size: 1.0625rem; }
.bio .prose { font-size: 1.125rem; color: var(--ink-2); max-width: 44rem; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2.5rem 0 0; }
.facts > div { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.5rem 1.4rem; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.6rem; }
.facts dd { margin: 0; }
.facts ul { margin: 0; padding: 0 0 0 1.1rem; color: var(--ink-2); }
.facts li::marker { color: var(--green); }
.facts li + li { margin-top: 0.2rem; }
.facts .wide ul { columns: 2; column-gap: 2rem; }
.facts .wide li { break-inside: avoid; }

/* ---------- Practice Areas page ---------- */

.areas { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.area { padding-block: 0 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.area:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.area h2 { font-size: clamp(1.875rem, 3vw, 2.375rem); margin-bottom: 1.25rem; }
.area p { color: var(--ink-2); font-size: 1.125rem; max-width: 40rem; }
.area .kw { font-size: 1rem; color: var(--green); font-weight: 600; margin: -0.5rem 0 1.25rem; }
.area .actions { margin-top: 1.75rem; }
.area:target h2 { color: var(--green); }

.aside { position: sticky; top: 2rem; display: grid; gap: 1.25rem; }
.aside nav { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.aside nav h2 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.aside nav ul { list-style: none; margin: 0; padding: 0; }
.aside nav a { display: block; padding: 0.45rem 0; color: var(--ink-2); text-decoration: none; border-top: 1px solid var(--rule); }
.aside nav li:first-child a { border-top: 0; }
.aside nav a:hover { color: var(--green); }
.helpbox { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.helpbox h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.helpbox p { color: rgb(255 255 255 / 0.8); font-size: 1rem; margin-bottom: 1.25rem; }
.helpbox .btn { width: 100%; }
.helpbox .btn + .btn { margin-top: 0.625rem; }

/* ---------- Contact page ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact-card { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 2.25rem 2rem; }
.contact-card h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.contact-card dl { margin: 0; }
.contact-card div { padding: 1rem 0; border-top: 1px solid rgb(255 255 255 / 0.14); }
.contact-card dt { font-size: 0.875rem; font-weight: 600; color: rgb(255 255 255 / 0.6); margin-bottom: 0.25rem; }
.contact-card dd { margin: 0; }
.contact-card dd a { color: #fff; font-size: 1.375rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-card dd a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.contact-card .note { color: rgb(255 255 255 / 0.85); }
.contact-card dd a.addr { font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }

.ways { display: grid; gap: 1.5rem; }
.way { border: 1px solid var(--rule); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.way h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.way p { color: var(--ink-2); }
.way .actions { margin-top: 1.5rem; }

.photo-band { height: clamp(14rem, 36vw, 30rem); overflow: hidden; background: var(--graphite); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */

.site-footer { background: var(--graphite); color: rgb(255 255 255 / 0.78); font-size: 0.975rem; }
.site-footer .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2.5rem 3rem; padding-block: 4rem 2.5rem;
}
.site-footer .logo img { height: 7rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: rgb(255 255 255 / 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .tel { color: #fff; font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.site-footer .fine {
  grid-column: 1 / -1; margin: 0.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12); color: rgb(255 255 255 / 0.6); font-size: 0.875rem;
}
.site-footer ::selection { background: #fff; color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav, .nav ul { gap: 1.25rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: 1fr; }
  .welcome, .areas, .contact { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr; order: -1; }
  .aside nav { border: 0; padding: 0; }
  .aside nav h2 { display: none; }
  .aside nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .aside nav a, .aside nav li:first-child a { border: 1px solid var(--rule); border-radius: 999px; padding: 0.55rem 1rem; color: var(--ink); font-weight: 500; }
  .aside nav a:hover { border-color: var(--green); }
  .helpbox { display: none; }
}

@media (max-width: 860px) {
  .site-header .wrap { padding-block: 1rem; }
  .logo img { height: 2.75rem; }
  .nav { display: none; }
  .call-sm { display: inline-flex; margin-left: auto; }
  .menu { display: block; position: relative; margin-left: 0.5rem; }
  .menu summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1rem; border: 1px solid rgb(255 255 255 / 0.45); border-radius: var(--radius);
    font-weight: 600; color: #fff;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 1.1rem; height: 1.1rem; }
  .menu[open] summary { background: #fff; color: var(--ink); border-color: #fff; }
  .menu .panel {
    position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(18rem, calc(100vw - 2 * var(--gutter)));
    background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.4);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .menu ul { list-style: none; margin: 0 0 1rem; padding: 0; }
  .menu ul a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 500; }
  .menu ul a[aria-current="page"] { color: var(--green); font-weight: 600; }
  .menu .btn { width: 100%; }

  .hero { padding-block: 8rem 8rem; min-height: 0; }
  .hero__bg::after { background: linear-gradient(0deg, rgb(11 11 11 / 0.9), rgb(11 11 11 / 0.6)); }
  .cta .wrap { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio__photo { position: static; max-width: 20rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .cards, .facts { grid-template-columns: 1fr; }
  .cards--lift { margin-top: -4rem; }
  .card { padding: 1.5rem; }
  .card .kw { display: none; }
  .facts .wide ul { columns: 1; }
  .person { grid-template-columns: 1fr; }
  .person figure { aspect-ratio: 4 / 3; }
  .person img { object-position: 50% 25%; }
  .aside { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .glance div { grid-template-columns: 1fr; gap: 0.15rem; }
}
.section--flush { padding-top: 0; }

@media (max-width: 480px) {
  .site-header .wrap { gap: 0.75rem; }
  .logo img { height: 2.1rem; }
  .call-sm, .menu summary { padding: 0.6rem 0.8rem; }
}
@media (max-width: 360px) {
  .menu summary { font-size: 0; gap: 0; }
}

.site-footer .social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.site-footer .social a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}
.site-footer .social a:hover { background: var(--green); border-color: var(--green); }
.site-footer .social svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 640px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}
