/* Scholia: zennia's page for the reference at scholia.zennia.sg.
   Baraza's page shape (top bar, hero band, sections of cards, a closing panel, part of zennia, a deep footer) in
   Scholia's own design system: warm paper and warm ink, Schibsted Grotesk (as the live site sets it), colour kept for
   meaning (the seven disciplines and the one rubric note), mostly square corners (a radius means something can be
   picked up), hairline rules instead of shadows, and the night band for the hero and the footer. The margin is the
   interface, so the method section shows a reading column with its margin open. Light only, like Baraza's page. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/scholia/fonts/SchibstedGrotesk-Variable.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/scholia/fonts/SchibstedGrotesk-Italic-Variable.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --surface: #f3eee5;
  --margin: #f6f1e8;
  --raised: #ffffff;
  --ink: #1e1a16;
  --muted: #564e45;
  --subtle: #6e655b;
  --rule: #dcd4c7;
  --rule-strong: #8f8577;
  --accent: #b0321c;   /* rubric: the note in the margin */
  --focus: #2350b8;

  /* The night band, for the hero and the footer */
  --night: #110f0c;
  --night-surface: #1e1b17;
  --night-rule: #38322a;
  --on-night: #ede6da;
  --on-night-muted: #ada394;
  --on-night-accent: #f08b6e;
  --on-night-focus: #8fb2ff;

  /* The seven disciplines. Never the only carrier: every chip also shows its name. */
  --d-philosophy: #3b4a8f;
  --d-psychology: #74468f;
  --d-sociology: #16706a;
  --d-economics: #8a5e08;
  --d-politics: #8f2d4a;
  --d-anthropology: #9c4e1f;
  --d-cognition: #456e2e;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 72px;
  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 8px;
  --t-fast: 120ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  --w-page: 1040px;
  --gutter: 20px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0ms !important; } }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { font-size: 17px; line-height: 1.6; display: flex; flex-direction: column; min-height: 100dvh; overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; font-weight: 650; margin: 0; letter-spacing: -.02em; }
p, li, dd { text-wrap: pretty; }
a { color: var(--ink); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; }
.skip:focus-visible { top: 12px; }
main { flex: 1; width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 0 var(--gutter); }

/* The symbol: a column of text, the margin rule, one rubric note */
.sym { display: inline-block; flex: none; }
.sym .s-ink { fill: var(--ink); }
.sym .s-rule { stroke: var(--ink); }
.sym .s-rubric { fill: var(--accent); }
.on-night .s-ink { fill: var(--on-night); }
.on-night .s-rule { stroke: var(--on-night); }
.on-night .s-rubric { fill: var(--on-night-accent); }
.wordmark { display: block; height: 28px; width: auto; }
.wordmark .w-letters { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.on-night .w-letters { stroke: var(--on-night); }
.lockup { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }

.arrow { width: 16px; height: 16px; flex: none; }

/* Buttons: a small radius, because a button can be picked up */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 15px/20px var(--font-sans); text-decoration: none; white-space: nowrap; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); color: var(--raised); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.quiet:hover { border-color: var(--accent); color: var(--accent); }
.btn.sm { min-height: 32px; padding: 0 var(--space-4); font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* Top bar */
.site-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-4); min-height: 60px; padding: 12px max(var(--gutter), calc((100% - var(--w-page)) / 2 + var(--gutter))); border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); padding-left: var(--space-4); border-left: 1px solid var(--rule); min-width: 0; }
.site-crumbs a { color: inherit; text-decoration: none; }
.site-crumbs a:hover { color: var(--accent); }
.site-crumbs [aria-current] { color: var(--ink); font: 600 16px/1 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-spacer { flex: 1; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 6px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.site-nav a:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 720px) { .site-nav { display: none; } }
@media (max-width: 520px) { .site-crumbs > :not(:first-child) { display: none; } .site-top .btn { display: none; } }

/* Hero band, at night */
.site-hero { position: relative; overflow: hidden; margin-inline: calc(50% - 50vw); padding: clamp(44px, 6.5vw, 80px) calc(50vw - 50%) clamp(56px, 7vw, 88px); background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-rule); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.site-hero > :not(.site-hero-art) { position: relative; z-index: 1; }
.site-hero h1 { font: 650 clamp(36px, 5vw, 60px)/1.04 var(--font-sans); letter-spacing: -.03em; margin: 4px 0 0; max-width: 16ch; }
.site-lede { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.5; color: var(--on-night-muted); max-width: 54ch; }
.site-lede b { color: var(--on-night); font-weight: 650; }
.site-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px; border-radius: var(--radius-sm); background: var(--night-surface); border: 1px solid var(--night-rule); color: var(--on-night); font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.site-pill::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--on-night-accent); }
.site-hero .row { margin-top: var(--space-2); }
.btn.light { background: var(--on-night); color: var(--night); }
.btn.light:hover { background: var(--on-night-accent); color: var(--night); }
.btn.outline { background: transparent; color: var(--on-night); border-color: var(--on-night-muted); }
.btn.outline:hover { border-color: var(--on-night-accent); color: var(--on-night-accent); }
.site-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--on-night-focus); }
.site-hero-art { position: absolute; right: calc(50vw - 50% + 8px); top: 50%; transform: translateY(-50%); z-index: 0; line-height: 0; }
.site-hero-art .sym { width: 240px; height: 240px; }
@media (max-width: 880px) { .site-hero-art { display: none; } }

