/* Integration layer: aligns the full site with the approved Lovable Observatory design.
   Loaded after observatory.css (and site.css on inner pages). Only tokens, shared chrome and genuine fixes. */

/* Lovable tokens drive both systems */
:root {
  --paper: oklch(.95 .012 85); --ink: oklch(.24 .017 180);
  --ivory: oklch(.95 .012 85); --card: oklch(.975 .007 85); --paper2: oklch(.92 .014 85);
  --night: oklch(.17 .012 185); --char: oklch(.21 .015 185); --char2: oklch(.24 .018 185);
  --nline: oklch(.34 .018 180); --ntxt: oklch(.91 .015 85); --ntxt2: oklch(.67 .018 170);
  --citrus: oklch(.74 .075 75); --plumL: oklch(.74 .035 175); --steel: oklch(.67 .018 170);
  --mind: oklch(.49 .075 70); --mindL: oklch(.74 .075 75); --work: oklch(.42 .045 175); --workL: oklch(.74 .035 175);
  --mute: oklch(.50 .017 180); --ink2: oklch(.36 .015 180); --rule: oklch(.82 .018 85); --rule2: oklch(.88 .014 85);
  --s: 'Newsreader', Georgia, serif; --d: 'Newsreader', Georgia, serif; --g: 'Manrope', system-ui, sans-serif; --ui: 'Manrope', system-ui, sans-serif;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--primary); color: var(--primary-foreground); padding: 10px 14px; font: 600 13px var(--font-sans); }
.skip-link:focus { left: 8px; }

/* shared header on inner pages (same markup as the homepage header) */
/* inner pages: no top band; the header is sticky and nothing clips the dropdowns */
.site-top { position: sticky; top: 0; z-index: 60; padding-top: 0 !important; overflow: visible; }
.site-top .site-header { position: relative; inset: auto; }
.site-top .site-header.is-scrolled { box-shadow: 0 1px 0 var(--border); }
.site-top + main, .site-top + .reading-progress + main { position: relative; }
/* wordmark: monogram leads, the name reads as one lockup */
.wordmark { gap: 14px; align-items: center; }
.wordmark .monogram { border-radius: 4px; width: 48px; height: 48px; box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 14%, transparent); }
.wordmark .wm-text { color: var(--foreground); white-space: nowrap; letter-spacing: -.005em; }
.wordmark .wm-text span { color: var(--primary); }
.footer-brand .wordmark .monogram { width: 52px; height: 52px; }
@media (max-width: 760px) { .wordmark { gap: 11px; } .wordmark .monogram { width: 40px; height: 40px; } }
/* navigation states */
.nav-item:focus-visible, .dropdown-link:focus-visible, .header-note:focus-visible, .mobile-menu:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-item svg { opacity: .7; }
.nav-item[aria-expanded="true"] { color: var(--primary); }
.nav-dropdown { top: calc(100% + 8px); }
.nav-dropdown:before { height: 20px; inset: -20px 0 auto; }
.dropdown-link[aria-current] { background: color-mix(in oklch, var(--primary) 10%, transparent); }
.desktop-nav .dropdown-link[aria-current]:after { content: ""; position: static; width: 6px; height: 6px; margin: 0; background: var(--primary); border-radius: 50%; flex: none; }
.mobile-sub[hidden] { display: none; }
/* inner pages set body colour to ink; the dark chrome must keep Lovable's light foreground */
.site-footer, .site-top { color: var(--foreground); }
.site-footer a.footer-cta { display: inline-flex; align-items: center; gap: 12px; }

/* inner pages: Lovable reading typography (Manrope body, Newsreader display) */
body:not([data-page="home"]) { font-family: var(--font-sans); }
.prose p, .ab2 .story p, .cs-body p, .manifesto p, .role p.tx, .role .pts li, .pagehero .dek, .sw2 p, .caps p, .research p, .vgrid p, .fwl-txt .q, .travel p, .feat p, .prow p, .wa-list span, .glossary dd, .say, .facets .say, .panel .a, .panel .q, .inter p, .arc .q b {
  font-family: var(--font-reading); font-style: normal;
}
.prose p, .ab2 .story p, .cs-body p, .manifesto p { font-weight: 400; font-size: 18px; line-height: 1.85; color: var(--ink2); }
.ab2 .story p.lead { font: 400 clamp(28px, 2.8vw, 40px)/1.25 var(--font-display); color: var(--ink); }
.manifesto p.big, .ab2 .story blockquote { font-family: var(--font-display); font-style: italic; }
/* Lovable preflight removes list markers; restore them where lists carry meaning */
.role .pts, .certs ul, .emp ul, .listv ul, .arefs ol, .ar-refs { list-style: revert; padding-left: 1.2em; }
/* links inside reading text stay identifiable */
.ab2 .story a, .cs-side a, .sn a, .ar-body p a, .crumb a, .ct-grid a:not(.mailcta) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.more { text-decoration: none; }

/* homepage additions (no change to approved visuals) */
.field-selection .atlas-open { display: inline-block; margin-left: 6px; color: var(--primary); border-bottom: 1px solid currentColor; }
.awards-section .section-heading h2 { overflow-wrap: anywhere; }

/* journal landing additions in the Lovable idiom */
.jl-series p { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jl-series-btn { background: transparent; border: 1px solid var(--paper-line, var(--rule)); color: inherit; padding: 8px 14px; font: 500 12px var(--font-sans); cursor: pointer; border-radius: 2px; }
.jl-series-btn span { opacity: .6; margin-left: 4px; }
.jl-series-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.jl-grid li[hidden] { display: none; }
.jl-note { margin-top: 32px; font: 400 14px/1.7 var(--font-reading); color: var(--paper-muted); max-width: 70ch; }
.ar-fw { font: 400 16px/1.8 var(--font-reading); color: var(--paper-muted); margin-bottom: 14px; }
.ar-toc a[aria-current] { color: var(--bronze-dark); }

/* small screens: approved layout, fixed overflow */
@media (max-width: 760px) {
  .awards-section .section-heading h2 { font-size: clamp(34px, 10vw, 44px); }
}
