/* The Privacy Office — Parchment Palette v2
   Soft Vellum #F4EFE2 | Parchment Warm #EAE0CD | Ink Deep #1F1A14 | Iron #4A4338 | Steel Aged #605850
   Doctrine v2: no chromatic accent, no rounded corners, no shadows, no icons.
   Two registers: atelier (hub) and editorial (lane pages). */

:root {
  color-scheme: light;
  /* Three-tone gradient, lightest at the page sheet, darkest at the
     colophon footer. Revised 2026-05-13 (second pass) per Jack's note
     that --parchment-warm body felt too dark.

     Palette flow page-down:
       --paper-light    → the .page sheet (lightest, the "paper")
       --soft-vellum    → the body, the desk surface around the page
       --parchment-warm → the colophon footer band
   */
  --paper-light:    #FBF7EB;
  --soft-vellum:    #F4EFE2;
  --parchment-warm: #EAE0CD;
  --parchment-deep: #D9CDB1;  /* retained as palette extension, currently unused */
  --ink-deep:       #1F1A14;
  --iron:           #4A4338;
  --steel-aged:     #605850;

  --measure:        720px;
  --measure-lane:   640px;
  --gutter:         1.75rem;
}

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

html { font-size: 17px; }
html, body { height: 100%; }

body {
  /* Surface beneath the page sheet. Revised 2026-05-13 (second pass):
     was --parchment-warm (felt too dark); now --soft-vellum, which is a
     quieter cream. The page sheet is a step lighter still (--paper-light),
     giving subtle but readable separation. */
  background-color: var(--soft-vellum);
  color: var(--iron);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Editorial micro-typography. Kerning, common ligatures, contextual
     alternates, oldstyle numerals (so phone numbers and dates blend
     into the running text instead of jumping out as lining figures),
     proportional widths. */
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "calt" 1, "onum" 1, "pnum" 1;
  font-variant-numeric: oldstyle-nums proportional-nums;
  /* Punctuation hangs into the margin at the start/end of lines —
     tightens the optical edge of body prose. */
  hanging-punctuation: first last;
}

/* Body prose: balanced wrapping (no orphans), hyphenation,
   measured tracking. Affects every paragraph in the editorial
   register without applying to UI labels. */
.section-block p,
.lede.scene p,
.legal-copy p {
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

a {
  color: var(--ink-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
  text-decoration-color: var(--steel-aged);
  transition: text-decoration-color 160ms ease;
}
a:hover { text-decoration-color: var(--ink-deep); }

::selection { background: var(--parchment-warm); color: var(--ink-deep); }

/* ---- Layout shell ---- */

.page {
  /* The "paper" sheet sitting on the vellum desk. Revised 2026-05-13
     (second pass): was --soft-vellum on a darker --parchment-warm body
     (too dark for the boutique feel); now --paper-light on a quieter
     --soft-vellum body — the page sheet still reads as a distinct
     printed surface, but the surrounding tone is calmer. */
  max-width: var(--measure);
  margin: 3rem auto 3.5rem;
  padding: 4.75rem var(--gutter) 5rem;
  background-color: var(--paper-light);
  /* Two-layer shadow: a tight ambient + a soft long cast. Subtle enough
     to read as paper-on-desk rather than "card on website." */
  box-shadow:
    0 1px 2px rgba(31, 26, 20, 0.05),
    0 6px 24px rgba(31, 26, 20, 0.07),
    0 16px 64px rgba(31, 26, 20, 0.05);
  /* Hairline edge to give the sheet a defined perimeter. */
  border: 1px solid rgba(74, 67, 56, 0.12);
}

.page.lane-page {
  /* Revised 2026-05-13: was --measure-lane (640px) — narrower than the
     hub (720px), which made every subpage feel cramped next to the
     homepage. Unified to --measure so all sheets render at the same
     width and the document metaphor stays consistent. */
  max-width: var(--measure);
}

@media (max-width: 760px) {
  .page {
    /* On narrow viewports the sheet metaphor breaks down — the parchment
       margins compress to nothing. Drop the shadow and edge so the page
       reads as a clean column again. */
    margin: 0 auto;
    box-shadow: none;
    border: none;
  }
}

/* ---- Masthead (shared) ---- */

.masthead {
  text-align: center;
  margin-bottom: 3rem;
}

.dateline {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--steel-aged);
  letter-spacing: 0.16em;
  /* Real small caps (via OpenType) instead of text-transform: uppercase.
     Source case can stay mixed; the engine renders all letters at
     small-cap height. Reads like book typography, not UI shouting. */
  font-variant-caps: all-small-caps;
  font-variant-numeric: lining-nums;
  margin-bottom: 1.4rem;
}

.dateline span + span::before {
  content: " · ";
  color: var(--steel-aged);
  margin: 0 0.35em;
}

.wordmark {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--ink-deep);
  letter-spacing: 0.06em;
  line-height: 1.15;
  /* No orphan: browser balances line breaks on the headline so
     the wordmark never strands a single word on its own line. */
  text-wrap: balance;
}

