/*
Theme Name: Confect
Theme URI: https://example.com/confect
Author: Your Name
Author URI: https://example.com
Description: A sweet, elegant baking theme with recipe cards that carry time, difficulty and yield badges, an image-forward featured bake and segmented dessert sections. An elegant display serif (Yeseva One) with a clean Inter body, per-category colour accents, light and dark modes, self-hosted fonts and one-click demo content with original artwork.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: confect
Tags: blog, food, recipes, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

:root {
  --bg: #fdf6f1;
  --surface: #ffffff;
  --surface-2: #f8ece6;
  --text: #3a2a2e;
  --text-2: #5f4a4e;
  --muted: #9a8085;
  --line: #efe0da;
  --accent: #e0608a;
  --accent-ink: #ffffff;
  --accent-hover: #3a2a2e;
  --accent-hover-ink: #ffffff;

  --font-display: "Yeseva One", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 400;
  --lh-display: 1.12;
  --track-display: 0;

  --radius: 14px;
  --radius-ui: 10px;
  --footer-bg: #3a2a2e;
  --footer-text: #f8ece6;
  --footer-muted: #b49ea2;
  --footer-line: rgba(255,255,255,.12);
  --overlay: linear-gradient(180deg, rgba(40,20,26,0) 30%, rgba(40,20,26,.9) 100%);
}
:root[data-theme="dark"] {
  --bg: #1c1517;
  --surface: #241a1d;
  --surface-2: #2d2125;
  --text: #f6e9ea;
  --text-2: #d2bfc3;
  --muted: #9c868b;
  --line: #382a2e;
  --accent: #ec7ca2;
  --accent-ink: #1c1517;
  --accent-hover: #f6e9ea;
  --accent-hover-ink: #1c1517;
  --footer-bg: #130e0f;
}

body { font-size: 17px; }
.meta, .cat, .primary-menu a, .mobile-menu a, .section-link, .widget-title, .btn, .header-cta { font-family: var(--font-ui); }
.brand__name { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: 0; }
h1, h2, h3, h4, .card__title, .mini__title, .entry-title, .section-title { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
.entry-content { font-family: var(--font-body); }

.site-header { border-bottom: 1px solid var(--line); }
.primary-menu > li > a { font-weight: 600; font-size: .9rem; }
.header-cta { background: var(--accent); color: #fff; border-radius: 100px; font-weight: 700; }
.cat { color: hsl(var(--cat-hue,340) 55% 50%); font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .71rem; }
[data-theme="dark"] .cat { color: hsl(var(--cat-hue,340) 65% 72%); }
.card-overlay .cat { color: #fff; }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }

/* ---------- Recipe badges ---------- */
.cf-recipe { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; font-family: var(--font-ui); font-size: .74rem; }
.cf-recipe__item { display: inline-flex; align-items: center; gap: .3rem; padding: .24rem .6rem; background: var(--surface-2); border-radius: 100px; color: var(--text-2); font-weight: 600; }
.cf-recipe__item svg { width: 13px; height: 13px; }
.cf-level--easy { color: #2e8159; background: rgba(46,129,89,.14); }
.cf-level--medium { color: #b5812b; background: rgba(181,129,43,.16); }
.cf-level--hard { color: #c0493b; background: rgba(192,73,59,.14); }
[data-theme="dark"] .cf-level--easy { color: #6fd0a2; }
[data-theme="dark"] .cf-level--medium { color: #e4b968; }
[data-theme="dark"] .cf-level--hard { color: #ef8a7c; }

/* ---------- Recipe box (single) ---------- */
.cf-recipebox { display: flex; gap: 2rem; flex-wrap: wrap; padding: 1.1rem 1.5rem; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 1.6rem; }
.cf-recipebox__item { display: flex; flex-direction: column; gap: .15rem; }
.cf-recipebox__label { font-family: var(--font-ui); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.cf-recipebox__val { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }

/* ---------- Hero ---------- */
.cf-hero__grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .cf-hero__grid { grid-template-columns: 1.5fr 1fr; align-items: stretch; } }
.cf-hero__big .card-overlay { height: 100%; min-height: 440px; border-radius: var(--radius); overflow: hidden; }
.cf-hero__big .card__title { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.cf-hero__side { display: grid; gap: 16px; align-content: start; }
.cf-hero__side .card .media { aspect-ratio: 16/10; }
.cf-hero__side .card__title { font-size: 1.15rem; }

/* ---------- Sections ---------- */
.cf-section .card .media, .cf-latest .card .media { border-radius: var(--radius); }
.cf-band { background: var(--surface-2); padding-block: clamp(32px, 4vw, 52px); }

/* ---------- Signup ---------- */
.cf-signup .signup--band { background: var(--accent); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cf-signup .signup--band .signup__title { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.cf-signup .signup--band .signup__desc { color: rgba(255,255,255,.92); }
.cf-signup .signup--band .signup__form { min-width: 320px; }
.cf-signup .signup--band .signup__button { background: #3a2a2e; color: #fff; }
.cf-signup .signup--band .signup__note { color: rgba(255,255,255,.82); }
@media (max-width: 760px) { .cf-signup .signup--band { grid-template-columns: 1fr; } .cf-signup .signup--band .signup__form { min-width: 0; } }

.entry-content { font-size: 1.08rem; line-height: 1.72; }
.entry-content blockquote { border-left: 3px solid var(--accent); font-family: var(--font-display); font-weight: 400; font-style: normal; font-size: 1.25rem; }
