/* Values below are a small website subset of the canonical design tokens in
   design/tokens/ccia-tokens.css. */
:root {
  --network-blue: #253d7d;
  --market-grey: #29344b;
  --hyperlink-blue: #2e53a5;
  --grey-base: #e4e7f1;
  --grey-light: #f1f3f7;
  --grey-lighter: #fafafd;
  --white: #ffffff;
  --node-blue: #9cafd0;
  --system-orange-alt: #ec615d;
  --gradient-deep: linear-gradient(155deg, #1b3760 0%, #0f2140 60%, #241a3a 100%);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-md: 8px;
  --radius-xl: 18px;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--grey-lighter);
  color: var(--market-grey);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body {
  margin: 0;
}

a {
  color: var(--hyperlink-blue);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--network-blue);
}

.site-header {
  align-items: center;
  background: var(--network-blue);
  display: flex;
  justify-content: space-between;
  padding: var(--space-4) max(var(--space-4), 5vw);
}

/* The mark is the app icon: a white CCIA wordmark on a Network Blue field, so it sits
   flush on the blue header and landing background with no visible edge. */
.brand {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.brand-mark {
  display: block;
  height: auto;
  width: 5.5rem;
}

.site-nav {
  display: flex;
  gap: var(--space-4);
}

.site-nav a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.page {
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-12) var(--space-4) var(--space-16);
}

.page h1,
.page h2 {
  color: var(--network-blue);
  font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.15;
}

.page h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  margin: 0 0 var(--space-2);
}

.page h2 {
  font-size: 1.5rem;
  margin: var(--space-12) 0 var(--space-2);
}

.page p,
.page li {
  max-width: 68ch;
}

.page p {
  margin: var(--space-2) 0;
}

.eyebrow {
  color: var(--hyperlink-blue);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
}

.last-updated {
  color: var(--hyperlink-blue);
  font-size: 0.9375rem;
  margin-top: 0;
}

blockquote {
  border-left: 4px solid var(--network-blue);
  margin: var(--space-4) 0;
  padding: var(--space-2) var(--space-4);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-base);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  padding: var(--space-4);
}

/* Landing hero: "Orbit trail", card 170 of the CCIA Motion Library. The composition is
   specified at a 132px circle; --orbit-size scales it up for the hero and every part is
   derived from that ratio so the proportions hold at any size. */
.hero {
  align-items: center;
  background: var(--gradient-deep);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-12) var(--space-4) var(--space-16);
  text-align: center;
}

.orbit {
  --orbit-size: clamp(13rem, 44vw, 16.5rem);
  --orbit-ratio: calc(var(--orbit-size) / 132);
  height: var(--orbit-size);
  position: relative;
  width: var(--orbit-size);
}

.orbit-ring,
.orbit-trail,
.orbit-path {
  border-radius: 50%;
  inset: 0;
  position: absolute;
}

.orbit-ring {
  border: calc(1 * var(--orbit-ratio)) dotted rgba(156, 175, 208, 0.35);
}

.orbit-trail {
  animation: ccia-spin 4200ms linear infinite;
  border: calc(1.5 * var(--orbit-ratio)) solid var(--system-orange-alt);
  border-bottom-color: transparent;
  border-right-color: transparent;
}

.orbit-path {
  animation: ccia-orbit 4200ms linear infinite;
}

.orbit-node {
  background: var(--system-orange-alt);
  border-radius: 50%;
  height: calc(9 * var(--orbit-ratio));
  left: 50%;
  margin-left: calc(-4.5 * var(--orbit-ratio));
  position: absolute;
  top: calc(-4 * var(--orbit-ratio));
  width: calc(9 * var(--orbit-ratio));
}

.orbit-mark {
  height: auto;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(52 * var(--orbit-ratio));
}

@keyframes ccia-orbit {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes ccia-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Motion Library policy: the animation carries no information, so it stops entirely and the
   node parks at 12 o'clock. */
@media (prefers-reduced-motion: reduce) {
  .orbit-trail {
    animation: none;
    border-color: transparent;
  }

  .orbit-path {
    animation: none;
  }
}

.hero h1 {
  font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: var(--space-12) 0 0;
}

.hero-line {
  color: var(--node-blue);
  font-size: clamp(1.0625rem, 3vw, 1.375rem);
  margin: var(--space-3) 0 0;
  max-width: 32ch;
}

.hero-links {
  display: flex;
  gap: var(--space-6);
  margin: var(--space-8) 0 0;
}

.hero-links a {
  color: var(--white);
  font-weight: 500;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-line: underline;
}

.hero-links a:hover {
  color: var(--system-orange-alt);
  text-decoration-color: currentcolor;
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
  }

  .site-nav {
    gap: var(--space-3);
  }

  .page {
    padding-top: var(--space-8);
  }
}
