/* Site-wide layout, nav, footer, primitives */

/* ─── Nav ──────────────────────────────────────────────────────────── */
.rr-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  padding: 18px 32px;
  gap: 32px;
  background: color-mix(in srgb, var(--rr-bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rr-line-soft);
}
.rr-nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--rr-text);
}
.rr-nav-logo {
  height: 22px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}
.rr-nav-brand-text { letter-spacing: -0.02em; font-family: var(--rr-mono); }
.rr-nav-links {
  display: flex; gap: 6px;
  margin-left: auto;
}
.rr-nav-link {
  padding: 8px 14px;
  font-family: var(--rr-mono);
  font-size: 13px;
  color: var(--rr-text-2);
  border-radius: 6px;
  position: relative;
  transition: color .15s, background .15s;
}
.rr-nav-link:hover { color: var(--rr-text); background: var(--rr-bg-2); }
.rr-nav-link.is-active {
  color: var(--rr-text);
}
.rr-nav-link.is-active::before {
  content: "/"; color: var(--rr-purple); margin-right: 4px;
}
.rr-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: var(--rr-mono); font-size: 12px;
  color: var(--rr-text-2);
  border: 1px solid var(--rr-line);
  border-radius: 999px;
  text-transform: lowercase;
}
.rr-nav-cta:hover { border-color: var(--rr-purple); color: var(--rr-text); }
.rr-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rr-ok);
  box-shadow: 0 0 8px var(--rr-ok);
  animation: rr-pulse 2s infinite;
}
.rr-dot-amber {
  background: #f5a524;
  box-shadow: 0 0 8px #f5a524;
}
@keyframes rr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.rr-nav-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: 8px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.rr-nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--rr-text);
  border-radius: 2px;
  transition: transform .18s, opacity .18s;
}
.rr-nav.is-open .rr-nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.rr-nav.is-open .rr-nav-toggle span:nth-child(2) {
  opacity: 0;
}
.rr-nav.is-open .rr-nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 720px) {
  .rr-nav {
    padding: 14px 18px;
    gap: 12px;
  }
  .rr-nav-toggle { display: flex; margin-left: auto; }
  .rr-nav-cta { display: none; }
  .rr-nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 14px;
    background: var(--rr-bg);
    border-bottom: 1px solid var(--rr-line-soft);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s, opacity .18s;
  }
  .rr-nav.is-open .rr-nav-links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .rr-nav-link {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }
}

/* ─── Footer ───────────────────────────────────────────────────────── */
.rr-footer { position: relative; margin-top: 80px; }
.rr-footer-wave { line-height: 0; }
.rr-footer-body {
  background: #1a1d22;
  color: white;
  padding: 36px 48px 28px;
}
.rr-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.rr-footer-id { display: flex; gap: 20px; align-items: flex-start; }
.rr-footer-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  flex-shrink: 0;
  border: 2px solid white;
}
.rr-footer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rr-footer-name {
  font-family: var(--rr-mono);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.rr-footer-tag {
  font-family: var(--rr-mono);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 14px;
}
.rr-footer-social { display: flex; gap: 10px; }
.rr-footer-social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  color: white;
  transition: background .15s, transform .15s;
}
.rr-footer-social a:hover { background: rgba(0,0,0,0.32); transform: translateY(-2px); }

.rr-footer-cta-col {
  display: flex; flex-direction: column; gap: 18px; align-items: flex-end;
}
.rr-footer-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 40px;
  background: white;
  color: var(--rr-purple-deep);
  font-family: var(--rr-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.rr-footer-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.rr-footer-loc {
  display: flex; align-items: center; gap: 14px;
  color: white;
}
.rr-footer-loc-bird { color: white; opacity: 0.7; }
.rr-footer-loc-label {
  font-family: var(--rr-mono);
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  opacity: 0.85;
}
.rr-footer-loc-place {
  font-family: var(--rr-mono);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
}
.rr-footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.rr-mono { font-family: var(--rr-mono); }
.rr-text-dim { color: var(--rr-text-3); }

@media (max-width: 720px) {
  .rr-footer { margin-top: 56px; }
  .rr-footer-body { padding: 28px 20px 22px; }
  .rr-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
  }
  .rr-footer-id { gap: 16px; }
  .rr-footer-avatar { width: 64px; height: 64px; }
  .rr-footer-name { font-size: 16px; }
  .rr-footer-tag { font-size: 12.5px; margin-bottom: 12px; }
  .rr-footer-tag br { display: none; }
  .rr-footer-cta-col {
    align-items: flex-start;
    gap: 16px;
  }
  .rr-footer-cta {
    padding: 14px 28px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
  .rr-footer-bottom {
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    margin-top: 22px;
    padding-top: 14px;
  }
}

/* ─── Buttons ──────────────────────────────────────────────────────── */
.rr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--rr-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.rr-btn-primary {
  background: var(--rr-purple);
  color: white;
}
.rr-btn-primary:hover { background: var(--rr-purple-deep); transform: translateY(-1px); }
.rr-btn-ghost {
  background: transparent;
  color: var(--rr-text);
  border-color: var(--rr-line);
}
.rr-btn-ghost:hover { border-color: var(--rr-purple); color: var(--rr-purple-soft); }
.rr-btn-mono {
  background: var(--rr-bg-2);
  color: var(--rr-text);
  border-color: var(--rr-line);
}
.rr-btn-mono:hover { background: var(--rr-bg-3); border-color: var(--rr-purple); }
.rr-btn-light {
  background: white;
  color: var(--rr-purple-deep);
}
.rr-btn-light:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }

/* ─── Section header ───────────────────────────────────────────────── */
.rr-section-header { max-width: 760px; margin-bottom: 48px; }
.rr-kicker {
  font-family: var(--rr-mono);
  font-size: 13px;
  color: var(--rr-purple-soft);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.rr-section-title {
  font-family: var(--rr-mono);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.rr-section-sub {
  font-family: var(--rr-mono);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rr-text-2);
  margin: 0;
}

/* ─── Tags ─────────────────────────────────────────────────────────── */
.rr-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  font-family: var(--rr-mono);
  font-size: 11px;
  color: var(--rr-text-2);
  background: var(--rr-bg-2);
  border: 1px solid var(--rr-line-soft);
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.rr-tag.is-accent {
  background: color-mix(in srgb, var(--rr-purple) 18%, transparent);
  border-color: color-mix(in srgb, var(--rr-purple) 40%, transparent);
  color: var(--rr-purple-soft);
}

/* ─── Page wrappers ────────────────────────────────────────────────── */
.rr-page {
  min-height: 100vh;
  background: var(--rr-bg);
  color: var(--rr-text);
  position: relative;
  overflow-x: hidden;
}
.rr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.rr-section { padding: 80px 0; position: relative; }
