/* ==========================================================================
   Green & Associates LLC — site styles

   Design language: the ledger sheet.
   Ink on paper, ruled lines instead of boxes, account numbers down the left,
   a red double margin rule, and the accountant's double rule under a total.
   No shadows, no gradients, no rounded corners.

   Type: Besley (a Clarendon) for headings, Libre Franklin for text.
   Both are SIL Open Font License and self-hosted in ../fonts.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Besley";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/besley-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/libre-franklin-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --paper: #fcfcf9;        /* the page */
  --white: #ffffff;
  --sheet: #edf2e8;        /* ledger-green paper */
  --sheet-rule: #bccdb9;   /* ruled lines on the sheet (decorative) */
  --ink: #17201b;          /* headings, heavy rules */
  --ink-2: #39433d;        /* body text */
  --ink-3: #56615a;        /* labels, account numbers */
  --hair: #cdd2ca;         /* hairlines on paper (decorative) */
  --green: #1c5f41;        /* links, buttons, numbers */
  --green-dark: #123f2b;
  --red: #b4372c;          /* errors */
  --red-rule: #d6877d;     /* the ledger's margin rule (decorative) */
  --field-border: #7f877f; /* ≥3:1 on white for form-field boundaries (WCAG 1.4.11) */
  --field-border-hover: #56615a;
  --error-ink: #8c241b;
  --error-bg: #fbeeec;

  --f-display: "Besley", "Clarendon", "Century Schoolbook", Rockwell, Georgia, serif;
  --f-text: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --margin-rule: 3px double var(--red-rule);
  --total-rule: 3px double var(--ink);
  --focus: var(--green);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  font-variant-numeric: lining-nums;
  line-height: 1.6;
  overflow-wrap: break-word; /* a word too long for its line breaks instead of widening the page */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.3rem);
}

