/* ============================================================
   lornamason.com — design system
   Light editorial · navy ink on cream · ledger / financial-control motif
   Built fresh to CRAFT-BAR.md. Deliberately distinct from
   deniscreighton.com (dark graphite + Newsreader + terminal).
   ============================================================ */

/* ---- Fonts: Inter (text) + Source Serif 4 (display). Not Newsreader. ---- */
@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  src: url('https://rsms.me/inter/font-files/InterVariable.woff2') format('woff2');
}

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* --- Ground & ink (PALETTE.md) --- */
  --cream:        #F7F6EF;   /* primary light surface */
  --cream-soft:   #FFFEF8;   /* raised panels */
  --cream-deep:   #EEEDE2;   /* recessed / table zebra */
  --navy:         #0A1A33;   /* primary ink + dark sections */
  --navy-2:       #0B1E3D;   /* dark section depth */

  /* derived navy inks */
  --ink:          #0A1A33;
  --ink-70:       rgba(10,26,51,0.70);   /* secondary text */
  --ink-55:       rgba(10,26,51,0.55);   /* metadata */
  --ink-40:       rgba(10,26,51,0.40);   /* faint labels */
  --rule:         rgba(10,26,51,0.16);   /* hairline */
  --rule-strong:  rgba(10,26,51,0.32);   /* total rule */
  --rule-faint:   rgba(10,26,51,0.08);

  /* on-navy inks */
  --on-navy:      #F7F6EF;
  --on-navy-70:   rgba(247,246,239,0.72);
  --on-navy-45:   rgba(247,246,239,0.45);
  --rule-light:   rgba(247,246,239,0.18);
  --rule-light-faint: rgba(247,246,239,0.10);

  /* --- The single accent --- */
  --green:        #00A651;   /* IMPT signature green — used sparingly */
  --green-deep:   #007A3D;   /* hover / depth */
  --green-on-navy:#3BD982;   /* legible green on navy */

  /* --- Type families --- */
  --sans:  'Inter var', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, monospace;

  /* --- Modular type scale (1.250 major-third on a 18px base) --- */
  --t--2:  0.694rem;   /* 11.1 — micro labels */
  --t--1:  0.80rem;    /* 12.8 — small / captions */
  --t-0:   1rem;       /* 16   — UI default */
  --t-1:   1.125rem;   /* 18   — body */
  --t-2:   1.266rem;   /* 20.3 — lead / standfirst */
  --t-3:   1.583rem;   /* 25.3 — h3 */
  --t-4:   1.979rem;   /* 31.7 — h2 */
  --t-5:   2.474rem;   /* 39.6 */
  --t-6:   3.093rem;   /* 49.5 */
  --t-7:   3.866rem;   /* 61.9 — display */

  /* --- Baseline rhythm --- */
  --baseline: 8px;
  --measure:  68ch;          /* body measure */

  /* --- Layout --- */
  --page:     1180px;        /* outer max */
  --rail:     186px;         /* margin-rail column width */
  --gutter:   56px;          /* rail <-> content gap */
  --pad-x:    clamp(20px, 5vw, 64px);

  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-1);
  line-height: 1.62;
  font-feature-settings: 'tnum' 0, 'cv05' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--navy); color: var(--cream); }

/* Skip link */
.lm-skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--cream);
  padding: 10px 18px; z-index: 200;
  font-size: var(--t--1); letter-spacing: 0.04em;
}
.lm-skip:focus { left: 12px; top: 12px; }

/* Universal focus — designed, not browser default */
a:focus-visible,
button:focus-visible,
.lm-cta:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 1px;
}
:focus:not(:focus-visible) { outline: none; }

/* Numerals: tabular + lining wherever figures appear */
.lm-num,
.lm-table td,
.lm-table th,
.lm-metric-fig,
.lm-rt-num,
time {
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ============================================================
   3. SHELL — page max + editorial rail
   ============================================================ */
.lm-wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--pad-x); }

/* The editorial layout: a slim margin rail + the content column.
   Used on section bodies — eyebrows / section numbers / notes ride the rail. */
.lm-rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
}
.lm-rail > .lm-rail-aside {
  grid-column: 1;
}
.lm-rail > .lm-rail-main {
  grid-column: 2;
  min-width: 0;
}

/* ============================================================
   4. TYPOGRAPHY PRIMITIVES
   ============================================================ */
