/* ==========================================================================
   Demerle & Associates, P.C.
   Design system, taken from Jeff's approved Figma (HOME-1920 and HOME-1440).
   Every page on the site is built from the tokens and components in this file.
   ========================================================================== */

:root {
  /* Color */
  --ink: #000;
  --paper: #fff;
  --rule-soft: #696969;
  --green: #0e8337;
  --green-dark: #0b6a2c;
  --green-tint: rgba(14, 131, 55, .1);
  --rule-faint: rgba(0, 0, 0, .25);
  --gold: #ecb41f;
  --gold-dark: #d9a310;

  /* Type */
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* Layout: 80px gutters at 1440, 120px at 1920 */
  --gutter: clamp(20px, 8.333vw - 40px, 120px);
  --col-gap: clamp(24px, 1.667vw + 8px, 40px);
  --content-max: 1680px;

  /* Masthead */
  --banner-w: 207px;
  --ribbon-h: 59px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 32px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  line-height: 20px;
}
.skip-link:focus { top: 8px; }

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

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead { position: relative; z-index: 20; background: var(--paper); }

.masthead__top {
  position: relative;
  height: 154px;
  text-align: center;
}

.masthead__banner {
  position: absolute;
  left: var(--gutter);
  top: -3px;
  z-index: 16;
  width: var(--banner-w);
  /* white breathing room that interrupts the ribbon rules either side */
  box-shadow: -17px 0 0 var(--paper), 14px 0 0 var(--paper);
  background: var(--paper);
}
.masthead__banner img { width: 100%; aspect-ratio: 207 / 251; }

.masthead__title {
  padding-top: 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3.47vw, 50px);
  line-height: 65px;
  text-transform: uppercase;
  white-space: nowrap;
}
.masthead__title a { text-decoration: none; }

.masthead__date {
  display: block;
  margin-top: 11px;
  font-size: 14px;
  line-height: 20px;
}

.masthead__motto {
  position: absolute;
  right: var(--gutter);
  top: 31px;
  width: 193px; /* Richard 11/23: 10 percent smaller than drawn (214) */
}
.masthead__motto img { width: 100%; aspect-ratio: 214 / 97; }

/* Services ribbon */
.ribbon {
  position: relative;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ribbon__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--ribbon-h) - 2px);
  /* keep the links clear of the banner on the left and the menu on the right */
  padding-left: calc(var(--banner-w) + 28px);
  padding-right: 64px;
}
.ribbon__nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 26px;
  white-space: nowrap;
}
.ribbon__nav li + li::before {
  content: "\2022";
  margin-inline: clamp(12px, 1.6vw, 26px);
}
.ribbon__nav a { text-decoration: none; }
.ribbon__nav a:hover,
.ribbon__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.menu-toggle {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: 17;
  transform: translateY(-50%);
  display: grid;
  gap: 4.6px;
  width: 36.8px;
  padding: 10px 0;
  box-sizing: content-box;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 4.6px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

/* Site navigation: the hamburger turns the ribbon into a black bar
   (drawn by Jeff on PRACTICE AREAS-1440, "Navigation Bar (ACTIVE)") */
.menu {
  position: absolute;
  inset: -1px 0;
  z-index: 15;
  background: var(--ink);
  color: var(--paper);
}
.menu[hidden] { display: none; }
.menu__list {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 5.3vw - 33px, 43px);
  height: 100%;
  padding-left: calc(var(--gutter) + var(--banner-w) + 49px);
  padding-right: calc(var(--gutter) + 60px);
  font-size: 16px;
  line-height: 26px;
  white-space: nowrap;
}
.menu__list a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.menu__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: var(--gold);
  opacity: 0;
}
.menu__list a:hover::after,
.menu__list a[aria-current="page"]::after { opacity: 1; }
.menu__list a[aria-current="page"] { font-weight: 700; }
.menu__list--services { display: none; }
.menu :focus-visible,
.masthead.is-menu-open .menu-toggle:focus-visible { outline-color: var(--gold); }

/* open state: the hamburger becomes Jeff's thin white X, and the banner
   loses its white breathing room so the black bar meets it */
