/* ==========================================================================
   The Ramsay Law Firm, P.A.
   A restrained legal editorial system: black field, bone type, antique gold.
   The Ramsay monogram is the single signature motif. Proof stays factual.
   ========================================================================== */

/* ---- faces: self-hosted, subset ----------------------------------------- */
@font-face {
  font-family: "Caslon Display";
  src: url("/fonts/LibreCaslonDisplay.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/PublicSans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/PublicSans-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---- tokens -------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --field:     #0e0f0f;
  --field-2:   #151616;
  --field-3:   #1c1d1d;

  --bone:      #f2eee6;
  --bone-2:    #d1cabf;
  --bone-3:    #a49c8f;

  --gold:      #c9aa72;
  --gold-2:    #b28f58;
  --gold-deep: #80633a;

  --rule:      rgba(242, 238, 230, 0.12);
  --rule-2:    rgba(242, 238, 230, 0.22);
  --rule-gold: rgba(201, 170, 114, 0.48);

  --display: "Caslon Display", "Iowan Old Style", Georgia, serif;
  --body: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;  --s-9: 6rem;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.06rem);
  --step-1:  clamp(1.12rem, 1.06rem + .3vw, 1.3rem);
  --step-2:  clamp(1.45rem, 1.3rem + .72vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.35vw, 2.8rem);
  --step-4:  clamp(2.55rem, 2.02rem + 2.35vw, 4rem);
  --hero:    clamp(3rem, 2.25rem + 3vw, 4.85rem);

  --measure: 66ch;
  --shell: 84rem;
  --nav-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--field); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--bone-2);
  background: var(--field);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--bone); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
/* a long unbroken token (a German compound, a pasted URL) must wrap, not
   widen the document */
h1, h2, h3, h4, p, li, a, span, dd, dt, label, figcaption { overflow-wrap: anywhere; }
.rule-num, .cta, .nav a, .crumb { overflow-wrap: normal; }
a { color: inherit; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--field); }

/* every corner is square, everywhere, on purpose */
a, button, input, textarea, select, img, figure, div, section { border-radius: 0; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-left: max(clamp(1.15rem, 4vw, 2.75rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.15rem, 4vw, 2.75rem), env(safe-area-inset-right));
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--gold); color: var(--field);
  padding: var(--s-3) var(--s-4); font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---- type roles ---------------------------------------------------------- */
.disp {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -.018em;
  color: var(--bone);
}
.disp-xl { font-size: var(--step-4); }
.disp-lg { font-size: var(--step-3); }
.disp-md { font-size: var(--step-2); }
.disp-sm { font-size: var(--step-1); }

.label {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--bone);
}

.lede { font-size: var(--step-1); line-height: 1.58; color: var(--bone-2); max-width: var(--measure); }
.measure { max-width: var(--measure); }
.mute { color: var(--bone-3); }

/* Keep legal emphasis semantic without making it look like an annotation. */
.mk { color: inherit; background: transparent; font-weight: inherit; }
.mk-tilt { display: inline; }

/* ---- actions: direct, quiet, and consistent ------------------------------ */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body);
  font-size: .84rem; font-weight: 650;
  letter-spacing: .055em;
  text-decoration: none;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--rule-gold);
  padding: 1.12em 1.9em;
  min-height: 50px;
  cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.cta:hover { background: var(--gold); border-color: var(--gold); color: var(--field); }
.cta:active { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(1px); }

