/* The shared design language.
 *
 * These tokens come from the Perspicuity product site (public-site/public/site.css in the
 * perspicuity repository) so that this tool reads as part of the same family: the same type
 * pairing, the same spacing rhythm, the same corner radii and button shapes, the same focus
 * treatment. A reader arriving from perspicuity.ai should recognise where they are.
 *
 * One thing is deliberately not shared: the accent hue. The recorded choice is that the parent
 * brand supplies credibility and the product does the talking, so the tool keeps its own accent
 * rather than dressing in the parent's. Shared system, own voice — the difference is meant to
 * be visible, and it is one value to change if that judgement is ever reversed.
 */
:root {
  /* Type. Headings are serif on the parent site; body is the same sans stack. */
  --serif: Georgia,'Times New Roman',serif;
  --sans: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  /* Neutral scale, taken from the parent so the greys match rather than merely look similar. */
  --ink: #142449;
  --muted: #526077;
  --line: #d9dfe8;
  --paper: #fff;
  --soft: #f0f3fa;
  --deep: #11234b;

  /* Radii and elevation. */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 15px 17px 0 #f7f8fc;

  /* Status colours stay ours: they are the product's own vocabulary, not the brand's. */
  --pass: #1a7f4b;
  --fail: #b3261e;
  --warn: #8a6100;
  --unknown: #526077;

  /* Accent: the tool's own. Change these two to adopt the parent's palette wholesale. */
  --accent: #1d4ed8;
  --accent-strong: #1a3fb0;
  --accent-soft: #eef2ff;

  /* The focus ring is the parent's, deliberately: it is the most-seen shared detail. */
  --focus: #ce6b08;
}

/* The type scale, so a heading looks like the same size relationship on both sites. */
.display { font: clamp(2.25rem, 3.5vw, 3.5rem)/1.08 var(--serif); letter-spacing: -.04em; font-weight: 400; }
.title-lg { font: 1.65rem/1.2 var(--serif); letter-spacing: -.035em; }
.title-md { font: 1.15rem/1.3 var(--sans); font-weight: 600; }

/* Rhythm. */
.section-gap { margin-top: 4.5rem; }
.tight { margin-top: .75rem; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}

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

a { color: var(--accent); text-underline-offset: .24em; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }

/* Records are prose and want a short measure; the corpus and the graph want the width. */
.wrap.reading { width: min(52rem, calc(100% - 96px)); }

.eyebrow {
  font-size: .75rem; line-height: 1.5; letter-spacing: .13em;
  text-transform: uppercase; font-weight: 650; color: var(--accent);
  margin: 0 0 .5rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

h1 { font: clamp(2rem, 3.2vw, 3rem)/1.1 var(--serif); letter-spacing: -.04em; font-weight: 400; margin: 0 0 .5rem; }
h2 { font: clamp(1.5rem, 2.2vw, 2rem)/1.15 var(--serif); letter-spacing: -.03em; font-weight: 400; margin: 3rem 0 .75rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .35rem; }

.button {
  display: inline-flex; gap: 18px; align-items: center; justify-content: center;
  padding: 14px 20px; min-height: 48px; border: 1px solid transparent; border-radius: 3px;
  font-size: .875rem; font-weight: 600; line-height: 1.35; text-decoration: none;
  transition: background .15s, transform .15s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); }
.button.light { background: var(--accent-soft); color: var(--accent-strong); }
.button.outline { border-color: var(--line); background: transparent; color: var(--ink); }

@media (max-width: 800px) {
  .wrap, .wrap.reading { width: calc(100% - 40px); }
  h2 { margin-top: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