.parent-mark {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--steel-aged);
  letter-spacing: 0.14em;
  font-variant-caps: all-small-caps;
  margin-bottom: 1rem;
}

.parent-mark a {
  color: var(--steel-aged);
  text-decoration: none;
}
.parent-mark a:hover { color: var(--ink-deep); }

.tagline {
  margin-top: 0.85rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--steel-aged);
  letter-spacing: 0.12em;
  font-variant-caps: all-small-caps;
}

.tagline--italic {
  margin-top: 1.1rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--steel-aged);
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Iron rule rituals ---- */

.rule {
  width: 100%;
  height: 1px;
  background-color: var(--iron);
  border: 0;
}

.rule.short {
  width: 4rem;
  margin: 1.5rem auto;
}

.rule.hair {
  background-color: var(--steel-aged);
  width: 6rem;
  margin: 1.25rem auto;
}

.rule.double {
  width: 5rem;
  margin: 1.75rem auto;
  height: 5px;
  background:
    linear-gradient(var(--iron), var(--iron)) top/100% 1px no-repeat,
    linear-gradient(var(--iron), var(--iron)) bottom/100% 1px no-repeat;
}

/* ---- Lede ---- */

.lede {
  font-size: 1.22rem;
  color: var(--iron);
  margin: 0 auto 3.5rem;
  max-width: 30rem;
  text-align: center;
  line-height: 1.55;
  /* Balance line lengths so the last line doesn't carry an orphan word
     like "it." alone. Added 2026-05-13 after the homepage hero lede
     wrapped "it." onto its own line. */
  text-wrap: balance;
}

.lede em { font-style: italic; color: var(--ink-deep); }

.lede.scene {
  text-align: left;
  font-size: 1.15rem;
  margin-bottom: 3rem;
  color: var(--iron);
  /* Establish a block formatting context so the floated drop cap
     is fully contained inside the lede, even when the first
     paragraph is shorter than the drop cap height. */
  display: flow-root;
}

.lede.scene p + p {
  margin-top: 1rem;
  /* Belt-and-suspenders: any paragraph after the first one in a
     drop-cap lede starts below the floated cap, never overlapping. */
  clear: left;
}

/* Drop cap, editorial register only.
   Garamond, Ink Deep, three-line drop, slight optical lift.
   Two-stage drop cap:
     1. initial-letter (modern browsers, proper baseline-aligned drop)
     2. float fallback (legacy / non-supporting browsers)
   When initial-letter is honored, the float properties are ignored
   for sizing — but the float itself becomes a no-op since the
   browser uses initial-letter's geometry. The `clear: left` on
   sibling paragraphs is harmless either way. */
.lede.scene.has-cap > p:first-child::first-letter {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  color: var(--ink-deep);
  font-size: 3.4rem;
  line-height: 0.92;
  float: left;
  padding: 0.4rem 0.55rem 0 0;
  margin-top: 0.08rem;
  /* Subtle optical kerning so the cap reads as a deliberate mark,
     not an overgrown letter. */
  letter-spacing: -0.01em;
  /* Modern browsers: drop the initial 3 lines, raise 0 lines above.
     Browsers that don't support initial-letter ignore this entirely. */
  initial-letter: 3;
  -webkit-initial-letter: 3;
}

/* ---- Eyebrow ---- */

.eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--steel-aged);
  letter-spacing: 0.16em;
  font-variant-caps: all-small-caps;
  margin-bottom: 0.75rem;
}

.eyebrow.centered { text-align: center; }

/* ---- Lane index (hub, atelier register) ---- */

.lanes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--iron);
  margin-bottom: 3rem;
  counter-reset: lane;
}

.lane {
  display: grid;
  grid-template-columns: 2.85rem 1fr;
  column-gap: 1rem;
  align-items: start;
  padding: 1.85rem 0.25rem 1.95rem;
  border-bottom: 1px solid var(--iron);
  text-decoration: none;
  color: var(--iron);
  counter-increment: lane;
}