.cta-solid {
  background: var(--gold); border-color: var(--gold); color: var(--field);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.cta-solid:hover { background: var(--bone); border-color: var(--bone); color: var(--field); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }

.cta-quiet {
  border-color: transparent;
  color: var(--bone-2);
  padding-inline: 0;
}
.cta-quiet:hover { background: transparent; color: var(--gold); border-color: transparent; }

/* a text action that reads as a ruled link, not a control */
.tlink {
  display: inline-block;
  min-height: 24px;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-gold);
  padding-bottom: .18em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.tlink:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* In editorial sections, the action reads as a confident link instead of a
   second boxed component. The actual form submit remains the solid control. */
.hero .cta-solid,
.callband .cta-solid {
  justify-content: flex-start;
  width: auto;
  min-height: 44px;
  padding: .3rem 0 .36rem;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  box-shadow: none;
  color: var(--bone);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.hero .cta-solid:hover,
.callband .cta-solid:hover {
  background: transparent;
  border-color: var(--bone);
  color: var(--gold);
  box-shadow: none;
}

/* ---- header: one line, 76px ---------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: transparent;
  isolation: isolate;
  border-bottom: 1px solid var(--rule);
}
.top::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(14, 15, 15, .96);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
}
.top-in {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: clamp(.45rem, .2rem + .7vw, .7rem); text-decoration: none; min-width: 0; min-height: 44px; }
.brand-mark { width: clamp(30px, 25px + .9vw, 37px); height: auto; display: block; flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: clamp(.8rem, .56rem + .76vw, 1.06rem);
  letter-spacing: clamp(.04em, .01em + .1vw, .1em);
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1.1;
  white-space: nowrap;
  min-width: 0;
}
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 1.85rem); margin-left: auto; }
.nav a {
  font-size: .82rem; font-weight: 600;
  letter-spacing: .035em;
  color: var(--bone-2); text-decoration: none;
  padding: .4em 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav .cta { margin-left: clamp(.3rem, 1vw, .9rem); padding: .82em 1.3em; min-height: 44px; }
.nav-note { display: none; }
.nav-close { display: none; }
.menu-btn { display: none; }

/* Without JavaScript the toggle cannot open anything, so the links stay in
   the header and the button is removed rather than left as a dead control. */
.no-js .menu-btn { display: none !important; }
.no-js .nav { display: flex !important; position: static !important; }
@media (max-width: 67.99rem) {
  .no-js .top-in { flex-wrap: wrap; row-gap: .5rem; padding-bottom: .6rem; }
  .no-js .nav {
    width: 100%; margin-left: 0; flex-wrap: wrap;
    gap: .35rem 1.1rem; padding: .35rem 0 0;
    border-top: 1px solid var(--rule);
  }
  .no-js .nav a { font-size: .74rem; min-height: 40px; display: inline-flex; align-items: center; }
  .no-js .nav .cta { margin-left: 0; padding: .6em 1em; min-height: 40px; }
}

/* ---- hero: one clear promise, one real person, one brand signature ------- */
.hero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  padding-block: clamp(2.75rem, 5.5vw, 5rem);
}
.hero-copy { display: grid; align-content: center; gap: 1.4rem; position: relative; z-index: 2; }
.hero-h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--hero);
  line-height: .98;
  letter-spacing: -.022em;
  color: var(--bone);
  max-width: 11.2ch;
}
.hero-support { color: var(--bone-2); max-width: 38ch; font-size: clamp(1.04rem, .98rem + .28vw, 1.18rem); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.hero-actions .tlink, .callband .tlink { display: inline-flex; align-items: center; min-height: 48px; }
.hero-watermark { display: none; pointer-events: none; }
.hero-portrait { margin: 0; width: 100%; max-width: 27rem; justify-self: start; position: relative; z-index: 2; }
.hero-portrait picture { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--field-2); box-shadow: 0 32px 80px rgba(0, 0, 0, .28); }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-portrait figcaption { padding-top: .8rem; color: var(--bone-3); font-size: .8rem; }
.hero-portrait figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.hero-portrait figcaption a:hover, .hero-portrait figcaption a:focus-visible { color: var(--gold); border-bottom-color: currentColor; }
@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
    min-height: clamp(35rem, calc(100svh - var(--nav-h) - 6.5rem), 43rem);
  }
  .hero-copy { grid-column: 1 / span 5; }
  .hero-watermark {
    display: block;
    position: absolute;
    left: 49%;
    top: 50%;
    width: clamp(15.5rem, 22vw, 22rem);
    transform: translate(-50%, -50%);
    opacity: .15;
    mix-blend-mode: screen;
    z-index: 1;
  }
  .hero-watermark img { width: 100%; height: auto; clip-path: inset(8%); transform: scale(1.08); }
  .hero-portrait { grid-column: 9 / -1; justify-self: end; }
  .hero-portrait picture { aspect-ratio: 4 / 5; }
}

