/* ============================================
   jprbuilds.com — shared design system
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600&display=swap');

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

html {
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  background-color: #1a1833;
  background-image:
    radial-gradient(ellipse at 65% 0%, rgba(102, 78, 200, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 85%, rgba(80, 60, 180, 0.2) 0%, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

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

/* --- Layout --- */
.site-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Nav chrome --- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 960px;
  margin: 0 auto;
}

.site-nav a.back-link {
  font-size: 0.875rem;
  color: #a78bfa;
  transition: opacity 0.2s;
}

.site-nav a.back-link:hover {
  opacity: 0.75;
}

.site-nav .site-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.25);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 4rem;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* Gradient accent — wrap text in <em class="accent"> */
em.accent {
  font-style: normal;
  background: linear-gradient(135deg, #f093fb, #f5576c, #fda085);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Muted body text */
.text-muted {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Cards --- */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.4);
}

/* --- Pill tags --- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.5);
  color: #a78bfa;
}

/* --- Section divider --- */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .site-nav {
    padding: 1rem;
  }

  .site-container {
    padding: 0 1rem;
  }
}