@font-face {
  font-family: "Rosehot";
  src: url("assets/Rosehot.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --background: #fff8e7; /* lighter background */
  --heading: #BB4430;
  --text: #6D2000;
  --accent: #3D6649;
  --font-heading: "Rosehot", serif;
  --font-body: "Montserrat", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  padding-top: 100px;
}

.site-header {
  background: var(--background);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.site-header .logo {
  font-family: "Rosehot", serif !important; /* force the custom font */
  font-weight: bold;
  font-size: 4rem; 
  color: var(--heading);
  margin: 0;
}

.site-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* constrain inner content */
  margin: 0 auto; /* center in viewport */
  width: 100%;
  flex-wrap: wrap; /* allows stacking on small screens */
  gap: 1rem;
}

.site-header .site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* prevents overflow on small screens */
}

.site-header .site-nav a {
  font-family: "Rosehot", serif; /* match heading font */
  font-weight: bold;             /* make it bold like the heading */
  color: var(--heading);         /* same color as your name */
  text-decoration: none;
  font-size: var(--font-size-md);
  transition: color 0.2s ease;
}

.site-header .site-nav a:hover {
  color: var(--accent);         /* change to accent color on hover */
}

.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 120px 40px;
  gap: 60px;
  text-align: center;
}

.hero-image img {
  max-width: 400px; /* re-enforce max size */
  max-height: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 80px 20px;
    gap: 40px;
  }

  .hero-links a {
    font-size: var(--font-size-lg);
  }
}

.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 120px 40px;
  gap: 60px;
  text-align: left;
}

.hero-image img {
  max-width: 400px;
  max-height: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center; 
  align-items: center; 
}

.hero-links a {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-links a:hover {
  color: var(--heading);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    gap: 40px;
  }

  .hero-links a {
    font-size: var(--font-size-lg);
  }
}

.cookbook-hero {
  display: flex;
  flex-direction: row-reverse; /* image on right, text on left */
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 120px 40px;
  gap: 60px;
  text-align: left;
}

.cookbook-image img {
  max-width: 300px; /* adjust for book cover shape */
  max-height: 450px; /* taller than wide */
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cookbook-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px; /* constrain text width */
}

.buy-button {
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  width: fit-content;
}

.buy-button:hover {
  background-color: var(--heading);
  transform: translateY(-2px);
}

/* Responsive for tablets and mobile */
@media (max-width: 768px) {
  .cookbook-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    gap: 40px;
  }

  .cookbook-image img {
    max-width: 250px;
    max-height: 375px;
  }
}