/* ---- proof: one lead fact with supporting verification ------------------ */
.proof-strip { border-bottom: 1px solid var(--rule); }
.proof-wrap { padding-block: clamp(2rem, 4vw, 3.25rem); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.45rem; }
.proof-item { display: grid; align-content: start; gap: .4rem; }
.proof-item + .proof-item { padding-top: 1.15rem; border-top: 1px solid var(--rule); }
.proof-item strong { color: var(--bone); font-family: var(--display); font-size: clamp(1.2rem, 1.04rem + .58vw, 1.58rem); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
.proof-item:first-child strong { color: var(--gold); }
.proof-item span { color: var(--bone-3); font-size: .84rem; line-height: 1.5; }
.proof-item a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--bone-2); text-underline-offset: .2em; }
.proof-item a:hover { color: var(--gold); }
.proof-note { margin-top: 1rem; color: var(--bone-3); font-size: .72rem; }
@media (min-width: 48rem) {
  .proof-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
    grid-template-rows: auto auto;
    gap: .8rem clamp(3rem, 8vw, 8rem);
    align-items: center;
  }
  .proof-item:first-child { grid-row: 1 / 3; }
  .proof-item:first-child strong { font-size: clamp(2.35rem, 3.7vw, 4rem); }
  .proof-item:first-child span { font-size: .95rem; }
  .proof-item + .proof-item { padding-top: .8rem; }
  .proof-item:nth-child(2) { border-top: 0; padding-top: 0; }
  .proof-note { max-width: 42rem; }
}

/* ---- the rulebook fold: featured rule, then supporting rules ------------ */
.rules { border-bottom: 1px solid var(--rule); }
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr); }

