/* CPS_582 — design: glassmorphism */
:root {
  --bg: #e9eaf6;
  --surface: rgba(255,255,255,0.55);
  --text: #1b1f3a;
  --muted: #4d5274;
  --accent: #5466ff;
  --accent-2: #ec4899;
  --border: rgba(255,255,255,0.6);
  --radius: 20px;
  --shadow: 0 8px 32px rgba(31,38,135,0.18);
  --heading-font: "Inter", Georgia, serif;
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  text-transform: capitalize;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* HERO */
.hero-section {
  padding: 64px 0 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--heading-font);
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.18;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* MAIN */
.site-main {
  padding: 0 0 80px;
}

.article-content {
  padding: 48px 0 24px;
}
.article-content h2 {
  font-family: var(--heading-font);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  margin: 48px 0 16px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.article-content h3 {
  font-family: var(--heading-font);
  font-size: 21px;
  margin: 36px 0 12px;
  color: var(--text);
}
.article-content p {
  margin: 0 0 18px;
  color: var(--text);
}
.article-content ul, .article-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
  color: var(--text);
}
.article-content li {
  margin-bottom: 10px;
}
.article-content strong { color: var(--text); }
.article-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-weight: 500;
}
.article-content a:hover {
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
}

.article-image {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-image img {
  width: 100%;
  display: block;
}

/* IMAGE GRID for index hero strip */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.image-grid .article-image { margin: 0; }

/* FOOTER */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo {
  height: 36px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--accent); }
.copyright {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .header-inner {
    gap: 16px;
    padding: 14px 18px;
  }
  .site-nav {
    gap: 18px;
    width: 100%;
    justify-content: center;
  }
  .nav-link { font-size: 14px; }
  .container { padding: 0 18px; }
  .hero-section { padding: 40px 0 24px; }
  .article-content { padding: 32px 0 16px; }
  .article-content h2 { margin: 36px 0 14px; }
}

/* DESIGN-SPECIFIC ACCENTS */

body { background: linear-gradient(135deg, #c2c8f7 0%, #e9eaf6 35%, #fbe5f0 75%, #ffeacc 100%); color: var(--text); position: relative; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(84,102,255,0.35) 0%, transparent 35%), radial-gradient(circle at 85% 80%, rgba(236,72,153,0.30) 0%, transparent 40%), radial-gradient(circle at 60% 50%, rgba(255,234,204,0.4) 0%, transparent 45%); pointer-events: none; z-index: 0; }
body > * { position: relative; z-index: 1; }
.site-header { background: rgba(255,255,255,0.45); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid rgba(255,255,255,0.6); padding: 4px 0; box-shadow: 0 8px 32px rgba(31,38,135,0.06); }
.header-inner { padding: 18px 32px; }
.nav-link { color: var(--text); font-weight: 600; padding: 8px 16px; border-radius: 999px; border-bottom: none; background: transparent; transition: background 0.2s, color 0.2s; }
.nav-link:hover { background: rgba(255,255,255,0.55); border-bottom: none; color: var(--accent); backdrop-filter: blur(8px); }
.nav-link.active { background: rgba(84,102,255,0.18); color: var(--accent); border-bottom: none; }
.hero-section { background: transparent; padding: 96px 24px 56px; border-bottom: none; }
.hero-section .container { background: rgba(255,255,255,0.5); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,0.7); border-radius: 28px; padding: 64px 48px; box-shadow: 0 8px 40px rgba(31,38,135,0.10), inset 0 1px 0 rgba(255,255,255,0.7); }
.page-title { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; max-width: 800px; }
.container { max-width: 920px; }
.article-content { padding: 32px 24px 24px; }
.article-content > .container { background: rgba(255,255,255,0.5); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255,255,255,0.65); border-radius: 24px; padding: 48px 56px; box-shadow: 0 8px 40px rgba(31,38,135,0.08), inset 0 1px 0 rgba(255,255,255,0.7); }
.article-content h2 { color: var(--accent); font-weight: 700; margin-top: 56px; padding-bottom: 12px; border-bottom: 1px solid rgba(84,102,255,0.25); }
.article-content h3 { color: var(--accent-2); }
.article-content a { color: var(--accent); background: rgba(84,102,255,0.10); padding: 0 6px; border-radius: 4px; border-bottom: none; }
.article-content a:hover { background: var(--accent); color: var(--surface); text-decoration: none; }
.article-image { border-radius: 20px; border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 12px 36px rgba(31,38,135,0.18); overflow: hidden; }
.site-footer { background: rgba(255,255,255,0.45); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-top: 1px solid rgba(255,255,255,0.6); padding: 48px 24px 32px; margin-top: 64px; }
.site-footer .footer-inner { background: rgba(255,255,255,0.4); backdrop-filter: blur(12px); border-radius: 20px; padding: 32px 24px; border: 1px solid rgba(255,255,255,0.5); }
.site-footer .copyright { color: var(--muted); }
.site-footer .footer-nav a { color: var(--text); font-weight: 600; }

