/* ==========================================================================
   CyberCompass — About page styles
   Owner: OPEN (unassigned)
   Prefix: about-
   --------------------------------------------------------------------------
   This file only uses tokens from css/global.css.
   Every selector must start with #about or .about-.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LOGO PANEL
   Replaces the image placeholder in the page head with the CyberCompass mark.
   -------------------------------------------------------------------------- */
.about-logo {
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
}

.about-logo svg {
  width: var(--head-art-icon);
  height: var(--head-art-icon);
  color: var(--accent);
}

.about-logo-name {
  max-width: none;
  margin-bottom: 0;
  color: var(--text);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.about-logo-accent {
  color: var(--accent);
}

.about-logo-tagline {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* --------------------------------------------------------------------------
   2. PROSE LAYOUT
   A single readable column with a quiet topic index beside it.
   -------------------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: var(--space-10);
  align-items: start;
}

.about-prose {
  max-width: var(--measure);
}

.about-prose h2 {
  margin-bottom: var(--space-5);
}

.about-prose h3 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.about-prose p {
  margin-bottom: var(--space-5);
}

.about-prose p:last-child {
  margin-bottom: 0;
}

/* Opening paragraph with a drop cap for a stronger editorial feel. */
.about-lead {
  color: var(--text);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.about-lead::first-letter {
  float: left;
  margin-right: var(--space-2);
  color: var(--accent);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 0.9;
}

/* Pull line: plain text, lifted with size and a thin accent rule. */
.about-prose .about-pull {
  margin-block: var(--space-7);
  padding-left: var(--space-5);
  border-left: var(--border-width-strong) solid var(--accent-line);
  color: var(--text);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

.about-signoff {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--border-subtle);
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3. TOPIC INDEX
   Text list rather than cards: numbers, names, and one line each.
   -------------------------------------------------------------------------- */
.about-index {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-5));
  padding-top: var(--space-5);
  border-top: var(--border-width-strong) solid var(--accent-line);
}

.about-index-title {
  margin-bottom: var(--space-4);
  color: var(--text);
  font-size: var(--text-xl);
  font-weight: 600;
}

.about-index-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-index-item + .about-index-item {
  border-top: var(--border-width) solid var(--border-subtle);
}

.about-index-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-4);
  color: var(--text);
}

.about-index-link:hover {
  color: var(--text);
  text-decoration: none;
}

.about-index-num {
  padding-top: var(--space-1);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
}

.about-index-body {
  display: grid;
  gap: var(--space-1);
}

.about-index-name {
  color: var(--text);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  transition: color var(--transition-fast);
}

.about-index-text {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.about-index-link:hover .about-index-name,
.about-index-link:focus-visible .about-index-name {
  color: var(--accent);
}

.about-index-note {
  margin-block: var(--space-5) 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .about-index {
    position: static;
    max-width: var(--measure);
  }
}

@media (max-width: 768px) {
  .about-index-link {
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  /* The global system hides .page-head-art here; the logo stays visible. */
  .about-head .about-logo {
    display: grid;
    min-height: 200px;
    padding: var(--space-5);
  }

  .about-logo svg {
    width: var(--space-12);
    height: var(--space-12);
  }

  .about-lead::first-letter {
    font-size: var(--text-4xl);
  }

  .about-prose .about-pull {
    font-size: var(--text-lg);
  }
}