.rules-intro {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.25rem, 4vw, 3.5rem);
  display: grid; align-content: start; gap: var(--s-5);
  max-width: 47rem;
}
.rules-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 0 clamp(3.5rem, 7vw, 6.5rem);
}
.rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3) clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(1.45rem, 2.7vw, 2.05rem);
  border-top: 1px solid var(--rule);
}
.rule-row:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 34rem) { .rule-row { grid-template-columns: 8.5rem minmax(0, 1fr); align-items: start; } }
.rule-num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.28rem + 1.5vw, 2.75rem);
  line-height: 1;
  color: var(--gold);
  white-space: nowrap;
}
.rule-body { color: var(--bone-2); font-size: clamp(.98rem, .95rem + .16vw, 1.06rem); }
.rule-cite {
  display: block; margin-top: .4rem;
  font-size: .8rem; letter-spacing: 0;
  color: var(--bone-3);
}
@media (min-width: 64rem) {
  .rules-list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 6vw, 6rem);
  }
  .rules-list .rule-row:first-child {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
    display: block;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
  }
  .rules-list .rule-row:first-child .rule-num {
    font-size: clamp(3.8rem, 7vw, 6.5rem);
    margin-bottom: 1.5rem;
  }
  .rules-list .rule-row:first-child .rule-body {
    max-width: 34rem;
    font-size: 1.08rem;
  }
  .rules-list .rule-row:nth-child(2),
  .rules-list .rule-row:nth-child(3) {
    grid-column: 8 / -1;
    grid-template-columns: 7.4rem minmax(0, 1fr);
  }
  .rules-list .rule-row:nth-child(2) { grid-row: 1; }
  .rules-list .rule-row:nth-child(3) { grid-row: 2; }
}
/* ---- sections ------------------------------------------------------------ */
.sec { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sec-tight { padding-block: clamp(2.75rem, 5.5vw, 4.25rem); }
.sec-2 { background: var(--field-2); }
.sec-head { display: grid; gap: var(--s-4); margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.rule-line { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---- practice index: 1 image per subject group, then an editorial index -- */
.pgroup-h {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.15rem + .8vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--bone);
  margin: clamp(3.5rem, 7vw, 6rem) 0 1.25rem;
}
.pgroup-h:first-of-type { margin-top: 0; }
.pindex { list-style: none; margin: 0; padding: 0; display: grid; }
.pindex li { border-bottom: 1px solid var(--rule); }
.pindex a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "clause";
  gap: .3rem;
  align-content: center;
  align-items: start;
  padding: 1.15rem 0 1.35rem;
  text-decoration: none;
  transition: color .22s var(--ease);
}
.pindex a:hover, .pindex a:focus-visible { color: var(--gold); }
.pindex .thumb { display: none; grid-area: thumb; overflow: hidden; aspect-ratio: 16 / 9; background: var(--field-2); }
.pindex .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--crop, 50% 50%);
  filter: saturate(.62) brightness(.72) contrast(1.04);
  transition: filter .35s var(--ease), transform .65s var(--ease);
}
.pindex a:hover .thumb img { filter: saturate(.82) brightness(.86) contrast(1.02); transform: scale(1.025); }
.pindex .t {
  grid-area: title;
  min-width: 0;
  align-self: end;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.08rem + .72vw, 1.85rem);
  line-height: 1.08; color: var(--bone); letter-spacing: -.01em;
}
.pindex .c {
  grid-area: clause;
  min-width: 0;
  align-self: start;
  color: var(--bone-3);
  font-size: .9rem;
  margin: 0;
}
.pindex li.lead { border-bottom: 0; margin-bottom: .45rem; }
.pindex li.lead a {
  grid-template-areas: "thumb" "title" "clause";
  gap: .7rem;
  padding: 0 0 1.35rem;
}
.pindex li.lead .thumb { display: block; }
.pindex li.lead .t { font-size: clamp(1.6rem, 1.28rem + 1vw, 2.15rem); }
@media (min-width: 48rem) {
  .pgroup-h { margin-bottom: 1.75rem; }
  .pindex:has(> li:nth-child(5)) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    column-gap: clamp(2.5rem, 6vw, 6rem);
  }
  .pindex:has(> li:nth-child(5)) > li:first-child {
    grid-column: 1 / span 7;
    grid-row: 1 / span 4;
    margin: 0;
  }
  .pindex:has(> li:nth-child(5)) > li:not(:first-child) {
    grid-column: 8 / -1;
  }
  .pindex:has(> li:nth-child(5)) > li:nth-child(2) { grid-row: 1; border-top: 1px solid var(--rule); }
  .pindex:has(> li:nth-child(5)) > li:nth-child(3) { grid-row: 2; }
  .pindex:has(> li:nth-child(5)) > li:nth-child(4) { grid-row: 3; }
  .pindex:has(> li:nth-child(5)) > li:nth-child(5) { grid-row: 4; }
  .pindex:has(> li:nth-child(5)) > li:first-child .thumb { aspect-ratio: 4 / 3; }
  .pindex:not(:has(> li:nth-child(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 6vw, 6rem);
  }
  .pindex:not(:has(> li:nth-child(3))) > li {
    min-width: 0;
    margin: 0;
    border-bottom: 0;
  }
  .pindex:not(:has(> li:nth-child(3))) > li + li { border-top: 1px solid var(--rule); }
  .pindex:not(:has(> li:nth-child(3))) > li:nth-child(2) a { padding-top: 1.2rem; }
  .pindex .t, .pindex .c { align-self: start; }
  .pindex .c { max-width: 44ch; }
}

/* ---- editorial detail pages ---------------------------------------------- */
.page-head { border-bottom: 1px solid var(--rule); }
.page-head .shell { padding-block: clamp(3rem, 6vw, 5.5rem); }
.page-head .disp-xl { max-width: 14ch; }
.crumb { font-size: .86rem; letter-spacing: 0; color: var(--bone-3); margin-bottom: 1rem; }
.crumb a { color: var(--bone-3); text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.clause { color: var(--bone-3); font-size: var(--step-1); margin-top: .85rem; max-width: 52ch; }

.two-col { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); }
@media (min-width: 60rem) { .two-col { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); align-items: start; } }

