/*
  AURASH — GLOBAL STYLESHEET
  ==========================
  This is the single source of truth for the whole site: fonts, colours,
  the header, the tab strip, the footer and the reel banner.

  It is the static-site equivalent of a Next.js app/layout.tsx.
  Every page links this ONE file, so editing it here changes all pages.

  Loaded BEFORE each page's own stylesheet, so a page can still override
  something deliberately. Do not re-declare fonts or colours per page.
*/

:root {
  /* type — one stack for the entire site */
  --au-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* colour */
  --au-ink: #090a0a;
  --au-paper: #f1eee6;
  --au-lime: #d9ff20;
  --au-muted: #8b8e89;
  --au-line: rgba(255, 255, 255, 0.14);

  /* layout */
  --au-max: 1180px;
  --au-gutter: max(18px, calc((100vw - var(--au-max)) / 2));

  /* chrome heights — also used to reserve space so nothing jumps on load */
  --au-bar: 58px;
  --au-tabrow: 50px;

  /* header type — sized for readability, matches the Direct Prompts reference */
  --au-brand-size: 13px;
  --au-tab-size: 11.5px;
  --au-tab-pad: 10px 15px;
  --au-edition-size: 11px;
}

/* ---------------------------------------------------------------
   Shared type scale. Matches Attention Sprint across the whole site.
   --------------------------------------------------------------- */

html {
  font-family: var(--au-font);
  scroll-behavior: smooth;
}

body {
  font-family: var(--au-font);
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 12vw, 6.6rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.068em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 3.2rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.052em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Chrome: brand bar + tab strip.
   Injected by /aurash.js into #au-chrome-root on every page.
   --------------------------------------------------------------- */

/*
  The mount point itself is the sticky element, NOT .au-chrome inside it.
  A sticky element can only travel within its parent's box — if .au-chrome
  were sticky it would be trapped inside this wrapper (which is only as tall
  as the header) and would scroll away instead of pinning to the top.
*/
#au-chrome-root {
  position: sticky;
  top: 0;
  z-index: 60;
  /* Reserve the height before JS runs so the page never jumps. */
  min-height: calc(var(--au-bar) + var(--au-tabrow));
}

.au-chrome {
  background: rgba(9, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.au-topbar {
  min-height: var(--au-bar);
  padding: 0 var(--au-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: min-height 0.24s ease;
}

.au-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--au-paper);
  font-size: var(--au-brand-size);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 0.24s ease;
}

.au-brand i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--au-lime);
  box-shadow: 0 0 16px rgba(217, 255, 32, 0.6);
}

.au-edition {
  flex: 0 0 auto;
  color: var(--au-muted);
  font-size: var(--au-edition-size);
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.au-tabs {
  height: var(--au-tabrow);
  padding: 0 var(--au-gutter) 11px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  opacity: 1;
  transition: height 0.24s ease, opacity 0.18s ease, padding 0.24s ease;
}

.au-tabs::-webkit-scrollbar { display: none; }

.au-tabs a {
  flex: 0 0 auto;
  padding: var(--au-tab-pad);
  border: 1px solid var(--au-line);
  border-radius: 999px;
  background: transparent;
  color: #c3c6c1;
  font-family: var(--au-font);
  font-size: var(--au-tab-size);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease,
    padding 0.24s ease, font-size 0.24s ease;
}

.au-tabs a:hover,
.au-tabs a.is-active,
.au-tabs a[aria-current="page"] {
  border-color: var(--au-lime);
  background: var(--au-lime);
  color: var(--au-ink);
}

.au-tabs a:focus-visible {
  outline: 2px solid var(--au-lime);
  outline-offset: 2px;
}

/*
  Scrolled down: the header SHRINKS. It never hides and the tabs never
  disappear — every page stays one click away at all times. Only the
  proportions tighten to give the page back some vertical room.
*/
.au-chrome[data-scroll="down"] {
  --au-bar: 46px;
  --au-tabrow: 42px;
  --au-brand-size: 12px;
  --au-tab-size: 10.5px;
  --au-tab-pad: 7px 12px;
}

/* ---------------------------------------------------------------
   Reel banner
   --------------------------------------------------------------- */

.au-reel {
  max-width: 650px;
  margin: 22px 0 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(217, 255, 32, 0.42);
  border-radius: 12px;
  background: rgba(217, 255, 32, 0.07);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.au-reel span {
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: none;
}

.au-reel b {
  flex: 0 0 auto;
  color: var(--au-lime);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.au-reel:hover,
.au-reel:focus-visible {
  border-color: var(--au-lime);
  background: rgba(217, 255, 32, 0.12);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.au-footer {
  padding: 32px var(--au-gutter) 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.4fr;
  align-items: start;
  gap: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--au-ink);
  color: var(--au-muted);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.au-footer p { margin: 0; }
.au-footer .au-brand { margin-bottom: 9px; }

.au-footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.au-footer-links a {
  color: var(--au-lime);
  font-weight: 800;
  text-decoration: none;
}

.au-footer-links a:hover { text-decoration: underline; }

.au-footer-links a:focus-visible {
  outline: 2px solid var(--au-lime);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 720px) {
  .au-footer { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 620px) {
  :root {
    --au-bar: 52px;
    --au-tabrow: 46px;
    --au-brand-size: 12px;
    --au-tab-size: 10.5px;
    --au-tab-pad: 8px 12px;
  }

  .au-edition { display: none; }

  .au-chrome[data-scroll="down"] {
    --au-bar: 44px;
    --au-tabrow: 42px;
    --au-brand-size: 11px;
    --au-tab-size: 10px;
    --au-tab-pad: 7px 11px;
  }
}

@media (max-width: 560px) {
  .au-reel { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .au-chrome,
  .au-topbar,
  .au-tabs,
  .au-tabs a,
  .au-reel { transition: none; }
}
