/* Jaras releases site — shared shell styles.
   Loaded after colors_and_type.css on both pages. */

:root {
  --accent: var(--jds-blue-500);
  --accent-hover: var(--jds-blue-600);
  --accent-subtle: var(--jds-blue-50);

  --page-bg: var(--jds-slate-50);
  --surface: #ffffff;
  --surface-2: var(--jds-slate-50);
  --text: var(--jds-slate-900);
  --text-muted: var(--jds-slate-500);
  --text-soft: var(--jds-slate-600);
  --border-c: var(--jds-slate-200);
  --hero-bg: var(--jds-darkblue-500);

  --gutter: 28px;
  --maxw: 820px;
}

[data-theme="dark"] {
  --page-bg: #06091a;
  --surface: var(--jds-darkblue-700);
  --surface-2: var(--jds-darkblue-800);
  --text: #eef1f8;
  --text-muted: #8d97b4;
  --text-soft: #aab3cd;
  --border-c: #1b274d;
  --hero-bg: #010613;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--jds-font-sans);
  font-size: var(--jds-fs-base);
  line-height: var(--jds-lh-normal);
  -webkit-font-smoothing: antialiased;
  transition: background var(--jds-duration-2) var(--jds-ease), color var(--jds-duration-2) var(--jds-ease);
}

/* ---------- Top bar + nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter); height: 60px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border-c);
}
.topbar .brand { display: flex; align-items: center; }
.topbar .brand img { height: 24px; width: auto; display: block; }
[data-theme="dark"] .topbar .brand img { filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; text-decoration: none;
  font-size: var(--jds-fs-sm); font-weight: var(--jds-fw-medium);
  color: var(--text-muted); padding: 8px 12px; border-radius: var(--jds-radius-md);
  transition: color var(--jds-duration-1), background var(--jds-duration-1);
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--accent-hover); }
.nav a.active::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: -19px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
[data-theme="dark"] .nav a.active { color: #cfd6ff; }
.topbar .host {
  margin-inline-start: auto;
  font-size: var(--jds-fs-xs); font-weight: var(--jds-fw-medium);
  color: var(--text-muted); font-family: var(--jds-font-mono); direction: ltr;
}

/* ---------- Slim header ---------- */
.head {
  background: var(--hero-bg); color: #fff;
  padding: 52px var(--gutter) 44px;
  position: relative; overflow: hidden;
  transition: background var(--jds-duration-2) var(--jds-ease);
}
.head__inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.head__wm {
  position: absolute; inset-inline-start: -50px; top: -56px;
  width: 280px; opacity: .07; filter: brightness(0) invert(1); pointer-events: none; z-index: 1;
}
.head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--jds-fs-xs); font-weight: var(--jds-fw-semibold);
  letter-spacing: .12em; text-transform: uppercase; color: #aeb9d6; margin-bottom: 14px;
}
.head .eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--jds-orange-500); }
.head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: var(--jds-fw-bold); color: #fff; margin: 0 0 12px; letter-spacing: -.01em; }
.head p { max-width: 560px; font-size: var(--jds-fs-base); line-height: var(--jds-lh-relaxed); color: #c2cbe2; margin: 0; }
.head .meta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: var(--jds-fs-xs); color: #aeb9d6;
}
.head .meta svg { width: 14px; height: 14px; }
.head .meta code { font-family: var(--jds-font-mono); direction: ltr; color: #d9e0f2; background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 5px; }

/* ---------- Container ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 44px var(--gutter) 96px; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; inset-inline-start: 24px; bottom: 24px; z-index: 50;
  width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: #fff; border: none; box-shadow: var(--jds-shadow-lg);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity var(--jds-duration-2) var(--jds-ease), transform var(--jds-duration-2) var(--jds-ease), background var(--jds-duration-2);
}
.totop.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.totop:hover { background: var(--accent-hover); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--border-c); background: var(--surface); padding: 24px var(--gutter); }
.foot__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .c { font-size: var(--jds-fs-xs); color: var(--text-muted); }
.foot .c .host { font-family: var(--jds-font-mono); direction: ltr; }

@media (max-width: 640px) {
  .topbar { gap: 14px; }
  .nav a { padding: 8px 9px; }
}
