:root {
  --ink: #162648;
  --navy: #142e5d;
  --night: #0d2043;
  --teal: #126f6b;
  --paper: #fcfdfd;
  --warm: #edf4f4;
  --mint: #bbe8df;
  --line: #d6e3e7;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #16827b; outline-offset: 5px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; background: white; padding: .65rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - 6rem, 74rem); margin-inline: auto; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
.header-inner { min-height: 5.65rem; }
.brand { display: block; flex: 0 1 18rem; min-width: 0; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .65rem 1.8rem; }
nav a { text-decoration: none; font-size: .92rem; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .65rem 1.15rem; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid transparent; line-height: 1.25; }
.outline { border-color: var(--navy); white-space: nowrap; }
.outline:hover { background: var(--warm); }
.mint { color: var(--night); background: var(--mint); }
.mint:hover { background: #d6f5ef; }
.dark { color: white; background: var(--navy); }
.dark:hover { background: var(--teal); }
.hero { display: grid; grid-template-columns: 1.07fr 1fr; min-height: 33rem; background: var(--navy); color: white; }
.hero-content { padding: 5rem 2.5rem 5rem max(3rem, calc((100vw - 74rem) / 2)); align-self: center; }
.hero-visual { background: #72594d url('maryland-townhomes.webp') center 51% / cover no-repeat; }
.eyebrow { margin: 0 0 .95rem; color: var(--teal); font-size: .875rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.hero .eyebrow, .contact .eyebrow { color: var(--mint); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(3rem, 5.2vw, 5.4rem); letter-spacing: -.055em; }
h1 em { color: var(--mint); font-weight: inherit; }
h2 { font-size: clamp(2.3rem, 4vw, 3.65rem); letter-spacing: -.046em; }
h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -.025em; }
.intro { margin: 1.4rem 0 1.7rem; max-width: 33rem; color: #edf4fc; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.3rem; }
.hero-link, .text-link, .card a { font-weight: 700; font-size: .94rem; }
.practices, .estate { padding-block: 4.4rem 4.8rem; }
.section-top { margin-bottom: 1.75rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.card { display: flex; flex-direction: column; align-items: start; border: 1px solid var(--line); background: #ffffff; padding: 1.55rem; }
.card p { flex: 1; }
.icon { position: relative; width: 1.45rem; height: 1.45rem; display: block; margin-bottom: 1.1rem; color: var(--teal); }
.icon::before, .icon::after { content: ''; position: absolute; }
.icon-house::before { inset: .47rem .12rem .06rem; border: 1.5px solid; }
.icon-house::after { width: 1rem; height: 1rem; top: .17rem; left: .22rem; transform: rotate(45deg); border-top: 1.5px solid; border-left: 1.5px solid; }
.icon-page::before { inset: 0 .15rem 0; border: 1.5px solid; border-radius: 1px; }
.icon-page::after { top: .47rem; left: .44rem; width: .57rem; height: .43rem; border-block: 1.5px solid; }
.icon-estate::before { inset: .37rem .05rem .08rem; border: 1.5px solid; }
.icon-estate::after { inset: .08rem .25rem .63rem; border: 1.5px solid; }
.closing { background: var(--warm); padding-block: 4.6rem; }
.two-col, .estate { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.closing .two-col { align-items: center; }
.closing .button, .contact .button { margin-top: .55rem; }
.title-panel { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.3rem, 3vw, 2.35rem); }
ul { margin: 1rem 0 1.45rem; padding-left: 1.2em; }
li { padding-left: .2em; margin: .35rem 0; }
li::marker { color: #126f6b; }
.underwriter { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.underwriter span, .underwriter strong { display: block; }
.underwriter .eyebrow { margin-bottom: .4rem; }
.underwriter strong { font: 1.6rem var(--serif); }
.underwriter p { margin: .4rem 0 0; }
.contact { padding-block: 4.4rem; background: var(--navy); color: white; }
.contact-list > div { padding-block: .45rem .85rem; margin-bottom: .6rem; border-bottom: 1px solid #ffffff38; }
.contact-list a { display: inline-block; margin-top: .35rem; overflow-wrap: anywhere; }
.contact-note { color: #e0eff6; font-size: .9rem; }
.footer { background: var(--night); color: #e0eff6; padding-block: 1.5rem; font-size: .85rem; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 3rem); }
  .hero-content { padding-inline: 1.5rem; }
  .header-inner { flex-wrap: wrap; padding-block: .9rem; gap: .8rem 1rem; }
  nav { order: 3; flex-basis: 100%; }
  .desktop { display: none; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .brand { flex-basis: min(57vw, 17rem); }
  .header .button { padding-inline: .65rem; }
  nav { gap: .4rem .95rem; }
  nav a { font-size: .88rem; }
  .hero, .cards, .two-col, .estate { grid-template-columns: 1fr; }
  .hero-content { padding: 3.1rem 1rem; }
  .hero-visual { min-height: 16rem; }
  .practices, .estate, .closing, .contact { padding-block: 3rem; }
  .estate > article + article { border-top: 1px solid var(--line); padding-top: 2rem; }
  .footer-inner { flex-wrap: wrap; gap: .65rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