.lm-eyebrow {
  font-family: var(--sans);
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.165em;
  color: var(--ink-55);
  margin: 0;
}
.lm-eyebrow .lm-eyebrow-no {
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

/* Section number — report-style 01 / 02 / 03 */
.lm-secno {
  font-family: var(--mono);
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--t-6); line-height: 1.04; }
h2 { font-size: var(--t-4); line-height: 1.12; }
h3 { font-size: var(--t-3); line-height: 1.2; letter-spacing: -0.006em; }
h4 {
  font-family: var(--sans);
  font-size: var(--t-0);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

p { margin: 0 0 calc(var(--baseline) * 3); }

a { color: inherit; }

/* Editorial inline link — underline draws on hover */
.lm-link {
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 500;
  background-image: linear-gradient(var(--green-deep), var(--green-deep));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.32s var(--ease);
  padding-bottom: 1px;
}
.lm-link:hover, .lm-link:focus-visible { background-size: 100% 1.5px; }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* ============================================================
   5. PROSE — essay / pillar body
   ============================================================ */
.lm-prose {
  max-width: var(--measure);
  font-size: var(--t-1);
  line-height: 1.66;
  color: var(--ink);
}
.lm-prose > p { margin: 0 0 calc(var(--baseline) * 3); }

.lm-prose h2 {
  font-size: var(--t-3);
  margin: calc(var(--baseline) * 7) 0 calc(var(--baseline) * 2.5);
  padding-top: calc(var(--baseline) * 3);
  border-top: 1px solid var(--rule);
  position: relative;
}
.lm-prose h2 .lm-h-no {
  display: block;
  font-family: var(--mono);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.lm-prose h3 {
  font-size: var(--t-2);
  margin: calc(var(--baseline) * 4.5) 0 calc(var(--baseline) * 1.5);
}
.lm-prose h4 {
  margin: calc(var(--baseline) * 3.5) 0 calc(var(--baseline) * 0.5);
  text-transform: none;
}

.lm-prose ul {
  list-style: none;
  margin: 0 0 calc(var(--baseline) * 3);
  padding: 0;
}
.lm-prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: calc(var(--baseline) * 1.5);
}
.lm-prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 13px; height: 1.5px;
  background: var(--green);
}
.lm-prose ul li strong:first-child { color: var(--ink); }

.lm-prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: calc(var(--baseline) * 6) 0;
}

/* Standfirst — italic serif lead under an essay H1 */
.lm-standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-2);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 60ch;
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--green);
}

/* Closing colophon line at foot of an essay */
.lm-colophon {
  margin-top: calc(var(--baseline) * 6);
  padding-top: calc(var(--baseline) * 3);
  border-top: 1px solid var(--rule);
  font-size: var(--t--1);
  color: var(--ink-55);
  font-style: italic;
}
.lm-colophon p { margin: 0 0 4px; }

/* ============================================================
   6. NAV
   ============================================================ */
.lm-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}
.lm-nav-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lm-brand {
  display: flex;
  align-items: baseline;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.lm-brand-name {
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lm-brand-role {
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-55);
}
.lm-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.lm-nav-links a {
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-70);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.lm-nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.lm-nav-links a:hover { color: var(--ink); }
.lm-nav-links a:hover::after,
.lm-nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.lm-nav-links a[aria-current="page"] { color: var(--ink); }

/* Burger */
.lm-burger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--rule);
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.lm-burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}
.lm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.lm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.lm-mobile {
  display: none;
  border-bottom: 1px solid var(--rule);
  background: var(--cream-soft);
}
.lm-mobile.open { display: block; }
.lm-mobile ul { list-style: none; margin: 0; padding: 8px var(--pad-x) 18px; }
.lm-mobile li { border-bottom: 1px solid var(--rule-faint); }
.lm-mobile li:last-child { border-bottom: 0; }
.lm-mobile a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 2px;
  font-size: var(--t-2);
  font-family: var(--serif);
  color: var(--ink);
  text-decoration: none;
}
.lm-mobile a .lm-m-no {
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   7. SECTIONS — distinct in KIND
   ============================================================ */
section { position: relative; }

/* Light section */
.lm-sec {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--rule);
}
.lm-sec:first-of-type { border-top: 0; }

