/* ==========================================================================
   RickLFG — public site
   Design tokens live in :root. New sections: <section class="section reveal">
   with an <h2 class="section__label"> and any content below it.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-hover: #161619;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ededef;
  --text-muted: #8a8a93;
  --text-faint: #5a5a62;
  --accent: #c8f560;          /* used sparingly: status badge only */

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --page-width: 640px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(200, 245, 96, 0.25); }

:focus-visible {
  outline: 2px solid var(--border-strong);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Soft top glow — single, very subtle */
.glow {
  position: fixed;
  inset: -40vh 0 auto 0;
  height: 80vh;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: clamp(72px, 14vh, 140px) 24px 48px;
}

/* ---------- Hero ---------- */

.hero { margin-bottom: 88px; }

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  background: linear-gradient(180deg, #1c1c20, #121214);
  border: 1px solid var(--border-strong);
  margin-bottom: 28px;
}

.hero__name {
  margin: 0;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero__tagline {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--text-muted);
  font-size: 17px;
}

.hero__tagline .dot { color: var(--text-faint); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}

.social:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* ---------- Arrows ---------- */

.arrow {
  display: inline-block;
  color: var(--text-faint);
  font-size: 0.9em;
  transition: transform .25s var(--ease), color .25s var(--ease);
}

a:hover .arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* ---------- Sections ---------- */

.section { margin-bottom: 72px; }

.section__label {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.about {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 56ch;
}

.about a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color .25s var(--ease);
}

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

/* ---------- Project card ---------- */

.project {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}

.project:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project__desc {
  margin: 6px 0 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.project__link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(200, 245, 96, 0.22);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 245, 96, 0.06);
  white-space: nowrap;
}

.badge__pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.badge__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  80%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Reveal on load ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 520px) {
  .page { padding-left: 20px; padding-right: 20px; }
  .hero { margin-bottom: 64px; }
  .section { margin-bottom: 56px; }
  .about { font-size: 17px; }
  .project { padding: 20px; }
  .social { padding: 8px 13px; font-size: 13.5px; }
}
