/* The top menu, shared by every page (2026-11-02, Alex: the menu "should stay absolutely constant for the whole website,
   and everything else below it should just have a nice smooth animation to the next page").
   - One bar for every page: same size, same place, same links, same light/dark switch. tools/site_nav.py writes the
     same <nav id="edge-nav"> into each page; this file is the only place it is styled. Every rule is scoped to
     #edge-nav so a page's own CSS can't nudge it.
   - Going to another page, the bar holds still and only the page under it fades over (a cross-document view
     transition: Chrome, Edge and Safari 18.2+; other browsers just open the page as before).
   - Dark mode is one switch for the whole site. The choice is kept on this browser ("edge-mode") and set in <head>
     before the page paints, so a dark page never flashes white. Each page's own dark colors live in tools/pages/.
   - The fonts are the same files Google Fonts served, hosted here so they are ready the moment a page opens
     (a late font would make the menu's words change width). */

@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/dm-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/dm-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/dm-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/dm-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/dm-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/dm-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/inter-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/inter-greek-ext.woff2) format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/inter-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/inter-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* the scrollbar's space is always kept, so a short page and a long page put the bar in the same place */
html{scrollbar-gutter:stable;-webkit-text-size-adjust:100%;text-size-adjust:100%}
:root{--en-page:#F5F5F7}
html[data-mode="dark"]{--en-page:#08090A;color-scheme:dark}

/* the bar */
#edge-nav{
  --en-ink:#1D1D1F; --en-link:#333333; --en-grey:#6E6E6E; --en-bg:rgba(245,245,247,.82); --en-line:rgba(0,0,0,.08);
  --en-pill:#1D1D1F; --en-pill-ink:#FFFFFF; --en-pill-hover:#3A3A3C; --en-hover:rgba(0,0,0,.06); --en-sheet:#FFFFFF;
  --en-gut:clamp(20px,5vw,80px); --en-t:clamp(13px,.73vw,18px);
  --en-sans:"Inter",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  position:sticky;top:env(safe-area-inset-top,0px);z-index:40;view-transition-name:edge-nav;
  box-sizing:border-box;display:flex;align-items:center;height:56px;margin:0;padding:0;
  background:var(--en-bg);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border:0;border-bottom:1px solid var(--en-line);border-radius:0;box-shadow:none;
  color:var(--en-ink);font:400 var(--en-t)/1.47 var(--en-sans);letter-spacing:-.01em;text-align:left;text-transform:none;
  font-kerning:normal;font-feature-settings:normal;font-variation-settings:normal;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale
}
html[data-mode="dark"] #edge-nav{
  --en-ink:#F7F8F8; --en-link:#D0D6E0; --en-grey:#8A8F98; --en-bg:rgba(8,9,10,.8); --en-line:rgba(255,255,255,.08);
  --en-pill:#F7F8F8; --en-pill-ink:#0F1011; --en-pill-hover:#D0D6E0; --en-hover:rgba(255,255,255,.08); --en-sheet:#08090A
}
#edge-nav *{box-sizing:border-box}
/* the row lines up with the site's content column: 75% of the window, never under 1200px unless the screen is smaller */
#edge-nav .en-in{display:flex;justify-content:space-between;align-items:center;gap:16px;width:min(calc(100% - 2 * var(--en-gut)),max(1200px,75vw));margin:0 auto;padding:0}

/* wordmark: lowercase edge, thin divider, AI */
#edge-nav .en-wm{display:inline-flex;align-items:center;gap:8px;font-family:"DM Sans","Inter",system-ui,sans-serif;font-size:clamp(20px,1.15vw,28px);color:var(--en-ink);text-decoration:none}
#edge-nav .en-wm b{font-weight:700;letter-spacing:-.035em}
#edge-nav .en-wm i{display:block;width:1px;height:.95em;background:currentColor;opacity:.3}
#edge-nav .en-wm span{font-weight:600}

#edge-nav .en-right{display:flex;align-items:center;gap:32px}
/* each link is as wide as its bold self, so marking the page you're on never pushes the others over */
#edge-nav .en-link{display:inline-flex;flex-direction:column;align-items:center;white-space:nowrap;color:var(--en-link);font-weight:400;text-decoration:none;transition:color .2s}
#edge-nav .en-link::after{content:attr(data-label);height:0;overflow:hidden;visibility:hidden;font-weight:600;pointer-events:none;user-select:none}
#edge-nav .en-link:hover,#edge-nav .en-link[aria-current="page"]{color:var(--en-ink)}
#edge-nav .en-link[aria-current="page"]{font-weight:600}