/* Refined hover (revised 2026-05-13): the prior parchment-warm row
   fill read as a heavy CTA-block hover, off-doctrine. Now: pure
   typographic response. Roman numeral and lane-body darken from
   their resting colors to Ink Deep; the lane-name's always-present
   transparent underline fades in to a doctrine-standard hairline.
   No background fill, no chrome — the type carries the signal. */
.lane:hover::before { color: var(--ink-deep); }
.lane:hover .lane-body { color: var(--ink-deep); }
.lane:hover .lane-name { text-decoration-color: var(--ink-deep); }

.lane::before {
  content: counter(lane, upper-roman);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--steel-aged);
  letter-spacing: 0.14em;
  font-variant-caps: all-small-caps;
  padding-top: 0.6rem;
  transition: color 200ms ease;
}

.lane-content { min-width: 0; }

.lane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.lane-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink-deep);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-wrap: balance;
  /* Always-present underline that's transparent at rest and fades to
     Ink Deep on .lane:hover — smoother than a "decoration-appearing-
     from-none" transition, which most engines don't animate. */
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color 220ms ease;
}

.lane-domain {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--steel-aged);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lane-body {
  font-size: 1.05rem;
  color: var(--iron);
  line-height: 1.55;
  transition: color 220ms ease;
}

/* ---- Section block (lane pages, editorial register) ---- */

.sections {
  counter-reset: section;
}

.section-block {
  display: grid;
  grid-template-columns: 2.85rem 1fr;
  column-gap: 1rem;
  border-top: 1px solid var(--iron);
  padding-top: 1.5rem;
  margin-bottom: 3rem;
  counter-increment: section;
}

/* Editorial breath: an asterism (⁂) between the sections column and
   whatever closes the page (contact, firm-index, back-link). Pure
   typographic ornament, no markup change required. */
.sections + .contact::before,
.sections + .firm-index::before {
  content: "⁂";
  display: block;
  text-align: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: var(--steel-aged);
  letter-spacing: 0.5em;
  margin: 0 auto 2.25rem;
  padding-right: 0;
}

.section-block::before {
  content: "§ " counter(section, upper-roman);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--steel-aged);
  letter-spacing: 0.14em;
  font-variant-caps: all-small-caps;
  padding-top: 0.45rem;
}

.section-block > .section-content { min-width: 0; }

.section-block h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.32rem;
  color: var(--ink-deep);
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
  line-height: 1.3;
  text-wrap: balance;
}

.section-block p {
  font-size: 1.05rem;
  color: var(--iron);
  line-height: 1.6;
}

.section-block p + p { margin-top: 0.85rem; }

.section-block ul {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}

.section-block li {
  font-size: 1.05rem;
  color: var(--iron);
  line-height: 1.55;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--parchment-warm);
}

.section-block li:last-child { border-bottom: 0; }

.section-block ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0.85rem 0 0;
}

.section-block ol > li {
  /* Revised 2026-05-13: was display:grid with template-columns, which made
     each text node a separate grid item — the inline description after
     <strong>title.</strong> fell into column 1 (the 1.75rem column) and
     wrapped one word per line. Now: padding-left reserves the counter
     column, ::before absolute-positions into it, and inline content
     (strong + description text) flows normally on one line / wraps wide. */
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
}

.section-block ol > li::before {
  content: counter(step, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--steel-aged);
  letter-spacing: 0.16em;
}

.section-block li strong {
  font-weight: 500;
  color: var(--ink-deep);
}

.section-block h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-deep);
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
}

.section-block h3 + p { margin-top: 0; }

/* ---- People block (about page) ---- */

.people {
  margin-top: 1rem;
  border-top: 1px solid var(--parchment-warm);
}

.person {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--parchment-warm);
}

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

.person-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink-deep);
  letter-spacing: 0.01em;
}

.person-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--steel-aged);
  letter-spacing: 0.22em;
  font-variant-caps: all-small-caps;
  margin-top: 0.2rem;
  margin-bottom: 0.55rem;
}

.person-bio {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--iron);
}

/* ---- Calling card (contact page) ---- */

.contact-card {
  text-align: center;
  margin: 2.25rem 0 2rem;
  padding: 1.75rem 1rem;
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
}

.contact-card .line {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: var(--ink-deep);
  margin: 0.25rem 0;
}

.contact-card .line a { text-decoration: none; }
.contact-card .line a:hover { text-decoration: underline; text-decoration-color: var(--steel-aged); }

.contact-card .meta {
  margin-top: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  color: var(--steel-aged);
  letter-spacing: 0.22em;
  font-variant-caps: all-small-caps;
}

/* ---- Firm index (apex-domain cross-page nav) ---- */

