/* GRIP website — shared static styles */

:root {
  --ink: #20242b;
  --muted: #5d6773;
  --nav: #39475a;
  --nav-active: #142b4a;
  --line: #d8dee6;
  --page-width: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hero {
  position: relative;
  width: 100%;
  min-height: 290px;
  overflow: hidden;
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.54) 24%, rgba(255,255,255,.05) 58%),
    linear-gradient(0deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.12) 35%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.brand {
  position: absolute;
  top: 24px;
  left: clamp(22px, 4vw, 68px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 290px;
  text-decoration: none;
}

.brand__logo {
  width: clamp(88px, 9vw, 132px);
  height: auto;
  display: block;
}

.brand__name {
  max-width: 250px;
  color: #26384d;
  font-size: clamp(.82rem, 1.15vw, 1rem);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: .01em;
}

.site-nav {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  overflow-x: auto;
  padding: 12px 4px 3px;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav__link {
  position: relative;
  flex: 0 0 auto;
  padding: 7px 1px 9px;
  color: var(--nav);
  font-size: clamp(.76rem, 1.05vw, .96rem);
  font-weight: 620;
  letter-spacing: .035em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--nav-active); }

.site-nav__link--active {
  color: var(--nav-active);
  font-size: clamp(.94rem, 1.28vw, 1.14rem);
  font-weight: 780;
}

.site-nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--nav-active);
}

.page {
  padding: clamp(62px, 8vw, 104px) 24px 90px;
}

.article {
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0;
  color: #18283b;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.opening-questions {
  max-width: 780px;
  margin: 38px 0 50px;
  padding-left: 22px;
  border-left: 2px solid #b9c4d0;
  color: #394657;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.5;
}

.opening-questions p { margin: 0; }
.opening-questions p + p { margin-top: 10px; }

.prose {
  max-width: 790px;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

.prose p { margin: 0 0 1.25em; }

.prose .lead {
  color: #1a2c42;
  font-size: 1.16em;
  font-weight: 680;
}

.next-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  padding-bottom: 5px;
  border-bottom: 1px solid #607086;
  color: #203b5c;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.next-link:hover,
.next-link:focus-visible { border-bottom-color: #203b5c; }

@media (max-width: 720px) {
  .hero { min-height: 220px; }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.58) 48%, rgba(255,255,255,.08) 100%),
      linear-gradient(0deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.18) 42%, rgba(255,255,255,0) 70%);
  }

  .brand { top: 8px; gap: 0; }
  .brand__logo { width: 92px; margin-bottom: -30px; }
  .brand__name { max-width: 185px; font-size: .72rem; font-weight: 450; line-height: 1.25; }

  .site-nav {
    justify-content: flex-start;
    left: 20px;
    right: 20px;
    width: auto;
    transform: none;
    gap: 22px;
  }

  .page { padding-left: 20px; padding-right: 20px; }
  .opening-questions { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Shared site footer */
.site-footer {
  margin-top: 48px;
  padding: 20px 16px;
  border-top: 1px solid rgba(32, 59, 92, 0.18);
  text-align: center;
  font-size: 14px;
  color: #607086;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #203b5c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 6px;
  }

  .footer-separator {
    display: none;
  }
}
