/*
 * Ticket Archive for HubSpot — Atesen Software · design system, part 1 of 7: tokens, base type, links, focus.
 * Every colour is a token on :root and is redefined for dark mode, so components never need their own colour
 * media query. System fonts only; no external fonts or CDNs (CSP: style-src 'self'). Files are kept ≤300 lines:
 * base · app (buttons, forms, cards, tables) · site (header, footer) · hero · cards · mock · pages.
 */

:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f3f5f7;
  --surface-3: #e9edf0;
  --border: #e2e6ea;
  --border-strong: #cbd2d9;
  --text: #0f1720;
  --text-2: #36414d;
  --text-dim: #5b6672;
  --accent: #0f766e;
  --accent-hover: #0c5f58;
  --accent-text: #ffffff;
  --accent-ink: #0b6a62;
  --accent-soft: #e6f4f1;
  --accent-line: #b5ddd5;
  --ok: #157a43;
  --ok-soft: #e7f5ec;
  --ok-line: #b6dfc6;
  --warn: #8a5a00;
  --warn-soft: #fff5e1;
  --bad: #b42a20;
  --bad-solid: #c0352b;
  --bad-soft: #fdeeec;
  --bad-line: #f1c4bf;
  --pdf: #c2410c;
  --focus: #0f766e;
  --ring: 0 0 0 3px rgba(15, 118, 110, 0.28);
  --shadow-xs: 0 1px 2px rgba(15, 23, 32, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 32, 0.08), 0 1px 2px rgba(15, 23, 32, 0.04);
  --shadow-md: 0 8px 20px -6px rgba(15, 23, 32, 0.12), 0 2px 4px -2px rgba(15, 23, 32, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 32, 0.24), 0 4px 10px -4px rgba(15, 23, 32, 0.08);
  --wash-1: rgba(15, 118, 110, 0.11);
  --wash-2: rgba(37, 99, 235, 0.06);
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --maxw: 1160px;
  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0f12;
    --surface: #121a1e;
    --surface-2: #172025;
    --surface-3: #1d282e;
    --border: #243139;
    --border-strong: #34434c;
    --text: #e8eef1;
    --text-2: #c3ccd2;
    --text-dim: #94a1aa;
    --accent: #2bb9a6;
    --accent-hover: #43cbb8;
    --accent-text: #03201c;
    --accent-ink: #5fe0cc;
    --accent-soft: #0f2a27;
    --accent-line: #1f4d47;
    --ok: #63d69d;
    --ok-soft: #0f2a1d;
    --ok-line: #1d4b33;
    --warn: #f0b85a;
    --warn-soft: #2a200d;
    --bad: #ff9289;
    --bad-solid: #c0352b;
    --bad-soft: #2c1513;
    --bad-line: #5a2621;
    --pdf: #fb8f5e;
    --focus: #5fe0cc;
    --ring: 0 0 0 3px rgba(95, 224, 204, 0.3);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, 0.75);
    --wash-1: rgba(43, 185, 166, 0.16);
    --wash-2: rgba(59, 130, 246, 0.08);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
  /* the hero wash is wider than the page; clip it here (body overflow would move to the viewport) */
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 72px;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.375rem;
  margin: 40px 0 12px;
}

h3 {
  font-size: 1.0625rem;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

li {
  margin: 0 0 6px;
}

strong {
  font-weight: 650;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

svg.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: var(--accent-soft);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.muted {
  color: var(--text-dim);
}

.hint {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin: 4px 0;
}

.fine {
  color: var(--text-dim);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.center {
  text-align: center;
}

.hint.center {
  max-width: 72ch;
  margin: 8px auto 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .button,
  button,
  .qa > summary::after {
    transition: none;
  }
}