.opener {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.2;
  color: var(--bone);
  max-width: 26ch;
}
.figfull { margin: 0; position: relative; }
.figfull img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.78) brightness(.84) contrast(1.02); box-shadow: 0 26px 62px rgba(0, 0, 0, .2); }
.figfull figcaption { padding-top: .8rem; font-size: .82rem; color: var(--bone-3); }
.law-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: law; }
.law-list li {
  counter-increment: law;
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: var(--s-4);
  max-width: var(--measure);
}
.law-list li::before {
  content: counter(law, decimal-leading-zero);
  font-family: var(--display); font-size: .95rem; color: var(--gold); padding-top: .1em;
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.check-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: var(--s-3); max-width: var(--measure); }
.check-list li::before { content: ""; width: .9rem; height: 1px; background: var(--gold); margin-top: .85em; }

.tried { display: grid; gap: var(--s-4); max-width: 52rem; padding-top: var(--s-5); border-top: 1px solid var(--rule-gold); }
.tried h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; color: var(--bone); }
.tried .case { color: var(--bone-2); max-width: 58ch; }
.tried .more { font-size: .9rem; }

/* always-open Q and A, never an accordion */
.faq { display: grid; max-width: 64rem; border-top: 1px solid var(--rule); }
.faq .qa { display: grid; gap: .75rem; padding-block: clamp(1.5rem, 3vw, 2.15rem); border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .faq .qa { grid-template-columns: 5fr 7fr; gap: var(--s-6); } }
.faq .q { font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.25; color: var(--bone); max-width: 26ch; }
.faq .a { color: var(--bone-2); max-width: 58ch; }

/* ---- rulebook page ------------------------------------------------------- */
.ledger { display: grid; }
.lg-head { margin: clamp(2.5rem, 5vw, 3.5rem) 0 var(--s-4); }
.ledger section:first-child .lg-head { margin-top: 0; }
.lg-blurb { color: var(--bone-3); max-width: 56ch; margin-top: .35rem; }

