/*
Theme Name: Dora Gastro Journal
Author: AI Designer
Description: A high-end editorial food blog theme with elegant typography and minimalist organic layout.
Version: 12.0
*/

:root {
  /* Colors - Editorial Gourmet */
  --c-bg: #FAF9F6; /* Cream Silk */
  --c-text: #1A1A1A; /* Charcoal Ink */
  --c-accent: #BC6C25; /* Earthy Terracotta */
  --c-accent-light: #DDA15E;
  --c-border: #E5E4E2;
  --c-white: #FFFFFF;
  --c-olive: #606C38;
  
  /* Typography */
  --f-display: 'Cormorant Garamond', serif;
  --f-body: 'Montserrat', sans-serif;
  
  /* Spacing */
  --s-container: 1300px;
  --radius: 0px; /* Sharp editorial look */
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

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

ul { list-style: none; }

.container {
  max-width: var(--s-container);
  margin: 0 auto;
  padding: 0 40px;
}

/* SIDEBAR NAVIGATION */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background: var(--c-white);
    z-index: 3000;
    transition: 0.6s cubic-bezier(0.77,0.2,0.05,1.0);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0,0,0,0.05);
}

.nav-toggle:checked ~ .sidebar-nav {
    right: 0;
}

.nav-toggle:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(5px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

.close-sidebar {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2.5rem;
    cursor: pointer;
}

.sidebar-logo {
    font-family: var(--f-display);
    font-size: 2rem;
    margin-bottom: 60px;
    font-style: italic;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav a {
    font-family: var(--f-display);
    font-size: 2rem;
    color: var(--c-text);
}

.mobile-nav a:hover {
    color: var(--c-accent);
    padding-left: 10px;
}

/* HEADER */
.site-header {
  padding: 30px 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.burger-line {
    width: 25px;
    height: 1px;
    background: var(--c-text);
    position: relative;
}
.burger-line::before {
    content: '';
    position: absolute;
    top: -8px; width: 100%; height: 1px; background: inherit;
}

/* HERO - Organic Composition */
.hero {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-title {
  font-size: clamp(4rem, 8vw, 7rem);
  margin-bottom: 30px;
  font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.hero-visual img {
    filter: drop-shadow(20px 20px 60px rgba(0,0,0,0.1));
}

/* FOOD CARDS */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding: 100px 0;
}

.food-card {
  display: flex;
  flex-direction: column;
  transition: 0.4s;
}

.card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 30px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.food-card:hover .card-img img { transform: scale(1.05); }

.card-cat {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 15px;
}

.card-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.card-excerpt {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 30px;
}

.card-link {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--c-text);
    align-self: flex-start;
}

/* FOOTER */
.site-footer {
  padding: 100px 0 40px;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 3rem;
  margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ENTRY CONTENT */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}
.entry-content h2 { font-size: 3rem; margin: 4rem 0 2rem; text-align: center; font-style: italic; }
.entry-content p { margin-bottom: 2rem; }
.entry-content blockquote {
    padding: 60px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    font-family: var(--f-display);
    font-size: 2rem;
    font-style: italic;
    text-align: center;
    margin: 4rem 0;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--c-text);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sidebar-nav { width: 100%; right: -100%; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
