@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap");

:root {
  --rr-paper: #f6f2e9;
  --rr-paper-deep: #e8dfcf;
  --rr-ink: #17223a;
  --rr-lead: #40495a;
  --rr-stone: #626878;
  --rr-rule: rgba(30, 58, 110, 0.2);
  --rr-rule-strong: rgba(30, 58, 110, 0.46);
  --rr-seal: #1e3a6e;
  --rr-seal-dark: #14284f;
  --rr-focus: #0a5fc7;
  --rr-page: min(1180px, calc(100vw - 48px));
  color-scheme: light;
}

html[data-theme="dark"] {
  --rr-paper: #0f1b31;
  --rr-paper-deep: #0a1427;
  --rr-ink: #f5f0e6;
  --rr-lead: #d7dfed;
  --rr-stone: #aebbd0;
  --rr-rule: rgba(192, 211, 239, 0.2);
  --rr-rule-strong: rgba(192, 211, 239, 0.46);
  --rr-seal: #a9c7ee;
  --rr-seal-dark: #d6e5f8;
  --rr-focus: #b9d7ff;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body.practice-site {
  margin: 0;
  color: var(--rr-ink);
  background: var(--rr-paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

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

.practice-site a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--rr-seal-dark);
  color: var(--rr-paper) !important;
  transform: translateY(-150%);
}

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

.practice-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rr-rule);
  background: color-mix(in srgb, var(--rr-paper) 96%, transparent);
  backdrop-filter: blur(8px);
}

.practice-nav__inner {
  width: var(--rr-page);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.practice-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--rr-ink);
  text-decoration: none;
}

.practice-brand__mark {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
}

.practice-wordmark {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.practice-brand:hover .practice-wordmark {
  color: var(--rr-seal);
}

.practice-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.practice-nav__links a,
.practice-theme {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--rr-lead);
  font: 500 0.78rem/1 "Inter", sans-serif;
  text-decoration: none;
}

.practice-nav__links a {
  position: relative;
}

.practice-nav__links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: var(--rr-seal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-nav__links a:hover,
.practice-nav__links a[aria-current="page"],
.practice-theme:hover {
  color: var(--rr-seal);
}

.practice-nav__links a:hover::after,
.practice-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.practice-nav__email {
  color: var(--rr-seal) !important;
  font-weight: 600 !important;
}

.practice-theme {
  min-width: 44px;
  justify-content: center;
  cursor: pointer;
}

.practice-theme::before {
  content: "◐";
  font-size: 1rem;
}

.practice-mobile-nav {
  position: relative;
  display: none;
}

.practice-mobile-nav summary {
  min-width: 56px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rr-lead);
  cursor: pointer;
  font: 500 0.78rem/1 "Inter", sans-serif;
  list-style: none;
}

.practice-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.practice-mobile-nav summary:hover,
.practice-mobile-nav[open] summary {
  color: var(--rr-seal);
}

.practice-mobile-nav__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: min(240px, calc(100vw - 32px));
  padding: 8px 16px;
  display: grid;
  border: 1px solid var(--rr-rule-strong);
  background: var(--rr-paper);
  box-shadow: 0 8px 8px rgba(20, 40, 79, 0.08);
}

.practice-mobile-nav__panel a {
  min-height: 48px;
  border-bottom: 1px solid var(--rr-rule);
}

.practice-mobile-nav__panel a:last-child {
  border-bottom: 0;
}

.practice-main {
  width: var(--rr-page);
  margin: 0 auto;
}

.practice-hero {
  position: relative;
  min-height: min(790px, calc(100svh - 79px));
  padding: clamp(76px, 11vh, 112px) 0 34px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  justify-items: center;
  gap: clamp(56px, 9vh, 86px);
  overflow: clip;
  isolation: isolate;
  border-bottom: 1px solid var(--rr-rule-strong);
}

.practice-hero > :not(.practice-hero__ornament) {
  position: relative;
  z-index: 1;
}

.practice-hero > div:first-of-type {
  width: min(760px, 78vw);
  text-align: center;
}

.practice-hero__ornament {
  position: absolute;
  inset: 18px auto auto 50%;
  z-index: 0;
  width: max(1180px, 100vw);
  max-width: none;
  height: calc(100% - 18px);
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.86;
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%);
}

html[data-theme="dark"] .practice-hero__ornament {
  opacity: 0.52;
  filter: saturate(0.76) brightness(1.16);
}

.practice-hero__edition {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(28px, 5vh, 44px);
  color: var(--rr-seal);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.practice-hero__edition::before,
.practice-hero__edition::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--rr-seal);
}