/* ---- attorney ------------------------------------------------------------ */
.founder { display: grid; gap: clamp(2.75rem, 7vw, 6.25rem); align-items: center; max-width: 78rem; }
@media (min-width: 60rem) { .founder { grid-template-columns: minmax(21rem, .84fr) minmax(0, 1.16fr); } }
.founder-mark {
  position: relative; background: var(--field-2);
  border: 1px solid var(--rule-2); overflow: hidden;
  width: 100%; max-width: 20rem; aspect-ratio: 4 / 5;
  margin-inline: auto;
  display: grid; place-items: center;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .3);
}
@media (min-width: 60rem) { .founder-mark { max-width: 25rem; margin-inline: 0; } }
.founder-mark picture, .founder-mark img { width: 100%; height: 100%; }
.founder-mark img { object-fit: cover; object-position: center 16%; }
.career-record { display: grid; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule-gold); max-width: 38rem; }
.career-record .disp { max-width: 18ch; }
.team-roster { display: grid; margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.team-member { display: grid; gap: var(--s-5); align-items: start; padding-block: clamp(2.5rem, 5.5vw, 4.25rem); border-bottom: 1px solid var(--rule); }
.team-portrait { width: min(100%, 16rem); aspect-ratio: 4 / 5; overflow: hidden; background: var(--field-2); border: 1px solid var(--rule-2); box-shadow: 0 22px 54px rgba(0, 0, 0, .22); }
.team-portrait picture, .team-portrait img { display: block; width: 100%; height: 100%; }
.team-portrait img { object-fit: cover; object-position: center; }
.team-copy { display: grid; gap: .35rem; }
.team-role { color: var(--gold); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.team-bio { display: grid; gap: var(--s-3); margin-top: var(--s-3); max-width: 68ch; }
.team-bio p { color: var(--bone-2); }
@media (min-width: 48rem) {
  .team-member { grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
  .team-portrait { width: 100%; }
}
.cred { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cred li {
  display: grid; grid-template-columns: minmax(9rem, 2fr) 3fr; gap: var(--s-4);
  padding-block: var(--s-3); border-bottom: 1px solid var(--rule); font-size: .95rem;
}
.cred .k { color: var(--bone-3); }
.cred .v { color: var(--bone); }
.cred a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--rule-gold); }
@media (max-width: 34rem) { .cred li { grid-template-columns: 1fr; gap: .1rem; } }

/* ---- forms: calm private intake ------------------------------------------ */
input, textarea, select, button { font-size: max(16px, 1em); font-family: inherit; }
.form { display: grid; gap: 1.65rem; max-width: 42rem; padding-block: var(--s-5); border-top: 1px solid var(--rule-gold); border-bottom: 1px solid var(--rule); }
.field { display: grid; gap: .45rem; }
.field label { font-size: .92rem; font-weight: 600; letter-spacing: 0; color: var(--bone-2); }
.field input, .field textarea {
  width: 100%; color: var(--bone);
  background: var(--field-2);
  border: 1px solid var(--rule-2);
  padding: .95em 1em;
  min-height: 54px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-3); }
.field input:hover, .field textarea:hover { border-color: var(--rule-gold); }
.field input:focus, .field textarea:focus { border-color: var(--gold); background: var(--field-3); outline-offset: 2px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d98b6a; }
.field .hint { font-size: .84rem; color: var(--bone-3); }
.field .err { font-size: .84rem; color: #e8a68a; }
.field .err[hidden] { display: none; }
.field .opt { color: var(--bone-3); font-weight: 400; letter-spacing: .06em; text-transform: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e8a68a; }
.cta[aria-busy="true"] { opacity: .7; }
.cta:disabled { cursor: default; }
.consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3);
  align-items: start; font-size: .92rem; color: var(--bone-2);
  padding-block: .4rem; cursor: pointer;
}
.consent input { width: 1.5rem; height: 1.5rem; min-height: 0; accent-color: var(--gold-2); flex: none; margin-top: .1rem; }
.consent-err { margin-top: -.75rem; font-size: .84rem; color: #e8a68a; }
.consent-err[hidden] { display: none; }
.fine { font-size: .82rem; color: var(--bone-3); max-width: 52ch; }
.fine a { color: var(--bone-2); }

.contact-page .page-head .shell { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.contact-page .page-head .disp-xl { font-size: clamp(2.6rem, 2.1rem + 2vw, 3.75rem); }
.contact-page .page-head .lede { font-size: clamp(1.03rem, .98rem + .2vw, 1.14rem); max-width: 62ch; }
.contact-page .page-head .mute { max-width: 72ch; }

/* ---- final invitation ---------------------------------------------------- */
.callband { border-top: 1px solid var(--rule); }
.callband-in { padding-block: clamp(4rem, 8vw, 7.5rem); display: grid; gap: var(--s-5); }
.callband p { color: var(--bone-2); max-width: var(--measure); }
.callband .disp-lg { max-width: 15ch; font-size: clamp(2.5rem, 4.5vw, 4.5rem); }
@media (min-width: 60rem) {
  .callband-in { grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr); column-gap: clamp(4rem, 10vw, 10rem); align-items: end; }
  .callband-in > h2 { grid-column: 1; }
  .callband-in > p { grid-column: 2; grid-row: 1; }
  .callband-in > .hero-actions { grid-column: 2; justify-content: flex-start; }
}

/* ---- footer -------------------------------------------------------------- */
.foot { background: #0b0c0c; border-top: 1px solid var(--rule); color: var(--bone-3); font-size: .92rem; }
.foot-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-4);
  padding-block: clamp(3.5rem, 7vw, 6rem) var(--s-7);
}
.foot-brand { grid-column: 1 / -1; display: grid; gap: var(--s-3); }
.foot-brand img { width: min(8rem, 48%); mix-blend-mode: screen; }
@media (min-width: 60rem) {
  .foot-grid { grid-template-columns: 2.2fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
  .foot-brand { grid-column: auto; }
}
.foot h4, .foot .foot-h { font-family: var(--display); font-size: 1.08rem; font-weight: 400; letter-spacing: 0; color: var(--bone); margin-bottom: var(--s-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.foot ul a { display: inline-block; padding-block: .22rem; }
.foot a { color: var(--bone-3); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.disclosures {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-6) var(--s-8);
  display: grid; gap: var(--s-3);
  font-size: .78rem; line-height: 1.62; color: var(--bone-3); max-width: 94rem;
}
.disclosures strong { color: var(--bone-2); font-weight: 600; }
.site-credit { margin-top: var(--s-2); font-size: .68rem; letter-spacing: .08em; color: var(--bone-3); }
.site-credit a { color: inherit; border-bottom: 1px solid transparent; }
.site-credit a:hover, .site-credit a:focus-visible { color: var(--gold); border-bottom-color: currentColor; }
@media (min-width: 64rem) {
  .disclosures { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(3rem, 7vw, 7rem); }
  .disclosures .site-credit { grid-column: 1 / -1; }
}

/* Motion is limited to hover and focus feedback. The trust-first first view
   is fully composed on arrival, with no decorative entrance sequence. */

/* ---- phones -------------------------------------------------------------- */
a, button, label, summary, input { -webkit-tap-highlight-color: rgba(211, 176, 121, .22); }

@media (max-width: 67.99rem) {
  .top-in { padding-top: env(safe-area-inset-top); }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    /* Own the whole viewport while the header stays above it. This prevents
       the page beneath the sticky header from appearing as a false top gap. */
    position: fixed; inset: 0;
    width: 100%; height: 100vh; height: 100dvh;
    z-index: 39; margin-left: 0;
    background: var(--field);
    padding: calc(var(--nav-h) + clamp(1.25rem, 5vw, 2rem))
             max(clamp(1.15rem, 4vw, 2.75rem), env(safe-area-inset-right))
             calc(env(safe-area-inset-bottom) + 1.5rem)
             max(clamp(1.15rem, 4vw, 2.75rem), env(safe-area-inset-left));
    overflow-y: auto; overscroll-behavior: contain;
    gap: 0;
  }
  .nav.open .nav-close {
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    align-self: flex-end; min-height: 48px; padding: 0 .1rem;
    margin: 0 0 .55rem; background: transparent; border: 0;
    color: var(--bone); font-family: var(--body); font-size: .86rem;
    font-weight: 650; letter-spacing: 0; cursor: pointer;
  }
  .nav-close-mark { position: relative; width: 1rem; height: 1rem; flex: none; }
  .nav-close-mark::before, .nav-close-mark::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 1.15rem; height: 1px;
    background: currentColor; transform-origin: center;
  }
  .nav-close-mark::before { transform: translate(-50%, -50%) rotate(45deg); }
  .nav-close-mark::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .nav.open .nav-close:hover, .nav.open .nav-close:focus-visible { color: var(--gold); }
  .nav.open a {
    display: flex; align-items: center;
    flex: 0 0 auto; min-height: 4.25rem;
    font-family: var(--display);
    font-size: clamp(1.7rem, 7.6vw, 2.4rem);
    font-weight: 400; letter-spacing: 0; text-transform: none;
    color: var(--bone);
    padding: .5em 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav.open a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--rule-gold); }
  .nav.open .cta {
    flex: none; margin-left: 0; margin-top: auto;
    font-family: var(--body); font-size: .84rem;
    letter-spacing: .03em;
    min-height: 52px; border-bottom: 1px solid var(--gold);
  }
  .nav.open .nav-note {
    display: block; margin-top: .9rem; text-align: center;
    font-size: .78rem; letter-spacing: 0; color: var(--bone-3);
  }
  .menu-btn {
    display: inline-flex; align-items: center; margin-left: auto;
    background: none; border: 0; border-bottom: 1px solid var(--rule-2);
    color: var(--bone);
    font-size: .86rem; font-weight: 650; letter-spacing: .03em;
    min-width: 44px; min-height: 44px; padding: 0 0 .15em; cursor: pointer;
  }
  .menu-btn[aria-expanded="true"] { border-bottom-color: var(--gold); color: var(--gold); }

  .foot ul a { display: flex; align-items: center; min-height: 44px; }
  .foot ul { gap: 0; }
}