.masthead.is-menu-open .masthead__banner { box-shadow: none; }
.menu-toggle[aria-expanded="true"] span {
  justify-self: end;
  width: 25px;
  height: 2px;
  background: var(--paper);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(4px, 6.6px) rotate(50.62deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(4px, -6.6px) rotate(-50.62deg); }

/* wide screens: the ribbon links sit on the page centre, as drawn at 1920 */
@media (min-width: 1700px) {
  /* state cards read down the columns: CT, ME, MA then NH, RI, VT */
  .briefs__grid { grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
  .ribbon__inner { padding-right: calc(var(--banner-w) + 28px); }
  .ribbon__nav ul { font-size: 20px; }
  .ribbon__nav li + li::before { margin-inline: 30px; }
}

/* --------------------------------------------------------------------------
   Page body
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  padding-top: 64px;
  padding-bottom: 75px;
  overflow: hidden;
}

/* New England map, behind everything */
.page__map {
  position: absolute;
  z-index: 0;
  top: calc(157px - 5.83vw);
  left: calc(var(--gutter) + 13.33vw - 111px);
  width: calc(24.33vw + 344.6px);
  pointer-events: none;
  user-select: none;
}
.page__map img { width: 100%; aspect-ratio: 811.721 / 1137; }
.page > .container { position: relative; z-index: 1; }

@media (min-width: 1920px) {
  .page__map { top: 45px; left: calc(50% - 695px); width: 812px; }
}

/* Shared pieces ----------------------------------------------------------- */

.section-heading {
  font-size: 24px;
  line-height: 32px;
  text-transform: uppercase;
}
.section-heading a,
.counsel__name a { text-decoration: none; }
.section-heading a:hover,
.counsel__name a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.rule { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.rule--heavy { border-top-width: 4px; }

.button {
  display: inline-flex;
  align-items: center;
  padding: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.button:hover { background: var(--gold-dark); }

/* Lead story -------------------------------------------------------------- */

.lead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  grid-template-areas:
    "headline headline numbers"
    "story    story2   numbers";
  grid-template-rows: auto 1fr;
}

.lead__headline {
  grid-area: headline;
  margin-left: -4px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 40px;
  text-transform: uppercase;
}

/* Richard 11/23: "built" starts the third line, "New England" the fourth */
.lead__headline > span { display: block; }
.lead__headline > span:first-child { text-wrap: balance; }
.lead__headline .nobr { white-space: nowrap; }
/* between 1100 and 1700 the headline eases down so its first part holds to two lines */
@media (min-width: 1100px) and (max-width: 1699px) {
  .lead__headline { font-size: clamp(26px, 2.35vw, 36px); line-height: 1.11; }
}

.lead__col { padding-top: 20px; padding-bottom: 31px; }
.lead__col--a { grid-area: story; display: flex; flex-direction: column; }
.lead__col--b { grid-area: story2; }

.dateline { font-weight: 700; }

.tagline {
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 26px;
  font-size: 40px;
  line-height: 50px;
  font-weight: 700;
}
.tagline span { display: block; }

.pullquote {
  margin: 24px 0 30px;
  padding: 15px 0 23px;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  text-align: center;
}
.pullquote blockquote {
  max-width: 83.3%;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  line-height: 32px;
}
.pullquote figcaption {
  margin-top: 15px;
  font-size: 18px;
  line-height: 24px;
  text-transform: uppercase;
}
.pullquote cite { display: block; text-transform: none; font-style: italic; }

/* By the Numbers ---------------------------------------------------------- */

.numbers {
  grid-area: numbers;
  margin-top: 9px;
  container-type: inline-size;
  background: var(--paper);
  border: 2px solid var(--ink);
}
/* everything inside is sized in em so the whole box scales with its width:
   1em = 20px when the box is 533px wide (1920), 15.33px at 408px (1440) */
.numbers__inner {
  font-size: clamp(15px, 3.752cqw, 20px);
  line-height: 1.4;
  padding: 1.3em 1.65em 1.3em 1.65em;
}
.numbers__title {
  padding-bottom: .722em;
  font-size: 1.8em;
  line-height: .889;
}
.numbers__row {
  display: grid;
  grid-template-columns: 6.95em minmax(0, 1fr);
  align-items: start;
  padding: 1.05em 0;
  border-top: 1px solid var(--rule-soft);
}
.numbers__row:last-child { padding-bottom: 0; }
.numbers__figure {
  font-size: 2.4em;
  line-height: 1;
  font-weight: 700;
  padding-top: .12em;
}
.numbers__figure--words { font-size: 1.5em; line-height: 1.067; padding-top: .2em; }
.numbers__label { font-size: 1.2em; line-height: 1.167; font-weight: 700; }
.numbers__states {
  display: grid;
  grid-template-columns: 8.2em 1fr;
  margin-top: .55em;
}
.numbers__body { margin-right: -.95em; }
.numbers__body strong { font-weight: 700; }
.numbers__body span { display: block; }

/* Lower band: What We Handle / Six State Briefs / Dispatches -------------- */

.band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  border-top: 2px solid var(--ink);
  padding-top: 29px;
}
.band > section > .section-heading { margin-bottom: 21px; }

.handle__item { font-size: 20px; line-height: 26px; }
.handle__item + .handle__item { margin-top: 20px; }
.handle__item h3 { font-size: inherit; line-height: inherit; }
.handle__item h3 a { text-decoration: none; }
.handle__item h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.briefs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brief {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--green);
}
.brief__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 86px;
}
.brief__name { font-size: 20px; line-height: 26px; }
.brief__name a { text-decoration: none; }
.brief__type { font-size: 16px; line-height: 20px; text-transform: uppercase; }
.brief__time { max-width: 155px; font-size: 16px; line-height: 20px; font-style: italic; }
.brief__shape { flex: none; }
.brief .button { margin-top: auto; white-space: normal; }

