/* Themhoffers — warm personal food-blog theme */
:root {
  --bg: #fdf8f3;
  --card: #ffffff;
  --ink: #3a2a2e;
  --muted: #97817b;
  --accent: #c14a6e;        /* raspberry rose */
  --accent-dark: #9e3656;
  --accent2: #d9a441;       /* warm gold */
  --blush: #fbe9ee;
  --line: #f0ddd6;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(58, 42, 46, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

h1, h2, h3, .display {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem;
  font-weight: 700; color: var(--accent); margin-bottom: 10px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1100px; margin: 0 auto;
}
.brand { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav-links a:hover { background: var(--blush); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 10px 20px 18px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #c14a6e 0%, #d9a441 100%);
  color: #fff; padding: 90px 0 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -20% -62% -20%; height: 70%;
  background: var(--bg); transform: rotate(-3deg);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.hero .eyebrow { color: #ffe3ec; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 14px; }
.hero p { font-size: 1.15rem; opacity: 0.95; margin-bottom: 28px; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.85); }
.hero .btn { margin: 0 6px 10px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 2rem; }
.section-head a { font-weight: 700; }

/* ---------- Welcome / personal intro ---------- */
.welcome {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); padding: 44px; margin-top: -30px; position: relative; z-index: 2;
}
.welcome-photo {
  width: 100%; aspect-ratio: 1; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 5rem; color: rgba(255,255,255,0.9);
}
.welcome h2 { font-size: 2.1rem; margin-bottom: 12px; }
.welcome p { color: var(--muted); margin-bottom: 12px; }
.welcome p strong { color: var(--ink); }
@media (max-width: 760px) { .welcome { grid-template-columns: 1fr; padding: 30px; } .welcome-photo { max-width: 240px; margin: 0 auto; } }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-4px); }
.card-art {
  height: 170px; display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 4.2rem; font-weight: 700; color: rgba(255,255,255,0.92);
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.3rem; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.card-body p.desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.btn-share { background: #1877f2; color: #fff; }
.btn-ghost { background: var(--blush); color: var(--ink); }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.tiktok-slot {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; min-height: 420px;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.tiktok-slot iframe, .tiktok-slot blockquote { margin: 0 auto !important; max-width: 100%; }
.slot-empty {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--muted); background: #fffdfb;
}
.slot-empty h3 { color: var(--ink); margin-bottom: 8px; }
.slot-empty code { background: var(--blush); padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; }

/* ---------- Recipes ---------- */
.searchbar { margin-bottom: 26px; display: flex; gap: 10px; }
.searchbar input {
  flex: 1; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 1rem; background: #fff; color: var(--ink); outline: none;
}
.searchbar input:focus { border-color: var(--accent); }

.recipe-detail { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.recipe-hero { height: 200px; display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 5rem; font-weight: 700; color: rgba(255,255,255,0.92); }
.recipe-content { padding: 34px 36px 40px; }
.recipe-content h1 { font-size: 2.4rem; margin-bottom: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 34px; margin-top: 26px; }
.two-col h3 { margin-bottom: 12px; font-size: 1.25rem; }
.two-col ul, .two-col ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.two-col li::marker { color: var(--accent); font-weight: 700; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } .recipe-content { padding: 24px 20px 30px; } }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; }

/* ---------- Freebie / newsletter band ---------- */
.freebie {
  background: linear-gradient(135deg, #9e3656, #c14a6e);
  color: #fff; border-radius: 26px; padding: 54px 44px; text-align: center;
  box-shadow: var(--shadow);
}
.freebie h2 { font-size: 2.1rem; margin-bottom: 12px; }
.freebie p { opacity: 0.92; max-width: 620px; margin: 0 auto 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 13px 20px; border-radius: 999px; border: 0;
  font-size: 1rem; outline: none; color: var(--ink);
}
.freebie .fine { font-size: 0.82rem; opacity: 0.75; margin-top: 16px; }

/* ---------- About / follow ---------- */
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 40px; }
.social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.follow-band { background: var(--ink); color: #fff; border-radius: 22px; padding: 44px 36px; text-align: center; }
.follow-band h2 { margin-bottom: 10px; }
.follow-band p { opacity: 0.8; margin-bottom: 22px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 44px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: -34px; position: relative; z-index: 2;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 10px; text-align: center;
}
.stat .num { font-family: "Playfair Display", serif; font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
@media (max-width: 640px) { .stats-band { grid-template-columns: 1fr 1fr; } }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.cat-card {
  border-radius: var(--radius); padding: 34px 20px; text-align: center; color: #fff;
  font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 700;
  box-shadow: var(--shadow); transition: transform 0.15s ease; display: block;
}
.cat-card:hover { transform: translateY(-4px); color: #fff; }
.cat-card small { display: block; font-family: "Inter", sans-serif; font-size: 0.82rem; font-weight: 600; opacity: 0.92; margin-top: 8px; }

/* ---------- Why you'll love it ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.why-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px;
}
.why-card .icon {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px; color: #fff;
}
.why-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.why-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Showcase cards (reference-style) ---------- */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0 8px; }
@media (max-width: 900px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .showcase { grid-template-columns: 1fr; } .show-card { aspect-ratio: 16/9; } }
.show-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; display: flex; align-items: flex-end; justify-content: center;
  box-shadow: var(--shadow); transition: transform 0.15s ease;
}
.show-card:hover { transform: translateY(-5px); }
.show-card .art-letter {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 5rem; font-weight: 700;
  color: rgba(255,255,255,0.35);
}
.show-card .label {
  position: relative; background: rgba(255,255,255,0.96); color: var(--ink);
  font-weight: 700; padding: 11px 24px; border-radius: 10px; margin-bottom: 24px;
  font-size: 0.95rem; box-shadow: 0 4px 14px rgba(0,0,0,0.12); white-space: nowrap;
}

/* ---------- Real photos ---------- */
.card-art { overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome-photo { overflow: hidden; padding: 0; }
.welcome-photo img { width: 100%; height: 300px; object-fit: cover; display: block; }

/* ---------- Lazy video loading ---------- */
.video-loading { min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: #f6efe8; border-radius: 12px; font-size: 0.95rem; }
.video-slot { min-height: 220px; }

/* ---------- Daily Updates ---------- */
.updates-list { display:flex; flex-direction:column; gap:28px; max-width:760px; margin:0 auto; }
.update-card { background:var(--card); border-radius:var(--radius); overflow:hidden; box-shadow:0 6px 24px rgba(0,0,0,.08); }
.update-img img { width:100%; height:280px; object-fit:cover; display:block; }
.update-body { padding:24px 30px 30px; }
.update-date { display:inline-block; font-size:.78rem; font-weight:700; color:var(--accent); background:var(--blush); padding:4px 14px; border-radius:20px; margin-bottom:10px; }
.update-body h3 { font-family:"Playfair Display",serif; font-size:1.5rem; margin-bottom:8px; }
.update-body p { color:var(--muted); margin-bottom:14px; line-height:1.65; }
/* Homepage teaser */
.update-teaser { background:var(--card); border-radius:var(--radius); box-shadow:0 6px 24px rgba(0,0,0,.08); padding:30px 34px; max-width:760px; margin:0 auto; text-align:center; }
.update-teaser h3 { font-family:"Playfair Display",serif; font-size:1.6rem; margin:6px 0 10px; }
.update-teaser p { color:var(--muted); margin-bottom:16px; line-height:1.65; }

/* ---------- Daily Updates: detail view ---------- */
.update-link { text-decoration:none; color:inherit; display:block; }
.update-detail .update-body h1 { font-family:"Playfair Display",serif; font-size:2rem; margin:6px 0 14px; }
.update-video { display:flex; justify-content:center; padding:26px 20px 0; }
.update-text p { color:var(--ink); line-height:1.8; margin-bottom:16px; }
.update-text p:last-child { margin-bottom:0; }

/* ---------- Daily Updates: click-to-play video + inline recipe ---------- */
.video-thumb-play { position:relative; cursor:pointer; border-radius:12px; overflow:hidden; max-width:605px; margin:0 auto; }
.video-thumb-play img { width:100%; display:block; }
.video-thumb-fallback { padding:70px 20px; text-align:center; background:var(--blush); font-family:"Playfair Display",serif; font-size:1.4rem; }
.play-btn { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:84px; height:84px; border-radius:50%; background:rgba(193,74,110,.93); color:#fff; font-size:2rem; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 22px rgba(0,0,0,.35); transition:transform .15s ease, background .15s ease; }
.video-thumb-play:hover .play-btn { background:var(--accent-dark); transform:translate(-50%,-50%) scale(1.08); }
.site-video { width:100%; max-width:400px; aspect-ratio:9/16; max-height:78vh; display:block; margin:0 auto; border-radius:12px; background:#000; }
.tiktok-slot .site-video { margin:0 auto 14px; }
.video-hint { text-align:center; color:var(--muted); font-size:.85rem; margin-top:10px; }
.post-recipe { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:24px 26px; margin-top:26px; }
.post-recipe h3 { font-family:"Playfair Display",serif; font-size:1.5rem; margin-bottom:8px; }
.post-recipe .meta { display:flex; flex-wrap:wrap; gap:10px 18px; color:var(--muted); font-size:.9rem; margin-bottom:6px; }
.post-recipe h4 { margin-bottom:8px; font-size:1.1rem; }

/* ---------- Fan website identity ---------- */
.fan-badge { display:inline-block; font-family:"Inter",sans-serif; font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#fff; background:var(--accent); border-radius:20px; padding:4px 12px; margin-left:10px; vertical-align:middle; }
.fan-disclaimer { font-size:.78rem; color:var(--muted); }

/* ---------- Videos page: click-to-play cards ---------- */
.tiktok-slot .video-thumb-play { margin:0 auto 14px; }
.tiktok-slot .video-thumb-play img { aspect-ratio:9/14; object-fit:cover; }
