/* Euroasia Food Culture — main stylesheet */

:root {
  --color-bg: #faf6f0;
  --color-bg-alt: #f2e9dd;
  --color-text: #2b2320;
  --color-text-soft: #6b5f54;
  --color-terracotta: #c65d34;
  --color-terracotta-dark: #a84a27;
  --color-green: #6b8f71;
  --color-cream: #fffaf3;
  --color-border: #e6dbc9;
  --radius: 14px;
  --max-width: 1100px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.2px;
}

.logo .mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.98rem;
}

.nav-links a:hover { color: var(--color-terracotta-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--color-border); }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg));
  padding: 72px 24px 64px;
  text-align: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--color-green);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  line-height: 1.15;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: var(--color-text-soft);
}

.btn {
  display: inline-block;
  background: var(--color-terracotta);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--color-terracotta-dark); text-decoration: none; transform: translateY(-1px); }

.btn.secondary {
  background: transparent;
  color: var(--color-terracotta-dark);
  border: 2px solid var(--color-terracotta);
  padding: 11px 26px;
}

.btn.secondary:hover { background: var(--color-terracotta); color: #fff; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 64px 24px; }

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0 0 10px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Cards / Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43,35,32,0.08); }

.card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

.card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-green);
  font-weight: 700;
  margin-bottom: 8px;
}

.card h3 {
  font-family: var(--font-heading);
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card p { color: var(--color-text-soft); margin: 0 0 16px; flex: 1; }

.card .read-more { font-weight: 600; font-size: 0.95rem; }

/* About / split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.avatar-block {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--color-green), var(--color-terracotta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 4rem;
  max-width: 340px;
}

/* Newsletter / CTA band */
.cta-band {
  background: var(--color-text);
  color: var(--color-cream);
  text-align: center;
  border-radius: var(--radius);
  padding: 48px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-band h2 { font-family: var(--font-heading); margin: 0 0 12px; color: #fff; }
.cta-band p { color: #d9cfc2; margin: 0 0 24px; }

.form-inline {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 420px;
  margin: 0 auto;
}

.form-inline input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 40px 24px 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 24px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 { margin: 0 0 12px; font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--color-text-soft); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.disclosure {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 20px;
}

/* Page header (non-home pages) */
.page-header {
  padding: 56px 24px 40px;
  text-align: center;
  background: var(--color-bg-alt);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}

.page-header p { color: var(--color-text-soft); max-width: 560px; margin: 0 auto; }

/* Blog post */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.post-meta {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.post h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 24px;
}

.post .cover {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-green));
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post p, .post ul, .post ol { margin-bottom: 20px; font-size: 1.08rem; }
.post h2 { font-family: var(--font-heading); margin: 40px 0 16px; font-size: 1.6rem; }
.post h3 { font-family: var(--font-heading); margin: 28px 0 12px; font-size: 1.25rem; }

.affiliate-box {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-terracotta);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
}

.affiliate-box strong { color: var(--color-terracotta-dark); }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.tag { background: var(--color-bg-alt); padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; color: var(--color-text-soft); }

/* Gallery */
.upload-form {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto 56px;
}

.upload-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.upload-form input,
.upload-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #fff;
}

.upload-form textarea { min-height: 100px; resize: vertical; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-text-soft);
}

.empty-note {
  text-align: center;
  color: var(--color-text-soft);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto 40px;
}