/* Item-level headings are set in the text face, like entries on a form. */
h3 {
  font-family: var(--f-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
  text-decoration-thickness: 2px;
}

address {
  font-style: normal;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

strong {
  font-weight: 700;
}

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

main:focus {
  outline: none;
}

::selection {
  background: var(--green);
  color: var(--white);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:not(:focus) {
  /* Parked off-screen without widening the page. */
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.nowrap {
  white-space: nowrap;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.container--narrow {
  max-width: 760px;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon--external {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.3em;
  vertical-align: -0.06em;
}

/* A small form-style label followed by a rule that runs to the edge. */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.1rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}

/* The margin rule: a red double line down the left, as on ledger paper. */
.margin-rule {
  padding-left: clamp(16px, 3vw, 34px);
  border-left: var(--margin-rule);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 0;
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn {
  max-width: 100%;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary[aria-current="page"] {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--paper:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--green-dark);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn--sm {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 0.95rem;
}

.btn--lg {
  min-height: 54px;
  padding: 14px 30px;
  font-size: 1.05rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.arrow-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.arrow-link:hover {
  color: var(--green-dark);
  text-decoration-thickness: 2px;
}

.arrow-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
/* Closes with a thick-and-thin rule, as at the head of a ledger page. */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  margin-bottom: 3px;
  background: var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-block: 18px;
}

/* The wordmark: the firm's name over a double rule, the mark an accountant
   draws under a final total. */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark__name {
  padding-bottom: 4px;
  border-bottom: 3px double currentColor;
  font-family: var(--f-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.wordmark__llc {
  font-family: var(--f-text);
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wordmark__tag {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 22px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.site-nav__phone {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__phone:hover {
  text-decoration: underline;
}

.site-nav__cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* Desktop: the wordmark never shrinks under the menu (for example with very
   large text); the menu wraps onto its own row instead. */
@media (min-width: 56.3125em) {
  .wordmark {
    flex-shrink: 0;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }
}

/* Mobile navigation. The breakpoint is in em so that a larger browser text size
   switches to the compact menu sooner (keep in sync with main.js and noscript.css).
   The open menu sits in the page flow under the header, so it scrolls with the page. */
@media (max-width: 56.25em) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 6px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--ink);
  }

  .site-nav__link {
    padding: 14px 2px;
    border-bottom: 1px solid var(--hair);
    font-size: 1.05rem;
  }

  .site-nav__phone {
    padding: 6px 2px;
  }

  .site-nav__cta {
    min-height: 50px;
  }
}

@media (max-width: 25em) {
  .site-header__inner {
    gap: 12px;
  }

  .wordmark__name {
    font-size: 1.14rem;
  }

  .wordmark__tag {
    display: none;
  }
}

/* Very narrow screens (or large text): the menu button becomes icon-only,
   keeping "Menu" as its accessible name. */
@media (max-width: 22.5em) {
  .nav-toggle {
    min-width: 44px;
    padding: 8px 12px;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .wordmark__name {
    font-size: 1.02rem;
  }

  /* With very large text on a very small screen, let long buttons wrap. */
  .btn {
    padding-inline: 14px;
  }

  .cta__actions .nowrap {
    white-space: normal;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(48px, 7vw, 92px);
}

.section--tight {
  padding-block: clamp(32px, 4vw, 52px);
}

/* A band of ledger-green paper. */
.band {
  background: var(--sheet);
  border-block: 1px solid var(--sheet-rule);
}

/* "Part I" — the section marker used on tax forms: a heavy rule, a reversed
   box for the part number, and the part's name beside it. */
.part {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.part__no {
  padding: 6px 11px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}

.part__name {
  align-self: center;
}

.intro {
  max-width: 46rem;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.intro__lede {
  font-size: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.split__lede {
  margin-bottom: 1.4rem;
  font-size: 1.1rem;
}

@media (max-width: 54em) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Ledger block (label | particulars) ---------- */
.ledger {
  background: var(--sheet);
  border-top: 3px solid var(--ink);
  border-bottom: var(--total-rule);
}

.band .ledger {
  background: var(--white);
}

.ledger__title {
  margin: 0;
  padding: 11px 18px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ledger__rows {
  margin: 0;
}

.ledger__row {
  display: grid;
  grid-template-columns: var(--ledger-label, 7.5em) minmax(0, 1fr);
  border-bottom: 1px solid var(--sheet-rule);
}

.ledger__row:last-child {
  border-bottom: 0;
}

.ledger__row dt {
  padding: 13px 12px 13px 18px;
  border-right: var(--margin-rule);
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.ledger__row dd {
  margin: 0;
  padding: 12px 18px 13px 14px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ledger__note {
  display: block;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.ledger__link {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
  font-weight: 600;
}

.ledger--wide {
  --ledger-label: 10.5em;
}

/* On wide screens the strip variant reads across, as columns. */
@media (min-width: 60em) {
  .ledger--strip .ledger__rows {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ledger--strip .ledger__row {
    display: block;
    padding: 14px 18px 17px;
    border-bottom: 0;
    border-left: 1px solid var(--sheet-rule);
  }

  .ledger--strip .ledger__row:first-child {
    border-left: 0;
  }

  .ledger--strip .ledger__row dt {
    padding: 0 0 5px;
    border-right: 0;
  }

  .ledger--strip .ledger__row dd {
    padding: 0;
  }
}

@media (max-width: 26em) {
  .ledger__row,
  .ledger--wide .ledger__row {
    grid-template-columns: 6.2em minmax(0, 1fr);
  }

  .ledger__row dt {
    padding-left: 12px;
  }

  .ledger__row dd {
    padding-right: 10px;
    padding-left: 12px;
  }

  .ledger__title {
    padding-left: 12px;
  }
}

/* ---------- Home: hero ---------- */
.hero {
  padding-block: clamp(36px, 6vw, 80px) clamp(8px, 2vw, 20px);
}

.hero__copy {
  margin-bottom: clamp(34px, 5vw, 60px);
}

.hero__title {
  max-width: 19em;
  margin-bottom: 0.45em;
}

.hero__lede {
  max-width: 40em;
  margin-bottom: 1.8rem;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* ---------- Home: the services ledger ---------- */
.accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: var(--total-rule);
}

.account {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px) clamp(18px, 2.4vw, 30px) clamp(24px, 2.6vw, 32px);
  border-left: 1px solid var(--hair);
}

.account:first-child {
  padding-left: 0;
  border-left: 0;
}

.account:last-child {
  padding-right: 0;
}

/* Number column and text column, shared by an account's heading and its lines. */
.account__head,
.lines li {
  display: grid;
  grid-template-columns: 3.1em minmax(0, 1fr);
  column-gap: 6px;
  align-items: baseline;
}

.account__no,
.lines__no {
  font-variant-numeric: tabular-nums lining-nums;
}

.account__no {
  margin: 0;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
}

.account__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.account__summary {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
}

.lines {
  margin: 1.2rem 0 1.4rem;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.lines li {
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
}

.lines__no {
  color: var(--ink-3);
  font-size: 0.86rem;
}

.account__more {
  align-self: flex-start;
}

/* In three columns, line the accounts up row by row (heading, summary, lines),
   the way columns on a ledger share their rules. */
@media (min-width: 62.0625em) {
  @supports (grid-template-rows: subgrid) {
    .account {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
    }
  }
}

@media (max-width: 62em) {
  .accounts {
    grid-template-columns: minmax(0, 1fr);
  }

  .account,
  .account:first-child,
  .account:last-child {
    padding-inline: 0;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .account:first-child {
    border-top: 0;
  }
}

/* ---------- Home: sectors ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 32px;
  list-style: none;
}

.sector {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.sector__title {
  margin-bottom: 0.4em;
  font-size: 1.08rem;
}

.sector p {
  font-size: 0.97rem;
}

@media (max-width: 62em) {
  .sectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36em) {
  .sectors {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Home: notes (as in "notes to the financial statements") ---------- */
.notes {
  list-style: none;
  border-top: 2px solid var(--ink);
  border-bottom: var(--total-rule);
}

.note {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  column-gap: 18px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--hair);
}

.note:last-child {
  border-bottom: 0;
}

.note__no {
  margin: 0;
  padding-top: 0.22em;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.note h3 {
  margin-bottom: 0.3em;
  font-size: 1.1rem;
}

@media (max-width: 30em) {
  .note {
    grid-template-columns: minmax(0, 1fr);
  }

  .note__no {
    padding: 0 0 6px;
  }
}

/* ---------- Home: director ---------- */
.director__role {
  margin: 0;
  color: var(--ink-3);
  font-weight: 600;
}

.director__photo {
  width: 168px;
  height: 168px;
  margin-top: 22px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}

.director__bio {
  font-size: 1.08rem;
}

.director__bio + .arrow-link {
  margin-top: 0.4rem;
}

/* ---------- Call to action ---------- */
.cta {
  --focus: var(--white);
  padding-block: clamp(44px, 6vw, 72px);
  background: var(--green);
  color: #e6efe7;
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px 48px;
}

.cta h2 {
  margin-bottom: 0.3em;
  color: var(--white);
}

.cta p {
  max-width: 40em;
  font-size: 1.08rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Inner page heading ---------- */
.page-head {
  padding-block: clamp(34px, 5.5vw, 68px) clamp(30px, 4.5vw, 56px);
  border-bottom: 1px solid var(--hair);
}

.page-head h1 {
  max-width: 17em;
}

.page-head__lede {
  max-width: 44em;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
}

.page-head--error {
  padding-block: clamp(56px, 9vw, 120px);
  border-bottom: 0;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 1.8rem;
  list-style: none;
}

/* ---------- Services page ---------- */
/* Contents: the three accounts, numbered. */
.contents {
  margin-top: 1.9rem;
}

.contents ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.contents a {
  display: grid;
  grid-template-columns: 3.1em minmax(0, 1fr);
  column-gap: 6px;
  align-items: baseline;
  height: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.contents a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.contents__no {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}

@media (max-width: 48em) {
  .contents ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service {
  padding-block: clamp(44px, 6vw, 80px);
  border-bottom: 1px solid var(--hair);
}

.service__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.service__no {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}

.service__intro {
  margin-bottom: 1.6rem;
  font-size: 1.08rem;
}

.lines--detail {
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: var(--total-rule);
}

.lines--detail li {
  grid-template-columns: 3.4em minmax(0, 1fr);
  padding: 17px 0 19px;
  font-size: 1rem;
}

.lines--detail li:last-child {
  border-bottom: 0;
}

.lines--detail .lines__no {
  font-size: 0.9rem;
}

.lines--detail h3 {
  margin-bottom: 0.25em;
  font-size: 1.1rem;
}

.lines--detail p {
  color: var(--ink-2);
  line-height: 1.55;
}

.fine-print {
  color: var(--ink-3);
  font-size: 0.875rem;
}

@media (max-width: 54em) {
  .service__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- About page ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.profile__photo {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 22px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}

@media (max-width: 54em) {
  .profile {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile__photo {
    max-width: 240px;
  }
}

.prose {
  max-width: 66ch;
}

.prose p:not(.label),
.prose li {
  font-size: 1.08rem;
}

.prose h2 {
  margin-top: 1.7em;
}

.prose > h2:first-child,
.prose > .label + h2 {
  margin-top: 0;
}

.prose h3 {
  margin: 2.1em 0 0.8em;
}

.prose ul:not(.ruled-list) {
  display: grid;
  gap: 0.6em;
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.prose address {
  margin-top: 0.6em;
  padding-left: 16px;
  border-left: var(--margin-rule);
  color: var(--ink);
}

/* A plain ruled list, set in columns. */
.ruled-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.prose .ruled-list li,
.ruled-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.4;
}

@media (max-width: 40em) {
  .ruled-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 24em) {
  .ruled-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Contact page ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact--no-form {
  grid-template-columns: minmax(0, 1fr);
}

.contact__form {
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 3px solid var(--ink);
  scroll-margin-top: 16px;
}

.contact__heading {
  font-size: clamp(1.45rem, 1.3rem + 0.8vw, 1.85rem);
}

.info {
  padding: 16px 0 22px;
  border-top: 1px solid var(--ink);
}

.info:first-child {
  border-top-width: 3px;
}

.info__title {
  margin: 0 0 0.55rem;
  color: var(--ink-3);
  font-family: var(--f-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.info address,
.info p {
  margin-bottom: 0.6rem;
  color: var(--ink);
  line-height: 1.55;
}

.info > :last-child {
  margin-bottom: 0;
}

.info__list {
  display: grid;
  gap: 6px;
  list-style: none;
}

.info__list a {
  overflow-wrap: anywhere;
}

.info a {
  font-weight: 600;
}

.contact--no-form .contact__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 32px;
}

.contact--no-form .info {
  border-top-width: 3px;
}

@media (min-width: 56.3125em) {
  .contact--no-form .contact__info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 64em) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The note beside the margin rule. */
.form-note {
  margin-bottom: 28px;
  padding: 2px 0 2px 16px;
  border-left: var(--margin-rule);
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.55;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 650;
}

.field__req,
.field__opt {
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--field-border);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  scroll-margin-top: 3rem;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--field-border-hover);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.select {
  position: relative;
}

.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  pointer-events: none;
}

.field select {
  padding-right: 44px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.field--error input,
.field--error textarea {
  border-color: var(--red);
  border-width: 2px;
}

.field__error {
  display: flex;
  gap: 8px;
  margin: 0;
  color: var(--error-ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.field__error .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.field--hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 30px;
}

.form button[type="submit"][aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

.form__privacy {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.alert {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 2px solid;
  font-size: 0.98rem;
}

.alert:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.alert > .icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.alert__title {
  margin-bottom: 0.25em;
  font-weight: 700;
}

.alert ul {
  margin-top: 0.4em;
  padding-left: 1.2em;
}

.alert--success {
  background: var(--sheet);
  border-color: var(--green);
  color: var(--green-dark);
}

.alert--error {
  background: var(--error-bg);
  border-color: var(--red);
  color: var(--error-ink);
}

.alert--error a {
  color: var(--error-ink);
}

@media (max-width: 38em) {
  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form__actions .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
/* Opens with the header's rule in reverse: thin, then thick. */
.site-footer {
  border-top: 1px solid var(--ink);
  color: var(--ink-2);
  font-size: 0.96rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  margin-top: 3px;
  background: var(--ink);
}

.site-footer a {
  color: var(--ink);
}

.site-footer a:hover {
  color: var(--green-dark);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 36px;
  padding-top: clamp(36px, 5vw, 56px);
}

.site-footer__lede {
  max-width: 30em;
  margin: 1.2rem 0 1rem;
}

.site-footer__contact {
  display: grid;
  gap: 6px;
  color: var(--ink);
  line-height: 1.5;
}

.site-footer__contact a {
  justify-self: start;
  overflow-wrap: anywhere;
}

.site-footer__heading {
  margin: 0 0 0.9rem;
  color: var(--ink-3);
  font-family: var(--f-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer__col ul {
  display: grid;
  gap: 9px;
  list-style: none;
}

.site-footer__col li {
  text-wrap: balance;
}

.site-footer__bottom {
  display: grid;
  gap: 8px;
  margin-top: clamp(32px, 5vw, 52px);
  padding-block: 20px 30px;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 0.875rem;
}

.site-footer__disclaimer {
  max-width: 90ch;
}

@media (max-width: 62em) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36em) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
  .btn,
  .nav-toggle {
    border: 1px solid ButtonText;
  }

  .label::after,
  .site-header::after,
  .site-footer::before,
  .nav-toggle__bars span {
    background: CanvasText;
  }

  .part__no {
    border: 1px solid CanvasText;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header .nav-toggle,
  .site-nav,
  .skip-link,
  .cta,
  .contents,
  .hero__actions,
  .form,
  .form-note,
  .site-footer__col {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .band,
  .ledger {
    background: none !important;
  }

  .section,
  .service {
    padding-block: 16pt;
  }
}
