/* ==========================================================================
   Law Office of Sherry L. Weindorf — fourth version, November 2026
   The third design (the client's own mockups: dark slate ground, a lighter
   header band, Newsreader for display over Inter for text, one gold accent,
   the stylized skyline and ring mark on her home page), with photographs
   back as the banners of the main inside pages.
   Fonts load from Google Fonts in each page's <head>.
   ========================================================================== */

:root {
  color-scheme: dark;

  --ground:   #1B2A2F;   /* page */
  --band-top: #22383F;   /* header band, top of its gradient; also panels and fields */
  --band-bot: #2E464D;
  --ink:      #0F1C21;   /* the skyline's buildings; the banner artwork is this colour */
  --rule:     #3F545A;
  --gold:     #E2B877;   /* the single accent */
  --text:     #FFFFFF;
  --soft:     #CBD6D9;   /* descriptions and small print */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter:  clamp(20px, 4vw, 40px);
  --wide:    1280px;
  --measure: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 20px/1.7 var(--sans);   /* the client's mockup is 22px; the last design was 17px */
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; padding: 10px 16px; background: var(--gold); color: var(--ground); font-size: 16px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 30; }

/* ---------- Header: mark and name left, navigation right ---------- */

.site-header {
  position: relative; z-index: 2;
  max-width: var(--wide); margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 40px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 15px;
  color: var(--text); text-decoration: none;
  font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.14; letter-spacing: .01em;
}
.wordmark:hover { color: var(--text); }
.wordmark img { flex: none; width: 54px; height: 54px; }

.site-nav { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 16px; font-weight: 500; }
.site-nav a {
  display: inline-block; padding: 10px 0;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .12s;
}
/* The gold line marks the page you are on, and the item the pointer is on. */
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav a.is-current { border-bottom-color: var(--gold); }

/* Practice Areas opens a menu on hover or keyboard focus. On a touch screen the
   link simply goes to the Practice Areas page, which lists all four. */
.dd { position: relative; }
.dd-menu {
  display: none; position: absolute; top: 100%; right: 0; z-index: 20;
  min-width: 310px; padding: 6px 0;
  background: var(--band-top); border: 1px solid var(--rule);
}
.dd:focus-within .dd-menu { display: block; }
.dd:focus-within > a { border-bottom-color: var(--gold); }
/* A menu item is marked with a lighter bar and the same gold line, drawn as an
   underline so that it is the width of the words. */
.site-nav .dd-menu a {
  display: block; padding: 12px 20px; border: 0;
  text-decoration-line: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-skip-ink: none;
}
.site-nav .dd-menu a:hover, .site-nav .dd-menu a:focus-visible, .site-nav .dd-menu a[aria-current="page"] {
  background: var(--band-bot); color: var(--text); text-decoration-color: var(--gold);
}
@media (hover: hover) {
  .dd:hover .dd-menu { display: block; }
  /* Practice Areas keeps its line while the pointer is in its menu. */
  .dd:hover > a { border-bottom-color: var(--gold); }
  /* One mark at a time. While the pointer is on another item, the current page gives
     its mark up, and takes it back when the pointer leaves. A browser too old for
     :has() skips these rules and shows both marks. */
  .site-nav:has(> a:hover, > .dd:hover, > .dd:focus-within) > a[aria-current="page"]:not(:hover),
  .site-nav:has(> a:hover, > .dd:hover, > .dd:focus-within) > .dd:not(:hover, :focus-within) > a { border-bottom-color: transparent; }
  .dd-menu:has(a:hover, a:focus-visible) a[aria-current="page"]:not(:hover, :focus-visible) { background: none; text-decoration-color: transparent; }
}

/* ---------- Header band: gradient, picture, page title ---------- */

.band {
  position: relative;
  background: linear-gradient(180deg, var(--band-top) 0%, var(--band-bot) 100%);
}
.band-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.band-art {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, 1600px); max-width: none;
  height: clamp(150px, 22.5vw, 340px); max-height: 100%;
  object-fit: cover; object-position: center bottom;
}
/* The home page skyline, where a page has no picture of its own: kept low, so it is
   drawn at full width and then flattened. */
