/* ============================================================
   Batiste Law, PLLC
   Palette built from the wordmark: the logo purple is --brand
   (#2E155C, sampled straight from the logo file). Everything
   else is a purple-tinted neutral or a lighter tint of it.
   All text/background pairs below clear WCAG AA.
   ============================================================ */

:root {
  --ink:        #1c1030;   /* headings, primary text — near-black purple */
  --ink-soft:   #3e3350;   /* body copy */
  --slate:      #665f75;   /* meta, captions, muted text */
  --paper:      #f6f4f8;   /* page ground, faintest violet */
  --paper-2:    #ffffff;
  --rule:       #ddd8e3;
  --brand:      #2e155c;   /* THE logo purple — solid fills */
  --accent:     #5b2e8c;   /* links, rules, focus rings */
  --accent-lt:  #a88ccc;   /* light purple, for use on dark fills */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --gap:  clamp(3rem, 7vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--accent); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.wordmark__suffix {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

.masthead__phone {
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  white-space: nowrap;
}
.masthead__phone:hover { color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding-block: var(--gap) calc(var(--gap) * .8); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--slate);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}

.hero__role {
  margin: .85rem 0 0;
  font-size: .95rem;
  color: var(--slate);
}

.hero__lede {
  margin: 1.6rem 0 0;
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }

.btn--ghost {
  color: var(--ink);
  border-color: var(--rule);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); }

.hero__figure {
  margin: 0;
  position: relative;
}

/* the offset rule behind the portrait — the one flourish on the page */
.hero__figure::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  z-index: 0;
}

.hero__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: grayscale(12%) contrast(1.02);
}

/* ---------- shared section heading ---------- */

.section-h {
  margin: 0 0 2.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.section-h::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: .9rem;
  background: var(--accent);
}

/* ---------- practice areas ---------- */

.practice {
  padding-block: var(--gap);
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}

.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem 2.5rem;
}

.area h3 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  padding-top: .9rem;
  border-top: 2px solid var(--ink);
}

.area p {
  margin: 0;
  font-size: .975rem;
  color: var(--slate);
}

.areas__note {
  margin: 2.75rem 0 0;
  max-width: 44em;
  font-size: .975rem;
  font-style: italic;
  color: var(--slate);
}

/* ---------- about ---------- */

.about { padding-block: var(--gap); }

.about__inner {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__body p {
  margin: 0 0 1.25rem;
  max-width: 38em;
  color: var(--ink-soft);
}
.about__body p:last-child { margin-bottom: 0; }

.credentials {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}

.cred { margin-bottom: 1.5rem; }

.cred h3 {
  margin: 0 0 .35rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

.cred p {
  margin: 0;
  font-size: .975rem;
  line-height: 1.5;
}

.credentials__figure { margin: 2rem 0 0; }

.credentials__figure img {
  width: 100%;
  filter: grayscale(100%) contrast(1.03);
}

/* ---------- contact (the signature block) ---------- */

.contact {
  padding-block: var(--gap);
  background: var(--brand);
  color: #fff;
}

.contact__card {
  max-width: 46rem;
  border: 1px solid rgba(255,255,255,.18);
  border-left: 4px solid var(--accent-lt);
  padding: clamp(2rem, 5vw, 3.25rem);
}

.contact__h {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff;
}

.contact__note {
  margin: .9rem 0 2rem;
  max-width: 32em;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
}

.contact__phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-lt);
  padding-bottom: .15rem;
}
.contact__phone:hover { color: var(--accent-lt); }

.contact__email {
  display: block;
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  width: fit-content;
}
.contact__email:hover { border-bottom-color: var(--accent-lt); }

.contact__meta {
  margin: 2rem 0 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.contact__warning {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255,255,255,.62);
  max-width: 40em;
}

/* ---------- footer ---------- */

.siteftr {
  padding-block: 3rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.siteftr__brand {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.siteftr__legal {
  margin: 0;
  max-width: 60em;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--slate);
}

.siteftr__links {
  margin: 1.25rem 0 0;
  font-size: .8125rem;
  color: var(--slate);
}

.siteftr__links a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.siteftr__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.siteftr__copy {
  margin: 1.5rem 0 0;
  font-size: .8125rem;
  color: var(--slate);
}

/* ---------- interior legal pages (SMS terms & privacy) ---------- */

.legal {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.legal__inner {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal__h1 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.015em;
}

.legal__updated {
  margin: 0 0 2rem;
  font-size: .9375rem;
  color: var(--slate);
}

.legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
}

.legal__toc a {
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.legal__toc a:hover { border-bottom-color: var(--accent); }

.legal h2 {
  margin: 2.75rem 0 .9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  line-height: 1.2;
}

.legal section:first-of-type h2 {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: 0;
}

.legal h3 {
  margin: 1.85rem 0 .5rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

.legal p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.legal__caution {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-left: 3px solid var(--slate);
  font-size: .9375rem;
}

.legal__back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero__inner,
  .about__inner {
    grid-template-columns: 1fr;
  }

  .hero__inner { gap: 2.5rem; }

  .hero__figure { order: -1; max-width: 340px; }

  .hero__figure::before { inset: 1rem -1rem -1rem 1rem; }

  .credentials { margin-top: 1rem; }

  .credentials__figure { display: none; }
}

@media (max-width: 460px) {
  .masthead__phone { font-size: .875rem; }
  .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
