﻿/*
Theme Name:     Newspaper Child theme
Theme URI:      http://themeforest.net/user/tagDiv/portfolio
Description:    FiveFlavor.com — Daoist herbal alchemy design system built on the Newspaper child theme. Five-element palette, custom page templates, custom post types (elixirs / herbs / chronicles), interactive Oracle quiz, A-Z grimoire index and filters.
Author:         FiveFlavor
Author URI:     https://fiveflavor.com
Template:       Newspaper
Version:        1.0.7
*/

/* ==========================================================================
   FIVE FLAVOR — Daoist Herbal Alchemy Design System
   五色五行全域应用 · Five Elements Full-Spectrum
   Loaded only on FiveFlavor custom template pages (body.ff-site).
   ========================================================================== */

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

:root {
  /* Five Elements Colors — 五色五行 */
  --ff-wood: #4A9C7F;   /* 木 — 玉青绿 */
  --ff-fire: #D44B3F;   /* 火 — 丹砂红 */
  --ff-earth: #E8B053;  /* 土 — 土金黄 */
  --ff-metal: #E8DCC8;  /* 金 — 古玉白 */
  --ff-water: #2D3A4A;  /* 水 — 玄灰蓝 */

  /* Element Gradients */
  --ff-wood-grad: linear-gradient(135deg, #4A9C7F, #2D7A5F, #1A5A3F);
  --ff-fire-grad: linear-gradient(135deg, #D44B3F, #B03A2E, #8A2A1E);
  --ff-earth-grad: linear-gradient(135deg, #E8B053, #C8943A, #A07820);
  --ff-metal-grad: linear-gradient(135deg, #E8DCC8, #D0C4AC, #B8AC94);
  --ff-water-grad: linear-gradient(135deg, #2D3A4A, #1D2A3A, #0D1A2A);

  /* Primitive earth tones */
  --ff-rice-paper: #F7F2EA;
  --ff-cream: #FBF8F2;
  --ff-cinnabar: #D44B3F;
  --ff-cinnabar-soft: #E06B5F;
  --ff-cinnabar-darker: #B03A2E;
  --ff-jade: #4A9C7F;
  --ff-jade-soft: #6ABC9F;
  --ff-jade-deep: #2D7A5F;
  --ff-charcoal: #2D3A4A;
  --ff-warm-beige: #E8DCC8;
  --ff-soft-brown: #6B5640;
  --ff-sage: #8B9D7A;
  --ff-gold: #E8B053;
  --ff-terracotta: #C9745C;
  --ff-ink: #1A1714;
  --ff-pearl: #F0EBE1;
  --ff-moss: #5A8F75;

  /* Semantic tokens */
  --ff-bg: var(--ff-rice-paper);
  --ff-surface: var(--ff-cream);
  --ff-surface-alt: var(--ff-warm-beige);
  --ff-text: var(--ff-charcoal);
  --ff-text-secondary: var(--ff-soft-brown);
  --ff-text-light: #6B5D4A;
  --ff-primary: var(--ff-cinnabar);
  --ff-primary-hover: var(--ff-cinnabar-darker);
  --ff-accent: var(--ff-jade);
  --ff-accent-soft: var(--ff-jade-soft);
  --ff-border: rgba(45, 58, 74, 0.12);
  --ff-border-strong: rgba(45, 58, 74, 0.2);

  /* Typography */
  --ff-font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-font-cinzel: 'Cinzel', 'Cormorant Garamond', serif;
  --ff-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --ff-space-xs: 4px;
  --ff-space-sm: 8px;
  --ff-space-md: 16px;
  --ff-space-lg: 24px;
  --ff-space-xl: 40px;
  --ff-space-2xl: 64px;

  /* Radius */
  --ff-radius-xs: 3px;
  --ff-radius-sm: 5px;
  --ff-radius: 8px;
  --ff-radius-lg: 12px;
  --ff-radius-xl: 20px;
  --ff-radius-full: 9999px;

  /* Shadows */
  --ff-shadow-xs: 0 1px 2px rgba(42, 37, 32, 0.05);
  --ff-shadow-sm: 0 1px 4px rgba(42, 37, 32, 0.08);
  --ff-shadow: 0 4px 16px rgba(42, 37, 32, 0.1);
  --ff-shadow-lg: 0 12px 40px rgba(42, 37, 32, 0.12);
}

body.ff-site {
  font-family: var(--ff-font-sans);
  background: var(--ff-bg);
  color: var(--ff-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  font-size: 16px;
}
body.ff-site img { max-width: 100%; height: auto; }
body.ff-site a { color: var(--ff-primary); }
body.ff-site p { margin: 0 0 1em; }

/* --- Layout --- */
.ff-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.ff-section {
  padding: 56px 0 40px;
  border-top: 1px solid var(--ff-border);
}
.ff-section:first-of-type { border-top: none; }
.ff-section-tight { padding: 32px 0; }
.ff-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ff-section-heading h2 {
  font-family: var(--ff-font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ff-text);
  letter-spacing: -0.01em;
  margin: 0;
}
.ff-section-heading a {
  font-size: 13px;
  color: var(--ff-primary);
  text-decoration: none;
  font-weight: 500;
}
.ff-section-heading a:hover { text-decoration: underline; }
.ff-section-title {
  font-family: var(--ff-font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ff-text);
  letter-spacing: -0.01em;
}
.ff-section-desc {
  font-size: 13px;
  color: var(--ff-text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* --- Typography helpers --- */
.ff-serif { font-family: var(--ff-font-serif); }
.ff-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ff-cinnabar-darker);
}
.ff-text-secondary { color: var(--ff-text-secondary); }
.ff-text-sm { font-size: 13px; }
.ff-text-xs { font-size: 11px; }
.ff-lead {
  font-size: 16px;
  color: var(--ff-text-secondary);
  line-height: 1.7;
}
.ff-divider { height: 1px; background: var(--ff-border); margin: var(--ff-space-lg) 0; }

/* --- Buttons --- */
.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ff-font-sans);
  border-radius: var(--ff-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.ff-btn-primary { background: var(--ff-primary); color: #fff; }
.ff-btn-primary:hover { background: var(--ff-primary-hover); color: #fff; }
.ff-btn-outline {
  background: transparent;
  color: var(--ff-text);
  border: 1.5px solid var(--ff-border-strong);
}
.ff-btn-outline:hover { border-color: var(--ff-primary); color: var(--ff-primary); }
.ff-btn-ghost {
  background: transparent;
  color: var(--ff-primary);
  padding: 8px 0;
}
.ff-btn-lg { padding: 14px 32px; font-size: 15px; }
.ff-btn-sm { padding: 6px 14px; font-size: 12px; }
.ff-btn-block { width: 100%; }
.ff-btn-quest {
  background: var(--ff-cinnabar-darker);
  color: #fff;
  padding: 8px 18px;
  font-size: 12px;
  font-family: var(--ff-font-cinzel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(176, 58, 46, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.ff-btn-quest:hover {
  background: #8A2A1E;
  box-shadow: 0 4px 12px rgba(176, 58, 46, 0.4);
  color: #fff;
}

/* --- Navigation --- */
.ff-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ff-border);
}
.ff-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.ff-nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--ff-text);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ff-nav-logo::before {
  content: '';
  width: 28px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(20,20)'%3E%3Cpath d='M0 0 C-3 -5 -8 -10 -3 -16 C0 -18 5 -12 2 -4 Z' fill='%234A9C7F'/%3E%3Cpath d='M0 0 C-4 -4 -6 -9 1 -15 C3 -17 5 -8 2 -3 Z' fill='%23D44B3F' transform='rotate(72)'/%3E%3Cpath d='M0 0 C-2 -6 -7 -11 -2 -17 C1 -19 6 -10 3 -3 Z' fill='%23E8B053' transform='rotate(144)'/%3E%3Cpath d='M0 0 C-5 -3 -5 -8 -4 -14 C0 -16 4 -10 1 -2 Z' fill='%23E8DCC8' transform='rotate(216)'/%3E%3Cpath d='M0 0 C-3 -4 -7 -8 -1 -15 C3 -17 6 -7 2 -3 Z' fill='%232D3A4A' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.5' fill='%23B89B5E'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  display: inline-block;
}
.ff-nav-logo:hover { color: var(--ff-text); }
.ff-nav-links { display: flex; gap: 24px; align-items: center; }
.ff-nav-links a {
  font-size: 13px;
  color: var(--ff-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.ff-nav-links a:hover, .ff-nav-links a.active { color: var(--ff-primary); }

/* Mobile nav (checkbox-driven, CSS only) */
.ff-nav-toggle-cb { display: none; }
.ff-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.ff-mobile-bar .ff-nav-logo { font-size: 18px; }
.ff-mobile-bar .ff-nav-logo::before { width: 24px; height: 24px; }
.ff-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}
.ff-burger span { height: 2px; background: var(--ff-text); border-radius: 1px; transition: all 0.2s; }
.ff-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 16px;
  border-top: 1px solid var(--ff-border);
}
.ff-mobile-menu a {
  font-family: var(--ff-font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ff-text);
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: 1px solid var(--ff-border);
}
.ff-mobile-menu a:hover { color: var(--ff-primary); }
.ff-mobile-menu .ff-btn { margin-top: 12px; }
.ff-nav-toggle-cb:checked ~ .ff-mobile-menu { display: flex; }
.ff-nav-toggle-cb:checked ~ .ff-mobile-bar .ff-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ff-nav-toggle-cb:checked ~ .ff-mobile-bar .ff-burger span:nth-child(2) { opacity: 0; }
.ff-nav-toggle-cb:checked ~ .ff-mobile-bar .ff-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero --- */
.ff-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ff-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
}
.ff-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(247, 242, 234, 0.95) 0%, rgba(247, 242, 234, 0.6) 50%, transparent 100%);
}
.ff-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 0;
  max-width: 580px;
}
.ff-hero-content h1 {
  font-family: var(--ff-font-serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ff-text);
}
.ff-hero-content .ff-lead { margin-bottom: 24px; max-width: 440px; }
.ff-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ff-hero-centered { text-align: center; }
.ff-hero-centered .ff-hero-content { margin: 0 auto; }
.ff-hero-centered .ff-hero-overlay {
  background: linear-gradient(180deg, rgba(247, 242, 234, 0.92) 0%, rgba(247, 242, 234, 0.65) 100%);
}
.ff-hero-centered .ff-hero-btns { justify-content: center; }

/* --- Feature grids --- */
.ff-feature-grid { display: grid; gap: 24px; }
.ff-feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ff-feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ff-feature-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* --- Cards --- */
.ff-card {
  background: var(--ff-surface);
  border-radius: var(--ff-radius);
  overflow: hidden;
  box-shadow: var(--ff-shadow-sm);
  border: 1px solid var(--ff-border);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.ff-card:hover { box-shadow: var(--ff-shadow); }
.ff-card-link { text-decoration: none; color: inherit; display: block; }
.ff-card-link:hover .ff-card { box-shadow: var(--ff-shadow-lg); transform: translateY(-2px); }
.ff-card-photo { position: relative; }
.ff-card-body { padding: 16px; flex: 1; }
.ff-card-body h3 {
  font-family: var(--ff-font-serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ff-text);
}
.ff-card-body h4 {
  font-family: var(--ff-font-serif);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ff-text);
}
.ff-photo-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ff-text);
  border-radius: var(--ff-radius-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

/* --- Photo placeholders (CSS art, fallback when no image) --- */
.ff-photo {
  border-radius: var(--ff-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.ff-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-photo-soup { background: radial-gradient(circle at 50% 55%, #D4A055 0%, #B8742F 30%, #8B4A20 55%, #5C2E12 100%); }
.ff-photo-tea { background: linear-gradient(135deg, #8BA85A 0%, #6B8E3A 35%, #C49A3F 70%, #8B6B2A 100%); }
.ff-photo-herb { background: radial-gradient(circle at 40% 40%, #A89B5E 0%, #7A6B40 40%, #4A4028 100%); }
.ff-photo-congee { background: linear-gradient(180deg, #F5E6C8 0%, #E8CFA0 40%, #D4A055 80%, #B88040 100%); }
.ff-photo-dessert { background: radial-gradient(circle at 50% 50%, #E8A0B0 0%, #C5606F 40%, #8B3040 100%); }
.ff-photo-warm { background: linear-gradient(135deg, #C9745C 0%, #B04A2F 40%, #8B3A24 70%, #5C2A16 100%); }
.ff-photo-jade { background: linear-gradient(160deg, #6B8556 0%, #4A5D3A 50%, #34402A 100%); }
.ff-photo-earthy { background: linear-gradient(145deg, #B89B5E 0%, #8B7355 40%, #5C4A34 100%); }
.ff-photo-sour { background: linear-gradient(145deg, #E8C84A 0%, #C49A2F 50%, #8B6B1A 100%); }
.ff-photo-bitter { background: linear-gradient(145deg, #6B8E3A 0%, #4A6B2A 50%, #2A4A12 100%); }
.ff-photo-sweet { background: linear-gradient(145deg, #E8A85C 0%, #C47830 50%, #8B5020 100%); }
.ff-photo-pungent { background: linear-gradient(145deg, #D46A3A 0%, #B04A2F 50%, #7A2A16 100%); }
.ff-photo-salty { background: linear-gradient(145deg, #5A6F7A 0%, #3A4F5A 50%, #1A2F3A 100%); }
.ff-photo-brand { background: linear-gradient(135deg, var(--ff-warm-beige) 0%, var(--ff-soft-brown) 50%, var(--ff-charcoal) 100%); }
.ff-photo-general { background: linear-gradient(135deg, #E8DCC8 0%, #C9A66B 40%, #8B7355 70%, #4A3F2A 100%); }

/* --- Tags / pills --- */
.ff-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--ff-radius-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ff-tag-sweet { background: rgba(232, 168, 92, 0.15); color: #8B5020; }
.ff-tag-sour { background: rgba(232, 200, 74, 0.15); color: #8B6B1A; }
.ff-tag-bitter { background: rgba(107, 142, 58, 0.15); color: #4A6B2A; }
.ff-tag-pungent { background: rgba(212, 106, 58, 0.15); color: #B04A2F; }
.ff-tag-salty { background: rgba(90, 111, 122, 0.15); color: #3A4F5A; }
.ff-tag-warm { background: rgba(176, 74, 47, 0.1); color: #B03A2E; }
.ff-tag-neutral { background: rgba(139, 115, 85, 0.12); color: #6B5640; }
.ff-tag-cool { background: rgba(74, 156, 127, 0.12); color: var(--ff-jade-deep); }

/* --- Flavor wheel --- */
.ff-flavor-wheel {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ff-flavor-item { text-align: center; width: 140px; }
.ff-flavor-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-font-serif);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.ff-flavor-circle::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.ff-flavor-circle span { position: relative; z-index: 2; }
.ff-flavor-item h4 { font-family: var(--ff-font-serif); font-size: 16px; font-weight: 600; margin: 0; color: var(--ff-text); }
.ff-flavor-item p { font-size: 11px; color: var(--ff-text-secondary); margin: 0; }

/* --- Element icons (quiz) --- */
.ff-element-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-font-serif);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

/* --- Info / warning boxes --- */
.ff-info-box {
  background: rgba(74, 93, 58, 0.06);
  border: 1px solid rgba(74, 93, 58, 0.2);
  border-radius: var(--ff-radius);
  padding: 20px;
}
.ff-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ff-jade-deep);
  margin-bottom: 8px;
}
.ff-warning-box {
  background: rgba(176, 74, 47, 0.05);
  border: 1px solid rgba(176, 74, 47, 0.2);
  border-radius: var(--ff-radius);
  padding: 16px;
}
.ff-warning-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B03A2E;
  margin-bottom: 6px;
}

/* --- Breadcrumb --- */
.ff-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ff-text-light);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ff-breadcrumb a { color: var(--ff-text-secondary); text-decoration: none; }
.ff-breadcrumb a:hover { color: var(--ff-primary); }

/* --- Tabs --- */
.ff-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ff-border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.ff-tabs a {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ff-text-secondary);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.ff-tabs a:hover { color: var(--ff-text); }
.ff-tabs a.active { color: var(--ff-primary); border-bottom-color: var(--ff-primary); }

/* --- Filters / sidebar --- */
.ff-sidebar-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.ff-filter-group { margin-bottom: 24px; }
.ff-filter-group h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ff-text);
  margin: 0 0 10px;
}
.ff-filter-list { display: flex; flex-direction: column; gap: 6px; }
.ff-filter-item {
  font-size: 13px;
  color: var(--ff-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.ff-filter-item::before {
  content: '';
  width: 14px; height: 14px;
  border: 1.5px solid var(--ff-border-strong);
  border-radius: 3px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.ff-filter-item.checked::before { background: var(--ff-primary); border-color: var(--ff-primary); }
.ff-filter-item:hover { color: var(--ff-text); }
.ff-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ff-text-secondary);
}
.ff-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ff-text-secondary);
  font-size: 14px;
  display: none;
}

/* --- Meta line (time · servings) --- */
.ff-meta { font-size: 12px; color: var(--ff-text-secondary); }
.ff-meta svg { vertical-align: -2px; margin-right: 2px; }

/* --- Recipe detail --- */
.ff-recipe-hero {
  position: relative;
  border-radius: var(--ff-radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}
.ff-recipe-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ff-recipe-hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 23, 20, 0.75) 100%);
}
.ff-recipe-hero-content h1 {
  font-family: var(--ff-font-serif);
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin: 10px 0 8px;
}
.ff-recipe-hero-content .ff-meta { color: rgba(255, 255, 255, 0.9); }
.ff-story {
  font-family: var(--ff-font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ff-text-secondary);
  line-height: 1.6;
  margin: 0 0 20px;
}
.ff-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 860px;
}
.ff-ingredient-list {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 16px;
}
.ff-ingredient-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ff-border);
  font-size: 13px;
}
.ff-ingredient-row:last-child { border-bottom: none; }
.ff-ing-name { color: var(--ff-text); font-weight: 500; }
.ff-ing-amount { color: var(--ff-text-secondary); text-align: right; flex-shrink: 0; }
.ff-step { display: flex; gap: 14px; }
.ff-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ff-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.ff-pullquote {
  font-family: var(--ff-font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ff-jade);
  border-left: 3px solid var(--ff-jade-soft);
  padding-left: 20px;
  margin: 28px 0;
  line-height: 1.5;
}
.ff-pin-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; align-items: center; }
.ff-pin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--ff-cinnabar);
  color: #fff;
  border-radius: var(--ff-radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.ff-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  font-size: 14px;
  color: var(--ff-text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.ff-share-btn:hover { background: var(--ff-warm-beige); color: var(--ff-primary); }

/* --- Flavor page --- */
.ff-flavor-hero {
  position: relative;
  border-radius: var(--ff-radius-lg);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.ff-flavor-hero .ff-flavor-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ff-flavor-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  width: 100%;
  background: linear-gradient(90deg, rgba(42, 37, 32, 0.65) 0%, rgba(42, 37, 32, 0.2) 60%, transparent 100%);
}
.ff-flavor-hero-content h1 {
  font-family: var(--ff-font-serif);
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin: 10px 0;
}
.ff-flavor-hero-content p { color: #fff; font-size: 15px; line-height: 1.6; margin: 0; max-width: 520px; }
.ff-fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ff-fact-card {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow-sm);
  padding: 18px;
  text-align: center;
}
.ff-fact-card h3 {
  font-family: var(--ff-font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ff-primary);
  margin: 0;
}
.ff-fact-card p { font-size: 12px; color: var(--ff-text-secondary); margin: 4px 0 0; }
.ff-practice-card {
  background: var(--ff-surface);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow-sm);
  border: 1px solid var(--ff-border);
  padding: 28px;
  border-left: 4px solid var(--ff-earth);
}
.ff-practice-step { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.ff-practice-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ff-earth);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.ff-practice-step span:last-child { font-size: 13px; color: var(--ff-text-secondary); }

/* --- Grimoire --- */
.ff-az-index { display: flex; flex-wrap: wrap; gap: 4px; }
.ff-az-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ff-text-secondary);
  text-decoration: none;
  border-radius: var(--ff-radius-xs);
  transition: all 0.15s;
}
.ff-az-index a:hover { background: var(--ff-primary); color: #fff; }
.ff-az-index a.active { background: var(--ff-primary); color: #fff; }
.ff-herb-card {
  background: var(--ff-surface);
  border-radius: var(--ff-radius);
  overflow: hidden;
  border: 1px solid var(--ff-border);
  box-shadow: var(--ff-shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.ff-herb-card:hover { box-shadow: var(--ff-shadow-lg); transform: translateY(-2px); }
.ff-herb-photo { height: 110px; position: relative; }
.ff-herb-info { padding: 12px; }
.ff-herb-info h4 { font-family: var(--ff-font-serif); font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--ff-text); }
.ff-herb-latin { font-size: 11px; color: var(--ff-text-light); font-style: italic; margin: 0 0 6px; }
.ff-search { max-width: 400px; }

/* --- Herb detail --- */
.ff-detail-side { display: grid; grid-template-columns: 300px 1fr; gap: 40px; max-width: 900px; }
.ff-quickfacts { padding: 18px; margin-bottom: 16px; }
.ff-quickfacts .ff-ingredient-row { font-size: 13px; }
.ff-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-full);
  font-size: 12px;
  color: var(--ff-text-secondary);
}
.ff-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ff-jade);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  flex-shrink: 0;
}

/* --- Inputs --- */
.ff-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--ff-font-sans);
  background: var(--ff-surface);
  border: 1px solid var(--ff-border-strong);
  border-radius: var(--ff-radius-sm);
  color: var(--ff-text);
  outline: none;
  transition: border-color 0.15s;
}
.ff-input:focus { border-color: var(--ff-primary); }

/* --- Quiz --- */
.ff-quiz-card {
  background: var(--ff-surface);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow);
  border: 1px solid var(--ff-border);
  padding: 32px;
}
.ff-progress {
  height: 4px;
  background: var(--ff-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}
.ff-progress-fill {
  height: 100%;
  background: var(--ff-primary);
  border-radius: 2px;
  transition: width 0.3s;
}
.ff-quiz-question {
  font-family: var(--ff-font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 20px;
  color: var(--ff-text);
}
.ff-quiz-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.ff-quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--ff-surface);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  color: var(--ff-text);
}
.ff-quiz-option:hover, .ff-quiz-option.selected {
  border-color: var(--ff-primary);
  background: rgba(176, 74, 47, 0.03);
}
.ff-quiz-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ff-border-strong);
  flex-shrink: 0;
  position: relative;
}
.ff-quiz-option.selected .ff-quiz-radio { border-color: var(--ff-primary); }
.ff-quiz-option.selected .ff-quiz-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ff-primary);
}
.ff-quiz-nav { display: flex; justify-content: space-between; align-items: center; }

/* --- Quiz result --- */
.ff-element-card {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(74, 93, 58, 0.08) 0%, transparent 100%);
  border-radius: var(--ff-radius-lg);
  margin-bottom: 24px;
}
.ff-element-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-font-serif);
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--ff-jade-soft), var(--ff-jade));
}
.ff-result-panel { display: none; }
.ff-result-panel.active { display: block; }
.ff-focus-card {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow-sm);
  padding: 28px;
}
.ff-focus-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; margin-top: 16px; }
.ff-focus-bar { border-radius: var(--ff-radius-sm); height: 50px; opacity: 0.35; }
.ff-focus-bar.high { opacity: 1; box-shadow: 0 0 0 2px var(--ff-primary); }
.ff-focus-bar.med { opacity: 0.6; }
.ff-focus-bar.low { opacity: 0.3; }
.ff-focus-label { font-size: 11px; color: var(--ff-text-secondary); margin-top: 4px; }
.ff-focus-label.high { color: var(--ff-primary); font-weight: 600; }

/* --- Newsletter --- */
.ff-newsletter {
  background: var(--ff-jade-deep);
  border-radius: var(--ff-radius-lg);
  padding: 40px;
  color: #fff;
  text-align: center;
}
.ff-newsletter h2, .ff-newsletter h3 {
  font-family: var(--ff-font-serif);
  color: #fff;
  font-weight: 600;
  margin: 0 0 8px;
}
.ff-newsletter p { font-size: 14px; color: rgba(255, 255, 255, 0.95); margin: 0 0 20px; }
.ff-newsletter .ff-input {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.ff-newsletter .ff-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.ff-newsletter-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }

/* --- Journal --- */
.ff-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  cursor: pointer;
}
.ff-featured-card .ff-featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.ff-article-grid .ff-card-body h4 { font-size: 17px; }
.ff-article-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ff-text);
  margin-bottom: 18px;
}
.ff-article-body h3 {
  font-family: var(--ff-font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ff-text);
  margin: 28px 0 12px;
}
.ff-article-body strong { color: var(--ff-text); }
.ff-article-meta { font-size: 13px; color: var(--ff-text-secondary); }

/* --- About --- */
.ff-founders-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 840px;
  margin: 0 auto;
  align-items: center;
}
.ff-advisor-card {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow-sm);
  padding: 32px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: center;
}
.ff-advisor-avatar { width: 100px; height: 100px; border-radius: 50%; }
.ff-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* --- Footer --- */
.ff-footer {
  background: var(--ff-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
  margin-top: 48px;
}
.ff-footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-footer-brand::before {
  content: '';
  width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(20,20)'%3E%3Cpath d='M0 0 C-3 -5 -8 -10 -3 -16 C0 -18 5 -12 2 -4 Z' fill='%234A9C7F'/%3E%3Cpath d='M0 0 C-4 -4 -6 -9 1 -15 C3 -17 5 -8 2 -3 Z' fill='%23D44B3F' transform='rotate(72)'/%3E%3Cpath d='M0 0 C-2 -6 -7 -11 -2 -17 C1 -19 6 -10 3 -3 Z' fill='%23E8B053' transform='rotate(144)'/%3E%3Cpath d='M0 0 C-5 -3 -5 -8 -4 -14 C0 -16 4 -10 1 -2 Z' fill='%23E8DCC8' transform='rotate(216)'/%3E%3Cpath d='M0 0 C-3 -4 -7 -8 -1 -15 C3 -17 6 -7 2 -3 Z' fill='%232D3A4A' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='2.5' fill='%23B89B5E'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  display: inline-block;
}
.ff-footer-cols { display: flex; gap: 48px; margin-bottom: 32px; flex-wrap: wrap; }
.ff-footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ff-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 6px;
}
.ff-footer-col a:hover { color: #fff; }
.ff-footer-bottom {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

/* --- Toast --- */
.ff-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ff-jade);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--ff-radius-full);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  box-shadow: var(--ff-shadow-lg);
}
.ff-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Recipe list card filters (JS hide/show) --- */
.ff-elixir-card[data-hidden],
.ff-herb-card[data-hidden] { display: none; }

/* Herb card hover (wrapped in a .ff-card-link) */
.ff-card-link:hover .ff-herb-card {
  box-shadow: var(--ff-shadow-lg);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .ff-feature-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ff-detail-grid { grid-template-columns: 1fr; }
  .ff-detail-side { grid-template-columns: 1fr; }
  .ff-fact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ff-nav-links { display: none; }
  .ff-mobile-bar { display: flex; }
  .ff-nav-toggle-cb:checked ~ .ff-mobile-menu { display: flex; }
  .ff-feature-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ff-sidebar-layout { grid-template-columns: 1fr; }
  .ff-filters { display: none; }
  .ff-filters.ff-filters-open { display: block; }
  .ff-filters-toggle { display: block; }
  .ff-hero { min-height: 360px; }
  .ff-hero-content h1 { font-size: 40px; }
  .ff-flavor-hero-content h1 { font-size: 32px; }
  .ff-recipe-hero-content h1 { font-size: 28px; }
  .ff-founders-row { grid-template-columns: 1fr; }
  .ff-featured-card { grid-template-columns: 1fr; }
  .ff-advisor-card { grid-template-columns: 1fr; }
  .ff-trust-grid { grid-template-columns: 1fr; }
  .ff-footer-cols { gap: 24px; }
}

@media (max-width: 600px) {
  .ff-container { padding: 0 16px; }
  .ff-feature-grid-3, .ff-feature-grid-2 { grid-template-columns: 1fr; }
  .ff-feature-grid-4 { grid-template-columns: 1fr; }
  .ff-hero { min-height: 320px; }
  .ff-hero-content h1 { font-size: 32px; }
  .ff-hero-btns { flex-direction: column; }
  .ff-hero-btns .ff-btn { width: 100%; }
  .ff-newsletter { padding: 24px 16px; }
  .ff-newsletter-form { flex-direction: column; }
  .ff-newsletter-form .ff-btn { width: 100%; }
  .ff-quiz-card { padding: 20px; }
  .ff-flavor-hero-content { padding: 32px 20px; }
  .ff-fact-grid { grid-template-columns: repeat(2, 1fr); }
  .ff-flavor-hero-content h1 { font-size: 26px; }
  .ff-detail-grid, .ff-detail-side { gap: 24px; }
  .ff-section { padding: 40px 0 32px; }
  .ff-flavor-wheel { gap: 10px; }
  .ff-flavor-item { width: 110px; }
}

/* --- Filters toggle (mobile) --- */
.ff-filters-toggle { display: none; margin-bottom: 16px; }
@media (max-width: 900px) {
  .ff-filters-toggle { display: inline-flex; }
}
