:root {
  color-scheme: light;
  --ink: #211d1e;
  --burgundy: #4b202c;
  --wine: #713747;
  --paper: #f6f1e9;
  --surface: #fffcf7;
  --wash: #eee5d9;
  --gold: #edc78a;
  --gold-ink: #6d4c25;
  --muted: #564c4d;
  --muted-light: #decec6;
  --rule: #d7c8b9;
  --rule-dark: #8b6551;
  --display: "Aptos Display", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 5rem);
  --section-space: clamp(3rem, 7vw, 6rem);
  --content-width: 74rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  overflow-wrap: break-word;
}

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

:focus-visible {
  outline: 2px solid #97501c;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--surface);
}

.skip-link {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 2;
  transform: translateY(-200%);
  padding: .55rem 1rem;
  background: var(--surface);
}

.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem clamp(1rem, 3vw, 3rem);
  padding: 1rem var(--gutter);
  color: var(--surface);
  background: var(--ink);
}

.site-header { border-bottom: 1px solid var(--rule-dark); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.brand img {
  width: 3rem;
  flex: 0 0 auto;
  border-radius: 50%;
}

.brand-type {
  display: grid;
  justify-items: start;
  gap: .36rem;
  color: var(--surface);
  line-height: 1;
  text-transform: uppercase;
}

.brand-name {
  font: 700 clamp(1.05rem, 1.85vw, 1.55rem)/1 var(--display);
  letter-spacing: .068em;
  white-space: nowrap;
}

/* The A and R share a diagonal cut and use the surrounding type's cap height. */
.brand-a, .brand-r {
  position: relative;
  display: inline-block;
  color: transparent;
}

.brand-a { width: .76em; }
.brand-r { width: .69em; }

.brand-a::after, .brand-r::after {
  content: "";
  position: absolute;
  inset: .13em .025em .14em 0;
  background: var(--surface);
}

.brand-a::after {
  clip-path: polygon(0 100%, 42% 0, 57% 0, 100% 100%, 81% 100%, 50% 25%, 19% 100%);
}

.brand-r::after {
  clip-path: polygon(evenodd,
    0 100%, 0 0, 65% 0, 85% 7%, 97% 22%, 97% 38%, 88% 50%, 70% 57%,
    100% 100%, 77% 100%, 45% 58%, 19% 58%, 19% 100%, 0 100%,
    19% 16%, 19% 43%, 61% 43%, 74% 40%, 79% 34%, 79% 26%, 74% 20%,
    61% 16%, 19% 16%);
}

.brand-descriptor {
  color: var(--gold);
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .27em;
}

@media (forced-colors: active) {
  .brand-a, .brand-r { width: auto; color: LinkText; }
  .brand-a::after, .brand-r::after { display: none; }
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem clamp(.75rem, 2.1vw, 2rem);
}

.site-header nav a, .header-cta, .button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a { border-bottom: 2px solid transparent; }

.site-header nav a:hover, .site-header nav a[aria-current="page"] {
  color: var(--gold);
  border-color: currentColor;
}

.header-cta {
  padding: .35rem .85rem;
  border: 1px solid var(--rule-dark);
  color: var(--gold);
}

.header-cta:hover { background: var(--burgundy); border-color: var(--gold); }

.eyebrow, .service-index, .price-type, .about-aside strong, .lifecycle li::marker {
  color: var(--gold-ink);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 1rem; }
.eyebrow-light, .contact-band .eyebrow { color: var(--gold); }

.display-heading, .service-detail h2, .pricing-grid h2, .practice-grid h3, .about-aside span {
  font-family: var(--display);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.display-heading em { color: var(--wine); font-style: normal; }
.home-frame em, .page-hero em, .contact-band em { color: var(--gold); }

.button {
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.25rem;
}

.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: #ffe0a8; }

.home-frame, .page-hero {
  color: var(--surface);
  background: radial-gradient(ellipse at 80% 32%, #4b252e, transparent 62%), var(--ink);
}

.home-frame { display: grid; min-height: calc(100svh - 6.5rem); padding: var(--gutter); }

.home-frame-inner {
  width: min(100%, 86rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.25rem, 5vw, 5rem);
}

.home-frame h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6.1vw, 5.65rem);
  text-wrap: balance;
}

.home-frame-copy h1 { max-width: 13ch; }

.home-frame-intro, .page-hero-inner > p:last-child {
  max-width: 58ch;
  margin: 1.35rem 0 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.home-frame-copy .button { margin-top: 1.65rem; }

.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 26rem);
  margin: 0 auto;
  padding: 10%;
  aspect-ratio: 1;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px solid #785249;
  border-radius: inherit;
}

