/* leonhudson.global v0.4, direction B: Editorial.
   Petrol and ochre (matching the LinkedIn banner), Newsreader headings over Inter body text.
   Fonts are self-hosted from assets/fonts (SIL Open Font License 1.1; licences beside the files).
   Contrast checked to WCAG AA: muted #566273 on paper 5.9:1, ochre deep #8a5d12 on paper 5.3:1,
   ochre #e0a83e on petrol 5.8:1, on-dark #c9d6d9 on petrol 8.3:1. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --petrol: #0f3a44; --petrol-2: #17505c; --footer: #0a2a31;
  --paper: #f7f4ee; --paper-2: #efeae0;
  --text: #16202e; --muted: #566273; --muted-strong: #4b5563; --line: #cfc8ba;
  --ochre: #d9a441; --ochre-on-dark: #e0a83e; --ochre-deep: #8a5d12; --on-dark: #c9d6d9;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px; --gutter: clamp(20px, 4vw, 40px); --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); }
a:hover { color: var(--ochre-deep); }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }
.section--ink :focus-visible, .band :focus-visible, .places-band :focus-visible, .site-footer :focus-visible { outline-color: var(--ochre-on-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--petrol); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--petrol); margin: 0; letter-spacing: -0.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 5.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.22; }
p { margin: 0 0 1.1em; }
.eyebrow { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase; color: var(--ochre-deep); margin: 0 0 0.9rem; }
.eyebrow__place { color: var(--petrol); }
.standfirst { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; color: var(--muted); max-width: 46rem; margin: 0; }
.standfirst--dark { color: var(--petrol); margin-bottom: 1.4rem; }
.measure { max-width: 52rem; }
h2 + .standfirst { margin-top: 1.25rem; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.body-copy p { font-size: 1.0625rem; line-height: 1.72; }
.body-copy h2 { font-size: 1.6rem; margin: 2.25rem 0 .75rem; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0 1.6rem; border: 0; border-radius: var(--radius); font: 600 0.95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.btn .icon { width: 16px; height: 16px; flex: 0 0 16px; transition: transform 0.15s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary, .btn--primary:hover { color: #fff; }
.btn--primary { background: var(--petrol); }
.btn--primary:hover { background: var(--petrol-2); }
.btn--accent, .btn--accent:hover { color: var(--petrol); }
.btn--accent { background: var(--ochre-on-dark); font-weight: 700; }
.btn--accent:hover { background: #ebbb5c; }
.btn--sm { min-height: 44px; padding: 0 1.25rem; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; margin-top: 2.25rem; }
.link-underline { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--petrol); text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link-underline:hover { color: var(--ochre-deep); }

/* Header */
.topbar { height: 5px; background: var(--ochre); }
.site-header { position: relative; z-index: 20; background: var(--paper); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.3rem 0 1.05rem; }
.brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 1rem; color: var(--petrol); text-decoration: none; }
.brand:hover { color: var(--petrol); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand__tag { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.6rem; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--ochre-deep); }
.site-nav a[aria-current="page"] { color: var(--petrol); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.rule-double { height: 4px; border-top: 1px solid var(--petrol); border-bottom: 1px solid var(--petrol); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--petrol); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 959px) {
  .brand { flex-direction: column; gap: 0.15rem; }
  .brand__name { font-size: 1.55rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--petrol); box-shadow: 0 16px 28px rgba(15, 58, 68, 0.1); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem var(--gutter) 1.25rem; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li.site-nav__cta { border: 0; padding-top: 1rem; }
  .site-nav a:not(.btn) { min-height: 52px; font-size: 1.05rem; }
  .site-nav .btn { width: 100%; min-height: 52px; }
}

/* Sections */
.section { padding: clamp(3.75rem, 8vw, 6rem) 0; }
.section--tight { padding-top: 0; }
.section--alt { background: var(--paper-2); }
.section--rule { border-top: 1px solid var(--line); }
.section--ink, .band { background: var(--petrol); color: #fff; }
.section--ink h2, .band h2 { color: #fff; }
.section--ink .eyebrow, .band .eyebrow { color: var(--ochre-on-dark); }
.lead-on-dark { margin: 0 0 1.75rem; max-width: 42rem; font-size: 1.1875rem; line-height: 1.62; color: var(--on-dark); }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.75rem 4.5rem; }
.split__head { flex: 1 1 320px; }
.split__head--figure { max-width: 360px; }
.split__body { flex: 999 1 560px; min-width: 0; }
.split__body > p:not(.standfirst):not(.eyebrow):not(.lead-on-dark):not(.draft-note) { font-size: 1.0625rem; line-height: 1.72; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.section-head__aside { margin: 0; max-width: 26rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--muted); }
.section-head__aside a { font-style: normal; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--petrol); text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }

/* Page heads */
.page-head { padding: clamp(3.25rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 62rem; font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.25rem; }
.page-head--tall { min-height: 55vh; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 4.5rem) 0 0; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3rem 4.5rem; }
.hero__copy { flex: 999 1 600px; min-width: 0; }
.hero__copy h1 { margin: 1.25rem 0 1.75rem; }
.hero__kicker { display: flex; align-items: center; gap: 0.9rem; }
.hero__kicker .eyebrow { margin: 0; }
.hero__thumb { display: none; width: 64px; height: 80px; object-fit: cover; object-position: center 15%; flex: 0 0 64px; }
.hero__thumb img { display: block; width: 64px; height: 80px; object-fit: cover; object-position: center 15%; }
.portrait picture { display: block; }
.hero__lead { max-width: 40rem; margin: 0; font-size: 1.1875rem; line-height: 1.62; }
.hero__figure { flex: 1 1 300px; max-width: 360px; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 759px) {
  .hero__figure { display: none; }
  .hero__thumb { display: block; }
  .hero__lead { font-size: 1.05rem; }
}

/* At a glance */
.glance-section { padding: clamp(3rem, 6vw, 4rem) 0 0; }
.glance { border-top: 3px solid var(--petrol); border-bottom: 1px solid var(--petrol); padding: 0.6rem 0 1.75rem; }
.glance__title { margin: 0 0 1.4rem; font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--petrol); }
.glance__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.glance__grid strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.75rem, 5vw, 3.5rem); line-height: 1; color: var(--petrol); }
.glance__grid span { display: block; margin-top: 0.6rem; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 900px) {
  .glance__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .glance__grid li { padding: 0 1.75rem; border-left: 1px solid var(--line); }
  .glance__grid li:first-child { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) { .glance__grid { grid-template-columns: 1fr; } }

/* Profile columns */
.columns { columns: 2 320px; column-gap: 3.5rem; margin: 0.5rem 0 1.25rem; font-size: 1.0625rem; line-height: 1.72; }
.columns p { break-inside: avoid-column; }

/* Numbered areas (expertise, patterns) */
.areas { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 3.5rem; }
.areas li { border-top: 1px solid var(--petrol); padding: 1.5rem 0 2.25rem; scroll-margin-top: 1.5rem; }
.areas__num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ochre-deep); }
.areas h3 { margin: 0.35rem 0 0.6rem; }
.areas h3 a { color: inherit; text-decoration: none; }
.areas h3 a:hover { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.areas p { margin: 0; color: var(--muted-strong); }
.areas li:target { background: linear-gradient(var(--paper-2), var(--paper-2)) no-repeat; }

/* Places strip (About) */
.places-band { background: var(--petrol); color: #fff; padding: 2.5rem 0 2.9rem; }
.places__label { margin: 0 0 1.6rem; font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark); }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 1.5rem; }
.places li { position: relative; flex: 1 1 150px; padding-top: 1.35rem; border-top: 2px solid rgba(224, 168, 62, 0.55); }
.places li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ochre-on-dark); }
.places__city { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.places__country { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--on-dark); }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--petrol); }
.timeline li { display: flex; flex-wrap: wrap; gap: 0.5rem 3rem; padding: 1.9rem 0; border-bottom: 1px solid var(--line); }
.dateline { flex: 0 0 240px; margin: 0; font: 700 0.75rem/1.7 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--petrol); }
.dateline span { display: block; color: var(--ochre-deep); }
.timeline__body { flex: 1 1 480px; min-width: 0; }
.timeline__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); line-height: 1.2; }
.timeline__kind { margin: 0.3rem 0 0.9rem; font-size: 0.95rem; color: var(--muted); }
.timeline__label { margin: 0 0 0.25rem; font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre-deep); }
.timeline__lesson { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
@media (max-width: 720px) { .dateline { flex-basis: 100%; } }

/* Recognition */
.recognition { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--petrol); }
.recognition li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.recognition strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.35; color: var(--petrol); }
.recognition span { display: block; margin-top: 0.15rem; font-size: 0.95rem; color: var(--muted-strong); }