/* Section header block with number on the rail */
.lm-sec-head { margin-bottom: calc(var(--baseline) * 5); }
.lm-sec-head .lm-rail-aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lm-sec-head h2 { font-size: var(--t-4); }
.lm-sec-head .lm-sec-intro {
  margin-top: calc(var(--baseline) * 2);
  font-size: var(--t-2);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 56ch;
}

/* Full-bleed deep-navy statement section */
.lm-sec--navy {
  background: var(--navy);
  color: var(--on-navy);
  border-top: 0;
}
.lm-sec--navy h1, .lm-sec--navy h2, .lm-sec--navy h3, .lm-sec--navy h4 { color: var(--on-navy); }
.lm-sec--navy .lm-eyebrow { color: var(--on-navy-45); }
.lm-sec--navy .lm-eyebrow .lm-eyebrow-no { color: var(--green-on-navy); }
.lm-sec--navy .lm-secno { color: var(--on-navy-45); }
.lm-sec--navy p { color: var(--on-navy-70); }

/* Recessed cream panel section */
.lm-sec--panel { background: var(--cream-deep); }

/* ============================================================
   8. HERO — typographic, ledger-driven. No portrait dependency.
   ============================================================ */
.lm-hero {
  padding: clamp(64px, 9vw, 132px) 0 0;
  border-bottom: 1px solid var(--rule);
}
.lm-hero-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
}
.lm-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 7px;
}
.lm-hero-aside .lm-eyebrow { line-height: 1.5; }
.lm-hero-filed {
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--ink-40);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 4px;
}
.lm-hero h1 {
  font-size: var(--t-7);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 16ch;
}
.lm-hero h1 em {
  font-style: italic;
  color: var(--green-deep);
}
.lm-hero-lead {
  margin-top: calc(var(--baseline) * 3.5);
  font-size: var(--t-2);
  line-height: 1.52;
  color: var(--ink-70);
  max-width: 54ch;
}
.lm-hero-lead + .lm-hero-lead { margin-top: calc(var(--baseline) * 2); }

/* Hero ledger strip — runs full content width under the headline */
.lm-hero-ledger {
  margin-top: clamp(40px, 6vw, 76px);
  border-top: 2px solid var(--navy);
}

/* Optional photo slot — degrades gracefully (absent = complete design) */
.lm-portrait-slot { display: none; }

/* ============================================================
   9. THE LEDGER MOTIF
   ============================================================ */

/* 9a. Metrics "control panel" — front-page-of-an-annual-report */
.lm-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.lm-control-item {
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.lm-control-item:nth-child(4n) { border-right: 0; }
.lm-control-item:nth-last-child(-n+4) { border-bottom: 1px solid var(--navy); }
.lm-control-label {
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-55);
  margin: 0 0 14px;
}
.lm-control-fig {
  font-family: var(--serif);
  font-size: var(--t-5);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.018em;
  font-variant-numeric: tabular-nums lining-nums;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.lm-control-unit {
  font-family: var(--sans);
  font-size: var(--t-0);
  font-weight: 600;
  color: var(--ink-55);
  letter-spacing: 0;
}
.lm-control-note {
  margin: 12px 0 0;
  font-size: var(--t--1);
  line-height: 1.45;
  color: var(--ink-55);
}
/* on navy */
.lm-sec--navy .lm-control,
.lm-control--navy { border-top-color: var(--rule-light); }
.lm-sec--navy .lm-control-item,
.lm-control--navy .lm-control-item {
  border-bottom-color: var(--rule-light);
  border-right-color: var(--rule-light);
}
.lm-sec--navy .lm-control-item:nth-last-child(-n+4),
.lm-control--navy .lm-control-item:nth-last-child(-n+4) {
  border-bottom-color: var(--green-on-navy);
}
.lm-sec--navy .lm-control-label,
.lm-control--navy .lm-control-label { color: var(--on-navy-45); }
.lm-sec--navy .lm-control-fig,
.lm-control--navy .lm-control-fig { color: var(--on-navy); }
.lm-sec--navy .lm-control-unit,
.lm-control--navy .lm-control-unit { color: var(--on-navy-45); }
.lm-sec--navy .lm-control-note,
.lm-control--navy .lm-control-note { color: var(--on-navy-70); }

/* 9b. Ruled financial-statement table */
.lm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-0);
  margin: calc(var(--baseline) * 3) 0;
}
.lm-table caption {
  text-align: left;
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-55);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy);
  margin-bottom: 0;
}
.lm-table thead th {
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-55);
  text-align: left;
  padding: 13px 16px 11px 0;
  border-bottom: 1px solid var(--rule);
}
.lm-table thead th.lm-rt { text-align: right; }
.lm-table tbody td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule-faint);
  color: var(--ink);
  vertical-align: top;
}
.lm-table tbody td.lm-rt {
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.lm-table tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.lm-table .lm-row-label {
  font-weight: 600;
  color: var(--ink);
}
.lm-table .lm-row-sub td:first-child { padding-left: 18px; color: var(--ink-70); font-weight: 400; }
/* total row — double rule above */
.lm-table tr.lm-total td {
  border-top: 1.5px solid var(--navy);
  border-bottom: 4px double var(--navy);
  font-weight: 700;
  padding-top: 13px;
  padding-bottom: 13px;
}
.lm-table td:last-child, .lm-table th:last-child { padding-right: 0; }

/* 9c. Ledger line list — label · leader dots · figure */
.lm-ledger {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--navy);
}
.lm-ledger li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.lm-ledger .lm-ledger-key {
  font-weight: 600;
  font-size: var(--t-0);
  color: var(--ink);
}
.lm-ledger .lm-ledger-lead {
  border-bottom: 1px dotted var(--rule-strong);
  transform: translateY(-3px);
}
.lm-ledger .lm-ledger-val {
  font-size: var(--t-0);
  color: var(--ink-70);
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}
.lm-sec--navy .lm-ledger { border-top-color: var(--rule-light); }
.lm-sec--navy .lm-ledger li { border-bottom-color: var(--rule-light-faint); }
.lm-sec--navy .lm-ledger .lm-ledger-key { color: var(--on-navy); }
.lm-sec--navy .lm-ledger .lm-ledger-val { color: var(--on-navy-70); }
.lm-sec--navy .lm-ledger .lm-ledger-lead { border-bottom-color: var(--rule-light); }