.dispatches__list {
  padding: 12px 15px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.dispatch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(28px, 3.3vw, 63px);
  padding-bottom: 16px;
  font-size: 16px;
  line-height: 20px;
}
.dispatch + .dispatch { padding-top: 16px; border-top: 1px solid var(--ink); }
.dispatch:last-child { padding-bottom: 4px; }
.dispatch__date { font-size: 20px; line-height: 26px; font-weight: 700; white-space: nowrap; }
.dispatch__place { text-transform: uppercase; }
.dispatch a { text-decoration: none; }
.dispatch a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* --------------------------------------------------------------------------
   Interior pages (from Jeff's PRACTICE AREAS-1440)
   -------------------------------------------------------------------------- */

/* Page header ------------------------------------------------------------- */

.page-header { text-align: center; }
.page-header__title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 40px;
  text-transform: uppercase;
}
.page-header__deck {
  margin-top: 13px;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
  line-height: 32px;
}
.page-header__lede { margin-top: 13px; font-size: 22px; line-height: 32px; }

/* Stages and practice areas ----------------------------------------------- */

.stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px var(--col-gap);
  align-items: start;
  margin-top: 59px;
}
.stage { scroll-margin-top: 24px; }

.stage__header {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  margin-bottom: 28px;
  padding: 8px 44px 8px 20px;
  background: var(--green);
  color: var(--paper);
  /* arrow point, 24.3px deep, as drawn */
  clip-path: polygon(0 0, calc(100% - 24.3px) 0, 100% 50%, calc(100% - 24.3px) 100%, 0 100%);
}
/* the last stage has nowhere to point */
.stage__header--end { clip-path: none; }
.stage__number {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}
.stage__title {
  font-family: var(--serif);
  font-size: 27.66px;
  line-height: 30.43px;
}

.stage__areas { display: grid; gap: 20px; }

.area {
  padding: 25px 17.5px 16px;
  border: 1px solid var(--rule-faint);
  border-top: 0;
  background: linear-gradient(var(--gold), var(--gold)) top / 100% 9px no-repeat border-box var(--paper);
  font-size: 18px;
  line-height: 26px;
}
.area__title { margin-bottom: 10px; font-size: 24px; line-height: 26px; }
.area__points {
  margin-bottom: 10px;
  padding-left: 27px;
  list-style: disc;
  font-weight: 700;
}

/* Where We Practice ------------------------------------------------------- */

.where {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 2px solid var(--ink);
}
.where > .section-heading { margin-bottom: 38px; }
.where__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--col-gap);
}

.place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px 16px 12px;
  background: var(--paper);
  border: 1px solid var(--green);
}
/* the state sits on a 41px shelf; taller states rise through the top rule */
.place__shape {
  display: flex;
  align-items: flex-end;
  height: 41px;
  margin-bottom: 8px;
}
.place__shape img { flex: none; max-width: none; }
.place__name { font-size: 20px; line-height: 26px; }
.place__name a { text-decoration: none; }
.place__type { margin-bottom: 17px; font-size: 16px; line-height: 20px; text-transform: uppercase; }
.place .button { width: 100%; margin-top: auto; white-space: normal; }