/* Sections and cards */
.info-sec { display: grid; gap: var(--space-4); padding-top: var(--space-7); scroll-margin-top: 80px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 calc(var(--space-2) * -1); font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); }
.info-sec > h2 { font: 650 clamp(26px, 2.7vw, 34px)/1.15 var(--font-sans); letter-spacing: -.025em; max-width: 32ch; }
.info-sec > p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 62ch; }
.info-card { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: clamp(16px, 2.4vw, 24px); display: grid; gap: var(--space-2); align-content: start; }
.info-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.info-card b { font: 650 17px/24px var(--font-sans); }
.info-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-4); }
.info-grid > li { border-top: 3px solid var(--ink); }
.info-n { font: 650 28px/1 var(--font-sans); color: var(--accent); }

/* The disciplines: a colour square and a name, never colour alone */
.disciplines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.disciplines a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--raised); border: 1px solid var(--rule); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.disciplines a::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--d); }
.disciplines a:hover { border-color: var(--d); color: var(--d); }
.d-philosophy { --d: var(--d-philosophy); }
.d-psychology { --d: var(--d-psychology); }
.d-sociology { --d: var(--d-sociology); }
.d-economics { --d: var(--d-economics); }
.d-politics { --d: var(--d-politics); }
.d-anthropology { --d: var(--d-anthropology); }
.d-cognition { --d: var(--d-cognition); }

/* Seven kinds of entry: each mark is its node shape in the Concordance */
.kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--space-4); }
.kind { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius-md); transition: border-color var(--t-fast) var(--ease); }
.kind:hover { border-color: var(--rule-strong); }
.kind-mark { width: 28px; height: 28px; color: var(--ink); }
.kind-mark * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kind-mark .fill { fill: currentColor; }
.kind h3 { font: 650 19px/26px var(--font-sans); letter-spacing: -.01em; }
.kind p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.kind-go { margin-top: auto; padding-top: var(--space-2); }
.kind-go a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
.kind-go a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kind:hover .kind-go a { color: var(--accent); }
.kind:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.kind-go a:focus-visible { outline: none; }

