/* 
  Lulu's Cute World
  A calm, intimate digital notebook
  Soft violet palette, book-like typography
*/

:root {
  /* Colors */
  --primary-violet: #8b7ba8;
  --light-violet: #d4c5e2;
  --pale-violet: #f0ebf8;
  --deep-violet: #6b5b7f;
  --warm-gray: #8a8a8a;
  --off-white: #fafafa;
  
  /* Typography */
  --serif: "Georgia", "Garamond", serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --mono: "Monaco", "Courier New", monospace;
  
  /* Layout */
  --max-width: 650px;
  --line-height: 1.8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: var(--line-height);
  color: #333;
  background-color: var(--pale-violet);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Caveat", cursive;
  color: var(--deep-violet);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-top: 0;
}

h2 {
  font-size: 2.5rem;
  border-bottom: 2px solid var(--light-violet);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.2em;
}

a {
  color: var(--primary-violet);
  text-decoration: none;
  border-bottom: 1px solid var(--light-violet);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--deep-violet);
  border-bottom-color: var(--deep-violet);
}

strong {
  color: var(--deep-violet);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--warm-gray);
}

/* Header & Navigation */
header {
  background-color: var(--deep-violet);
  border-bottom: 2px solid var(--primary-violet);
  padding: 0 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(107, 91, 127, 0.2);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

 .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light-violet);
  border-bottom: none;
 }
 .logo img {
   height: 28px;
   width: auto;
   display: block;
   margin-right: 0.5rem;
   vertical-align: middle;
 }
 @media (max-width: 768px) {
   .logo img {
     height: 22px;
   }
 }

.logo:hover {
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.nav-links a {
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
  border-bottom: none;
  color: var(--light-violet);
  font-weight: 700;
}

.nav-links a:hover {
  color: white;
}

.nav-links a.active {
  color: white;
  border-bottom: 2px solid var(--light-violet);
  padding-bottom: 0.2rem;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 0.3rem;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--light-violet);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(139, 123, 168, 0.1), rgba(212, 197, 226, 0.1));
  border-radius: 30px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.tagline {
  font-style: italic;
  color: var(--primary-violet);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.hero > p {
  color: var(--warm-gray);
  font-size: 1rem;
}

/* GIF Jumbotron */
.gif-jumbotron {
  text-align: center;
  margin: 2rem auto 3rem;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, rgba(139,123,168,0.06), rgba(212,197,226,0.04));
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gif-jumbotron .feature-gif {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(107,91,127,0.08);
}

.gif-caption {
  font-family: var(--sans);
  color: var(--warm-gray);
  font-size: 0.95rem;
}

/* Gallery & Images */
.gallery {
  margin-top: 3rem;
}

.gallery h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.gallery img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 12px rgba(107, 91, 127, 0.1);
}

.gallery figure {
  margin: 0 0 2rem 0;
}

.gallery figcaption {
  font-style: italic;
  color: var(--warm-gray);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  text-align: center;
}

.gallery p {
  max-width: 100%;
  margin-bottom: 1.5rem;
  color: var(--warm-gray);
}

/* Gallery Grid */
.gallery-grid {
  margin-top: 4rem;
}

.gallery-grid h2 {
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(107, 91, 127, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(107, 91, 127, 0.15);
}

/* Lists */
ul, ol {
  margin: 1.5em 0 1.5em 2em;
}

li {
  margin-bottom: 0.75em;
}

/* Footer */
footer {
  border-top: 1px solid var(--light-violet);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  background-color: white;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-text {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--warm-gray);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --max-width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-violet);
    border-bottom: 2px solid var(--deep-violet);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(107, 91, 127, 0.2);
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }

  nav {
    padding: 0 1rem;
  }

  main {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .logo {
    font-size: 0.85rem;
  }

  .menu-toggle span {
    width: 18px;
    height: 1.5px;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .hero {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }
}
