/* hcoll.org — "Letterhead". The group's printed letterhead as a web page: a white sheet on a
   cream board, the brand lockup over a sand rule, serif section titles with the sand underline.
   Values and component shapes come from the design system (Letterhead, BannerLockup,
   colors_and_type.css). This look belongs to hcoll.org alone: neither practice site uses it. */

/* Self-hosted fonts (no font CDN: visitors' IPs stay off third-party servers). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/libre-baskerville-700.woff2") format("woff2"); }

:root {
  --brand-forest: #0B3D43;
  --brand-forest-hover: #1F4D52;   /* forest, 8% lighter: hover on dark surfaces */
  --brand-sand: #B19A73;           /* decoration and the wordmark only: too light for text on white */
  --brand-sand-700: #7E6533;       /* sand text on light */
  --brand-sand-light: #CDB98F;     /* sand on forest */
  --brand-sand-100: #F4F0E7;       /* the board behind the sheet */
  --ink: #0A0A0A;
  --ink-soft: #4A4A4A;
  --ink-muted: #6A6A6A;
  --line: #D7D7D7;
  --surface: #FFFFFF;
  --font-serif: "Libre Baskerville", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow-print: 0 0 0 1px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.08);
  --gutter: clamp(24px, 7vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 16px; text-wrap: pretty; }   /* pretty: no single word alone on a last line */
a { color: var(--brand-forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-forest); outline-offset: 3px; }

/* ── The sheet ── */
.sheet { padding: 40px var(--gutter) 28px; background: var(--surface); }

/* ── Letterhead: lockup over the sand rule ──
   The lockup scales as one piece: every size inside is in em of its font-size
   (design system: mark 170, gap 44, top line 64.74, second line 47.67). */
.letterhead { display: flex; justify-content: center; padding-bottom: 30px; margin-bottom: 44px; border-bottom: 3px solid var(--brand-sand); }
.lockup { display: flex; flex-direction: column; align-items: center; gap: 0.68em; font-size: clamp(26px, 9.2vw, 54px); text-decoration: none; }
.lockup img { width: 2.626em; flex-shrink: 0; }
.lockup__word { display: flex; flex-direction: column; margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 1em; line-height: 1; letter-spacing: 0; text-transform: uppercase; text-align: center; }
.lockup__top { color: var(--brand-forest); }
.lockup__sub { margin-top: 0.126em; font-size: 0.7363em; color: var(--brand-sand); }

/* ── Text ── */
main > p { max-width: 62ch; }
.lead { max-width: 24em; margin: 0 0 20px; font-family: var(--font-serif); font-weight: 700; font-size: clamp(22px, 2.9vw, 30px); line-height: 1.3; color: var(--brand-forest); }
.section { margin-top: 60px; }
.section p { max-width: 62ch; }
h2 { margin: 0 0 28px; font-family: var(--font-serif); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--brand-forest); }
.rule { display: inline-block; padding-bottom: 6px; border-bottom: 4px solid var(--brand-sand); }

/* ── Practices: a two-column typeset table ── */
.practices { display: grid; grid-template-columns: 1fr; gap: 40px; }
.practice h3 { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--brand-forest); }
.practice address { margin-bottom: 18px; font-style: normal; color: var(--ink-soft); }
.facts { margin: 0; border-bottom: 1px solid var(--line); }
.facts > div { padding-top: 12px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-sand-700); }
.facts dd { margin: 0; min-width: 0; }
.facts a { display: inline-block; padding: 6px 0 11px; overflow-wrap: anywhere; }
.note { margin: 24px 0 0; font-size: 15px; color: var(--ink-soft); }

/* ── Careers button: the system's forest banner shape ── */
.button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 12px; background: var(--brand-forest); color: #fff; font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; transition: background-color .15s ease; }
.button:hover { background: var(--brand-forest-hover); }
.button:active { transform: translateY(1px); }

/* ── Mission and values: serif on forest ── */
.colophon { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 68px; padding: 36px 24px; background: var(--brand-forest); color: #fff; }
.colophon h2 { margin-bottom: 20px; font-size: 22px; color: #fff; }
.colophon p { margin: 0; color: rgba(255,255,255,.92); }
.values { margin: 0; padding: 0; list-style: none; }
.values li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.24); font-family: var(--font-serif); font-weight: 700; font-size: 18px; line-height: 1.25; text-wrap: balance; }
.values li:first-child { padding-top: 0; border-top: 0; }
.values li:last-child { padding-bottom: 0; }

/* ── Footer: the letterhead's contact strip ── */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 52px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: 0.02em; color: var(--ink-muted); }

/* ── Room for a label beside its value (below this the label sits above it) ── */
@media (min-width: 400px) {
  .facts > div { display: flex; align-items: baseline; gap: 16px; padding-top: 0; }
  .facts dt { flex: 0 0 76px; }
  .facts a { padding: 11px 0; }
}

/* ── Wider than a phone: the lockup sits in a row, mark beside the name ── */
@media (min-width: 560px) {
  .lockup { flex-direction: row; font-size: clamp(34px, 6.4vw, 54px); }
  .lockup__word { text-align: left; }
  .lockup__sub { text-align: right; }
  .colophon { padding: 44px 40px; }
  .values li { font-size: 20px; }
}

/* ── Room for two columns ── */
@media (min-width: 860px) {
  .practices { grid-template-columns: 1fr 1fr; gap: 0; }
  .practice:first-child { padding-right: 44px; }
  .practice + .practice { padding-left: 44px; border-left: 1px solid var(--line); }
  /* The values column is as wide as its longest value, so none of them wraps. */
  .colophon { grid-template-columns: minmax(0, 1fr) max-content; gap: 48px; padding: 48px; }
}

/* ── Wider than the sheet: it becomes paper on a cream board ── */
@media (min-width: 1016px) {
  body { background: var(--brand-sand-100); }
  .sheet { width: 920px; margin: 56px auto; padding: 64px 72px 36px; box-shadow: var(--shadow-print); }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

@media print {
  body { background: #fff; }
  .sheet { width: auto; margin: 0; padding: 0; box-shadow: none; }
  .colophon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