/* The method: a reading column with its margin open */
.folio { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 0 var(--space-6); padding: clamp(24px, 4vw, 40px); background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.folio-col { display: grid; gap: var(--space-3); align-content: start; }
.folio-kicker { margin: 0; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.folio-text { margin: 0; font: 650 clamp(22px, 2.6vw, 30px)/1.3 var(--font-sans); letter-spacing: -.02em; text-wrap: balance; }
.folio-ref { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 1px; background: var(--accent); vertical-align: super; }
.folio-margin { margin: 0; padding-left: var(--space-5); border-left: 1px solid var(--rule); align-self: start; display: grid; gap: var(--space-2); font-size: 15px; line-height: 1.45; color: var(--muted); }
.folio-margin b { display: flex; align-items: center; gap: 8px; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.folio-margin b::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); }
.folio-margin p { margin: 0; }
.folio-margin i { color: var(--ink); }
@media (max-width: 760px) {
  .folio { grid-template-columns: 1fr; gap: var(--space-4); }
  .folio-margin { padding: var(--space-3) var(--space-4); border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
}
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio > li { border-top: 3px solid var(--accent); }

/* Versus: two ideas set side by side on what divides them */
.versus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); }
.vs { position: relative; display: grid; gap: var(--space-2); padding: var(--space-5); background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius-md); transition: border-color var(--t-fast) var(--ease); }
.vs:hover { border-color: var(--rule-strong); }
.vs-pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 650 18px/1.3 var(--font-sans); letter-spacing: -.01em; }
.vs-pair a { text-decoration: none; }
.vs-pair a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.vs:hover .vs-pair a { color: var(--accent); }
.vs:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.vs-pair a:focus-visible { outline: none; }
.vs-word { font: 600 11px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.vs p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* The name */
.info-name { grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; }
.info-name .sym { width: 72px; height: 72px; }
.name-body { display: grid; gap: var(--space-2); }
.info-name h3 { font: 650 32px/1.1 var(--font-sans); letter-spacing: -.03em; }
.info-name i { font-style: italic; color: var(--ink); }
@media (max-width: 600px) { .info-name { grid-template-columns: 1fr; } }

/* Who it's for */
.aspire { margin: 0; padding: var(--space-4) var(--space-5); border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 17px; line-height: 1.6; }
.info-sec > p.aspire { max-width: none; }

/* Good to know */
.facts { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 0; }
.fact { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--rule); border-top: 3px solid var(--ink); background: var(--raised); }
.fact dt { font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.fact dd { margin: 0; font-size: 16px; line-height: 1.55; }

/* Closing */
.closing { display: grid; gap: var(--space-4); justify-items: start; margin-top: var(--space-7); padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--rule); }
.closing h2 { font: 650 clamp(28px, 3.4vw, 40px)/1.1 var(--font-sans); letter-spacing: -.03em; }
.closing ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 18px; line-height: 28px; color: var(--muted); }
.closing ul li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 12px 2px 0; border-radius: 1px; background: var(--rule-strong); }
.closing ul li:last-child::before { background: var(--accent); }
.closing .sign { margin: 0; font: 650 18px/1.3 var(--font-sans); color: var(--accent); }

/* Part of zennia */
.family { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-4); }
.family > li.here { box-shadow: inset 0 0 0 2px var(--ink); border-color: var(--ink); }
.family b { font-size: 20px; }
.family-kind { margin: 0; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.info-card p.when { margin-top: auto; padding-top: var(--space-1); color: var(--ink); font-weight: 600; }
.info-here { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: var(--radius-sm); background: var(--surface); color: var(--accent); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }

/* Footer, at night */
.site-footer { position: relative; overflow: clip; isolation: isolate; margin-top: 64px; padding: 56px 18px 24px; background: var(--night); color: var(--on-night); }
.site-footer-art { position: absolute; z-index: 0; right: -60px; bottom: -110px; opacity: .08; pointer-events: none; line-height: 0; }
.site-footer-art .sym { width: 400px; height: 400px; }
.site-footer-art .s-ink { display: none; } /* only the margin rule and the note, so nothing reads as a row behind the links */
.site-footer-inner { position: relative; z-index: 1; max-width: var(--w-page); margin: 0 auto; }
.site-footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .site-footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer-brand { display: grid; gap: 18px; align-content: start; }
.site-tagline { font: 650 clamp(24px, 1.2vw + 19px, 30px)/1.15 var(--font-sans); letter-spacing: -.025em; max-width: 12em; margin: 0; text-wrap: balance; }
.site-footer-nav h2 { font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-muted); margin: 0 0 12px; }
.site-footer-nav ul, .site-footer-legal { list-style: none; padding: 0; margin: 0; }
.site-footer-nav ul { display: grid; gap: 8px; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: var(--on-night-accent); text-decoration: underline; text-underline-offset: 3px; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--night-rule); font-size: 14px; line-height: 20px; }
.site-footer-bottom p { margin: 0; }
.site-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
