/* ==========================================================
   Piryon brand tokens (from brief/design-tokens.json)
   ========================================================== */
:root {
  /* Colors */
  --color-navy: #003366;
  --color-blue: #005ee8;
  --color-blue-hover: #004bb8;
  --color-ink: #142b43;
  --color-muted: #526579;
  --color-canvas: #f5f8fc;
  --color-white: #ffffff;
  --color-border: #d5dfea;
  --color-light-blue: #6cb6ff;
  --color-success: #147d64;
  --color-error: #b42318;

  /* Typography */
  --font-family: "Inter", Arial, sans-serif;
  --font-weight-body: 400;
  --font-weight-semibold: 600;
  --font-weight-heading: 700;
  --tracking-heading: -0.035em;
  --line-height-body: 1.65;
  --measure: 65ch;
  --text-hero: clamp(40px, 4.5vw, 64px);
  --text-h2: clamp(30px, 3vw, 44px);
  --text-h3: 24px;
  --text-body: 18px;
  --text-small: 14px;
  --text-label: 12px;

  /* Layout (breakpoints are listed for reference; media queries
     cannot read custom properties, so use the literal values:
     mobile max 639px, tablet min 640px, desktop min 1024px) */
  --layout-max-width: 1200px;
  --layout-columns-desktop: 12;
  --layout-columns-mobile: 4;
  --gutter: 24px;
  --page-padding: clamp(20px, 4vw, 48px);
  --section-padding: clamp(48px, 7vw, 96px);
  --bp-mobile-max: 639px;
  --bp-tablet-min: 640px;
  --bp-desktop-min: 1024px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Shape */
  --radius-button: 6px;
  --radius-card: 12px;
  --border-width: 1px;
  --shadow: 0 12px 30px rgba(0, 51, 102, 0.08);

  /* Motion */
  --motion-duration: 180ms;
  --motion-easing: ease-out;

  /* Logo: minimum rendered width of the PIRYON wordmark (see .wordmark) */
  --logo-min-width: 120px;
}

/* ==========================================================
   Inter, self-hosted (SIL Open Font License, see
   /assets/fonts/LICENSE.txt)
   ========================================================== */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--font-weight-body);
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  color: var(--color-ink);
  background: var(--color-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); }
a:hover { color: var(--color-blue-hover); }
p { max-width: var(--measure); }

h1, h2, h3 {
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-navy);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-hero); line-height: 1.06; }
h2 { font-size: var(--text-h2); line-height: 1.15; }
h3 { font-size: var(--text-h3); line-height: 1.25; }

.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.section { padding: var(--section-padding) 0; }

.btn {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-button);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: background var(--motion-duration) var(--motion-easing);
}
.btn:hover { background: var(--color-blue-hover); color: var(--color-white); }

/* Logo: never below the minimum width, clear space on all sides */
/* PIRYON wordmark (about 7.2:1 light, 7.3:1 regular). Never below 120px wide; clear space of
   at least the letter height (about 0.134 x the rendered width) on every side. */
.wordmark {
  --wordmark-width: 190px;
  display: block;
  width: max(var(--wordmark-width), var(--logo-min-width));
  height: auto;
  margin: calc(max(var(--wordmark-width), var(--logo-min-width)) * 0.134);
}

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