/* Contact band ------------------------------------------------------------ */

.page--cta { padding-bottom: 85px; }

.cta { margin-top: 57px; background: var(--green-tint); scroll-margin-top: 24px; }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 35px;
  min-height: 117px;
  padding-block: 20px;
}
.cta__title {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 27.66px;
  line-height: 30.43px;
}
.cta__phone { font-size: 20px; line-height: 30px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.button--green {
  justify-content: center;
  min-width: 185px;
  min-height: 43px;
  padding: 6px 10px;
  background: var(--green);
  color: var(--paper);
  font-size: 20px;
  line-height: 30px;
}
.button--green:hover { background: var(--green-dark); }

/* --------------------------------------------------------------------------
   State briefs (built from Richard's wireframes with the pieces above)
   -------------------------------------------------------------------------- */

.block {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 2px solid var(--ink);
}
.block > .section-heading,
.trio .section-heading { margin-bottom: 24px; }
.page-header + .block { margin-top: 48px; }

/* At a glance -------------------------------------------------------------- */

.glance {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 24px var(--col-gap);
  align-items: start;
}
.facts {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: 16px;
  line-height: 24px;
}
.facts__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 16px;
  padding: 12px 15px;
}
.facts__row + .facts__row { border-top: 1px solid var(--ink); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.facts dd span { display: block; }
.facts dd em { display: block; }

.locator {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--green);
}
.locator svg { display: block; width: 100%; max-width: 230px; height: auto; margin-inline: auto; overflow: visible; }
.locator path { fill: rgba(14, 131, 55, .16); stroke: var(--paper); stroke-width: 3; }
.locator path.is-here { fill: var(--green); stroke: var(--gold); stroke-width: 7; paint-order: stroke; }
.note { margin-top: 14px; font-size: 14px; line-height: 20px; font-style: italic; }

/* The process -------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 14px 14px 16px;
  background: var(--paper);
  border: 1px solid var(--green);
  font-size: 16px;
  line-height: 22px;
}
.step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step__number {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
.step__title { font-size: 18px; line-height: 22px; }
/* arrow to the next step, sitting in the gap */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  border: 7px solid transparent;
  border-left: 10px solid var(--green);
  border-right: 0;
  transform: translateY(-50%);
}
.steps__note { margin-top: 14px; font-size: 16px; line-height: 24px; font-style: italic; }

/* What we handle in the state ---------------------------------------------- */

.handles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px var(--col-gap);
}
.area--brief { font-size: 16px; line-height: 24px; }
.area--brief .area__title { font-size: 20px; line-height: 26px; }
.area--brief .area__title a { text-decoration: none; }
.area--brief .area__title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.area--brief p + p { margin-top: 10px; }

/* Counsel / recent changes / GSE ------------------------------------------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px var(--col-gap);
  align-items: start;
}
.trio--two { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.counsel { display: flex; align-items: center; gap: 20px; }
.counsel__photo {
  flex: none;
  width: 120px;
  height: 147px;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.counsel__name { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 30px; }
.changes { font-size: 16px; line-height: 24px; }
.changes p + p { margin-top: 10px; }
.boxed {
  padding: 12px 15px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: 16px;
  line-height: 24px;
}

/* The other five states ---------------------------------------------------- */

.state-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 22px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.state-nav__label { font-size: 16px; line-height: 26px; font-weight: 700; text-transform: uppercase; }
.state-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 26px;
}
.state-nav li + li::before { content: "\2022"; margin-inline: 14px; }
.state-nav a { text-decoration: none; }
.state-nav a:hover,
.state-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* --------------------------------------------------------------------------
   Pages mapped over from the live site (About, Team, Auctions, Dispatches,
   Contact, legal). Built from the same tokens and pieces as the pages above.
   -------------------------------------------------------------------------- */

/* Running text ------------------------------------------------------------- */

.prose > * + * { margin-top: 20px; }
.prose h2,
.prose h3,
.prose h4 { margin-top: 34px; font-size: 22px; line-height: 30px; }
.prose > :first-child { margin-top: 0; }
.prose ul,
.prose ol { padding-left: 27px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.prose--small { font-size: 18px; line-height: 28px; }
.prose--small > * + * { margin-top: 16px; }
.prose--columns { column-count: 2; column-gap: var(--col-gap); }
.prose--narrow { max-width: 843px; margin-inline: auto; }
.prose__back { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--ink); font-size: 16px; line-height: 20px; text-transform: uppercase; }

