/* Root Variables */
:root {
  --primary: #1e74a7;
  --primary-foreground: #ffffff;
  --secondary: #5d8d54;
  --secondary-foreground: #ffffff;
  --accent: #ef5050;
  --accent-foreground: #ffffff;
  --background: #faf9f7;
  --foreground: #2c2c2c;
  --card: #ffffff;
  --muted: #f0ebe3;
  --muted-foreground: #3a3a3a;
  --border: #e8e3d8;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(
    180deg,
    rgba(255, 153, 51, 0.03) 0%,
    var(--background) 25%,
    var(--background) 75%,
    rgba(107, 91, 149, 0.03) 100%
  );
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

.gap {
  padding-top: 2rem;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: .75em;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

.text-primary {
  color: var(--primary);
}
.text-accent {
  color: var(--accent);
}

/* Header/Navigation */
.header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.thumbnail {
  height: 8em;
  text-align: center;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo {
  z-index: 60;
  position: absolute;
  top: .5em;
  left: 2em;
  width: 12rem;
  height: 12rem;
}

.logo img {
  height: 100%;
}

.brand-name {
  display: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  box-shadow: 0 10px 20px rgba(167, 30, 83, 0.3);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  box-shadow: 0 10px 20px rgba(107, 91, 149, 0.3);
  transform: scale(1.05);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  box-shadow: 0 10px 20px rgba(255, 153, 51, 0.3);
  transform: scale(1.05);
}

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

.btn-white:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--background) 50%, var(--secondary) 100%);
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--foreground);
  line-height: 1.2;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* added white border frame around book cover */
.book-cover-frame {
  padding: 20px;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.book-info {
  padding-top: .5em;
  text-align: center;
  max-width: 300px;
}

.book-cover {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  display: block;
}

.wide {
  max-width: 500px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-foreground);
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* About Section */
.about {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.05) 0%, var(--background) 50%, rgba(167, 30, 83, 0.05) 100%);
  padding: 5rem 0;
}

.creators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.creator-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.creator-card:hover {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.creator-image {
  height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(167, 30, 83, 0.1) 0%, rgba(255, 153, 51, 0.1) 100%);
}

.creator-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.creator-card h3 {
  padding-top: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.creator-card p {
  padding: 0 2rem 1rem 2rem;
  color: var(--muted-foreground);
}

.cricket-note {
  font-weight: 600;
  color: var(--primary) !important;
}

/* Spooder Section */
.spooder {
  background-color: var(--background);
}

.spooder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.spooder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25rem;
  background: linear-gradient(135deg, rgba(107, 91, 149, 0.1) 0%, rgba(107, 91, 149, 0.05) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.spooder-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spooder-content h2 {
  margin-bottom: 1rem;
}

.spooder-intro {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.spooder-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fact-box {
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid;
}

.fact-primary {
  background-color: rgba(167, 30, 83, 0.05);
  border-color: var(--primary);
}

.fact-accent {
  background-color: rgba(255, 153, 51, 0.05);
  border-color: var(--accent);
}

.fact-secondary {
  background-color: rgba(107, 91, 149, 0.05);
  border-color: var(--secondary);
}

.fact-box h4 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.fact-box p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.fact-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.fact-box a:hover {
  text-decoration: underline;
}

/* Books Section */
.books {
  background-color: var(--background);
  padding: 5rem 0;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.book-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-card:hover {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.book-card h3 {
  color: var(--foreground);
}

.book-card p {
  color: var(--muted-foreground);
  flex-grow: 1;
}

.book-card .btn {
  align-self: flex-start;
}

/* Games Section */
.games {
  background: linear-gradient(135deg, rgba(107, 91, 149, 0.05) 0%, var(--background) 50%, rgba(255, 153, 51, 0.05) 100%);
  padding: 5rem 0;
}

.games-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(167, 30, 83, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.game-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
  border-color: var(--secondary);
}

.game-screenshot {
  background-color: #f5f5f5;
  height: 10rem;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.game-screenshot img {
  width: 100%;
  transition: transform 0.3s;
}

.game-card:hover .game-screenshot img {
  transform: scale(1.1);
}

.game-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.game-card h3 {
  color: var(--foreground);
  font-size: 1.125rem;
  transition: color 0.3s;
}

.game-card:hover h3 {
  color: var(--primary);
}

.game-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  flex-grow: 1;
}

.game-play-link {
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-card:hover .game-play-link {
  transform: translateX(5px);
}

.games-footer {
  text-align: center;
}

/* Newsletter Section */
.newsletter {
  display: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 3rem 0;
}

.newsletter-container {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.newsletter-container h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter-container > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  ring: 2px;
  ring-color: white;
  background-color: rgba(255, 255, 255, 0.3);
}

.newsletter-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer p {
  color: rgba(250, 249, 247, 0.75);
  font-size: 0.875rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(250, 249, 247, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 249, 247, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: rgba(250, 249, 247, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: white;
}

.book-preview {
  text-align: center;
}

.bookshelf, .bookshelf-wide {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bookshelf-wide {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

.blurb {
  text-align: left;
  padding: 1em;
  background-color: var(--muted);
}

/* Responsive */
@media (orientation: portrait) {
  h1 {
    font-size: 1.875rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .brand-name {
    display: inline;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .logo {
    height: 6rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .creators-grid {
    grid-template-columns: 1fr;
  }

  .spooder-grid {
    grid-template-columns: 1fr;
  }

  .spooder-image {
    order: 2;
  }

  .spooder-content {
    order: 1;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    min-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* @media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .books,
  .about,
  .spooder,
  .games {
    padding: 3rem 0;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
} */