/* ============================================================
   10. PILLAR / FEATURE BLOCKS  (not a 3-card grid)
   ============================================================ */
/* Two pillars as full-width ruled entries, stacked, like report sections */
.lm-pillars { border-top: 1px solid var(--navy); }
.lm-pillar {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) auto;
  gap: var(--gutter);
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: background-color 0.3s var(--ease);
}
.lm-pillar:hover { background: var(--cream-soft); }
.lm-pillar-aside { display: flex; flex-direction: column; gap: 10px; }
.lm-pillar-tag {
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--green-deep);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.lm-pillar-body h3 {
  font-size: var(--t-4);
  margin-bottom: 14px;
  transition: color 0.2s var(--ease);
}
.lm-pillar:hover .lm-pillar-body h3 { color: var(--green-deep); }
.lm-pillar-body p { max-width: 56ch; color: var(--ink-70); margin: 0; }
.lm-pillar-cue {
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-55);
  white-space: nowrap;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s var(--ease), gap 0.24s var(--ease);
}
.lm-pillar-cue .lm-arrow {
  display: inline-block;
  transition: transform 0.26s var(--ease);
}
.lm-pillar:hover .lm-pillar-cue { color: var(--green-deep); }
.lm-pillar:hover .lm-pillar-cue .lm-arrow { transform: translateX(4px); }

/* ============================================================
   11. WRITING — editorial list
   ============================================================ */
.lm-writing-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--navy);
}
.lm-article {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) auto;
  gap: var(--gutter);
  padding: clamp(28px, 3.6vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: background-color 0.3s var(--ease);
}
.lm-article:hover { background: var(--cream-soft); }
.lm-article-aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lm-article-no {
  font-family: var(--mono);
  font-size: var(--t--1);
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
}
.lm-article-kind {
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-55);
}
.lm-article-kind.is-pillar { color: var(--green-deep); }
.lm-article-body h3 {
  font-size: var(--t-3);
  margin-bottom: 9px;
  transition: color 0.2s var(--ease);
}
.lm-article:hover .lm-article-body h3 { color: var(--green-deep); }
.lm-article-body p {
  margin: 0;
  color: var(--ink-70);
  max-width: 62ch;
  font-size: var(--t-0);
}
.lm-article-meta {
  font-family: var(--mono);
  font-size: var(--t--1);
  color: var(--ink-55);
  white-space: nowrap;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   12. CTA — text link with drawn rule, never a pill
   ============================================================ */
.lm-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: var(--t-0);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--navy);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.lm-cta .lm-arrow { transition: transform 0.26s var(--ease); }
.lm-cta:hover { color: var(--green-deep); border-color: var(--green); }
.lm-cta:hover .lm-arrow { transform: translateX(5px); }
.lm-sec--navy .lm-cta { color: var(--on-navy); border-color: var(--green-on-navy); }
.lm-sec--navy .lm-cta:hover { color: var(--green-on-navy); }

