:root {
  --orange: #FF8A3D;
  --orange-dark: #e06c1f;
  --winter: #9ED8F5;
  --winter-dark: #1d5a7a;
  --bg: #fffcf8;
  --surface: #ffffff;
  --surface-2: #f6e9d9;
  --text: #2b1d14;
  --muted: #8a7464;
  --shadow: 0 4px 18px rgba(120, 70, 30, .08);
  --radius: 18px;
  --title: "Righteous", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

h1, .logo { font-family: var(--title); font-weight: 400; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
}
.logo { font-size: 1.8rem; color: var(--orange); }
.site-header nav a { color: var(--muted); font-weight: 600; transition: color .2s; }
.site-header nav a:hover { color: var(--orange); }

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 80px;
  text-align: center;
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.1; color: var(--text); }
.subtitle {
  margin-top: 10px;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 600;
  color: var(--muted);
}

.hero-rive {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1 / 1;
  margin: 36px auto 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-rive canvas { width: 100%; height: 100%; display: block; }
.hero-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 20px;
  color: var(--muted);
}
.hero-empty[hidden] { display: none; }

/* Widget switcher */
.pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.pills button {
  font-family: var(--title);
  font-size: 1.05rem;
  padding: 10px 26px;
  border-radius: 999px;
  border: 2px solid var(--winter);
  background: var(--surface);
  color: var(--winter-dark);
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.pills button:hover { background: #eaf7fd; }
.pills button:active { transform: scale(.95); }
.pills button.active { background: var(--winter); }

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 20px;
  border-top: 1px solid var(--surface-2);
  color: var(--muted);
  font-size: .9rem;
}
.footer-logo { font-family: var(--title); font-size: 1.5rem; color: var(--orange); }
.footer-logo img { height: 48px; display: block; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }

@media (max-width: 600px) {
  .site-header { padding: 18px 16px; }
  .hero { padding: 30px 16px 60px; }
}
