/* Shared by every page: fonts, layout basics, the top bar (with its phone menu) and the footer.
   Page-specific styles stay in each page's own <style>, which loads after this file. */

/* Self-hosted Inter and Space Grotesk (Latin subsets), so visitors don't fetch anything from Google. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; 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: 400 600; 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; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/space-grotesk-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: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/space-grotesk-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; }

* { box-sizing: border-box; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(7,8,13,.7); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { width: 30px; height: 30px; }
nav ul { display: flex; gap: 22px; list-style: none; padding: 0; margin-left: auto; font-size: 14px; color: var(--muted); }
.menu-btn { display: none; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.flinks a:hover { color: var(--text); text-decoration: underline; }
/* Keyboard users see where they are; mouse clicks don't leave a ring. */
:focus-visible { outline: 2px solid #8a88ff; outline-offset: 3px; }

@media (max-width: 860px) {
  nav .btn { margin-left: auto; }
  /* Phones: the links fold into a drop-down opened by the menu button. */
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; flex: none; width: 40px; height: 40px; padding: 0 10px; margin-left: -12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
  nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .menu-btn span:nth-child(2) { opacity: 0; }
  nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px 16px 12px; background: #07080d; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -12px rgba(0,0,0,.8); font-size: 17px; }
  nav.open ul { display: flex; }
  nav ul li:last-child a { border-bottom: 0; }
}
