@font-face {
  font-family: 'Dinosaurs Are Alive';
  src: url('dinosaursarealive-font/Dinosaursarealive-lpMd.ttf') format('truetype');
  font-display: swap;
}



:root {
  --champagne: #F5E6CA;
  --champagne-light: #FFF8F0;
  --champagne-dark: #E8D5B5;
  --chocolate: #4A2C17;
  --chocolate-light: #8B5E3C;
  --chocolate-milk: #A0744F;
  --gold: #D4A574;
  --gold-light: #E8C9A0;
  --cream: #FFFDF7;
  --text-dark: #3A2218;
  --text-muted: #7A6555;

  --shadow-sm: 0 2px 8px rgba(74, 44, 23, 0.07);
  --shadow: 0 4px 24px rgba(74, 44, 23, 0.10);
  --shadow-lg: 0 12px 40px rgba(74, 44, 23, 0.16);

  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--champagne-light);
  color: var(--text-dark);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--champagne);
}

::-webkit-scrollbar-thumb {
  background: var(--chocolate-milk);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--chocolate);
}

a {
  color: var(--chocolate-light);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover {
  color: var(--gold);
}

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


/* ---- nav ---- */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--chocolate);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.main-nav__brand {
  font-family: 'Dinosaurs Are Alive', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav__brand img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.main-nav__brand:hover {
  color: var(--gold-light);
}

.main-nav__links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.nav__link {
  color: var(--champagne-dark);
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  padding: 0.4rem 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.35s var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--champagne-light);
  border-radius: 1px;
  transition: 0.3s var(--ease);
}


/* ---- hero ---- */

.hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 94, 60, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, var(--champagne-light) 0%, var(--champagne) 60%, var(--champagne-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero__title {
  font-family: 'Dinosaurs Are Alive', Georgia, serif;
  font-size: clamp(3.2rem, 9vw, 7rem);
  color: var(--chocolate);
  margin-bottom: 0.8rem;
  animation: fadeSlideUp 0.9s var(--ease) both;
  text-shadow: 3px 3px 0 var(--champagne-dark);
  line-height: 1.1;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  font-style: italic;
  animation: fadeSlideUp 0.9s var(--ease) 0.15s both;
  max-width: 500px;
}

.hero__cta {
  margin-top: 2.5rem;
  animation: fadeSlideUp 0.9s var(--ease) 0.3s both;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  font-family: Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}

.btn--primary {
  background: var(--chocolate);
  color: var(--champagne-light);
  border-color: var(--chocolate);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--chocolate-light);
  border-color: var(--chocolate-light);
  color: var(--champagne-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--chocolate);
  border-color: var(--chocolate);
}

.btn--outline:hover {
  background: var(--chocolate);
  color: var(--champagne-light);
  transform: translateY(-3px);
}

.btn--ghost {
  background: rgba(255, 253, 247, 0.6);
  color: var(--chocolate);
  border-color: var(--gold-light);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: var(--cream);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}


/* ---- shared section heading ---- */

.section-heading {
  font-family: 'Dinosaurs Are Alive', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--chocolate);
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--chocolate-milk));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}


/* ---- about section ---- */

.about {
  padding: 6rem 2rem;
  max-width: 1060px;
  margin: 0 auto;
}

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

.about__card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border: 1px solid rgba(212, 165, 116, 0.12);
}

.about__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about__card-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.about__card-title {
  font-size: 1.25rem;
  color: var(--chocolate);
  margin-bottom: 0.8rem;
}

.about__card p {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.98rem;
}

.about__card a {
  font-weight: bold;
  border-bottom: 1px dashed var(--gold);
}

.about__card a:hover {
  border-bottom-style: solid;
}


/* ---- vault (shop) ---- */

.vault {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vault__intro {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.vault__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 2rem;
}

.cookie-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
  display: block;
  color: inherit;
  border: 1px solid rgba(212, 165, 116, 0.08);
}

.cookie-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.cookie-card__img-wrap {
  height: 185px;
  overflow: hidden;
  background: var(--champagne);
  position: relative;
}

.cookie-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.cookie-card:hover .cookie-card__img {
  transform: scale(1.1);
}

.cookie-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.cookie-card__name {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--chocolate);
  margin-bottom: 0.35rem;
}

.cookie-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.cookie-card__price {
  display: inline-block;
  background: linear-gradient(135deg, var(--chocolate), var(--chocolate-light));
  color: var(--gold-light);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}


/* ---- contact ---- */

.contact {
  padding: 5rem 2rem;
  max-width: 580px;
  margin: 0 auto;
}