.band-art--low {
  width: clamp(900px, 100%, 1700px); height: auto; max-height: none;
  transform: translateX(-50%) scaleY(.46); transform-origin: 50% 100%;
}
@media (min-width: 1601px) {
  .band-art {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
}
.band-title {
  position: relative; z-index: 1;
  max-width: var(--wide); margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}

/* A photograph as the banner: the full width of the window, between the header and the
   page title, with nothing on it. Each file is 2360 x 640. It is shown whole up to a
   window 1180 wide; wider than that it is trimmed a little top and bottom so the
   banner does not push the page down, and it never goes flatter than about 4.2 to 1.
   On a phone it is 150 high and trimmed at the sides. */
.band-photo {
  display: block; width: 100%; max-width: 2360px; margin: 0 auto;
  height: clamp(150px, 27.1vw, clamp(320px, 23.8vw, 500px));
  object-fit: cover; object-position: center;
}
/* What to keep when a photograph is trimmed. */
.band-photo--contact { object-position: center 12%; }   /* the spire of the Empire State Building */
.band-photo--court   { object-position: 60% 8%; }       /* the peak of the pediment */
@media (min-width: 2361px) {
  .band-photo {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
}
.band--photo .band-title { padding-top: 40px; padding-bottom: 44px; }
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow a { text-decoration: none; }
h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5.2vw, 52px); line-height: 1.05; letter-spacing: -.02em;
}

/* ---------- Body ---------- */

main { max-width: var(--wide); margin: 0 auto; padding: 68px var(--gutter) 80px; }
p { margin: 0 0 1.15em; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }

h2 {
  margin: 1.9em 0 .55em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(27px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -.015em;
}
h3 {
  margin: 2em 0 .6em;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.prose ul { margin: 0 0 1.4em; padding-left: 1.15em; }
.prose li { margin: 0 0 .5em; padding-left: .2em; }
.prose li::marker { color: var(--gold); }

/* A practice page's list of matters: ruled rows, the client's item on top and a
   line of description under it. */
.matters { list-style: none; margin: 32px 0 0; padding: 0; max-width: var(--measure); border-bottom: 1px solid var(--rule); }
.matters li { padding: 17px 0 19px; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.matters strong { display: block; font-weight: 500; }
.matters span { display: block; margin-top: 3px; color: var(--soft); font-size: .875em; line-height: 1.6; }

.call { margin: 44px 0 0; max-width: 720px; }

/* Attorney: portrait left, biography right */
.profile { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.profile img { display: block; width: 100%; border: 1px solid var(--rule); }
.profile .prose { max-width: 700px; }

/* Practice Areas: four panels, each one link */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); }
.card {
  position: relative;
  padding: 30px 34px 22px;
  background: var(--band-top); border: 1px solid var(--rule);
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--gold); }
.card h2 { margin: 0 0 20px; font-size: clamp(27px, 2.8vw, 32px); }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; }   /* the whole panel is the link */
.card h2 a:focus-visible { outline: none; }
.card h2 a:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 2px; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: .9em; line-height: 1.5; }

/* ---------- Contact form ---------- */

