/* Information-page foundations */

:root {
  --bg: #f6f7f8;
  --page-background: linear-gradient(180deg, #fbfcfd 0%, var(--bg) 46%, #eef0f2 100%);
  --text: #1d2520;
  --muted: #6b756f;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --nav-brand-color: #6b65dc;
  --nav-brand-letter-spacing: -0.02em;
  --nav-text-color: var(--muted);
  --nav-hover-color: var(--text);
  --nav-font-weight: 650;
  --nav-mobile-font-size: 0.95rem;
  --nav-header-z-index: 10;
  --nav-focus-color: rgba(107, 101, 220, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  touch-action: manipulation;
  color: var(--text);
  background: var(--page-background);
  font-family: var(--font-sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Information-page navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--nav-header-z-index);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(1200px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 10px;
}

.brand {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: #07172f;
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 2vw, 1.72rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--nav-brand-letter-spacing);
  white-space: nowrap;
}

.brand-name {
  display: inline-block;
}

.brand-tld {
  display: inline-flex;
  align-items: center;
  min-height: 1.1em;
  margin-left: 0.08em;
  padding: 0.05em 0.23em 0.09em;
  color: #ffffff;
  background: var(--nav-brand-color);
  border-radius: 0.34em;
  line-height: 0.96;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  color: var(--nav-text-color);
  font-size: 0.95rem;
  font-weight: var(--nav-font-weight);
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  color: var(--nav-hover-color);
  background: #eef1f3;
}

.nav-links a:focus-visible,
.brand-lockup:focus-visible {
  outline: 3px solid var(--nav-focus-color);
  outline-offset: 3px;
}

/* Information-page content */

.info-page {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 44px;
}

.info-hero {
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 52px);
  background: #ffffff;
  border: 0;
  border-radius: 28px;
}

.info-kicker {
  margin: 0 0 8px;
  color: #6b65dc;
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", "SF Pro Rounded", cursive;
  font-size: 0.9rem;
  font-weight: 800;
}

.info-hero h1 {
  margin: 0;
  color: #172a3b;
  background: none;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}

.info-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #65706b;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.info-content {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.info-content section {
  padding: clamp(20px, 3.4vw, 34px);
  background: #ffffff;
  border-radius: 22px;
}

.info-content h2 {
  margin: 0 0 12px;
  color: #172a3b;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.info-content p,
.info-content li {
  color: #5d6a64;
  font-size: 0.98rem;
  line-height: 1.78;
}

.info-content p {
  margin: 0;
}

.info-content p + p {
  margin-top: 12px;
}

.info-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.info-content a {
  color: #514bc5;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Information-page footer */

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 34px;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  min-height: 86px;
  padding: 22px clamp(20px, 3vw, 40px);
  background: #ffffff;
  border-radius: 24px;
}

.footer-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.footer-summary p {
  margin: 0;
  color: #65706b;
  font-size: 0.94rem;
  line-height: 1.55;
}

.footer-brand {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #4f5b56;
  font-size: 0.94rem;
  font-weight: 750;
}

.footer-nav-separator {
  color: #c4cbc7;
  font-weight: 650;
  line-height: 1;
}

.footer-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 180ms ease;
}

.footer-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #6b65dc;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: #172a3b;
}

.footer-nav a:hover::after,
.footer-nav a[aria-current="page"]::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.footer-nav a:focus-visible {
  outline: 3px solid rgba(107, 101, 220, 0.25);
  outline-offset: 3px;
}

.footer-copyright {
  margin: 0;
  color: #75817b;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: auto;
    padding: 10px 0;
    align-items: center;
    gap: 8px;
  }

  .brand-lockup {
    font-size: clamp(0.98rem, 4vw, 1.14rem);
  }

  .brand-tld {
    padding: 0.04em 0.18em 0.08em;
    border-radius: 0.28em;
  }

  .nav-links {
    grid-column: 2 / 3;
    min-width: 0;
    width: 100%;
    margin-left: 0;
    padding: 2px 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    font-size: var(--nav-mobile-font-size);
  }

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

  .nav-links a {
    flex: 0 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px clamp(16px, 4vw, 20px);
    align-items: start;
    gap: 14px;
  }

  .footer-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-nav {
    min-width: 0;
    width: 100%;
    margin-left: 0;
    padding: 2px 0;
    overflow: visible;
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
    align-content: center;
  }

  .footer-copyright {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .nav-links {
    align-content: center;
  }
}

@media (max-width: 460px) {
  .navbar,
  .info-page,
  .site-footer {
    width: min(100% - 22px, 1200px);
  }

  .nav-links {
    gap: 4px;
    font-size: 0.86rem;
  }

  .nav-links a {
    padding: 7px 9px;
  }

  .info-hero #page-title {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .footer-nav {
    gap: 5px 8px;
    font-size: 0.86rem;
  }

  .footer-nav a {
    flex: 0 0 auto;
    padding: 7px 9px;
  }
}