.practice-hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  font-family: "Newsreader", "Source Serif 4", Georgia, serif;
  font-size: clamp(3.4rem, 7.4vw, 5.7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.practice-hero__deck {
  max-width: 48ch;
  margin: clamp(28px, 5vh, 42px) auto 0;
  color: var(--rr-lead);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.12rem, 1.8vw, 1.34rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.practice-hero__aside {
  width: min(920px, 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--rr-rule-strong);
  border-bottom: 1px solid var(--rr-rule);
  background: var(--rr-paper);
}

.practice-hero__aside p {
  margin: 0;
  color: var(--rr-lead);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.practice-hero__aside strong {
  color: var(--rr-ink);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.practice-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--rr-seal-dark);
  background: var(--rr-seal-dark);
  color: #f7f3ea !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.practice-button:hover {
  background: transparent;
  color: var(--rr-seal-dark) !important;
}

html[data-theme="dark"] .practice-button {
  border-color: #d6e5f8;
  background: #d6e5f8;
  color: #0f1b31 !important;
}

html[data-theme="dark"] .practice-button:hover {
  color: var(--rr-ink) !important;
}

.practice-text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--rr-seal) !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.practice-button:focus-visible,
.practice-text-link:focus-visible,
.practice-site a:focus-visible,
.practice-theme:focus-visible {
  outline: 3px solid var(--rr-focus);
  outline-offset: 4px;
}

.practice-section {
  padding: clamp(84px, 11vw, 136px) 0;
  border-bottom: 1px solid var(--rr-rule-strong);
  scroll-margin-top: 78px;
}

.practice-section__intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 8vw, 104px);
  margin-bottom: clamp(58px, 8vw, 90px);
  align-items: start;
}

.practice-section__label {
  position: relative;
  min-height: 180px;
}

.practice-section__intro h2 {
  max-width: 8ch;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.8rem, 5.5vw, 4.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.practice-botanical {
  position: absolute;
  top: 104px;
  right: 24px;
  width: 104px;
  max-width: none;
  height: auto;
  opacity: 0.82;
  transform: rotate(6deg);
}

html[data-theme="dark"] .practice-botanical,
html[data-theme="dark"] .about-portrait__botanical {
  opacity: 0.72;
  filter: brightness(1.2);
}

.practice-section__intro > p {
  max-width: 35ch;
  margin: 8px 0 0;
  color: var(--rr-lead);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.42;
  text-wrap: pretty;
}

.practice-ledger {
  border-top: 1px solid var(--rr-rule-strong);
}

.practice-ledger__row {
  display: grid;
  grid-template-columns: minmax(190px, 0.52fr) minmax(0, 0.94fr) minmax(210px, 0.54fr);
  gap: clamp(26px, 5vw, 68px);
  padding: clamp(30px, 4vw, 42px) 0;
  border-bottom: 1px solid var(--rr-rule);
}

.practice-ledger__row:last-child {
  border-bottom: 0;
}

.practice-ledger__row h3 {
  margin: 0;
  color: var(--rr-seal-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.22;
  text-wrap: balance;
}

.practice-ledger__row p,
.practice-ledger__row ul {
  margin: 0;
  color: var(--rr-lead);
  font-size: 0.94rem;
  line-height: 1.72;
}

.practice-ledger__row ul {
  padding-left: 1.05rem;
}

.practice-ledger__row li + li {
  margin-top: 4px;
}

.civic-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(86px, 11vw, 146px) max(24px, calc((100vw - min(1180px, calc(100vw - 48px))) / 2));
  overflow: hidden;
  background: var(--rr-seal-dark);
  color: #f7f3ea;
  scroll-margin-top: 78px;
}

html[data-theme="dark"] .civic-section {
  background: #18335f;
}

.civic-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(52px, 9vw, 124px);
  align-items: center;
}

.civic-emblem {
  position: relative;
  min-height: 360px;
}

.civic-rosette {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 105%);
  height: auto;
  opacity: 0.32;
  filter: brightness(0) invert(1);
  transform: translate(-50%, -50%);
}

.civic-copy__role {
  margin: 0 0 28px;
  color: #c9d9ee;
  font-size: 0.78rem;
  font-weight: 600;
}

.civic-copy h2 {
  max-width: 11ch;
  margin: 0 0 34px;
  color: #f7f3ea;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.civic-copy p {
  max-width: 58ch;
  margin: 0 0 20px;
  color: #e8edf5;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.civic-copy a {
  color: #ffffff;
  text-underline-offset: 4px;
}

.practice-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 8vw, 108px);
  align-items: start;
}

.practice-note h2 {
  max-width: 9ch;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.9rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.practice-note__body {
  max-width: 620px;
}

.practice-note__body > p {
  margin: 8px 0 34px;
  color: var(--rr-lead);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.practice-note__body > .archive-line {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rr-rule);
  color: var(--rr-lead);
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  line-height: 1.72;
}

.practice-footer {
  width: var(--rr-page);
  margin: 0 auto;
  padding: 32px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--rr-stone);
  font-size: 0.75rem;
  line-height: 1.6;
}

.practice-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
}

.practice-footer a {
  color: var(--rr-lead);
  text-underline-offset: 3px;
}

.practice-footer__identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.practice-footer__mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
}

html[data-theme="dark"] .practice-footer__mark--ornament {
  filter: brightness(0) invert(1);
  opacity: 0.58;
}

.about-hero {
  padding: clamp(78px, 10vw, 124px) 0 clamp(96px, 12vw, 146px);
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(54px, 9vw, 118px);
  align-items: start;
  border-bottom: 1px solid var(--rr-rule-strong);
}

