/* Kolton Sandbox — shared chrome, one external cacheable file instead of the
   same tokens/nav/button/footer CSS being duplicated inline on every page
   (index.php and every error page were shipping byte-identical copies of
   this on every load, uncacheable, and free to drift apart over time).
   Page-specific rules (hero, cards, error-code display, etc.) stay inline
   in each page's own <style> block, right after this file loads, so a
   page can override a shared selector by source order alone (see .nav on
   the error pages, which need a solid background instead of the floating
   transparent-over-video treatment used on the homepage). */

:root{
  /* Coastal-Premium Design System — sandbox keeps kolton.net's own teal rather than
     picking a new hue, since this property is Kolton's own sub-brand extending the
     home site's identity, not a differentiated business (unlike Hire30A/Consulting). */
  --ocean-900:#071a26;--ocean-800:#0a2333;--ocean-700:#0e2e42;--ocean-600:#123a53;
  --teal-500:#17a898;--teal-400:#3ec4b2;--teal-300:#8adfd2;--cyan-400:#4fc3dd;
  --sea-600:#0f8577;--sea-700:#0b6a60;
  --sand-100:#f8f4ec;--sand-200:#efe8d9;
  --ink-900:#0c1720;--ink-700:#2b3a45;--ink-500:#55666f;--ink-400:#7d8b93;
  --line:#e6e4dc;--paper:#fff;--mist:var(--sand-100);--line-dark:rgba(255,255,255,.12);
  /* Roles: one accent for links/UI chrome, one deeper "final action" for primary CTAs */
  --primary:var(--teal-500);--accent:var(--sea-600);
  /* Type scale, named by job so the ladder can be retuned without hunting every usage */
  --fs-hero:clamp(2.6rem,7vw,5rem);--fs-h1:clamp(2.4rem,6vw,4.4rem);--fs-h2:clamp(1.9rem,4vw,3rem);
  --fs-h3:clamp(1.2rem,2vw,1.5rem);--fs-lead:clamp(1.05rem,1.6vw,1.25rem);
  --fs-body:1rem;--fs-sm:.9rem;--fs-xs:.8rem;--fs-2xs:.72rem;
  /* Spacing: 4px base unit, for gaps/padding within a component (section rhythm stays fluid) */
  --sp-1:.25rem;--sp-2:.5rem;--sp-3:.75rem;--sp-4:1rem;--sp-5:1.5rem;--sp-6:2rem;--sp-7:3rem;--sp-8:4rem;--sp-9:6rem;
  --radius:16px;--radius-lg:26px;
  --shadow-sm:0 1px 2px rgba(12,23,32,.06),0 4px 12px rgba(12,23,32,.05);
  --shadow-md:0 8px 30px rgba(12,23,32,.10);
  --shadow-lg:0 24px 60px rgba(7,26,38,.18);
  --ease:cubic-bezier(.22,.61,.36,1);
}
*{box-sizing:border-box}
html{scrollbar-color:var(--teal-500) var(--ocean-900)}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:var(--ocean-900)}
::-webkit-scrollbar-thumb{background:var(--teal-500);border-radius:999px;border:3px solid var(--ocean-900)}
::-webkit-scrollbar-thumb:hover{background:var(--teal-400)}
:focus-visible{outline:2px solid var(--teal-400);outline-offset:2px}
body{margin:0;min-height:100vh;font-family:"Inter",system-ui,-apple-system,sans-serif;color:var(--ink-900);line-height:1.6;-webkit-font-smoothing:antialiased;background:var(--paper)}
h1,h2,h3{font-family:"Space Grotesk",system-ui,sans-serif;font-weight:600;letter-spacing:-.02em;margin:0 0 .4em}
a{color:var(--primary)}
.container{width:min(1160px,92vw);margin-inline:auto}