/* ============================================================
   13. CALLOUT / FRAMEWORK NUMBERED LIST
   ============================================================ */
.lm-framework {
  list-style: none;
  margin: calc(var(--baseline) * 3) 0;
  padding: 0;
  counter-reset: fw;
  border-top: 1px solid var(--navy);
}
.lm-framework > li {
  counter-increment: fw;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.lm-framework > li::before {
  content: counter(fw, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--t-0);
  font-weight: 500;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.lm-framework .lm-fw-head {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--t-1);
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.4;
}
.lm-framework .lm-fw-body { margin: 0; color: var(--ink-70); font-size: var(--t-0); }

/* Definition / note box — recessed, hairline-framed */
.lm-note {
  background: var(--cream-deep);
  border-left: 2px solid var(--green);
  padding: 24px 28px;
  margin: calc(var(--baseline) * 4) 0;
}
.lm-note .lm-note-label {
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--green-deep);
  margin: 0 0 10px;
}
.lm-note p:last-child { margin-bottom: 0; }

/* ============================================================
   14. CONTACT
   ============================================================ */
.lm-contact-line {
  font-family: var(--serif);
  font-size: var(--t-4);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lm-contact-line a { color: inherit; text-decoration: none; }
.lm-mailto {
  background-image: linear-gradient(var(--green-on-navy), var(--green-on-navy));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  transition: background-size 0.3s var(--ease);
  color: var(--on-navy);
}
.lm-mailto:hover { background-size: 100% 100%; color: var(--navy); }

/* ============================================================
   15. FOOTER
   ============================================================ */
.lm-footer {
  background: var(--navy);
  color: var(--on-navy-70);
  padding: clamp(48px, 6vw, 76px) 0 36px;
}
.lm-footer-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
}
.lm-footer-mark {
  font-family: var(--serif);
  font-size: var(--t-2);
  font-weight: 600;
  color: var(--on-navy);
}
.lm-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.lm-footer-col h4 {
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--on-navy-45);
  margin: 0 0 16px;
}
.lm-footer-col ul { list-style: none; margin: 0; padding: 0; }
.lm-footer-col li { margin-bottom: 9px; }
.lm-footer-col a {
  font-size: var(--t-0);
  color: var(--on-navy-70);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.lm-footer-col a:hover { color: var(--green-on-navy); }
.lm-footer-rule {
  border-top: 1px solid var(--rule-light);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lm-footer-fine {
  font-size: var(--t--1);
  color: var(--on-navy-45);
}
.lm-footer-fine a { color: var(--on-navy-70); text-decoration: none; }
.lm-footer-fine a:hover { color: var(--green-on-navy); }

/* ============================================================
   16. PAGE-HEAD (interior pages)
   ============================================================ */
.lm-pagehead {
  padding: clamp(52px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--navy);
}
.lm-pagehead-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
}
.lm-pagehead-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}
.lm-pagehead h1 {
  font-size: var(--t-6);
  line-height: 1.05;
  max-width: 20ch;
}
.lm-pagehead .lm-pagehead-lead {
  margin-top: calc(var(--baseline) * 3);
  font-size: var(--t-2);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 56ch;
}

/* breadcrumb */
.lm-crumb {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.04em;
  color: var(--ink-40);
}
.lm-crumb a { color: var(--ink-55); text-decoration: none; }
.lm-crumb a:hover { color: var(--green-deep); }

