/* Ads Desk design system: tokens, type, frame, controls, motion.
   Loaded after app.css, so its tokens re-skin every page. Fonts are self-hosted (CSP 'self'). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/static/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/static/fonts/atkinson-hyperlegible-next-italic.woff2")
    format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  /* metric-matched fallback so text doesn't jump when the font lands */
  font-family: "Desk Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 92%;
}

:root {
  interpolate-size: allow-keywords;
  --bg: #e6ebf1;
  --bg-deep: #d9e0e9;
  --surface: #ffffff;
  --surface-2: #f3f6f9;
  --surface-3: #eaeff5;
  --ink: #0f1a2b;
  --ink-2: #3c4a5f;
  --ink-3: #5a687d;
  --rule: #d3dbe5;
  --accent: #2c46e0;
  --accent-2: #1b2fb0;
  --accent-soft: #e5e9ff;
  --on-accent: #ffffff;
  --marker: #ffd23f;
  --marker-ink: #3a2c00;
  --good: #0f7a44;
  --good-bg: #dff4e8;
  --warn: #8f5200;
  --warn-bg: #fff0d1;
  --bad: #bf1f2b;
  --bad-bg: #fde6e7;
  --info-bg: #e5e9ff;
  --pending: #b8c2d0;
  --kind-decision: #6d33d6; /* task-kind text on --surface-2: 6.3:1 */
  --kind-phase: #0a6c76; /* 5.7:1 */
  --kind-session: #8b4a00; /* 6.3:1 */
  --shadow-1:
    0 1px 1px rgb(15 26 43 / 0.05), 0 2px 6px -2px rgb(15 26 43 / 0.08);
  --shadow-2:
    0 1px 1px rgb(15 26 43 / 0.04), 0 6px 14px -6px rgb(15 26 43 / 0.14),
    0 22px 40px -22px rgb(15 26 43 / 0.28);
  --shadow-3:
    0 2px 2px rgb(15 26 43 / 0.05), 0 18px 36px -12px rgb(15 26 43 / 0.26),
    0 48px 80px -40px rgb(28 44 140 / 0.35);
  --radius-board: 22px;
  --radius-panel: 16px;
  --radius-control: 11px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --display: "Bricolage Grotesque", "Desk Fallback", system-ui, sans-serif;
  --body:
    "Atkinson Hyperlegible Next", "Desk Fallback", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1220;
    --bg-deep: #070c16;
    --surface: #131c2d;
    --surface-2: #19243a;
    --surface-3: #1f2b44;
    --ink: #eef2f9;
    --ink-2: #b9c4d6;
    --ink-3: #93a0b6;
    --rule: #2a3754;
    --accent: #93a4ff;
    --accent-2: #b6c2ff;
    --accent-soft: #1d2a55;
    --on-accent: #0b1220;
    --marker: #ffd84d;
    --marker-ink: #2c2100;
    --good: #5fd898;
    --good-bg: #123325;
    --warn: #f6c55a;
    --warn-bg: #362810;
    --bad: #ff8d93;
    --bad-bg: #3d1719;
    --info-bg: #1d2a55;
    --pending: #56627a;
    --kind-decision: #b79cff; /* on dark --surface-2: 6.8:1 */
    --kind-phase: #5fcad4; /* 8.0:1 */
    --kind-session: #f2a65a; /* 7.7:1 */
    --shadow-1: 0 1px 1px rgb(0 0 0 / 0.3), 0 2px 8px -2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 1px 1px rgb(0 0 0 / 0.3), 0 10px 24px -10px rgb(0 0 0 / 0.6);
    --shadow-3:
      0 2px 2px rgb(0 0 0 / 0.3), 0 24px 48px -16px rgb(0 0 0 / 0.7),
      0 40px 90px -40px rgb(90 110 255 / 0.25);
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-inline: 20px;
}
.wrap {
  max-width: 1240px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.012em;
}
h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
h2 {
  font-size: 23px;
  font-weight: 660;
  line-height: 1.2;
}
h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  font-family: var(--body);
  letter-spacing: 0;
}
p {
  max-width: 72ch;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover {
  color: var(--accent-2);
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 14px;
}
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--marker);
  color: var(--marker-ink);
}

time {
  font-family: inherit;
}

/* Header: a floating glass bar; the active nav pill glides between pages. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-inline: -20px;
  padding-inline: 20px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 70%, transparent);
  view-transition-name: site-header;
}
.nav-wrap {
  min-height: 66px;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 740 20px/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}
.brand-mark {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 3px;
  width: 26px;
  height: 22px;
  padding: 3px 4px;
  border-radius: 7px;
  background: var(--ink);
  transform: perspective(60px) rotateX(18deg);
}
.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--marker);
}
.brand-mark i:nth-child(1) {
  height: 6px;
}
.brand-mark i:nth-child(2) {
  height: 10px;
}
.brand-mark i:nth-child(3) {
  height: 15px;
}
.nav ul {
  gap: 4px;
}
.nav-link {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition:
    color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}
.nav-link:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}
.nav-link[aria-current="page"] {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 6px 16px -8px var(--accent);
  view-transition-name: nav-active;
}
.who {
  gap: 12px;
}
.who-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-2);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--marker);
  color: var(--marker-ink);
  font: 760 14px/1 var(--display);
}

/* Controls */
.btn {
  border-radius: var(--radius-control);
  font: 650 15.5px/1 var(--body);
  padding: 11px 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    var(--shadow-1),
    inset 0 -2px 0 rgb(15 26 43 / 0.06);
  transition:
    transform 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out),
    background-color 140ms;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: var(--shadow-1);
}
.btn-quiet {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  color: var(--ink-2);
}
.btn-quiet:hover {
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

/* Chips: state in shape and color, always with a word. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  font: 650 13px/1.2 var(--body);
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid transparent;
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Banners and flash: the flash drops in on its hinge after a decision. */
.banners {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.banner,
.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  max-width: none;
  padding: 13px 16px;
  border-radius: var(--radius-panel);
  font-weight: 600;
  box-shadow: var(--shadow-2);
}
.banner-stale {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid color-mix(in oklab, var(--warn) 30%, transparent);
}
.banner-icon,
.flash-check {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font: 800 15px/1 var(--display);
}
.banner-icon {
  background: var(--warn);
  color: var(--warn-bg);
}
.flash {
  background: var(--good-bg);
  color: var(--good);
  border: 1px solid color-mix(in oklab, var(--good) 30%, transparent);
  transform-origin: top center;
}
.flash-check {
  background: var(--good);
  color: var(--good-bg);
}
.footer {
  padding-block: 34px 44px;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}
.main {
  padding-top: 26px;
}

