/* ==========================================================================
   Stuart D. Kaplow, P.A.
   Deep navy and slate with a thin gold accent: the register serious firms use.
   Archivo for headings and controls, Source Serif for
   reading, because this is a site people come to for articles.
   ========================================================================== */
:root {
  --primary: #13294a;        /* spruce */
  --primary-deep: #0b1c34;
  --accent: #e2a23b;         /* amber, used on dark */
  --accent-ink: #8a5a0a;     /* amber dark enough for text on light */
  --tint: #eef1f6;           /* glacier */
  --white: #ffffff;
  --text: #17231f;
  --muted: #56645f;
  --rule: rgba(19, 41, 74, .18);
  --rule-light: rgba(255, 255, 255, .22);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --pad: clamp(20px, 5vw, 56px);
  --band: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.125rem/1.65 var(--serif); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
html.menu-open, html.menu-open body { overflow: hidden; }
h1, h2, h3, p, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: 1296px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--primary); padding: 10px 14px; font-family: var(--sans); }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; color: var(--primary); text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.04; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px;
  font: 600 .9375rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn--accent { background: var(--accent); color: var(--primary-deep); }
.btn--accent:hover { background: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--primary); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-deep); }
.btn--outline { border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }

/* Photo / video slots */
.media { width: 100%; height: 100%; object-fit: cover; }
.ph { background: #d4dae2; display: grid; place-items: center; text-align: center; padding: 24px; box-shadow: inset 0 0 0 1px rgba(19, 41, 74, .14); }
.ph__label { font: italic 400 1.0625rem/1.4 var(--serif); color: rgba(19, 41, 74, .72); max-width: 24ch; }

/* ==========================================================================
   Header: sits on the spruce hero, turns white once scrolled
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white); font-family: var(--sans); transition: background-color .25s, color .25s, box-shadow .25s; }
.bar { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); min-height: 88px; transition: min-height .25s; }
.brand { display: grid; gap: 3px; text-decoration: none; margin-right: auto; }
.brand strong { font: 700 1.375rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.brand span { font-size: .75rem; opacity: .8; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav a { font-size: .9375rem; font-weight: 500; text-decoration: none; padding-block: 8px; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.nav a:hover { border-bottom-color: currentColor; }
.bar__phone { font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.bar__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar__cta { min-height: 44px; padding-inline: 20px; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: 600 .9375rem var(--sans); padding: 12px 0; cursor: pointer; }
.menu-btn__lines { width: 22px; height: 9px; border-block: 2px solid currentColor; }

.site-header.is-scrolled { background: var(--white); color: var(--primary); box-shadow: 0 1px 0 var(--rule); }
.site-header.is-scrolled .bar { min-height: 68px; }
.site-header.is-scrolled .bar__cta { background: var(--primary); color: var(--white); }
.site-header.is-scrolled .bar__cta:hover { background: var(--primary-deep); }
html.menu-open .site-header { background: transparent; color: var(--white); box-shadow: none; }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--primary); color: var(--white); overflow-y: auto; padding: 104px 0 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; font-family: var(--sans); }
.menu[hidden] { display: none; }
.menu__nav a { display: block; font: 600 clamp(1.625rem, 7vw, 2.25rem)/1.15 var(--display); letter-spacing: -.02em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.menu__foot { display: grid; gap: 20px; }
.menu__foot p a { font-weight: 600; text-decoration: none; line-height: 1.9; }

@media (max-width: 1180px) { .nav, .bar__cta, .bar__phone { display: none; } .menu-btn { display: inline-flex; } .bar { min-height: 72px; } }
@media (max-width: 420px) { .brand strong { font-size: 1.125rem; } .brand span { font-size: .6875rem; } }

/* ==========================================================================
   Hero: the firm's own thesis, set large, beside a tall framed video
   ========================================================================== */
.hero { background: var(--primary); color: var(--white); padding-top: 88px; }
.hero__in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: calc(max(100svh, 680px) - 88px); padding-block: clamp(40px, 6vw, 80px); }
.hero h1 { color: var(--white); font-size: clamp(2.75rem, 7vw, 6rem); line-height: .96; letter-spacing: -.035em; max-width: 11ch; }
.hero__sub { margin-top: clamp(24px, 3vw, 36px); max-width: 52ch; font-size: clamp(1.125rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, .86); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { aspect-ratio: 4 / 5; height: auto; max-height: calc(100svh - 180px); border-radius: 4px; justify-self: end; width: 100%; }
.hero__media.ph { background: #24416b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hero__media .ph__label { color: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero__sub, .hero__actions, .hero__media { animation: settle .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__sub { animation-delay: .1s; } .hero__actions { animation-delay: .2s; } .hero__media { animation-delay: .15s; }
  @keyframes settle { from { opacity: 0; transform: translateY(18px); } }
}
@media (max-width: 900px) {
  .hero { padding-top: 72px; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 16 / 11; max-height: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Practice areas: three doors into the site ------------------------------- */
.practice { background: var(--primary-deep); color: var(--white); }
.practice__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.practice__item { display: flex; flex-direction: column; gap: 14px; padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 44px); text-decoration: none; border-left: 1px solid var(--rule-light); transition: background-color .18s; }
.practice__item:first-child { border-left: 0; padding-left: 0; }
.practice__item:last-child { padding-right: 0; }
.practice__item h2 { color: var(--white); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
.practice__item p { font-size: 1.0625rem; color: rgba(255, 255, 255, .8); }
.practice__item span { margin-top: auto; padding-top: 10px; font: 600 .9375rem var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.practice__item:hover h2 { color: var(--accent); }
@media (max-width: 900px) {
  .practice__grid { grid-template-columns: 1fr; }
  .practice__item { padding-inline: 0; border-left: 0; border-top: 1px solid var(--rule-light); }
  .practice__item:first-child { border-top: 0; }
}

/* Legal Library: the heart of the site ------------------------------------- */
.library { padding-block: var(--band); background: var(--tint); }
.library__in { display: grid; grid-template-columns: 4fr 7fr; gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.library__head { position: sticky; top: 100px; }
.library__head p { margin-top: 20px; color: var(--muted); max-width: 38ch; }
.library__head ul { margin: 26px 0 30px; border-top: 2px solid var(--primary); font-family: var(--sans); }
.library__head li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 500; text-decoration: none; color: var(--primary); }
.library__head li a:hover { color: var(--accent-ink); }
.library__list { border-top: 2px solid var(--primary); }
.library__list a { display: grid; grid-template-columns: 7.5rem 1fr; gap: 6px 24px; padding: 26px 0; text-decoration: none; border-bottom: 1px solid var(--rule); align-items: baseline; }
.library__list time { font: 500 .875rem var(--sans); color: var(--muted); white-space: nowrap; }
.library__list h3 { font: 600 clamp(1.25rem, 1.9vw, 1.5625rem)/1.25 var(--serif); letter-spacing: -.01em; color: var(--primary); text-wrap: pretty; text-decoration: underline transparent 1.5px; text-underline-offset: 5px; transition: text-decoration-color .18s; }
.library__list a:hover h3 { text-decoration-color: var(--accent-ink); }
@media (max-width: 900px) {
  .library__in { grid-template-columns: 1fr; }
  .library__head { position: static; }
  .library__list a { grid-template-columns: 1fr; padding: 20px 0; }
}

/* About Stuart ------------------------------------------------------------- */
.about { padding-block: var(--band); }
.about__in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__photo { aspect-ratio: 4 / 5; height: auto; border-radius: 4px; }
.about__role { margin-top: 8px; font: 600 1rem var(--sans); color: var(--accent-ink); }
.about__text > p:not(.about__role) { margin-top: 22px; max-width: 60ch; }
.about__text ul { margin-top: 28px; border-top: 2px solid var(--primary); max-width: 66ch; }
.about__text li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
.about__text .btn { margin-top: 30px; }
@media (max-width: 900px) { .about__in { grid-template-columns: 1fr; } .about__photo { max-width: 420px; } }

/* How the firm works ------------------------------------------------------- */
.facts { background: var(--primary); color: var(--white); }
.facts__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts p { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.45; padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 44px); border-left: 1px solid var(--rule-light); text-wrap: pretty; }
.facts p:first-child { padding-left: 0; border-left: 0; }
.facts p:last-child { padding-right: 0; }
@media (max-width: 900px) { .facts__in { grid-template-columns: 1fr; } .facts p { padding-inline: 0; border-left: 0; border-top: 1px solid var(--rule-light); } .facts p:first-child { border-top: 0; } }

/* Speaking ----------------------------------------------------------------- */
.speaking { padding-block: var(--band); }
.speaking__in { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.speaking__text p { margin-top: 22px; max-width: 54ch; }
.speaking__text .speaking__label { margin-top: 32px; font: 600 .9375rem var(--sans); color: var(--accent-ink); }
.speaking__text ul { margin-top: 8px; border-top: 2px solid var(--primary); max-width: 58ch; }
.speaking__text li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-style: italic; }
.speaking__text .btn { margin-top: 30px; }
.speaking__photo { aspect-ratio: 5 / 4; height: auto; border-radius: 4px; }
@media (max-width: 900px) { .speaking__in { grid-template-columns: 1fr; } }

/* Consultation ------------------------------------------------------------- */
.consult { background: var(--primary); color: var(--white); padding-block: var(--band); }
.consult__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(32px, 7vw, 112px); }
.consult h2 { color: var(--white); }
.consult__text p { margin-top: 22px; max-width: 46ch; color: rgba(255, 255, 255, .86); }
.consult__text ul { margin-top: 30px; border-top: 1px solid var(--rule-light); font-family: var(--sans); }
.consult__text li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.consult__text li a { font: 600 1.25rem var(--display); letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.consult__text li a:hover { color: var(--accent); }
.link--light { color: var(--accent); text-underline-offset: 4px; }
.form { display: grid; gap: 20px; align-content: start; font-family: var(--sans); }
.form label { display: grid; gap: 6px; font-size: .9375rem; font-weight: 500; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form input, .form textarea { width: 100%; font: 400 1.0625rem/1.4 var(--sans); color: var(--white); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px; padding: 13px 14px; }
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form__fine { font-size: .8125rem; color: rgba(255, 255, 255, .72); max-width: 60ch; }
@media (max-width: 900px) { .consult__in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__two { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--primary-deep); color: rgba(255, 255, 255, .8); font: 400 .9375rem/1.6 var(--sans); padding-block: clamp(48px, 6vw, 80px) 32px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 36px clamp(24px, 4vw, 56px); }
.site-footer__name { font: 700 1.375rem/1.2 var(--display); letter-spacing: -.02em; color: var(--white); margin-bottom: 6px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer__fine { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--rule-light); display: grid; gap: 12px; font-size: .8125rem; color: rgba(255, 255, 255, .64); }
.site-footer__fine a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__top { grid-template-columns: 1fr; } }

.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 30; font-family: var(--sans); }
  .callbar a { padding: 16px 8px calc(16px + env(safe-area-inset-bottom)); text-align: center; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--white); background: var(--primary-deep); }
  .callbar a + a { background: var(--accent); color: var(--primary-deep); }
  body { padding-bottom: 54px; }
}

/* "Not built yet" note: deliberately plain ---------------------------------- */
.plain { background: #e1f7e8; min-height: 100svh; display: grid; place-items: center; padding: clamp(24px, 5vw, 56px) 20px; font: 400 1.0625rem/1.6 "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.plain__in { width: 100%; max-width: 680px; text-align: center; }
.plain img { width: 100%; height: auto; border-radius: 6px; }
.plain h1 { font: 700 clamp(1.625rem, 4.4vw, 2.25rem)/1.2 "Public Sans", system-ui, sans-serif; letter-spacing: 0; color: #17222f; margin-top: clamp(24px, 4vw, 40px); }
.plain p { margin-top: 16px; text-wrap: pretty; }
.plain__who { color: #566170; font-size: 1rem; }
.plain a { color: inherit; text-underline-offset: 3px; }
.plain__back { font-weight: 600; }