.firm-index {
  text-align: center;
  margin: 3rem 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--steel-aged);
  letter-spacing: 0.22em;
  font-variant-caps: all-small-caps;
}

.firm-index a {
  color: var(--steel-aged);
  text-decoration: none;
  margin: 0 0.6rem;
}

.firm-index a:hover { color: var(--ink-deep); }

.firm-index a[aria-current="page"] {
  color: var(--ink-deep);
}

/* ---- Legal copy (privacy policy) ---- */

.legal-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  color: var(--steel-aged);
  letter-spacing: 0.22em;
  font-variant-caps: all-small-caps;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---- Contact block (lane pages) ---- */

.contact {
  text-align: center;
  margin-top: 0.5rem;
}

.contact-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--steel-aged);
  letter-spacing: 0.24em;
  font-variant-caps: all-small-caps;
  margin-bottom: 0.55rem;
}

.contact-link {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: var(--ink-deep);
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--steel-aged);
  letter-spacing: 0.24em;
  font-variant-caps: all-small-caps;
  text-decoration: none;
}

.back-link:hover { color: var(--ink-deep); }

/* ---- Calling-card colophon (footer, both registers) ---- */

.colophon {
  /* Revised 2026-05-13 (second pass): was --parchment-deep (too dark
     alongside the lighter body); now --parchment-warm — a single step
     deeper than the body (--soft-vellum), enough to read as its own
     printed zone without weighing the page down. */
  border-top: 1px solid var(--iron);
  padding: 2.25rem var(--gutter) 2.5rem;
  background-color: var(--parchment-warm);
  text-align: center;
}

.colophon .entity {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-deep);
  letter-spacing: 0.22em;
  font-variant-caps: all-small-caps;
  margin-bottom: 0.5rem;
}

.colophon .meta {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--steel-aged);
  letter-spacing: 0;
  line-height: 1.6;
}

.colophon .meta span + span::before {
  content: " · ";
  color: var(--steel-aged);
  margin: 0 0.35em;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .page { padding: 3rem 1.25rem 4rem; }
  .wordmark { font-size: 1.95rem; }
  .lede { font-size: 1.1rem; }
  .lede.scene { font-size: 1.05rem; }
  .lede.scene.has-cap > p:first-child::first-letter {
    font-size: 3.2rem;
    padding: 0.35rem 0.45rem 0 0;
  }

  .lane,
  .section-block {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .lane::before {
    display: block;
    padding: 0 0 0.5rem;
  }
  .section-block::before {
    display: block;
    padding: 0 0 0.65rem;
  }

  .lane-head { flex-direction: column; gap: 0.2rem; }
  .lane-name { font-size: 1.3rem; }
  .lane-domain { font-size: 0.65rem; }
  .section-block h2 { font-size: 1.18rem; }

  .colophon { padding: 1.75rem 1.25rem 2rem; }
  .colophon .meta {
    display: flex;
    flex-direction: column;
  }
  .colophon .meta span + span::before { content: ""; margin: 0; }
}

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

/* ---- Print ---- */

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
    line-height: 1.45;
  }
  .page { max-width: none; padding: 0; }
  .lanes,
  .colophon,
  .back-link { background: transparent; }
  .lane,
  .section-block { break-inside: avoid; }
  a { color: #000000; text-decoration: none; }
  .colophon { border-top: 1px solid #000000; }
  .dateline,
  .parent-mark,
  .tagline,
  .eyebrow,
  .lane-domain,
  .contact-label,
  .colophon .entity { color: #000000; }
}

/* ---- Homepage contact section refinements (revised 2026-05-13) ---- */
/* Two phone+email stacked links, then an integrated scoping-call note.
   No button-like CTA — the doctrine is type-led, not button-led. */

.contact-link + .contact-link {
  margin-top: 0.25rem;
}

.contact-note {
  margin-top: 1.65rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--steel-aged);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-note a {
  font-style: italic;
  color: var(--ink-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
  text-decoration-color: var(--steel-aged);
}

.contact-note a:hover {
  text-decoration-color: var(--ink-deep);
}

/* ---- Credentials list (About page, revised 2026-05-13) ---- */
/* Block layout: each dt is a small-caps section label with a hairline
   rule above it; dds beneath stack in serif. Previous grid layout
   misaligned multiple dds per dt — auto-flow can't span rows correctly
   with semantic dl markup without explicit grid-area on every element. */

.credentials {
  margin: 1.75rem 0 0;
}

.credentials dt {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--steel-aged);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 1.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--iron);
}

.credentials dt:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.credentials dd {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-deep);
  margin: 0.6rem 0 0;
  padding: 0;
}
