/* Site chrome — the nav and footer shared by every public page (landing, blog, docs,
   terms, privacy). Loaded LAST by both layouts/landing and layouts/marketing, so these
   rules win over each page's own link colours.

   Self-contained on purpose: it declares its own font, colours and sizes rather than
   inheriting them, so the menu looks the same on the mono landing and on the blog. */

.sc{
  --sc-bg:#000;
  --sc-line:#fff;
  --sc-text:#d6d6d0;
  --sc-faint:#6f6f68;
  --sc-rule:#4a4a44;
  --sc-accent:#ff7a1a;
  --sc-link:#7aa5ff;
  --sc-link-bg:#1b2440;
  --sc-mono:'IBM Plex Mono','Courier New',ui-monospace,SFMono-Regular,Menlo,monospace;
  --sc-max:975px;

  font-family:var(--sc-mono); font-size:15px; line-height:1.6; color:var(--sc-text);
}

/* Visited links keep the unvisited colour — the menu stays one colour as people browse. */
.sc a,
.sc a:visited{ color:var(--sc-link); text-decoration:underline; text-underline-offset:2px; }
.sc a:hover{ color:#fff; background:var(--sc-link-bg); }

/* ---------- nav ---------- */
/* The viewport gutter lives on the header, NOT on the bordered box. That way the rule and
   the first menu item share a left edge — padding inside .sc-nav-in would push the logo in
   from the line by exactly the padding. */
header.sc-nav{
  position:sticky; top:0; z-index:20; width:100%; background:var(--sc-bg); padding:0 20px;
}
.sc-nav-in{
  max-width:var(--sc-max); margin:0 auto;
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 22px; padding:12px 0;
  border-bottom:1px solid var(--sc-line);
}

/* The lockup carries the wordmark, so the brand link is the image alone — never underlined
   or tinted like a link. */
.sc .sc-brand,
.sc .sc-brand:visited{ display:flex; align-items:center; text-decoration:none; background:none; }
.sc .sc-brand:hover{ background:none; text-decoration:none; }
/* Height drives the size; the width attribute on the tag only reserves space before load.
   32px puts the baked-in wordmark at roughly 18px — the weight the text brand had, and a
   step above the 15px menu links. */
.sc-brand img{ height:32px; width:auto; display:block; }

.sc-links{ display:flex; flex-wrap:wrap; gap:4px; white-space:nowrap; align-items:center; }
.sc-links a{ padding:1px 6px; }
.sc-sep{ color:var(--sc-rule); }
.sc-acts{ margin-left:auto; display:flex; gap:14px; align-items:center; white-space:nowrap; }

.sc .sc-btn,
.sc .sc-btn:visited{
  text-decoration:none; color:#000; background:var(--sc-accent); border:1px solid var(--sc-accent);
  box-shadow:3px 3px 0 var(--sc-line); padding:4px 14px; font-weight:700;
}
.sc .sc-btn:hover{ color:#000; background:#ff8f3d; border-color:#ff8f3d; text-decoration:none; }

/* X link: icon-only in the nav, icon + handle in the footer. */
.sc .sc-x,
.sc .sc-x:visited{
  display:grid; place-items:center; width:30px; height:30px; color:var(--sc-faint);
  border:1px solid var(--sc-rule); text-decoration:none; background:none;
}
.sc .sc-x:hover{ color:var(--sc-accent); border-color:var(--sc-accent); background:none; }

/* ---------- mobile drawer ---------- */
/* On a phone the section links would wrap into a second row and push the CTA off, so the
   bar keeps only the brand, "start now" and a burger; everything else lives in a slide-in
   drawer. Pure CSS: the burger and the ✕ are labels for the hidden checkbox, so the menu
   works on every public page without any JavaScript. */

.sc-menu-check{ display:none; }
.sc-burger, .sc-scrim, .sc-drawer{ display:none; }

@media(max-width:720px){
  .sc-links, .sc-acts .sc-signin, .sc-acts .sc-contact{ display:none; }
  .sc-nav-in{ gap:8px 12px; }

  .sc-burger{
    display:grid; place-items:center; width:34px; height:34px;
    border:1px solid var(--sc-rule); color:var(--sc-text);
    font-size:20px; line-height:1; cursor:pointer; user-select:none;
  }
  .sc-burger:hover{ color:#fff; border-color:#fff; }

  .sc-scrim{
    display:block; position:fixed; inset:0; z-index:39;
    background:rgba(0,0,0,.55); opacity:0; visibility:hidden;
    transition:opacity .25s ease, visibility .25s;
  }

  .sc-drawer{
    display:flex; flex-direction:column; position:fixed; top:0; right:0; bottom:0; z-index:40;
    width:min(78vw, 300px); padding:16px 20px 24px; overflow-y:auto;
    background:var(--sc-bg); border-left:1px solid var(--sc-line);
    transform:translateX(105%); transition:transform .25s ease;
  }

  .sc-menu-check:checked ~ .sc-scrim{ opacity:1; visibility:visible; }
  .sc-menu-check:checked ~ .sc-drawer{ transform:none; }

  .sc-drawer-close{
    align-self:flex-end; display:grid; place-items:center; width:34px; height:34px;
    border:1px solid var(--sc-rule); color:var(--sc-text); font-size:15px; cursor:pointer; user-select:none;
  }

  .sc-drawer-links{ display:flex; flex-direction:column; margin-top:10px; }
  .sc .sc-drawer-links a,
  .sc .sc-drawer-links a:visited{
    padding:13px 0; border-bottom:1px solid var(--sc-rule);
    color:var(--sc-text); font-size:17px; text-decoration:none; background:none;
  }
  .sc .sc-drawer-links a:hover{ color:#fff; background:none; }
  /* The CTA keeps its button look, spaced off from the list. */
  .sc .sc-drawer-links a.sc-btn,
  .sc .sc-drawer-links a.sc-btn:visited{
    margin-top:20px; padding:10px 14px; border-bottom:1px solid var(--sc-accent);
    color:#000; background:var(--sc-accent); text-align:center; font-weight:700;
  }
}

@media (prefers-reduced-motion: reduce){
  .sc-scrim, .sc-drawer{ transition:none; }
}

/* ---------- footer ---------- */
footer.sc-foot{ margin-top:52px; background:var(--sc-bg); padding:0 20px; }
/* Same rule as the nav: gutter outside the bordered box, so the line and the first link
   start at the same x. */
.sc-foot-in{
  max-width:var(--sc-max); margin:0 auto; padding:16px 0 28px;
  display:flex; flex-wrap:wrap; gap:6px 10px; font-size:14px; color:var(--sc-faint); align-items:center;
  border-top:1px solid var(--sc-line);
}
.sc .sc-status,
.sc .sc-status:visited{ margin-left:auto; display:flex; align-items:center; gap:7px; text-decoration:none; color:var(--sc-accent); background:none; }
.sc .sc-status:hover{ background:none; color:var(--sc-accent); text-decoration:none; }
.sc-status i{ width:7px; height:7px; background:var(--sc-accent); display:inline-block; }
.sc-copy{ width:100%; color:var(--sc-rule); padding-top:6px; }

.sc .sc-foot-x,
.sc .sc-foot-x:visited{
  display:inline-flex; align-items:center; gap:6px; color:var(--sc-faint);
  text-decoration:none; background:none;
}
.sc .sc-foot-x:hover{ color:var(--sc-accent); background:none; }
.sc-foot-x svg{ flex:none; }