/* meta strip under essay title */
.lm-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: calc(var(--baseline) * 4);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lm-meta-strip > div {
  padding: 14px 28px 14px 0;
  margin-right: 28px;
  border-right: 1px solid var(--rule);
}
.lm-meta-strip > div:last-child { border-right: 0; margin-right: 0; }
.lm-meta-strip dt {
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-55);
  margin-bottom: 6px;
}
.lm-meta-strip dd {
  margin: 0;
  font-size: var(--t-0);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   17. ESSAY FOOT — related links
   ============================================================ */
.lm-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--navy);
}
.lm-related-item {
  padding: 28px 32px 28px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s var(--ease);
}
.lm-related-item:nth-child(2n) { border-right: 0; padding-right: 0; }
.lm-related-item:hover { background: var(--cream-soft); }
.lm-related-kind {
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--green-deep);
  margin: 0 0 10px;
}
.lm-related-item h3 {
  font-size: var(--t-2);
  margin: 0 0 6px;
  transition: color 0.2s var(--ease);
}
.lm-related-item:hover h3 { color: var(--green-deep); }
.lm-related-item p { margin: 0; font-size: var(--t-0); color: var(--ink-70); }

/* ============================================================
   18. 404
   ============================================================ */
.lm-404 {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.lm-404-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gutter);
}
.lm-404-code {
  font-family: var(--mono);
  font-size: var(--t-7);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.lm-404 h1 { font-size: var(--t-5); margin: 18px 0 18px; }

/* ============================================================
   19. MOTION — one or two considered moves
   ============================================================ */
/* hidden-state gated behind .js so content is visible if JS fails/absent */
.js .lm-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.lm-reveal.is-in { opacity: 1; transform: none; }
.lm-reveal[data-d="1"] { transition-delay: 0.07s; }
.lm-reveal[data-d="2"] { transition-delay: 0.14s; }
.lm-reveal[data-d="3"] { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .lm-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   20. UTILITIES
   ============================================================ */
.lm-flow > * + * { margin-top: calc(var(--baseline) * 3); }
.lm-mt-1 { margin-top: calc(var(--baseline) * 2); }
.lm-mt-2 { margin-top: calc(var(--baseline) * 4); }
.lm-mt-3 { margin-top: calc(var(--baseline) * 6); }
.lm-measure { max-width: var(--measure); }
.lm-lead {
  font-size: var(--t-2);
  line-height: 1.5;
  color: var(--ink-70);
}
.lm-tag-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--t--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-deep);
}
.lm-tag-live::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
}