.contact-form { max-width: 760px; margin-top: 40px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.contact-form label {
  display: block; margin: 20px 0 7px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 0;
  background: var(--band-top); color: var(--text);
  font: inherit; font-size: 18px; line-height: 1.4;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.contact-form textarea { display: block; resize: vertical; }
.contact-form .fineprint { margin: 22px 0; color: var(--soft); font-size: 15px; line-height: 1.6; }
.contact-form button {
  padding: 16px 40px; border: 0; border-radius: 0;
  background: var(--gold); color: var(--ink);
  font: 600 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
}
.contact-form button:hover { background: #EFCF9D; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Home: the first screen is the splash with the firm's details under it ---------- */

/* The splash takes whatever height the details leave, so that the firm's name, phone
   and service area show without scrolling. The Attorney Advertising lines follow
   below the screen. */
.first-screen { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.splash {
  --sky: max(35vh, 15vw);            /* the height of the skyline */
  position: relative; overflow: hidden;
  flex: 1 0 auto; display: flex; flex-direction: column;
  min-height: calc(var(--sky) + 270px);   /* always room for the menu, the mark and the name */
  background: linear-gradient(180deg, #1A292F 0%, #263940 29%, #31444B 43%, #3C4C4D 68%, #484F4D 100%);
}
@supports (height: 1svh) { .splash { --sky: max(35svh, 15vw); } }
/* The skyline is as high as --sky. On a wide window it spans the width and is drawn
   lower than its natural shape; on a narrow one it keeps its shape and is trimmed at
   the sides. */
.splash-skyline {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: var(--sky); width: auto; min-width: 100%; max-width: none;
  aspect-ratio: 2000 / 646;
  pointer-events: none;
}
.splash .site-header { width: 100%; justify-content: flex-end; padding-top: 32px; }
/* The mark and the name sit in the sky above the skyline, a little above the middle
   of it. Where there is no room they start under the menu and run down over the
   buildings. */
.splash-main {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column; align-items: center;
  max-width: none; margin: 0; padding: 0 var(--gutter) var(--sky);
  text-align: center;
}
.splash-main::before { content: ""; flex: 2 1 0; }
.splash-main::after  { content: ""; flex: 3 1 0; }
.splash-mark {
  width: clamp(56px, min(8.6vw, 10vh), 88px); width: clamp(56px, min(8.6vw, 10svh), 88px);
  height: auto;
  margin-bottom: clamp(14px, 2.6vh, 30px);
}
.splash h1 {
  font-size: clamp(42px, min(7.1vw, 8.4vh), 72px); font-size: clamp(42px, min(7.1vw, 8.4svh), 72px);
  line-height: 1.08;
}
.splash h1 span { display: block; }
.splash h1 .of { margin-bottom: .2em; font-size: .58em; letter-spacing: -.01em; }   /* 40px beside 70, the sizes in her mockup */

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 44px 0 52px; color: var(--soft); font-size: 15px; line-height: 1.7; }
.site-footer .inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.site-footer p { max-width: 86ch; margin: 0 0 12px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--gold); }
.site-footer strong { color: var(--text); font-weight: 600; }
.site-footer .foot-name { margin: 0 0 8px; color: var(--text); font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.site-footer .foot-rule { width: 46px; height: 2px; margin: 0 0 22px; background: var(--gold); }
.site-footer .legal { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }
.site-footer .legal + .legal { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer .credit { margin: 14px 0 0; font-size: 13px; color: #A9B8BC; }
.site-footer .credit a { color: inherit; }

/* Home only: the footer is in two parts. The firm's details close the first screen,
   set in two columns to keep them short; the legal lines come after. */
.foot-lead { padding: 30px 0 28px; }
.foot-lead .inner {
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas: "name area" "rule area" "reach area";
  column-gap: clamp(40px, 7vw, 110px); align-items: start;
}
.foot-lead .foot-name  { grid-area: name; }
.foot-lead .foot-rule  { grid-area: rule; margin-bottom: 14px; }
.foot-lead .foot-reach { grid-area: reach; margin: 0; }
.foot-lead .foot-area  { grid-area: area; margin: 0; padding-top: 5px; max-width: 66ch; }
.foot-legal { border-top: 0; padding-top: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile img { width: 230px; }
  .contact-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .band-title { padding-top: 32px; padding-bottom: 64px; }
  .band--photo .band-title { padding-top: 28px; padding-bottom: 32px; }
  main { padding-top: 48px; padding-bottom: 60px; }
  .foot-lead .inner { display: block; }
  .foot-lead .foot-rule { margin-bottom: 18px; }
  .foot-lead .foot-area { margin-bottom: 12px; padding-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .site-header { padding-top: 20px; padding-bottom: 12px; }
  .wordmark { font-size: 22px; gap: 12px; }
  .wordmark img { width: 46px; height: 46px; }
  .site-nav { gap: 2px 22px; font-size: 15px; }
  .dd-menu { right: auto; left: 0; min-width: 280px; }
  .splash .site-header { justify-content: center; }
  .splash { --sky: 28vh; }
  @supports (height: 1svh) { .splash { --sky: 28svh; } }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 17px; }
}

@media print {
  body, .band, .splash { background: #fff; color: #000; }
  .site-nav, .band-art, .band-photo, .splash-skyline, .skip-link, .contact-form { display: none; }
  .matters span, .site-footer, .site-footer a, .site-footer strong, .site-footer .foot-name { color: #000; }
}
