@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Nunito:wght@500;700;800;900&display=swap');

:root {
  --brand-purple-light: #c4c3e3;
  --brand-purple: #504e76;
  --brand-beige: #fdf8e2;
  --brand-sage: #a3b565;
  --brand-peach: #fcdd9d;
  --brand-orange: #f1642e;
  
  --bg: #f8f5eb;
  --panel: #ffffff;
  --text: #504e76;
  --muted: #666388;
  --line: rgba(80,78,118,.16);
  --primary: var(--brand-purple);
  --primary-hover: #6a688f;

  --font: "Nunito", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Fredoka", "Nunito", Inter, ui-sans-serif, system-ui, sans-serif;
  
  --radius-md: 22px;
  --shadow: 0 20px 48px rgba(80,78,118,.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: 
    radial-gradient(circle at 14% -8%, rgba(255,255,255,.55), transparent 24rem),
    radial-gradient(circle at 88% 105%, rgba(196,195,227,.16), transparent 24rem),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-peach);
  transition: .15s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration-color: var(--brand-orange);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  border-bottom: 2px solid var(--line);
  background: rgba(253,248,226,.88);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 42px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.045em;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--brand-peach);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--brand-purple);
  background: var(--brand-purple);
  color: var(--brand-beige);
  font-weight: 900;
  text-decoration: none;
  transition: .16s ease;
  box-shadow: 0 5px 0 rgba(80,78,118,.26);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
  color: var(--brand-beige);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -.05em;
  margin-top: 0;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(28px, 4vw, 36px);
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.intro {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 40px;
}

.card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

ul, ol {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

.footer {
  border-top: 2px solid var(--line);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
}