/* ============================================================
   21. RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  :root { --rail: 150px; --gutter: 40px; }
  .lm-hero h1 { font-size: var(--t-6); }
  .lm-footer-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 860px) {
  :root {
    --rail: 0px;
    --gutter: 0px;
    --t-7: 2.9rem;
    --t-6: 2.4rem;
  }
  .lm-nav-links { display: none; }
  .lm-burger { display: flex; }

  /* collapse rail layouts to single column */
  .lm-rail,
  .lm-hero-grid,
  .lm-sec-head .lm-rail,
  .lm-pagehead-grid,
  .lm-footer-grid,
  .lm-404-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .lm-rail-aside,
  .lm-hero-aside,
  .lm-pagehead-aside {
    margin-bottom: 26px;
  }
  .lm-hero-aside { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 16px 24px; }
  .lm-hero-filed { border-top: 0; padding-top: 0; margin: 0; }

  /* pillars / articles collapse */
  .lm-pillar,
  .lm-article {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lm-pillar-aside,
  .lm-article-aside { flex-direction: row; align-items: baseline; gap: 14px; }
  .lm-pillar-cue,
  .lm-article-meta { padding-top: 0; }

  .lm-control { grid-template-columns: repeat(2, 1fr); }
  .lm-control-item { padding-right: 18px; }
  .lm-control-item:nth-child(4n) { border-right: 1px solid var(--rule); }
  .lm-control-item:nth-child(2n) { border-right: 0; }
  .lm-sec--navy .lm-control-item:nth-child(4n),
  .lm-control--navy .lm-control-item:nth-child(4n) { border-right: 1px solid var(--rule-light); }
  .lm-sec--navy .lm-control-item:nth-child(2n),
  .lm-control--navy .lm-control-item:nth-child(2n) { border-right: 0; }

  .lm-related { grid-template-columns: 1fr; }
  .lm-related-item { border-right: 0; padding-right: 0; }

  .lm-footer-cols { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .lm-footer-mark { margin-bottom: 26px; }

  .lm-meta-strip > div { border-right: 0; margin-right: 0; padding-right: 0; }
  .lm-framework > li { grid-template-columns: 40px 1fr; gap: 14px; }

  .lm-table { font-size: var(--t--1); }
  .lm-table thead th, .lm-table tbody td { padding-right: 10px; }
}

@media (max-width: 460px) {
  :root { --t-7: 2.35rem; --t-6: 2rem; --t-5: 1.95rem; --t-4: 1.65rem; }
  .lm-control { grid-template-columns: 1fr; }
  .lm-control-item,
  .lm-sec--navy .lm-control-item,
  .lm-control--navy .lm-control-item { border-right: 0 !important; }
  .lm-meta-strip { display: block; }
  .lm-meta-strip > div { border-right: 0; border-bottom: 1px solid var(--rule-faint); padding: 12px 0; }
  .lm-meta-strip > div:last-child { border-bottom: 0; }
}

/* ============================================================
   22. PRINT
   ============================================================ */
@media print {
  :root { --rail: 0; --gutter: 0; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .lm-nav, .lm-mobile, .lm-burger, .lm-footer, .lm-reveal { opacity: 1 !important; transform: none !important; }
  .lm-nav, .lm-mobile, .lm-burger { display: none; }
  .lm-sec--navy { background: #fff; color: #000; }
  .lm-sec--navy h1, .lm-sec--navy h2, .lm-sec--navy h3, .lm-sec--navy p { color: #000; }
  a { color: #000; }
  .lm-rail, .lm-hero-grid, .lm-pagehead-grid { grid-template-columns: 1fr; gap: 0; }
  .lm-prose { max-width: none; }
  section { page-break-inside: avoid; }
}

/* ============================================================
   PORTRAIT INTEGRATION — added 2026-05-23
   Hero portrait on / and pagehead portrait on /about/
   Mobile-first: small contained portrait; desktop: third column.
   ============================================================ */

.lm-hero-portrait,
.lm-pagehead-portrait {
  margin: 0 auto 32px;
  padding: 0;
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(180deg, #f4ede0 0%, #ece4d2 100%);
}
.lm-hero-portrait picture,
.lm-pagehead-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}
.lm-hero-portrait img,
.lm-pagehead-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.lm-hero-portrait figcaption,
.lm-pagehead-portrait figcaption {
  position: absolute;
  left: 0;
  bottom: -22px;
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--ink-40);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 861px) {
  .lm-hero-grid {
    grid-template-columns: var(--rail) minmax(0, 1fr) clamp(260px, 26vw, 380px);
    align-items: start;
  }
  .lm-hero-aside    { grid-column: 1; grid-row: 1; }
  .lm-hero-text     { grid-column: 2; grid-row: 1; }
  .lm-hero-portrait {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin: 4px 0 0;
    max-width: none;
    aspect-ratio: 4 / 5;
  }

  .lm-pagehead-grid {
    grid-template-columns: var(--rail) minmax(0, 1fr) clamp(200px, 20vw, 280px);
    align-items: start;
  }
  .lm-pagehead-aside    { grid-column: 1; grid-row: 1; }
  .lm-pagehead-text     { grid-column: 2; grid-row: 1; }
  .lm-pagehead-portrait {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin: 4px 0 0;
    max-width: none;
    aspect-ratio: 5 / 7;
  }
}

/* ============================================================
   VERIFIED GALLERY — added 2026-05-23
   3-photo gallery for /verified/ section "02 — Photograph"
   Mobile-first: single column; desktop: 3-column grid.
   ============================================================ */

.lm-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
}
.lm-gallery figure {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f4ede0 0%, #ece4d2 100%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.lm-gallery picture,
.lm-gallery img {
  display: block;
  width: 100%;
  height: 100%;
}
.lm-gallery img {
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 861px) {
  .lm-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ============================================================
   HUGH PHELAN BRAND OVERRIDES — added 2026-05-23
   Replace Lorna's green-deep CFO accent with notary gold.
   Phelan Solicitors brand: navy + cream + warm gold.
   ============================================================ */
:root {
  --green-deep: #b8956a;        /* gold accent — replaces green */
  --green-on-navy: #d4b890;     /* lighter gold on navy backgrounds */
  --green-faint: #f5ede1;       /* warm cream on cream sections */
}
.lm-hero h1 em { color: var(--green-deep); }
.lm-cta:hover { color: var(--green-deep); }
.lm-link { border-bottom-color: var(--green-deep); }
.lm-link:hover { color: var(--green-deep); }

/* Subtle serif tweak for legal seriousness */
body { font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "onum" 1; }
