/* ============================================================
   Zen Penguin Studios — shared styles
   Palette pulled from the penguin logo: navy / teal / lavender
   ============================================================ */
:root {
  --navy:        #303060;
  --navy-deep:   #26264d;
  --teal:        #2f9090;
  --teal-bright: #48a8a8;
  --lavender:    #a890c0;
  --violet:      #6f5aa8;

  --paper:       #faf7f1;   /* warm ivory */
  --paper-soft:  #f1ece1;
  --ink:         #2a2a44;   /* near-navy text */
  --muted:       #6b6685;
  --line:        #e0d8ca;

  /* Animandalas rainbow, for the coloring-book section accents */
  --rainbow: linear-gradient(90deg,#e0457b,#f59e3c,#f2c84b,#4caf72,#3aa9d4,#8a5cc9);

  --maxw: 1100px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.12;
  margin: 0 0 .4em;
  font-weight: 600;
  color: var(--navy);
}

a { color: var(--teal); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250,247,241,.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.nav-brand img { height: 46px; width: auto; display: block; }
.nav-brand span {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 26px;
  font-weight: 700;
  font-size: .95rem;
}
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47,144,144,.28);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-violet {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 22px rgba(111,90,168,.28);
}
.btn-violet:hover { transform: translateY(-2px); }
.btn-rainbow {
  background: var(--rainbow);
  color: #fff;
  box-shadow: 0 8px 22px rgba(224,69,123,.28);
}
.btn-rainbow:hover { transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid var(--lavender);
  color: var(--violet);
  margin-left: 10px;
}
.btn-ghost:hover { border-color: var(--violet); }

/* ---------- Section scaffolding ---------- */
section { padding: 78px 0; }
.section-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 50px;
}
.section-head h2 { font-size: clamp(1.8rem,3.5vw,2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #cfc9e4;
  padding: 52px 0 38px;
  text-align: center;
}
footer img { height: 64px; margin-bottom: 8px; }
footer .fbrand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
footer p { margin: 10px 0; color: #aaa3c8; }
.footer-links {
  display: flex; gap: 24px; justify-content: center;
  margin: 20px 0; flex-wrap: wrap;
}
.footer-links a { color: #cfc9e4; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--teal-bright); }
.fine { font-size: .85rem; color: #8780a8; margin-top: 16px; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-links { gap: 16px; font-size: .9rem; }
  .nav-brand span { display: none; }   /* logo alone on small screens */
  section { padding: 56px 0; }
}