.intro { margin-bottom: 30px; text-align: center; }

/* Two columns of story and one of sidebar, the home page grid --------------- */

.columns,
.about {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--col-gap);
  align-items: start;
}
.columns__main,
.about__main { grid-column: span 2; }
.columns__aside,
.about__aside { display: grid; gap: 36px; }
.columns__aside .section-heading,
.about__aside .section-heading { margin-bottom: 21px; }

.linklist {
  padding: 6px 15px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 28px;
}
.linklist li { padding-block: 9px; }
.linklist li + li { border-top: 1px solid var(--ink); }
.linklist a { text-decoration: none; }
.linklist a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* About -------------------------------------------------------------------- */

.film {
  position: relative;
  margin: 0 0 30px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.shout { padding: 26px 33px 30px; background: var(--paper); border: 2px solid var(--ink); }
.shout__title { font-family: var(--serif); font-size: 27.66px; line-height: 34px; }
.shout p { margin: 14px 0 22px; font-size: 18px; line-height: 26px; }

/* Our Team ----------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px var(--col-gap);
}
.member { scroll-margin-top: 24px; }
.member__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.member__photo { width: 100%; aspect-ratio: 387 / 475; object-fit: cover; border: 1px solid var(--ink); }
.member__name { display: block; margin-top: 14px; font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 26px; }
.member__more { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: .04em; }
.member__open:hover .member__more { text-decoration: underline; text-underline-offset: 4px; }

.bio {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.bio::backdrop { background: rgba(0, 0, 0, .55); }
html:has(.bio[open]) { overflow: hidden; }
.bio__inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px 40px;
  padding: 40px 44px 44px;
  border-top: 9px solid var(--gold);
}
.bio__close {
  position: sticky;
  top: 18px;
  float: right;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 18px 14px -62px 0;
  border: 0;
  background: var(--paper);
  cursor: pointer;
}
.bio__close::before,
.bio__close::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; top: 21px;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.bio__close::after { transform: rotate(-45deg); }
.bio__photo { width: 100%; aspect-ratio: 387 / 475; object-fit: cover; border: 1px solid var(--ink); }
.bio__contact { margin-top: 14px; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.bio__contact a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bio__name { padding-right: 48px; font-family: var(--serif); font-size: 32px; line-height: 38px; }
.bio__text { margin-top: 16px; font-size: 18px; line-height: 28px; }
.bio__text > * + * { margin-top: 14px; }
.bio__label {
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: 18px;
  line-height: 24px;
  text-transform: uppercase;
}
.bio__list { padding-left: 24px; list-style: disc; font-size: 17px; line-height: 26px; }
.bio__schools { display: grid; gap: 12px; font-size: 17px; line-height: 24px; }
.bio__schools li { display: flex; align-items: center; gap: 16px; }
.bio__logo { flex: none; display: grid; place-items: center; width: 64px; height: 56px; }
.bio__logo img { max-width: 100%; max-height: 56px; width: auto; }

/* Foreclosure Auctions ----------------------------------------------------- */

.notices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px var(--col-gap);
}
.notice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.notice__title { font-size: 20px; line-height: 26px; }
.notice__meta { padding-top: 12px; border-top: 1px solid var(--ink); font-size: 16px; line-height: 22px; }

/* Dispatches --------------------------------------------------------------- */

.entry {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding-block: 28px;
  border-top: 1px solid var(--ink);
}
.entry:first-child { padding-top: 0; border-top: 0; }
.entry__date { font-size: 20px; line-height: 34px; font-weight: 700; text-transform: uppercase; }
.entry__title { font-family: var(--serif); font-size: 27.66px; line-height: 34px; }
.entry__title a { text-decoration: none; }
.entry__title a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.entry__body p { margin-top: 10px; font-size: 18px; line-height: 28px; }
.entry .button { margin-top: 16px; padding-inline: 22px; }

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

