/* ==========================================================================
   Lara Balint, Children's Author Site
   Design tokens
   ========================================================================== */

:root {
  --honey: #E8A33D;
  --honey-dark: #C9832A;
  --forest: #2F4A3C;
  --forest-light: #3E5F4E;
  --cream: #FBF3E3;
  --cream-warm: #F5E9D3;
  --terracotta: #C97D4F;
  --terracotta-dark: #B06638;
  --charcoal: #3A322B;
  --white: #FFFDF8;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Zilla Slab', Georgia, serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 12px 32px rgba(58, 50, 43, 0.12);
  --shadow-lift: 0 18px 40px rgba(58, 50, 43, 0.18);

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 18px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: var(--terracotta-dark); }

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

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

/* Focus states */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--honey-dark);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--forest);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 72px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest);
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--forest);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 1.02rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { background: var(--forest); color: var(--white); }

.main-nav a.nav-cta {
  background: var(--terracotta);
  color: var(--white);
}
.main-nav a.nav-cta:hover { background: var(--terracotta-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 28px 20px;
    border-bottom: 3px solid var(--forest);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2.5px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--white); }

.btn-honey { background: var(--honey); color: var(--charcoal); }
.btn-honey:hover { background: var(--honey-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(232,163,61,0.18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(47,74,60,0.10), transparent 45%),
    var(--cream);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  color: var(--terracotta-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 14px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 0.35em;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--charcoal);
  font-weight: 500;
  margin-bottom: 1.6em;
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art {
  position: relative;
}
.hero-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  transform: rotate(2deg);
}

.hero-cover-img {
  max-width: 430px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto; }
  .hero-cover-img { max-width: 100%; }
}

/* ---------- Section shell ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--cream-warm); }
.section-forest { background: var(--forest); color: var(--cream); }
.section-forest h2, .section-forest h3 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { font-size: 1.1rem; }

/* ---------- About teaser ---------- */
.about-teaser .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: center;
}
.about-teaser img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 760px) {
  .about-teaser .wrap { grid-template-columns: 1fr; }
  .about-teaser img { max-width: 280px; margin: 0 auto; }
}

/* ---------- Series cards ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.series-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.series-card:hover { border-color: var(--honey); transform: translateY(-4px); }

.series-card .cover-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.series-card .cover-strip img {
  width: 64px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.series-card h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.series-card p { font-size: 0.98rem; color: var(--charcoal); }
.series-card a.card-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--terracotta-dark);
  text-decoration: none;
  font-size: 0.95rem;
}
.series-card a.card-link:hover { text-decoration: underline; }

/* ---------- Colouring pack CTA ---------- */
.cta-band {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lift);
}
.cta-band img {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--cream); font-size: 1.08rem; }

@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .cta-band img { max-width: 240px; margin: 0 auto; }
  .cta-band .hero-actions { justify-content: center; }
}

/* ---------- Marquee coming soon ---------- */
.marquee-wrap { padding: 80px 0; }

.marquee-sign {
  position: relative;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--honey);
  overflow: hidden;
}

.marquee-sign::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(251, 243, 227, 0.25);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

.marquee-bulbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bulb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 10px 3px rgba(232,163,61,0.6);
  animation: bulb-flicker 2.4s infinite ease-in-out;
}
@keyframes bulb-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.marquee-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 34px;
  flex-wrap: wrap;
  text-align: left;
}

.marquee-cover {
  flex: 0 0 auto;
}
.marquee-cover img {
  width: 220px;
  border-radius: 14px;
  box-shadow: 0 0 0 6px rgba(232,163,61,0.25), 0 20px 44px rgba(0,0,0,0.45);
  transform: rotate(-3deg);
}

.marquee-text { max-width: 460px; }
.marquee-text .marquee-eyebrow,
.marquee-text .marquee-title,
.marquee-text .marquee-hook { margin: 0; }
.marquee-text .marquee-eyebrow { display: block; margin-bottom: 10px; }
.marquee-text .marquee-title { margin-bottom: 0.2em; }
.marquee-text .marquee-hook { margin: 0; }

.marquee-arc { text-align: center; }

@media (max-width: 700px) {
  .marquee-content { flex-direction: column; text-align: center; }
  .marquee-text { max-width: 100%; }
  .marquee-cover img { width: 180px; transform: none; }
}

.marquee-eyebrow {
  font-family: var(--font-display);
  color: var(--honey);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.marquee-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.2em;
  text-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

.marquee-hook {
  font-family: var(--font-body);
  color: var(--cream);
  font-size: 1.2rem;
  max-width: 52ch;
  margin: 0 auto 30px;
}

.arc-form {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.arc-form input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}
.arc-form .btn { flex: 0 0 auto; }
.arc-note {
  color: var(--cream-warm);
  font-size: 0.88rem;
  margin-top: 14px;
  opacity: 0.85;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { height: 54px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.site-footer h4 {
  color: var(--honey);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer a {
  color: var(--cream);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.site-footer a:hover { color: var(--honey); text-decoration: underline; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251,243,227,0.1);
  border-radius: 50%;
  margin-bottom: 0;
}
.footer-social a:hover { background: var(--honey); }
.footer-social svg { width: 20px; height: 20px; fill: var(--cream); }
.footer-social a:hover svg { fill: var(--forest); }
.footer-social a.letter-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cream);
  font-style: italic;
}
.footer-social a.letter-icon:hover { color: var(--forest); }
.footer-bottom {
  border-top: 1px solid rgba(251,243,227,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(251,243,227,0.7);
  text-align: center;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}

/* ---------- Books page ---------- */
.page-header {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--cream-warm);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.page-header p { font-size: 1.1rem; max-width: 60ch; margin: 0 auto; }

.series-block { padding: 56px 0; }
.series-block:nth-child(even) { background: var(--cream-warm); }

.series-block-head { margin-bottom: 32px; }
.series-block-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.series-block-head p { color: var(--charcoal); font-size: 1.02rem; max-width: 70ch; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.book-card .cover-frame {
  background: var(--cream-warm);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-card img {
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 150px;
}
.book-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.book-card .book-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--terracotta-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.book-card .amazon-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.book-card .amazon-link:hover { color: var(--terracotta-dark); }

/* ---------- About page ---------- */
.about-hero {
  padding: 64px 0;
  background: var(--cream-warm);
}
.about-hero .wrap {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.about-hero img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.about-hero .bio-text p { font-size: 1.12rem; }
@media (max-width: 760px) {
  .about-hero .wrap { grid-template-columns: 1fr; }
  .about-hero img { max-width: 260px; margin: 0 auto; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