.hero-emblem img { border-radius: 50%; }

.home-frame-foot {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .45rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--muted-light);
  font-size: .875rem;
}

.page-hero, .content-section, .contact-band {
  padding: var(--section-space) max(var(--gutter), calc((100% - var(--content-width)) / 2));
}

.page-hero { border-bottom: 3px solid var(--gold-ink); }
.page-hero-inner { max-width: 56rem; }
.page-hero h1 { font-size: clamp(2.6rem, 5.7vw, 5.4rem); }
.content-section.paper { background: var(--surface); }
.content-section.sand { background: var(--wash); }

.page-title, .contact-band h2 {
  max-width: 23ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  text-wrap: balance;
}

.lead {
  max-width: 61ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.service-list, .practice-grid, .pricing-grid, .about-columns {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.practice-grid, .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-grid { margin-top: 2rem; }

.service-detail, .practice-grid article, .pricing-grid article, .about-aside {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--wine);
  background: var(--surface);
}

.service-detail, .pricing-grid article {
  display: flex;
  flex-direction: column;
}

.service-detail h2, .pricing-grid h2, .practice-grid h3 {
  margin: .65rem 0;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
}

.practice-grid h3 { margin-top: 0; }
.service-detail p, .pricing-grid p, .practice-grid p, .about-columns p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 0 .9rem;
}

.detail-note, .pricing-grid strong {
  margin-top: auto;
  padding: .85rem 0 0;
  border-top: 1px solid var(--rule);
  color: var(--wine);
  font-size: .925rem;
}

.detail-note strong { margin-right: .4rem; font-size: .8rem; }

.notice {
  max-width: 72ch;
  margin: 1.4rem 0 0;
  padding: .9rem 1rem;
  border-left: 3px solid var(--wine);
  background: var(--wash);
  color: var(--muted);
}

.lifecycle-section { color: var(--surface); background: var(--ink); }

.lifecycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.65rem 0;
  padding: 0;
  list-style-position: inside;
  list-style-type: decimal-leading-zero;
}

.lifecycle li { padding: .85rem .25rem 0; border-top: 1px solid var(--rule-dark); }
.lifecycle li::marker { color: var(--gold); }
.lifecycle strong {
  display: block;
  margin-top: .45rem;
  font: 600 clamp(1.35rem, 2.2vw, 1.9rem)/1.2 var(--display);
}

.lifecycle small, .lifecycle-intro { color: var(--muted-light); }
.lifecycle small { font-size: .875rem; }
.lifecycle-intro { max-width: 66ch; margin: 0; }

.about-columns {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: start;
}

.about-aside strong, .about-aside span { display: block; }
.about-aside span { margin: .5rem 0 .85rem; font-size: 1.85rem; }
.about-aside p:last-child { margin-bottom: 0; }

.contact-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  background: var(--burgundy);
  color: var(--surface);
}

.contact-band h2 { margin: 0; }

.contact-placeholder {
  max-width: 30ch;
  padding-left: 1rem;
  border-left: 1px solid var(--gold);
  color: var(--muted-light);
}

.site-footer { padding-block: 1.35rem; }
.site-footer .brand img { width: 2.5rem; }
.site-footer p, .site-footer > span { margin: 0; color: var(--muted-light); font-size: .875rem; }

@media (max-width: 54rem) {
  .site-header nav { width: 100%; }
  .site-header { padding-block: .75rem; }
  .home-frame h1 { font-size: clamp(2.45rem, 7vw, 4rem); }
  .practice-grid, .pricing-grid, .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .home-frame-inner, .service-list, .practice-grid, .pricing-grid, .about-columns { grid-template-columns: 1fr; }
  .hero-emblem { width: min(70%, 15rem); padding: min(7%, 1.5rem); }
  .site-header nav { justify-content: space-between; }
}
