:root {
  --cream: #fff8f0;
  --brown-dark: #5d3a2e;
  --brown-primary: #8b6f47;
  --brown-light: #a0845c;
  --text: #2e1f1b;
  --shadow: 0 16px 40px rgba(93, 58, 46, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c0 100%);
  min-height: 100vh;
  line-height: 1.7;
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--brown-primary);
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Header - Minimal and fixed */
.site-header {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-brand .brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.header-login .quick-login {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-login input {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.header-login input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-login button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s;
}

.header-login button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main content - Recipe box card focus */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 20px 80px;
}

.recipe-box-container {
  width: 100%;
  max-width: 900px;
}

/* Recipe card styling */
.recipe-card {
  background: var(--cream);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(93, 58, 46, 0.25);
  overflow: hidden;
  margin-bottom: 40px;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recipe-card-full {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.card-inner {
  width: 100%;
  padding: 60px 50px;
}

.card-featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
}

.card-header-section {
  margin-bottom: 35px;
}

.card-category {
  display: inline-block;
  background: rgba(139, 111, 71, 0.12);
  color: var(--brown-primary);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 15px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  color: var(--brown-dark);
  margin: 0;
  line-height: 1.2;
  margin-bottom: 15px;
}

.card-subtitle {
  font-size: 18px;
  color: var(--text);
  margin: 0;
  opacity: 0.85;
  line-height: 1.5;
}

.card-content-section {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.card-content-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--brown-dark);
  margin: 35px 0 15px;
}

.card-content-section h4 {
  font-size: 18px;
  color: var(--brown-dark);
  margin: 25px 0 10px;
  font-weight: 600;
}

.card-content-section ul,
.card-content-section ol {
  margin: 20px 0 20px 30px;
  padding: 0;
}

.card-content-section li {
  margin-bottom: 12px;
}

.card-content-section p {
  margin-bottom: 15px;
}

/* Homepage specific */
.homepage-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 14px 32px;
  background: var(--brown-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 111, 71, 0.3);
}

/* Cards grid for browsing */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 35px;
  margin-bottom: 40px;
}

.recipe-index-card {
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(93, 58, 46, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.recipe-index-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(93, 58, 46, 0.2);
}

.recipe-index-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-header {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(139, 111, 71, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--brown-dark);
  margin: 0;
  line-height: 1.3;
}

.category-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(139, 111, 71, 0.12);
  color: var(--brown-primary);
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-excerpt {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.card-link {
  color: var(--brown-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
  margin-top: auto;
}

.card-link:hover {
  color: var(--brown-dark);
}

/* Subscribe box */
.subscribe-box {
  background: linear-gradient(135deg, rgba(139, 111, 71, 0.08) 0%, rgba(160, 132, 92, 0.05) 100%);
  padding: 40px;
  border-radius: 12px;
  margin-top: 50px;
  text-align: center;
  border: 1px solid rgba(139, 111, 71, 0.1);
}

.subscribe-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.subscribe-box p {
  color: var(--text);
  margin-bottom: 25px;
  opacity: 0.9;
}

.subscribe-box .message {
  background: rgba(139, 111, 71, 0.1);
  color: var(--brown-dark);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-weight: 600;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form input {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  border: 1px solid rgba(139, 111, 71, 0.2);
  border-radius: 6px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.subscribe-form button {
  padding: 12px 28px;
  background: var(--brown-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 14px;
}

.subscribe-form button:hover {
  background: var(--brown-dark);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.05);
  margin-top: 50px;
  border-top: 1px solid rgba(139, 111, 71, 0.1);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--brown-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--brown-dark);
}

.footer-credit {
  color: var(--text);
  font-size: 13px;
  opacity: 0.75;
}

/* Responsive design */
@media (max-width: 900px) {
  .site-header {
    padding: 15px 25px;
    flex-direction: column;
    gap: 12px;
    position: sticky;
  }

  .header-brand .brand {
    font-size: 20px;
  }

  main {
    padding: 100px 15px 60px;
  }

  .card-inner {
    padding: 40px 30px;
  }

  .card-title {
    font-size: 38px;
  }

  .recipe-card-full {
    min-height: auto;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 15px;
  }

  .header-login .quick-login {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-login input {
    flex: 1;
    min-width: 120px;
  }

  .card-inner {
    padding: 30px 20px;
  }

  .card-title {
    font-size: 28px;
  }

  .card-featured-image {
    margin-bottom: 25px;
  }

  .card-content-section h3 {
    font-size: 22px;
    margin: 25px 0 12px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .homepage-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input {
    width: 100%;
    min-width: auto;
  }

  .footer-nav {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px 12px;
  }

  .header-brand .brand {
    font-size: 18px;
  }

  main {
    padding: 90px 10px 50px;
  }

  .card-inner {
    padding: 20px 15px;
  }

  .card-title {
    font-size: 24px;
  }

  .card-subtitle {
    font-size: 16px;
  }

  .card-content-section {
    font-size: 15px;
  }

  .subscribe-box {
    padding: 25px 15px;
  }
}