@media (max-width: 47.99rem) {
  .hero-grid { gap: 2.25rem; padding-block: 2.5rem 3.25rem; }
  .hero-copy { gap: 1.15rem; }
  .hero-h1 { font-size: clamp(2.85rem, 12.8vw, 4.25rem); line-height: .99; }
  .hero-support { font-size: 1.03rem; line-height: 1.56; }
  .hero-actions { align-items: stretch; }
  .hero-actions .cta { width: fit-content; }
  .hero-portrait { max-width: none; }
  .hero-portrait picture { aspect-ratio: 16 / 10; box-shadow: 0 22px 54px rgba(0, 0, 0, .28); }
  .proof-grid { gap: 0; }
  .proof-item strong { font-size: clamp(1.18rem, 5.3vw, 1.5rem); }
  .rules-intro { padding-bottom: 2.35rem; }
  .rules-list { padding-top: 0; }
  .rule-row { padding-block: 1.35rem; }
  .pgroup-h { margin-top: 3.5rem; }
  .page-head .shell { padding-block: 2.5rem 2.85rem; }
  .contact-page .page-head .shell { padding-block: 2.2rem 2.5rem; }
  .contact-page .page-head .disp-xl { font-size: clamp(2.7rem, 12vw, 3.35rem); }
  .contact-page .page-head .lede { font-size: 1rem; line-height: 1.52; }
  .contact-page .page-head .mute { font-size: .9rem !important; line-height: 1.52; }
  .form { padding-top: 1.5rem; }
  .callband-in { padding-block: 3.25rem; }
}

