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

:root {
  --rp-font: Lexend, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --rp-navy: #0f2744;
  --rp-navy-soft: #1e3a5f;
  --rp-border: #e2e8f0;
  --rp-muted: #64748b;
  --rp-bg: #f1f5f9;
  --rp-accent: #29abe2;
  --rp-accent-deep: #1f94d5;
}

html {
  font-family: var(--rp-font);
  scroll-behavior: smooth;
}

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

body.rp-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e8f4fc 0%, var(--rp-bg) 38%, #f8fafc 100%);
  color: #0f172a;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.rp-main {
  flex: 1;
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 1.75rem) clamp(2.5rem, 6vw, 4rem);
}

.rp-container {
  max-width: 42rem;
  margin: 0 auto;
}

.rp-back-nav {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.rp-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.85rem, 1.5vw, 0.92rem);
  font-weight: 600;
  color: var(--rp-accent-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

.rp-back-home:hover {
  color: var(--rp-navy-soft);
}

.rp-back-home:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.rp-back-icon {
  font-size: 1.05em;
  line-height: 1;
}

.rp-article {
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.35rem, 4vw, 2.25rem);
  box-shadow:
    0 22px 56px rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(15, 23, 42, 0.035);
}

.rp-title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.65rem);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--rp-navy);
  padding-bottom: 1rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--rp-accent) 0%, var(--rp-accent-deep) 55%, rgba(41, 171, 226, 0.2) 100%) 1;
}

.rp-lede p,
.rp-section p {
  margin: 0 0 1rem;
  font-size: clamp(0.92rem, 1.65vw, 1rem);
  color: #1e293b;
}

.rp-lede p:last-child {
  margin-bottom: 0;
}

.rp-section {
  margin-top: clamp(1.65rem, 3.5vw, 2.15rem);
}

.rp-section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  font-weight: 700;
  color: var(--rp-navy);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rp-section h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--rp-accent) 0%, var(--rp-accent-deep) 100%);
  flex-shrink: 0;
}

.rp-section ul,
.rp-section ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  font-size: clamp(0.92rem, 1.65vw, 1rem);
  color: #1e293b;
}

.rp-section li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}

.rp-section li:last-child {
  margin-bottom: 0;
}

.rp-sublist {
  margin: 0.5rem 0 0;
  list-style: disc;
}

.rp-note {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(232, 244, 252, 0.85);
  border: 1px solid rgba(41, 171, 226, 0.18);
  font-size: clamp(0.88rem, 1.55vw, 0.96rem);
  color: var(--rp-navy-soft);
}

.rp-contact {
  color: var(--rp-accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.rp-contact:hover {
  text-decoration: underline;
}

.rp-contact:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.rp-footer {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rp-border);
  font-size: clamp(0.85rem, 1.45vw, 0.92rem);
  color: var(--rp-muted);
  text-align: center;
}

.rp-footer p {
  margin: 0 0 0.65rem;
}

.rp-footer p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rp-back-home {
    transition: none;
  }
}
