/* ---------------------------------------------------------
   Zaki's Missing Stripes -- site styles
   Palette pulled straight from the book cover art.
---------------------------------------------------------- */

:root {
  --ink:        #1c1424;
  --plum-900:   #2c1b3d;
  --plum-700:   #4a2a63;
  --plum-500:   #7a3f8c;
  --pink:       #e0579b;
  --peach:      #ffd6a0;
  --moon:       #fdf3d9;
  --leaf:       #a3e065;
  --teal:       #4fd1ae;
  --gold:       #f4c430;
  --cream:      #fffaf0;
  --white:      #ffffff;

  --font-display: 'Fredoka', ui-rounded, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --radius: 20px;
  --shadow-card: 0 14px 30px -12px rgba(28, 20, 36, 0.35);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--plum-900);
}

p { margin: 0 0 1em; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--pink);
  font-weight: 600;
  margin: 0 0 0.4em;
}
.kicker.center, h2.center { text-align: center; }

.section { padding: 84px 0; }

/* Keep section tops clear of the sticky header when jumping via nav links */
section[id] { scroll-margin-top: 84px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--plum-900);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--peach);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.primary-nav a {
  text-decoration: none;
  color: var(--plum-900);
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--pink); }

.nav-cta {
  background: var(--pink);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.nav-cta:hover { background: var(--plum-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--ink);
}

/* ---------------- Hero ---------------- */

.hero {
  background: radial-gradient(120% 140% at 80% 0%, #7a3f8c 0%, var(--plum-900) 55%, var(--ink) 100%);
  border-bottom: 3px solid var(--ink);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.eyebrow {
  font-family: var(--font-display);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  text-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

.hero-tagline {
  color: var(--moon);
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-byline {
  color: var(--peach);
  font-weight: 600;
}
.hero-byline strong { color: var(--white); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal); color: var(--ink); }

.hero-art img {
  border-radius: var(--radius);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-card);
  transform: rotate(2deg);
}

/* ---------------- Story ---------------- */

.story-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.lede {
  font-size: 1.1rem;
  max-width: 60ch;
}

.story-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.story-points li {
  position: relative;
  padding-left: 30px;
  font-weight: 700;
  color: var(--plum-700);
}
.story-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--leaf);
  border: 2px solid var(--ink);
  border-radius: 5px;
  transform: rotate(45deg);
}

.story-art img {
  border-radius: var(--radius);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-card);
}

/* ---------------- Meet Zaki ---------------- */

.zaki-section {
  background: linear-gradient(180deg, var(--peach) 0%, #ffe9c9 100%);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.zaki-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.zaki-portrait img {
  border-radius: 50%;
  border: 5px solid var(--ink);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--moon);
}

.zaki-copy h2 { font-size: 2.4rem; }

/* ---------------- Reviews ---------------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  margin: 0;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card:nth-child(2) { transform: rotate(-1deg); }
.review-card:nth-child(3) { transform: rotate(1deg); }

.review-card p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--plum-900);
}
.review-card cite {
  font-style: normal;
  font-weight: 800;
  color: var(--pink);
}
.review-card footer {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum-500);
  font-size: 0.9rem;
}

/* ---------------- Team ---------------- */

.team {
  background: var(--plum-900);
  border-bottom: 3px solid var(--ink);
}
.team h2, .team .kicker { color: var(--white); }
.team .kicker { color: var(--teal); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.team-card h3 {
  margin-bottom: 2px;
  font-size: 1.4rem;
}
.team-role {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pink);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.team-card p:last-child { margin-bottom: 0; }

/* ---------------- Notify ---------------- */

.notify {
  position: relative;
  overflow: hidden;
  background: var(--moon);
}

.notify-inner {
  position: relative;
  display: flex;
  justify-content: center;
}

.notify-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
}

.notify-card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow-card);
}

.notify-form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form input[type="email"] {
  flex: 1 1 240px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.notify-form input[type="email"]:focus {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.notify-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-weight: 700;
  color: var(--plum-700);
}
.notify-status.is-error { color: #b3261e; }

.notify-captcha {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.notify-form button[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Honeypot: off-screen so people never see it, but bots still fill it in */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notify-privacy {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--plum-500);
}

/* 404 page heading */
.notify-card h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}
.btn-home { margin-top: 8px; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--ink);
  color: var(--moon);
}

.leaf-band { line-height: 0; }
.leaf-band img { width: 100%; height: 90px; object-fit: cover; display: block; }

.footer-inner {
  padding: 28px 24px 36px;
  text-align: center;
}
.footer-inner p { margin: 0 0 4px; }
.footer-sub {
  font-size: 0.85rem;
  color: rgba(253, 243, 217, 0.65);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 880px) {
  .hero-inner,
  .story-inner,
  .zaki-inner {
    grid-template-columns: 1fr;
  }
  .review-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(28,20,36,0.1);
  }
  .nav-cta {
    margin-top: 10px;
    text-align: center;
  }

  .section { padding: 56px 0; }
}
