/* Self-hosted fonts (SIL Open Font License): Fraunces for headings, IBM Plex Sans for text, IBM Plex Mono for figures */
@font-face{font-family:'Fraunces';src:url('/fonts/fraunces.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('/fonts/plex-sans.woff2') format('woff2');font-weight:100 700;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/fonts/plex-mono-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/fonts/plex-mono-500.woff2') format('woff2');font-weight:500 700;font-style:normal;font-display:swap}

/* Public pages: shared type, buttons, nav and content patterns.
   Loaded last on every public page (body.site) so it settles the look in one place. */
:root{
  --paper:#F6F5F1; --paper-2:#EFEDE6; --card:#FFFFFF;
  --ink:#141821; --ink-2:#394150; --muted:#646B78; --rule:#DCD8CE;
  --blue:#1F4FD8; --blue-ink:#163A9E; --up:#0E9F6E; --down:#D33A3A;
  --display:'Fraunces',Georgia,'Times New Roman',serif;
  --sans:'IBM Plex Sans','Helvetica Neue',Arial,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  /* page templates read these */
  --bg:var(--paper); --bg-2:var(--paper); --panel:var(--card); --panel-2:var(--paper-2);
  --line:var(--rule); --line-soft:var(--rule); --text:var(--ink); --faint:var(--muted);
  --gold:var(--blue); --gold-bright:var(--blue); --gold-deep:var(--blue-ink);
}

body.site{background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
body.site h1,body.site h2,body.site h3,body.site h4{font-family:var(--display);font-weight:560;letter-spacing:-.01em;color:var(--ink);font-optical-sizing:auto}
body.site h1{line-height:1.05}
body.site h3,body.site h4{font-family:var(--sans);font-weight:600;letter-spacing:0}
body.site p{color:var(--ink-2)}
:where(body.site) a{color:var(--blue);text-underline-offset:3px} /* low specificity: page styles win */
body.site ::selection{background:rgba(31,79,216,.18)}
body.site .eyebrow,body.site .updated,body.site .tag,body.site .date,body.site .label,body.site .lbl{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

/* nav: solid, one rule line, no blur */
body.site .nav{background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--rule)}
body.site .nav-links a{color:var(--ink-2)}
body.site .nav-links a:hover{color:var(--ink);text-decoration:underline}

/* buttons: solid, squared corners, no glow; the arrow moves a little on hover */
body.site .btn-gold,body.site .btn-join,body.site .apply-btn,body.site .submit-btn,body.site .cta-btn,body.site .nf-actions .primary{
  background:var(--ink);color:#FFFFFF!important;border:1px solid var(--ink);border-radius:6px;box-shadow:none;
  font-family:var(--sans);font-weight:600;letter-spacing:0;text-decoration:none;
  transition:background-color .15s ease-out,border-color .15s ease-out,transform .15s ease-out}
body.site .btn-gold:hover,body.site .btn-join:hover,body.site .apply-btn:hover,body.site .submit-btn:hover,body.site .cta-btn:hover,body.site .nf-actions .primary:hover{background:var(--blue);border-color:var(--blue);transform:none}
body.site .btn-gold:active,body.site .apply-btn:active,body.site .submit-btn:active{transform:translateY(1px)}
body.site .nf-actions .ghost{border:1px solid var(--ink);color:var(--ink);border-radius:6px;background:transparent;transition:background-color .15s ease-out}
body.site .nf-actions .ghost:hover{background:var(--paper-2)}
body.site :focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* page heading: left aligned, with a short blue bar instead of a centered glow */
body.site:not(.home) .hero{text-align:left;max-width:1040px;padding:72px 24px 40px;margin:0 auto}
body.site:not(.home) .hero h1{font-size:clamp(38px,6vw,62px);max-width:14ch;margin:10px 0 18px}
body.site:not(.home) .hero h1::before{content:"";display:block;width:44px;height:4px;background:var(--blue);margin-bottom:22px}
body.site:not(.home) .hero p{margin:0;max-width:56ch;font-size:18px;color:var(--ink-2)}
body.site .divider{width:auto;max-width:1040px;height:1px;background:var(--rule);margin:48px auto}
body.site .section{max-width:1040px}
body.site .section h2,body.site .wrap h2{font-size:clamp(26px,3.4vw,34px)}
body.site:not(.home) .wrap{max-width:820px}
body.site .crumbs{max-width:1040px;margin-left:auto;margin-right:auto;padding:0 24px}

/* feature-card grids become numbered ledger rows: rule lines, no floating tiles, no emoji badges */
body.site .values,body.site .perks,body.site .grid:has(>.contact-card),body.site .pillars,body.site .rights-grid,body.site .risk-cards,body.site .contact-grid,body.site .team{
  display:block;margin-top:28px;border-top:1px solid var(--ink);counter-reset:row}
body.site .val-card,body.site .perk,body.site .pillar,body.site .right-card,body.site .risk-card,body.site .contact-card,body.site .team-card{
  counter-increment:row;display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:20px;align-items:baseline;
  background:none;border:none;border-bottom:1px solid var(--rule);border-radius:0;box-shadow:none;padding:20px 0;text-align:left;
  transition:background-color .15s ease-out}
body.site .val-card::before,body.site .perk::before,body.site .pillar::before,body.site .right-card::before,body.site .risk-card::before,body.site .contact-card::before,body.site .team-card::before{
  content:counter(row,decimal-leading-zero);font-family:var(--mono);font-size:13px;color:var(--blue);grid-row:1 / span 4}
body.site .val-card>*,body.site .perk>*,body.site .pillar>*,body.site .right-card>*,body.site .risk-card>*,body.site .contact-card>*,body.site .team-card>*{grid-column:2}
body.site .val-card .icon,body.site .perk .icon,body.site .pillar .icon,body.site .right-card .icon,body.site .risk-card .icon,body.site .contact-card .icon{display:none}
body.site .val-card h3,body.site .perk h4,body.site .perk h3,body.site .pillar h4,body.site .right-card h4,body.site .risk-card h4,body.site .risk-card h3,body.site .contact-card h3,body.site .contact-card h4{font-size:17px;margin:0 0 4px}
body.site .val-card p,body.site .perk p,body.site .pillar p,body.site .right-card p,body.site .risk-card p,body.site .contact-card p{font-size:15px;margin:0;color:var(--ink-2);max-width:62ch}
@media(min-width:760px){
  body.site .val-card:hover,body.site .perk:hover,body.site .pillar:hover,body.site .contact-card:hover{background:linear-gradient(90deg,var(--paper-2),transparent 70%)}
}

body.site .contact-card .badge{justify-self:start;width:auto;border-radius:3px;margin-top:8px}

/* numbers and fact tables */
body.site .stats{border-radius:0;border-left:none;border-right:none;background:var(--rule)}
body.site .stat{background:var(--paper);text-align:left}
body.site .stat .num,body.site .value{font-family:var(--mono);color:var(--ink)}
body.site .job{border-radius:0;border:none;border-bottom:1px solid var(--rule);background:none}
body.site .faq-item{border-radius:0;border:none;border-bottom:1px solid var(--rule);background:none}
body.site .release{border-left:3px solid var(--blue);border-radius:0;background:none;padding-left:18px}

/* warning box on the risk page stays plain and readable */
body.site .warning{border-radius:0;border:none;border-left:4px solid var(--down);background:#FBEDEC}

body.site footer{border-top:1px solid var(--ink)}
body.site footer .links a{color:var(--ink-2)}
body.site footer .links a:hover{color:var(--ink);text-decoration:underline}
@media(prefers-reduced-motion:reduce){body.site *{transition:none!important}}