.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--col-gap);
  align-items: start;
}
.contact .section-heading { margin-bottom: 21px; }
.contact .facts__row { grid-template-columns: 84px minmax(0, 1fr); }
.contact .facts a { text-decoration: none; }
.contact__quotes .pullquote { margin: 0; }
.contact__quotes .pullquote + .pullquote { border-top: 0; }
.contact__quotes .pullquote blockquote { max-width: 88%; font-size: 20px; line-height: 30px; }
.contact__quotes .pullquote figcaption { font-size: 16px; line-height: 22px; }

.form__field + .form__field { margin-top: 16px; }
.form label { display: block; margin-bottom: 4px; font-size: 16px; line-height: 22px; font-weight: 700; }
.form input,
.form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  line-height: 26px;
  -webkit-appearance: none;
  appearance: none;
}
.form textarea { resize: vertical; }
.form input:focus-visible,
.form textarea:focus-visible { outline-offset: 0; }
.form button { margin-top: 20px; border: 0; cursor: pointer; font-family: inherit; }

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

.footer { position: relative; }

.footer__bar {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
  min-height: 39px;
  font-size: 12px;
  line-height: 20px;
}
.footer__copy span + span { margin-left: 30px; }
.footer__links { font-size: 14px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__links a + a::before {
  content: "|";
  display: inline-block;
  margin-inline: 12px 16px;
}

.footer__logo {
  position: absolute;
  right: 0;
  top: -86px;
  z-index: 2;
  width: 182px;
}
.footer__logo img { width: 100%; aspect-ratio: 182 / 158; }

.footer__map {
  position: relative;
  height: 123px;
  overflow: hidden;
}
.footer__map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/footer-map.jpg") no-repeat right -40px top -230px / 1965px 524px;
  opacity: .15;
}

/* ==========================================================================
   Breakpoints
   1700 and up  : the 1920 layout
   1100 to 1699 : the 1440 layout
   below 1100   : tablet and phone (not drawn by Jeff, built from the system)
   ========================================================================== */

/* ---- The 1440 layout ---------------------------------------------------- */
@media (max-width: 1699px) {
  .lead {
    grid-template-areas:
      "headline headline numbers"
      "story    story2   numbers";
    grid-template-rows: auto auto;
    align-items: start;
  }
  .lead__headline { margin-left: -3px; }
  .lead__col { padding-top: 25px; padding-bottom: 43px; }
  .lead__col--a { align-self: stretch; }
  .tagline { padding-bottom: 26px; }

  .band {
    grid-template-areas:
      "handle handle dispatches"
      "briefs briefs briefs";
    padding-top: 29px;
  }
  .handle { grid-area: handle; }
  .dispatches { grid-area: dispatches; }
  .briefs {
    grid-area: briefs;
    margin-top: 36px;
    padding-top: 34px;
    border-top: 2px solid var(--ink);
  }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px var(--col-gap); }
  .step:not(:last-child)::after { left: calc(100% + var(--col-gap) / 2 - 5px); }

  .briefs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* the cards hold to the two left-hand columns, as drawn */
    width: calc((100% - 2 * var(--col-gap)) * 2 / 3 + var(--col-gap));
  }
}

/* ---- Tablet ------------------------------------------------------------- */
@media (max-width: 1099px) {
  :root { --banner-w: 150px; --gutter: clamp(20px, 4vw, 44px); }

  .masthead__top { height: 128px; }
  .masthead__title { padding-top: 34px; padding-right: var(--gutter); padding-left: calc(var(--gutter) + var(--banner-w) + 20px); line-height: 44px; font-size: clamp(22px, 3.9vw, 40px); }
  .masthead__date { margin-top: 6px; padding-right: var(--gutter); padding-left: calc(var(--gutter) + var(--banner-w) + 20px); }

  .footer__inner { display: flex; flex-wrap: wrap; gap: 2px 28px; padding-block: 8px; padding-right: 200px; }
  .masthead__motto { display: none; }
  .masthead__banner { box-shadow: -12px 0 0 var(--paper), 12px 0 0 var(--paper); }

  .ribbon__nav ul { font-size: 15px; }
  .ribbon__nav li + li::before { margin-inline: 10px; }
  .ribbon__inner { padding-left: calc(var(--banner-w) + 18px); padding-right: 52px; }

  .menu__list { padding-left: calc(var(--gutter) + var(--banner-w) + 24px); font-size: 14px; }

  .stage__header { gap: 18px; padding-right: 36px; }
  .stage__title { font-size: 22px; line-height: 26px; }
  .where__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns, .about, .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns__aside, .about__aside { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); align-items: start; }
  .contact__quotes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
  .contact__quotes .pullquote + .pullquote { border-top: 4px solid var(--ink); }
  .glance__aside { grid-column: 1 / -1; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
  .note { margin-top: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .handles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio, .trio--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .page { padding-top: 76px; }
  .page__map { top: 60px; left: 6vw; width: 70vw; }

  .lead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "headline headline"
      "story    story2"
      "numbers  numbers";
  }
  .lead__headline { font-size: 32px; line-height: 38px; margin-left: 0; }
  .numbers { margin: 0 0 44px; max-width: 533px; justify-self: center; width: 100%; }

  .band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "handle dispatches"
      "briefs briefs";
  }
  .briefs__grid { width: 100%; max-width: none; }
}