.contact__intro {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.contact__form {
  background: var(--cream);
  padding: 2.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 165, 116, 0.12);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  color: var(--chocolate);
  margin-bottom: 0.45rem;
  font-weight: bold;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--champagne-dark);
  border-radius: var(--radius);
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--champagne-light);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.18);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.contact__form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}


/* ---- meme page ---- */

.meme-page {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 70%),
    var(--champagne-light);
  text-align: center;
}

.meme-page__cookie-name {
  font-family: 'Dinosaurs Are Alive', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--chocolate);
  margin-bottom: 0.5rem;
}

.meme-page__subtitle {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.meme-page__img {
  max-width: 550px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}

.meme-page__back {
  margin-top: 2.5rem;
}


/* ---- footer ---- */

.site-footer {
  background: var(--chocolate);
  color: var(--champagne-dark);
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: auto;
}

.site-footer__brand {
  font-family: 'Dinosaurs Are Alive', Georgia, serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--chocolate-milk);
}

.site-footer__disclaimer {
  font-size: 0.75rem;
  color: var(--chocolate-milk);
  max-width: 550px;
  margin: 1.2rem auto 0;
  line-height: 1.55;
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.8;
}


/* ---- animations ---- */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---- cookie popup ---- */

.cookie-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  max-width: 380px;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  z-index: 1000;
  border: 1px solid rgba(212, 165, 116, 0.2);
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-popup.visible {
  transform: translateY(0);
}

.cookie-popup__img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.cookie-popup__content p {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}


/* =====================================================================
   RESPONSIVE / MOBILE OVERRIDES
   Everything below is additive. Nothing above this line is modified,
   so the desktop/laptop experience (> 1024px) is completely untouched.
   ===================================================================== */

/* ---- tablet: start re-flowing multi-column grids ---- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .vault__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* ---- phones ---- */
@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* prevent any stray wide element from forcing horizontal scroll */
  main,
  section,
  .about__grid,
  .vault__grid {
    max-width: 100%;
  }

  /* ---- nav: hamburger + slide-down drawer ---- */
  .main-nav {
    padding: 0 1.1rem;
    height: 60px;
    position: relative;
  }

  .main-nav__brand {
    font-size: 1.3rem;
  }

  .main-nav__brand img {
    height: 28px;
    width: 28px;
  }

  .nav-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    z-index: 210;
    position: relative;
  }

  .nav-toggle span {
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--chocolate);
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    transition: max-height 0.4s var(--ease);
    z-index: 200;
  }

  .main-nav__links.open {
    max-height: 320px;
  }

  .main-nav__links li {
    width: 100%;
  }

  .nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 0 1.5rem;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* underline animation doesn't suit a full-width row link */
  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link--active {
    background: rgba(212, 165, 116, 0.14);
  }

  /* ---- hero: lighter background for mobile performance ---- */
  .hero {
    min-height: 56vh;
    padding: 3rem 1.25rem;
    /* desktop-only radial gradients suppressed on mobile */
    background: linear-gradient(165deg, var(--champagne-light) 0%, var(--champagne) 60%, var(--champagne-dark) 100%);
  }

  .hero__title {
    text-shadow: 2px 2px 0 var(--champagne-dark);
  }

  /* ---- touch targets ---- */
  .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    width: 100%;
  }

  .hero__cta .btn {
    width: auto;
    min-width: 220px;
  }

  /* ---- about ---- */
  .about {
    padding: 3rem 1.25rem;
  }

  .about__grid {
    gap: 1.25rem;
  }

  .about__card {
    padding: 1.75rem;
  }

  /* ---- vault (shop) ---- */
  .vault {
    padding: 3rem 1.25rem;
  }

  .vault__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cookie-card__img-wrap {
    height: 200px;
  }

  /* ---- contact ---- */
  .contact {
    padding: 3rem 1.25rem;
  }

  .contact__form {
    padding: 1.75rem 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    min-height: 48px;
    /* 16px prevents iOS Safari auto-zoom on focus */
    font-size: 16px;
    padding: 0.9rem 1rem;
  }

  .form-group textarea {
    min-height: 140px;
  }

  .contact__form .btn {
    width: 100%;
  }

  /* ---- meme page ---- */
  .meme-page {
    padding: 2.5rem 1.25rem;
  }

  .meme-page__back .btn {
    width: auto;
    min-width: 200px;
  }

  /* ---- footer ---- */
  .site-footer {
    padding: 2rem 1.25rem;
  }

  /* ---- cookie popup: full-width bar instead of floating card ---- */
  .cookie-popup {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    padding: 1.25rem;
    gap: 1rem;
  }

  .cookie-popup__img {
    width: 56px;
    height: 56px;
  }

  .cookie-popup #acceptCookies {
    width: 100%;
    min-height: 48px;
    margin-top: 0.4rem;
  }
}
