/* ============================================================
   The Daily Plate — refined warm food-blog design, mobile-first
   Palette: deep terracotta / warm cream / charcoal ink / sage accent
   ============================================================ */

:root {
  --cream: #FDF8F0;
  --cream-dark: #F5EBDD;
  --ink: #292420;
  --ink-soft: #6B5F52;
  --terra: #C0532A;          /* deep terracotta — primary */
  --terra-dark: #9C3E1E;
  --terra-soft: #F7E4D4;
  --sage: #68794E;           /* sage — secondary accent */
  --sage-dark: #4B5836;
  --sage-light: #EBF0DD;
  --gold: #D9A13B;           /* mustard — highlight accent */
  --line: #EBDBC6;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(41, 36, 32, 0.08);
  --shadow-lg: 0 16px 44px rgba(41, 36, 32, 0.14);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0 12px; position: relative; }
.brand { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand span { color: var(--terra); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; margin: 12px 0 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--terra); transition: width .2s ease;
}
.nav-links a:hover { color: var(--terra); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

.btn {
  display: inline-block; background: var(--terra); color: #fff !important;
  padding: 13px 30px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(192, 83, 42, 0.28);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192, 83, 42, 0.34); }
.btn-outline { background: transparent; color: var(--terra) !important; border: 2px solid var(--terra); box-shadow: none; }
.btn-outline:hover { background: var(--terra); color: #fff !important; box-shadow: 0 6px 18px rgba(192, 83, 42, 0.28); }
.btn-sage { background: var(--sage); box-shadow: 0 6px 18px rgba(104, 121, 78, 0.28); }
.btn-sage:hover { background: var(--sage-dark); box-shadow: 0 10px 24px rgba(104, 121, 78, 0.34); }

/* ---------------- Hero (image background) ---------------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 0 0 36px 36px;
  padding: 96px 0 88px;
  text-align: center; color: #fff;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(30, 22, 15, 0.55) 0%, rgba(30, 22, 15, 0.35) 45%, rgba(30, 22, 15, 0.62) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.12; margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero p {
  color: rgba(255, 255, 255, 0.92); max-width: 600px; margin: 0 auto 30px;
  font-size: 1.12rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.badge {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px); border-radius: 999px;
  padding: 7px 17px; font-size: 0.85rem; font-weight: 600; color: #fff;
}

/* ---------------- Sections ---------------- */
.section { padding: 64px 0; }
.section-kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.15rem);
  font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.2;
}
.section-sub { color: var(--ink-soft); margin-bottom: 34px; font-size: 1.05rem; }

.grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Recipe cards ---------------- */
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(235, 219, 198, 0.7);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-link { display: block; overflow: hidden; }
.card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .45s ease;
}
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; margin-bottom: 8px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--terra); }
.card-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; font-weight: 500; }
.card-body > p { font-size: 0.95rem; color: var(--ink-soft); }
.tag {
  display: inline-block; background: var(--terra-soft); color: var(--terra-dark);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.tag.sage { background: var(--sage-light); color: var(--sage-dark); }
.tag.gold { background: #F7ECD4; color: #9A6E1C; }

/* ---------------- Categories ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile {
  border-radius: var(--radius); padding: 32px 16px; text-align: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.18) 100%);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tile span, .cat-tile small { position: relative; z-index: 1; }
.cat-tile small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; opacity: 0.92; margin-top: 6px; }

/* ---------------- Newsletter ---------------- */
.newsletter {
  background: linear-gradient(135deg, #33291F 0%, #4A3A29 100%);
  color: #fff; border-radius: 28px; padding: 56px 30px; text-align: center;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(217, 161, 59, 0.35) 0%, transparent 70%);
}
.newsletter h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: 10px; position: relative; }
.newsletter p { color: #DCCFB8; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; position: relative; }
.news-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-direction: column; position: relative; }
@media (min-width: 560px) { .news-form { flex-direction: row; } }
.news-form input {
  flex: 1; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  font-size: 1rem; font-family: inherit; background: rgba(255,255,255,0.1); color: #fff;
}
.news-form input::placeholder { color: rgba(255,255,255,0.55); }
.news-msg { margin-top: 14px; font-weight: 600; color: var(--gold); min-height: 1.4em; position: relative; }

/* ---------------- Recipe page ---------------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin: 24px 0 0; }
.breadcrumb a { color: var(--terra); }
.recipe-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.15; margin: 12px 0 14px;
}
.recipe-intro { color: var(--ink-soft); font-size: 1.1rem; max-width: 740px; }

.recipe-hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 24px; margin: 28px 0; box-shadow: var(--shadow-lg);
}

.recipe-meta-bar {
  display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 26px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow);
}
.meta-item strong {
  display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 3px;
}
.meta-item span { font-weight: 700; font-size: 1.08rem; }
.recipe-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }

.layout { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .layout { grid-template-columns: 1fr 300px; }
  .sidebar { position: sticky; top: 96px; align-self: start; }
}

.recipe-body h2 {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 700;
  margin: 40px 0 18px; padding-bottom: 10px;
  border-bottom: 3px solid var(--terra-soft);
  display: flex; align-items: center; gap: 12px;
}
.recipe-body h2 .h2-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--terra-soft); color: var(--terra-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
}

.ingredients {
  list-style: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 26px; box-shadow: var(--shadow);
}
.ingredients li { padding: 11px 0 11px 30px; border-bottom: 1px dashed var(--line); position: relative; }
.ingredients li:last-child { border-bottom: 0; }
.ingredients li::before {
  content: "✓"; position: absolute; left: 2px; top: 11px;
  color: var(--sage); font-weight: 700;
}

.steps { counter-reset: step; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 24px 62px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--terra); color: #fff; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(192, 83, 42, 0.3);
}
.steps li strong { color: var(--ink); }

.notes-box {
  background: var(--sage-light); border-left: 5px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 26px; margin: 32px 0;
}
.notes-box h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; color: var(--sage-dark); }
.notes-box p { color: #4A5540; }

/* ---------------- Pin-it area (2:3 image + overlay) ---------------- */
.pin-it {
  position: relative; aspect-ratio: 2/3; max-width: 360px; margin: 34px auto;
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.pin-it img.pin-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.pin-it .pin-content {
  position: absolute; inset: auto 0 0 0; padding: 60px 26px 26px; text-align: center;
  background: linear-gradient(180deg, rgba(20, 14, 9, 0) 0%, rgba(20, 14, 9, 0.78) 55%, rgba(20, 14, 9, 0.92) 100%);
  color: #fff;
}
.pin-it .pin-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; display: block;
}
.pin-it h3 { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: 8px; }
.pin-it p { font-size: 0.93rem; margin-bottom: 18px; color: rgba(255,255,255,0.88); }
.pin-btn {
  background: #E60023; color: #fff !important; font-weight: 700; padding: 13px 30px;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(230, 0, 35, 0.4);
  transition: transform .16s ease, background .16s ease;
}
.pin-btn:hover { background: #C8001F; color: #fff !important; transform: translateY(-2px); }

/* ---------------- Ad placeholders ---------------- */
.ad-slot {
  border: 2px dashed #CDBB9F; border-radius: 12px; background: #FBF6EC;
  color: #A8947A; text-align: center; padding: 22px 12px; font-size: 0.85rem; margin: 30px 0;
}
.ad-slot small { display: block; margin-top: 4px; }

/* ---------------- Static pages ---------------- */
.page-head { padding: 56px 0 12px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 10px; letter-spacing: -0.01em; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 34px 0 12px; }
.prose p, .prose ul { margin-bottom: 16px; color: var(--ink-soft); }
.prose ul { padding-left: 22px; }
.contact-form { max-width: 560px; margin-top: 24px; }
.contact-form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------------- Footer ---------------- */
.site-footer { background: #2A241D; color: #D8CBB8; margin-top: 70px; padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-display); margin-bottom: 14px; font-size: 1.1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #D8CBB8; }
.site-footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.85rem;
  transition: background .18s ease, transform .18s ease;
}
.socials a:hover { background: var(--terra); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 38px; padding-top: 22px; font-size: 0.85rem; text-align: center; }

/* ---------------- Mobile nav ---------------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; position: absolute; top: 22px; right: 22px; }
  .brand img { height: 72px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 18px 22px 26px;
    border-bottom: 1px solid var(--line); gap: 16px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 72px 0 64px; }
  .recipe-hero-img { border-radius: 16px; }
}

/* ---------------- Print: only recipe content ---------------- */
@media print {
  .site-header, .site-footer, .recipe-actions, .ad-slot, .pin-it, .sidebar, .newsletter { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .recipe-hero-img { aspect-ratio: auto; max-height: 220px; }
}

.brand img { height: 120px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12)); }