/* Writing cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; padding: 1.5rem 1.6rem 1.6rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--petrol); color: var(--text); text-decoration: none; transition: border-color 0.15s; }
.card:hover { border-color: var(--petrol); color: var(--text); }
.card time { font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-deep); }
.card h3 { margin: 0.6rem 0; font-size: 1.45rem; }
.card p { margin: 0 0 1.25rem; font-size: 0.95rem; color: var(--muted-strong); }
.card__more { margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--petrol); text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Archive */
.archive { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--petrol); }
.archive li { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.archive time { flex: 0 0 150px; padding-top: 0.2rem; font-size: 0.85rem; color: var(--muted); }
.archive a { flex: 1 1 300px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; color: var(--petrol); text-decoration: none; }
.archive a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }

/* Quick answers */
.faq details { border-top: 1px solid var(--petrol); }
.faq details:last-of-type { border-bottom: 1px solid var(--petrol); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.9rem 0; list-style: none; cursor: pointer; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: var(--petrol); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font: 400 1.5rem/1 var(--sans); color: var(--ochre-deep); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; max-width: 40rem; color: var(--muted-strong); }

/* Closing band */
.band { padding: clamp(3.5rem, 6vw, 4.5rem) 0; }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band__text { flex: 1 1 520px; }
.band h2 { font-size: clamp(2rem, 3vw, 2.5rem); margin-bottom: 0.6rem; }
.band p { margin: 0; max-width: 40rem; font-size: 1.125rem; color: var(--on-dark); }

/* Contact */
.contact-page { padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.contact-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.5rem 4.5rem; }
.contact-main { flex: 999 1 520px; min-width: 0; }
.contact-main h1 { margin-bottom: 1.25rem; }
.contact-note { flex: 1 1 280px; margin-top: 0.5rem; padding: 1.5rem 1.6rem 0.5rem; background: var(--paper-2); border-top: 3px solid var(--petrol); }
.contact-note p:not(.eyebrow) { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--petrol); }
.location { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1.75rem 0 0; color: var(--muted); }
.location svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; color: var(--ochre-deep); }

/* Articles */
.article-head { padding: clamp(3rem, 6vw, 4rem) 0 2rem; }
.article-head h1 { margin: 1.25rem 0 1rem; font-size: clamp(2.25rem, 4.5vw, 3.6rem); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; font-weight: 600; color: var(--ochre-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-meta { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.article { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.prose-article { padding-top: 2rem; border-top: 3px solid var(--petrol); font-family: var(--serif); font-size: 1.25rem; line-height: 1.65; }
.prose-article h2 { margin: 2.25rem 0 1rem; font-size: 1.6rem; }
.prose-article h3 { margin: 2rem 0 0.75rem; }
.prose-article blockquote { margin: 1.75rem 0; padding-left: 1.25rem; border-left: 3px solid var(--ochre); font-style: italic; color: var(--muted-strong); }
.prose-article ul, .prose-article ol { padding-left: 1.4rem; }
.prose-article li { margin-bottom: 0.5rem; }
.prose-article a { text-decoration-color: var(--ochre); text-underline-offset: 4px; }
.article-foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-foot .btn-row { margin-top: 1rem; }

/* Footer */
.site-footer { padding: 4.5rem 0 2.25rem; background: var(--footer); color: var(--on-dark); font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; }
.footer-brand { flex: 2 1 320px; }
.footer-brand__name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.65rem; color: #fff; }
.footer-brand p { max-width: 24rem; margin: 0.75rem 0 1.25rem; line-height: 1.6; }
.footer-col { flex: 1 1 150px; }
.site-footer h2 { margin: 0 0 0.9rem; font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-footer li { min-height: 36px; display: flex; align-items: center; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 0.6rem; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; }
.socials svg { width: 18px; height: 18px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; }

/* Draft notes: visible only in the workshop build */
.draft-note { display: none; }
.is-draft .draft-note { display: block; max-width: 46rem; margin: 1.25rem 0; padding: 0.75rem 1rem; border: 1px dashed var(--ochre-deep); border-radius: var(--radius); background: #fbf3e3; color: #5c3e0c; font: 400 0.85rem/1.5 var(--sans); }

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