#edge-nav .en-pill{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:.35em .95em;border:0;border-radius:980px;background:var(--en-pill);color:var(--en-pill-ink);font:500 var(--en-t)/normal var(--en-sans);letter-spacing:-.01em;white-space:nowrap;text-decoration:none;cursor:pointer;transition:background .2s}
#edge-nav .en-pill:hover{background:var(--en-pill-hover)}

/* the light/dark switch: a moon in light mode, a sun in dark mode. You see a 32px circle; the button itself is 44px so a
   thumb can't miss it (brand guide: tap targets at least 44px). The 6px of extra room each side is taken back with
   margins, so the bar looks and sits exactly as before. */
#edge-nav .en-mode{all:unset;box-sizing:border-box;display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0 -6px 0 -22px;border-radius:50%;color:var(--en-ink);cursor:pointer}
#edge-nav .en-mode::before{content:"";grid-area:1/1;width:32px;height:32px;border-radius:50%;transition:background .2s}
#edge-nav .en-mode:hover::before{background:var(--en-hover)}
#edge-nav .en-mode svg{grid-area:1/1;display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:opacity .3s,transform .4s cubic-bezier(.2,0,0,1)}
#edge-nav .en-sun{opacity:0;transform:rotate(-60deg) scale(.6)}
html[data-mode="dark"] #edge-nav .en-moon{opacity:0;transform:rotate(60deg) scale(.6)}
html[data-mode="dark"] #edge-nav .en-sun{opacity:1;transform:none}

#edge-nav a:focus-visible,#edge-nav button:focus-visible{outline:2px solid var(--en-ink);outline-offset:3px}
#edge-nav .en-mode:focus-visible{outline-offset:-4px}
#edge-nav .en-menu:focus-visible{outline-offset:1px}

/* phones and tablets: the page links fold into a two-line menu button that drops them down under the bar.
   It starts at 900px, because six page links don't fit in one row below that. */
#edge-nav .en-menu,#edge-nav .en-sheet{display:none}
@media (max-width:900px){
  #edge-nav .en-right{gap:16px}
  #edge-nav .en-link{display:none}
  #edge-nav .en-mode{margin-left:-12px}
  /* the menu button: two lines in a 44px tap area (it was 40px; the extra 2px a side is taken back with margins) */
  #edge-nav .en-menu{all:unset;box-sizing:border-box;display:grid;place-content:center;gap:6px;flex:none;width:44px;height:44px;margin:0 -12px 0 -2px;border-radius:50%;color:var(--en-ink);cursor:pointer}
  #edge-nav .en-menu i{display:block;width:18px;height:1.5px;border-radius:1px;background:currentColor;transition:transform .35s cubic-bezier(.2,0,0,1)}
  #edge-nav.en-open .en-menu i:first-child{transform:translateY(3.75px) rotate(45deg)}
  #edge-nav.en-open .en-menu i:last-child{transform:translateY(-3.75px) rotate(-45deg)}
  #edge-nav .en-sheet{display:grid;position:absolute;top:100%;left:0;right:0;padding:8px max(var(--en-gut),calc((100% - max(1200px,75vw)) / 2)) 24px;background:var(--en-sheet);border-bottom:1px solid var(--en-line);box-shadow:0 24px 40px -24px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .25s,transform .35s cubic-bezier(.2,0,0,1),visibility 0s .35s}
  #edge-nav.en-open .en-sheet{opacity:1;visibility:visible;transform:none;transition:opacity .25s,transform .35s cubic-bezier(.2,0,0,1)}
  #edge-nav .en-sheet a{padding:12px 0;color:var(--en-ink);font:600 24px/1.2 var(--en-sans);letter-spacing:-.02em;text-decoration:none}
  #edge-nav .en-sheet a[aria-current="page"]{color:var(--en-grey)}
}
/* touch screens: "Get started" looks the same, but an invisible pad above and below makes it a 44px-tall target for a
   thumb, like the light/dark and menu buttons next to it (mobile pass, 2026-11-02) */
@media (pointer:coarse){
  #edge-nav .en-pill{position:relative}
  #edge-nav .en-pill::before{content:"";position:absolute;inset:-10px -2px}
}

/* page to page: the bar holds still; the old page fades out and the new one fades up under it */
@view-transition{navigation:auto}
::view-transition{background:var(--en-page)}
::view-transition-group(edge-nav),::view-transition-new(edge-nav){animation:none}
::view-transition-old(edge-nav){display:none}
::view-transition-old(root){animation:en-out .12s cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:en-in .38s cubic-bezier(.2,.8,.2,1) .08s both}
@keyframes en-out{to{opacity:0}}
@keyframes en-in{from{opacity:0;transform:translateY(14px)}}
/* while it plays, the bar is solid, so the page moving under it doesn't show through the glass */
html:active-view-transition #edge-nav{background:var(--en-page)}

@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  #edge-nav *,#edge-nav *::before,#edge-nav *::after{transition:none!important}
}