/* ---- Nav (default: fixed, transparent-until-scrolled, for hero-video pages) ---- */
.nav{position:fixed;inset:0 0 auto 0;z-index:100;border-bottom:1px solid transparent;transition:background .3s,border-color .3s,backdrop-filter .3s}
.nav.is-scrolled{background:rgba(7,26,38,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom-color:rgba(255,255,255,.1)}
.nav__inner{display:flex;align-items:center;justify-content:space-between;height:74px}
.brand{display:flex;align-items:center;gap:.55rem;color:#fff;text-decoration:none}
.brand__mark{width:34px;height:34px;flex:none;color:#fff}
.brand__word{font-family:"Fraunces",Georgia,serif;font-weight:540;font-size:1.3rem;letter-spacing:-.01em;color:#fff;font-optical-sizing:none;font-variation-settings:"opsz" 72}
.brand__dot{color:var(--teal-400)}
.brand__sub{font-family:"Space Grotesk",system-ui,sans-serif;font-weight:600;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.55);border-left:1px solid rgba(255,255,255,.18);margin-left:.5rem;padding-left:.65rem}
/* Below ~480px, brand + Elsewhere + the settings/CTA button no longer fit the
   nav row together (measured overflow at 390px: 380px of content in a ~358px
   container). Drop the brand's "SANDBOX" chip specifically — it is purely
   decorative here (the page's own eyebrow already says "Sandbox" one line
   down) — rather than hiding Elsewhere itself, which is real navigation with
   no other way to reach it. */
@media(max-width:480px){.brand__sub{display:none}}
/* Elsewhere dropdown — same component as kolton.net's nav */
.nav__elsewhere{position:relative}
.nav__elsewhere-btn{display:flex;align-items:center;gap:.3rem;background:none;border:none;cursor:pointer;padding:0;font-family:inherit;font-size:.85rem;font-weight:500;color:rgba(255,255,255,.6);transition:color .2s}
.nav__elsewhere-btn:hover,.nav__elsewhere-btn[aria-expanded="true"]{color:rgba(255,255,255,.9)}
.nav__elsewhere-btn svg{transition:transform .25s}
.nav__elsewhere-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.elsewhere-panel{position:absolute;top:calc(100% + 14px);right:0;width:fit-content;max-width:min(90vw,340px);background:var(--ocean-900);border-radius:var(--radius);padding:var(--sp-4);box-shadow:var(--shadow-lg);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s var(--ease),transform .25s var(--ease),visibility .25s;z-index:60}
/* Anchored right:0 to the trigger button works when that button sits near the
   nav's right edge (desktop). On mobile the trigger sits mid-row instead, so a
   ~340px-wide panel anchored to it runs off the LEFT edge of the viewport
   (measured: -39px at 375px wide). Anchor to the viewport instead of the
   trigger below this width, so it always fits regardless of where the button
   actually sits. */
@media(max-width:480px){
  .elsewhere-panel{position:fixed;left:1rem;right:1rem;top:74px;width:auto;max-width:none}
}
.elsewhere-panel.open{opacity:1;visibility:visible;transform:translateY(0)}
.elsewhere-grid{display:grid;grid-template-columns:max-content;gap:.3rem;margin:0 auto}
.elsewhere-item{display:flex;align-items:center;gap:.9rem;padding:.7rem .9rem;border-radius:10px;transition:background .2s;text-decoration:none}
.elsewhere-item:hover{background:rgba(255,255,255,.07)}
.elsewhere-item__icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;background:rgba(62,196,178,.16);color:var(--teal-300)}
.elsewhere-item__icon svg{width:16px;height:16px}
.elsewhere-item__label{display:block;font-family:"Space Grotesk";font-weight:600;font-size:.88rem;color:#fff}
.elsewhere-item__desc{display:block;font-size:.76rem;color:rgba(255,255,255,.5);margin-top:.1rem}
.elsewhere-item--own .elsewhere-item__icon{background:rgba(234,88,12,.18);color:#fb923c}

/* ---- Buttons ---- */
.btn{display:inline-flex;align-items:center;gap:.55rem;padding:.6rem 1.2rem;border-radius:12px;font-family:"Space Grotesk",sans-serif;font-weight:600;font-size:var(--fs-sm);letter-spacing:.01em;border:1px solid transparent;cursor:pointer;transition:transform .25s var(--ease),box-shadow .25s var(--ease),background .2s;text-decoration:none;background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.28);backdrop-filter:blur(6px)}
.btn:hover{transform:translateY(-2px);background:rgba(255,255,255,.18);box-shadow:var(--shadow-md)}

/* ---- Footer ---- */
.app-footer{width:100%;background:var(--ocean-900);color:rgba(255,255,255,.5);display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;font-size:.85rem;padding:clamp(1.6rem,4vw,2.2rem) clamp(20px,5vw,48px)}
.app-footer a{color:var(--teal-300);text-decoration:none}
.app-footer a:hover{color:var(--teal-400)}
@media(max-width:640px){.app-footer{justify-content:center;text-align:center}}
