/* ============================================================
   About FCC.cc — styles.css
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg: #0c0d0f;
  --panel: #111214;
  --panel2: #15171a;
  --text: #f5f6f7;
  --dim: #9aa3b2;
  --muted: #6b7280;
  --border: #2a2a2a;
  --line: #1e1e1e;
  --accent: #a78bfa;
  --accent2: #c4b5fd;
  --shadow: rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --- Reset / Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  overflow-y: scroll;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent2);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* --- Topbar / Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

/* --- Layout --- */
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* --- Prose Article --- */
.prose {
  padding: 3rem 0 4rem;
}

.prose h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.tagline {
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.prose section {
  margin-bottom: 2.25rem;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
}

.prose p {
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.prose li {
  color: var(--dim);
  line-height: 1.7;
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}

.prose li::before {
  content: "\2022";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.prose li strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Footer --- */
.fineprint {
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.fineprint a {
  color: var(--dim);
  transition: color 0.2s ease;
}

.fineprint a:hover {
  color: var(--text);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .prose h1 {
    font-size: 1.6rem;
  }

  .prose h2 {
    font-size: 1.1rem;
  }
}

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

  a {
    transition: none;
  }
}