@media (pointer: coarse) {
  .pindex a { min-height: 64px; }
  .tlink { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 26rem) {
  .hero-h1 { max-width: 14ch; }
  .brand-name { font-size: .74rem; letter-spacing: .035em; }
  .hero-actions .cta { padding-inline: 1rem; }
}

/* ---- forced colors and high contrast ------------------------------------- */
@media (forced-colors: active) {
  /* let the OS palette win, but keep the structure legible */
  .cta, .tlink, .field input, .field textarea, .rule-row, .pindex li, .cred li {
    border-color: CanvasText;
    forced-color-adjust: none;
  }
  .cta { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
  .cta-solid { background: Highlight; color: HighlightText; border-color: Highlight; }
  .rule-num, .label, .pgroup-h { color: LinkText; }
  *:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
}

@media (prefers-contrast: more) {
  :root {
    --bone-2: #ddd7cb;
    --bone-3: #b9b2a4;
    --rule: rgba(242, 238, 230, .3);
    --rule-2: rgba(242, 238, 230, .45);
    --rule-gold: rgba(201, 170, 114, .78);
  }
  .pindex .thumb img, .figfull img { filter: none; }
}

/* ---- print --------------------------------------------------------------- */
@media print {
  .top, .callband, .foot-grid, .menu-btn, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  h1, h2, h3, h4, .disp, .hero-h1, .rule-num, .opener { color: #000; }
  .mute, .rule-cite, .disclosures, .fine, .hint { color: #333; }
  .rule-row, .pindex li, .cred li, .faq .qa { border-color: #bbb; break-inside: avoid; }
  .hero-h1 { font-size: 24pt; }
  main a[href^="/"]::after { content: " (ramsayinjurylaw.com" attr(href) ")"; font-size: 9pt; color: #555; }
  .disclosures { border-top: 1px solid #bbb; }
  @page { margin: 16mm; }
}