/* ---- Narrow tablet: the ribbon links move into the menu ------------------ */
@media (max-width: 899px) {
  .ribbon__nav { display: none; }
  .briefs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* the black bar grows into a panel, links stacked under the ribbon row */
  .menu {
    bottom: auto;
    min-height: calc(100% + 2px);
    padding: calc(var(--ribbon-h) + 6px) var(--gutter) 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .18);
  }
  .menu__list {
    display: block;
    height: auto;
    padding: 0;
    font-size: 17px;
    white-space: normal;
  }
  .menu__list a { display: block; height: auto; padding-block: 9px; }
  .menu__list a::after { right: auto; bottom: 3px; width: 44px; height: 3px; }
  .menu__list--services {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    font-family: var(--serif);
  }

  .stages { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .glance { grid-template-columns: minmax(0, 1fr); }
  .prose--columns { column-count: 1; }
  .bio__inner { grid-template-columns: minmax(0, 1fr); padding: 28px 22px 30px; }
  .bio__side { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: end; }
  .bio__contact { margin-top: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Phone -------------------------------------------------------------- */
@media (max-width: 699px) {
  :root { --banner-w: 92px; --ribbon-h: 50px; }

  body { font-size: 18px; line-height: 29px; }

  .masthead__top { height: 92px; text-align: left; }
  .masthead__banner { box-shadow: -8px 0 0 var(--paper), 8px 0 0 var(--paper); }
  .masthead__title {
    padding-top: 16px;
    padding-left: calc(var(--gutter) + var(--banner-w) + 16px);
    font-size: clamp(19px, 6vw, 26px);
    line-height: 1.15;
    white-space: normal;
  }
  .masthead__date { margin-top: 4px; padding-left: calc(var(--gutter) + var(--banner-w) + 16px); font-size: 12px; }

  .page { padding-top: 48px; padding-bottom: 56px; }
  .page__map { top: 40px; left: -8vw; width: 116vw; }

  .lead {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "headline" "story" "story2" "numbers";
  }
  .lead__headline { font-size: 26px; line-height: 31px; }
  .lead__col { padding-top: 18px; padding-bottom: 0; }
  .lead__col--b { padding-bottom: 36px; }
  .tagline { padding-top: 28px; padding-bottom: 10px; font-size: 34px; line-height: 42px; }
  .pullquote { margin-bottom: 24px; }
  .pullquote blockquote { font-size: 20px; line-height: 29px; }
  .pullquote figcaption { font-size: 15px; line-height: 21px; }
  .numbers { margin-bottom: 36px; }
  .numbers__inner { padding-inline: 1.2em; }
  .numbers__row { grid-template-columns: 6.3em minmax(0, 1fr); }
  .numbers__body { margin-right: 0; }
  .numbers__states { grid-template-columns: 7.5em 1fr; }

  .band {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "handle" "briefs" "dispatches";
    row-gap: 0;
  }
  .handle__item { font-size: 18px; line-height: 25px; }
  .briefs { margin-top: 32px; padding-top: 28px; }
  .dispatches { margin-top: 32px; padding-top: 28px; border-top: 2px solid var(--ink); }
  .dispatch { column-gap: 20px; }
  .dispatch__date { font-size: 18px; }

  .page-header__title { font-size: 26px; line-height: 31px; }
  .page-header__deck { font-size: 20px; line-height: 27px; }
  .page-header__lede { font-size: 18px; line-height: 27px; }
  .stages { margin-top: 36px; row-gap: 36px; }
  .stage__header { min-height: 60px; margin-bottom: 20px; padding-left: 14px; gap: 14px; }
  .stage__number { width: 38px; height: 38px; font-size: 20px; }
  .stage__title { font-size: 20px; line-height: 24px; }
  .area { font-size: 17px; line-height: 25px; }
  .area__title { font-size: 22px; }
  .where__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .place { padding-inline: 11px; }
  .block { margin-top: 32px; padding-top: 28px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .member__name { font-size: 18px; line-height: 23px; }
  .notices, .columns, .about, .contact, .columns__aside, .about__aside, .contact__quotes { grid-template-columns: minmax(0, 1fr); }
  .columns__main, .about__main { grid-column: auto; }
  .contact__quotes .pullquote + .pullquote { border-top: 0; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry__title { font-size: 23px; line-height: 29px; }
  .shout { padding: 22px 20px 24px; }
  .bio__name { font-size: 26px; line-height: 31px; }
  .prose--small { font-size: 17px; line-height: 27px; }
  .facts__row { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .glance__aside { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step:not(:last-child)::after { display: none; }
  .handles, .trio, .trio--two { grid-template-columns: minmax(0, 1fr); }
  .state-nav { flex-direction: column; align-items: center; }
  .cta { margin-top: 44px; }
  .cta__inner { flex-direction: column; align-items: flex-start; padding-block: 26px; }
  .cta__title { font-size: 24px; line-height: 28px; }
  .page--cta { padding-bottom: 36px; }

  .footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 4px;
    padding-block: 14px;
    padding-right: 0;
    text-align: center;
  }
  .footer__copy span { display: block; }
  .footer__copy span + span { margin-left: 0; }
  .footer__logo { position: static; width: 130px; margin: 0 auto 10px; order: -1; }
  .footer__map { height: 84px; }
}

@media (max-width: 479px) {
  .briefs__grid { grid-template-columns: minmax(0, 1fr); }
  .brief__top { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* step arrows stop at the end of a row */
@media (min-width: 1100px) and (max-width: 1699px) { .step:nth-child(4n)::after { display: none; } }
@media (min-width: 900px) and (max-width: 1099px) { .step:nth-child(3n)::after { display: none; } }
@media (min-width: 700px) and (max-width: 899px) { .step:nth-child(2n)::after { display: none; } }

/* ---- Richard 11/23: the six state briefs sit in one row, left to right ---- */
@media (min-width: 1200px) {
  .band {
    grid-template-areas:
      "handle handle dispatches"
      "briefs briefs briefs";
  }
  .handle { grid-area: handle; }
  .dispatches { grid-area: dispatches; }
  .briefs {
    grid-area: briefs;
    margin-top: 36px;
    padding-top: 34px;
    border-top: 2px solid var(--ink);
  }
  .briefs__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 12px;
    width: 100%;
  }
  .brief { gap: 12px; padding: 12px; }
  .brief__top { gap: 6px; min-height: 0; }
  .brief__name { font-size: clamp(15px, 1.2vw, 20px); line-height: 1.3; }
  .brief__type { font-size: clamp(12px, .95vw, 16px); line-height: 1.3; }
  .brief__time { max-width: none; font-size: clamp(13px, 1vw, 16px); line-height: 1.3; }
  .brief__shape {
    width: auto;
    height: auto;
    max-width: clamp(34px, 3vw, 60px);
    max-height: clamp(40px, 3.4vw, 64px);
  }
  .brief .button { padding: 8px 10px; font-size: clamp(13px, 1vw, 15px); white-space: normal; }
}

/* small laptops (three cards a row): keep the state name clear of the state shape */
@media (min-width: 900px) and (max-width: 1199px) {
  .brief__name { font-size: 18px; line-height: 24px; }
  .brief__shape { width: auto; height: auto; max-width: 40px; max-height: 56px; }
}

/* ribbon links stay clear of the banner and the menu icon at in-between widths */
@media (min-width: 1100px) and (max-width: 1399px) {
  .ribbon__nav ul { font-size: clamp(14px, 1.32vw, 18px); }
  .ribbon__nav li + li::before { margin-inline: clamp(7px, 1vw, 20px); }
}
@media (min-width: 900px) and (max-width: 999px) {
  .ribbon__nav ul { font-size: 13.5px; }
  .ribbon__nav li + li::before { margin-inline: 6px; }
}
