/*
 * VanDeBeers Attorneys Inc.
 *
 * The visitor is almost always someone who has just received a letter of demand: anxious,
 * on a phone, and checking whether the firm is real before they decide what to do. The design
 * follows from that — high contrast, large type, no imagery, nothing to scroll past before
 * the answer. A law firm site that looks like a marketing site makes the letter look less
 * real, not more.
 */

:root {
  /* #7F194A on #FFFFFF is 9.81:1 — comfortably past the 4.5:1 floor for body text. */
  --ink: #1f1418;
  --ink-soft: #5c4a52;
  --brand: #7f194a;
  --rule: #e0d5da;
  --paper: #ffffff;
  --tint: #faf5f7;
  /*
   * Two colours, each with a job — so the palette is doing work rather than decorating.
   *
   *   maroon  the firm and the legal register: identity, headings, the step being taken.
   *   green   the resolve-this register: verification, and the ways out of the matter.
   *
   * Someone anxiously scanning the page can find the reassuring parts without reading, and
   * the two never mean the same thing. Both computed against white: 9.81:1 and 5.29:1.
   */
  --accent: #00787a;
  --accent-tint: #f2f8f8;

  --warn-bg: #fff8e6;
  --warn-edge: #c98a00;
  --warn-ink: #6b4800;

  --measure: 34rem;
  --gap: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 'Palatino Linotype', Palatino, 'Book Antiqua', Baskerville, 'Hoefler Text', Garamond, 'Times New Roman', serif;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 var(--gap); }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.masthead { border-bottom: 2px solid var(--brand); padding: 1.75rem 0 1.25rem; }

.wordmark { margin: 0; }

.wordmark img {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
}

.eyebrow {
  font: 0.72rem/1.4 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}

.credentials {
  font: 0.82rem/1.6 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
  margin: 0.85rem 0 0;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
nav { border-bottom: 1px solid var(--rule); }

nav ul {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}

nav a {
  display: block;
  /* 44px minimum touch target — this market is overwhelmingly on phones. */
  padding: 0.85rem 1rem;
  min-height: 44px;
  font: 0.9rem/1.5 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

nav a:hover { background: var(--tint); }
nav a[aria-current="page"] { border-bottom-color: var(--brand); font-weight: 600; }

/* ── Type ─────────────────────────────────────────────────────────────── */
main { padding: 2.25rem 0 3rem; }

h1 { font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.25; margin: 0 0 0.75rem; color: var(--brand); }
h2 { font-size: 1.2rem; margin: 2.5rem 0 0.6rem; color: var(--brand); }
h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }

p, li { max-width: var(--measure); }
.lede { font-size: 1.12rem; color: var(--ink); }

a { color: var(--brand); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ── Panels ───────────────────────────────────────────────────────────── */
.panel {
  background: var(--tint);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brand);
  padding: 1.25rem;
  margin: 1.75rem 0;
}

.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* Never colour alone: the warning carries a word as well as a tint. */
/* The green register: verification, and the routes out of the matter. */
.panel--resolve {
  background: var(--accent-tint);
  border-color: #cfe3e3;
  border-left-color: var(--accent);
}

.panel--resolve h2, .panel--resolve h3 { color: var(--accent); }

h2.resolve, h3.resolve { color: var(--accent); }

.btn--secondary {
  border-color: var(--accent);
  color: var(--accent);
}

/* The list of verification steps: numbered in green, because following them is the way out. */
ol.verify { padding-left: 1.2rem; }
ol.verify li::marker { color: var(--accent); font-weight: bold; }

.panel--warning {
  background: var(--warn-bg);
  border-color: var(--warn-edge);
  border-left-color: var(--warn-edge);
  color: var(--warn-ink);
}

.panel--warning a { color: var(--warn-ink); }

/* ── Definition rows ──────────────────────────────────────────────────── */
dl.rows { margin: 1rem 0; }

dl.rows div {
  display: flex; flex-wrap: wrap; gap: 0 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

dl.rows dt {
  flex: 0 0 11rem;
  font: 0.85rem/1.6 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
}

dl.rows dd {
  flex: 1 1 14rem; margin: 0;
  /* Tabular figures so an account number and a branch code line up and can be checked. */
  font-variant-numeric: tabular-nums;
}

dd.copyable {
  font: 1.05rem/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.02em;
  /*
   * `anywhere` rather than `break-all`: a long account number must wrap, but an account
   * *name* broken mid-word ("trust account n / ame") reads as a rendering fault, and a
   * payment page that looks broken is one people abandon.
   */
  overflow-wrap: anywhere;
}

/* ── Call to action ───────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 600 0.95rem/1 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  border: 2px solid var(--brand); border-radius: 3px;
  text-decoration: none;
}

.btn--primary { background: var(--brand); color: #fff; }
.btn--secondary { background: transparent; color: var(--brand); }
.btn:hover { opacity: 0.9; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem; padding: 1.75rem 0 2.5rem;
  font: 0.82rem/1.65 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
}

footer p { max-width: 40rem; }

.preview-banner {
  background: #7a1010; color: #fff; text-align: center;
  padding: 0.65rem 1rem;
  font: 600 0.85rem/1.4 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

/* ── Client row ───────────────────────────────────────────────────────── */
/* Wraps rather than scrolls: every name visible at once, on any width, with no motion. */
.clients {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
  list-style: none; margin: 1.25rem 0; padding: 0;
}

.clients .client img { height: 34px; width: auto; display: block; }

.clients .client--name {
  font: 600 0.95rem/1.4 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
}