.about-portrait-stage {
  position: relative;
  isolation: isolate;
}

.about-portrait-stage::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  background: var(--rr-seal);
}

.about-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.78) contrast(1.03);
}

.about-portrait__botanical {
  position: absolute;
  right: -68px;
  bottom: -74px;
  z-index: 2;
  width: 170px;
  max-width: none;
  height: auto;
  opacity: 0.9;
  transform: rotate(7deg);
}

.about-copy__context {
  margin: 3px 0 24px !important;
  color: var(--rr-seal) !important;
  font: 600 0.76rem/1.4 "Inter", sans-serif !important;
}

.about-copy h1 {
  max-width: 10ch;
  margin: 0 0 28px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 5.7rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.about-copy__lead {
  max-width: 30ch;
  margin: 0 0 38px;
  color: var(--rr-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.48;
  text-wrap: pretty;
}

.about-copy p:not(.about-copy__lead):not(.about-copy__context) {
  max-width: 62ch;
  margin: 0 0 21px;
  color: var(--rr-lead);
  font-size: 0.98rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.about-copy .practice-actions {
  margin-top: 38px;
}

.contact-shell {
  position: relative;
  min-height: calc(100svh - 79px);
  padding: clamp(88px, 13vh, 150px) 0 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 100px;
  overflow: hidden;
}

.contact-shell::after {
  content: "";
  position: absolute;
  top: 64px;
  right: -52px;
  width: min(320px, 34vw);
  aspect-ratio: 1;
  background: url("/images/folio/rr-civic-rosette.webp") center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.contact-shell h1 {
  max-width: 10ch;
  margin: 0 0 34px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3.7rem, 8vw, 5.9rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.contact-shell__intro {
  max-width: 50ch;
  margin: 0;
  color: var(--rr-lead);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.contact-address {
  padding-top: 30px;
  border-top: 1px solid var(--rr-rule-strong);
}

.contact-address a {
  display: inline-block;
  color: var(--rr-seal-dark);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 3.45rem);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

.contact-address p {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--rr-stone);
  font-size: 0.84rem;
  line-height: 1.72;
}

@keyframes rr-hero-settle {
  from { transform: translateY(14px); filter: blur(3px); }
  to { transform: translateY(0); filter: blur(0); }
}

@keyframes rr-ornament-open {
  from { clip-path: inset(0 44% 0 44%); opacity: 0.45; }
  to { clip-path: inset(0 0 0 0); opacity: 0.86; }
}

.practice-hero > div:first-of-type {
  animation: rr-hero-settle 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.practice-hero__aside {
  animation: rr-hero-settle 700ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.practice-hero__ornament {
  animation: rr-ornament-open 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@media (max-width: 820px) {
  :root {
    --rr-page: min(100% - 34px, 1180px);
  }

  .practice-nav__inner {
    min-height: 68px;
  }

  .practice-brand__mark {
    width: 42px;
    height: 42px;
  }

  .practice-wordmark {
    font-size: 0.75rem;
    letter-spacing: 0.13em;
  }

  .practice-nav__links {
    gap: 6px;
  }

  .practice-nav__links > a {
    display: none;
  }

  .practice-mobile-nav {
    display: block;
  }

  .practice-hero {
    min-height: calc(100svh - 69px);
    padding-top: clamp(62px, 10vh, 88px);
    align-content: space-between;
    gap: 52px;
  }

  .practice-hero > div:first-of-type {
    width: min(620px, 94vw);
  }

  .practice-hero__ornament {
    display: none;
  }

  .practice-hero::after {
    content: "";
    position: absolute;
    top: 26px;
    right: -34px;
    z-index: 0;
    width: 140px;
    height: 164px;
    background: url("/images/folio/rr-cobalt-botanical.webp") center / contain no-repeat;
    opacity: 0.2;
    pointer-events: none;
  }

  .practice-hero h1 {
    font-size: clamp(3.15rem, 14vw, 4.7rem);
  }

  .practice-hero__aside {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .practice-section__intro,
  .practice-note {
    grid-template-columns: 1fr;
  }

  .practice-section__label {
    min-height: auto;
  }

  .practice-section__intro h2,
  .practice-note h2 {
    max-width: 12ch;
  }

  .practice-botanical,
  .about-portrait__botanical {
    display: none;
  }

  .practice-ledger__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .practice-ledger__row ul {
    margin-top: 4px;
  }

  .civic-layout,
  .about-hero {
    grid-template-columns: 1fr;
  }

  .civic-emblem {
    min-height: 170px;
  }

  .civic-rosette {
    width: 210px;
    opacity: 0.24;
  }

  .about-portrait-stage {
    width: min(92%, 430px);
    margin: 0 auto;
  }

  .practice-footer {
    flex-direction: column;
  }

  .practice-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .practice-hero__edition::before,
  .practice-hero__edition::after {
    width: 20px;
  }

  .practice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-button,
  .practice-text-link {
    width: 100%;
    justify-content: center;
  }

  .contact-address a {
    overflow-wrap: anywhere;
  }
}
