@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400;1,9..144,500&family=Assistant:wght@300;400;500;600&display=swap');

/* ============================================================
   WHISK WHISPERS — Patisserie Window

   Walking past a French patisserie at dawn. Frosted glass,
   golden crust, flour dust, the quiet precision of baking.
   Tall portrait cards, flourish dividers, parchment warmth.
   ============================================================ */

:root {
  --color-primary: #6B4C3B;
  --color-primary-light: #876350;
  --color-accent: #C9A87C;
  --color-accent-light: #DBBF99;
  --color-accent-faint: rgba(201, 168, 124, 0.08);
  --color-rose: #B8838E;
  --color-rose-faint: rgba(184, 131, 142, 0.06);
  --color-bg: #FDF8F2;
  --color-bg-card: #FFFFFF;
  --color-bg-warm: #F8F0E4;
  --color-text: #3E2E23;
  --color-text-light: #6D5C4E;
  --color-text-muted: #A8998A;
  --color-border: #E8DFD2;
  --color-hairline: rgba(62, 46, 35, 0.06);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Assistant', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  --header-height: 54px;
  --container-max: 1080px;
  --container-narrow: 660px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 2rem); }

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle flour dust particles */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236B4C3B' fill-opacity='0.01'%3E%3Ccircle cx='12' cy='15' r='1.5'/%3E%3Ccircle cx='55' cy='8' r='1'/%3E%3Ccircle cx='38' cy='42' r='1.2'/%3E%3Ccircle cx='70' cy='55' r='0.8'/%3E%3Ccircle cx='20' cy='68' r='1.3'/%3E%3Ccircle cx='60' cy='75' r='0.9'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-primary);
}

p { margin-bottom: 1.4em; }
::selection { background: var(--color-accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* =============================================
   FLOURISH DIVIDER — CSS-only ornament
   ============================================= */
.flourish {
  text-align: center;
  padding: var(--space-sm) 0;
  color: var(--color-accent);
  font-size: 1.2rem;
  opacity: 0.4;
  letter-spacing: 0.5em;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(253, 248, 242, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.nav-links { display: flex; align-items: center; gap: var(--space-md); list-style: none; }

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}
.nav-links a:hover { color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  width: 24px;
  height: 1px;
  background: var(--color-primary);
  transition: all 0.3s ease;
}
.nav-toggle::before { top: 9px; }
.nav-toggle span { top: 14px; }
.nav-toggle::after { top: 19px; }

.nav-open .nav-toggle::before { top: 14px; transform: rotate(45deg); }
.nav-open .nav-toggle span { opacity: 0; }
.nav-open .nav-toggle::after { top: 14px; transform: rotate(-45deg); }

/* =============================================
   HERO — Full-bleed photo with frosted glass text overlay
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img,
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(0.9) brightness(0.95);
}

/* Warm vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(62, 46, 35, 0.25) 100%);
}

.hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
}

/* Frosted glass panel — constrained width for natural text wrap */
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-primary);
  background: rgba(253, 248, 242, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-lg) var(--space-xl);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.35;
  border: 1px solid rgba(201, 168, 124, 0.15);
  border-radius: 4px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(62, 46, 35, 0.7);
  margin-top: var(--space-sm);
  background: rgba(253, 248, 242, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  letter-spacing: 0.06em;
  border-radius: 2px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn, .view-all {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.7rem 1.6rem;
  border: none;
}
.btn:hover { background: var(--color-accent); color: #fff; }

.view-all {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding: 0.3rem 0;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.view-all:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* =============================================
   LATEST RECIPES
   ============================================= */
.latest-recipes {
  padding: var(--space-xl) 0;
}

.latest-recipes h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* =============================================
   RECIPE GRID — Tall portrait cards
   ============================================= */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* =============================================
   RECIPE CARD — Tall, elegant, minimal
   ============================================= */
.recipe-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}
.recipe-card:hover { opacity: 0.8; }

.card-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.9) sepia(0.03);
}
.recipe-card:hover .card-image img { transform: scale(1.02); filter: saturate(1); }

.card-body {
  padding: var(--space-sm) 0;
}

.card-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.card-body p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.card-time {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-top: 0.3rem;
}

/* =============================================
   SINGLE RECIPE
   ============================================= */
.recipe-single {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.recipe-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.recipe-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.recipe-description {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

.recipe-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
}

.meta-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.meta-item strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.meta-item span {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--color-text-muted);
}

.recipe-hero-image {
  margin: var(--space-lg) 0;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

/* Warm vignette on recipe photo */
.recipe-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(62, 46, 35, 0.12);
  pointer-events: none;
  border-radius: 4px;
}

.recipe-hero-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.92);
}

/* =============================================
   RECIPE BODY
   ============================================= */
.recipe-body {
  font-size: 1rem;
  line-height: 1.9;
}

.recipe-body h2 {
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  text-align: center;
}

/* Flourish ornament after each h2 */
.recipe-body h2::after {
  content: '✦';
  display: block;
  font-size: 0.6rem;
  color: var(--color-accent);
  margin-top: var(--space-xs);
  opacity: 0.5;
  font-style: normal;
}

/* =============================================
   INGREDIENTS — Centered column with flourish dividers
   ============================================= */
.recipe-ingredients {
  margin: var(--space-lg) auto;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  max-width: 400px;
  text-align: center;
}

.recipe-ingredients h2,
.recipe-ingredients h3 {
  margin-bottom: var(--space-md);
}

.recipe-ingredients ul {
  list-style: none;
  padding: 0;
}

.recipe-ingredients li {
  padding: 0.6em 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  border-bottom: 1px dotted var(--color-border);
  position: relative;
}

.recipe-ingredients li:last-child { border-bottom: none; }

/* Delicate star bullet centered above each item */
.recipe-ingredients li::before {
  content: '·';
  color: var(--color-accent);
  font-size: 1.5rem;
  line-height: 0;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* =============================================
   INSTRUCTIONS — Each step in its own panel
   ============================================= */
.recipe-instructions {
  margin: var(--space-lg) 0;
  counter-reset: bake-step;
}

.recipe-instructions h2,
.recipe-instructions h3 {
  margin-bottom: var(--space-md);
}

.recipe-instructions ol { list-style: none; padding: 0; }

.recipe-instructions li {
  counter-increment: bake-step;
  position: relative;
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--color-bg-warm);
  border-radius: 4px;
  line-height: 1.85;
  text-align: center;
}

/* Flourish ornament above each step */
.recipe-instructions li::before {
  content: counter(bake-step);
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  opacity: 0.5;
}

/* Divider between steps */
.recipe-instructions li + li::after {
  content: '✦';
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  color: var(--color-accent);
  opacity: 0.3;
  background: var(--color-bg);
  padding: 0 0.5rem;
}

/* =============================================
   NUTRITION
   ============================================= */
.recipe-nutrition {
  margin: var(--space-lg) 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-rose-faint);
  border-radius: 4px;
  border: 1px solid rgba(184, 131, 142, 0.15);
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.recipe-nutrition h2, .recipe-nutrition h3 {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-rose);
  margin-bottom: var(--space-xs);
}
.recipe-nutrition h2::after, .recipe-nutrition h3::after { display: none; }

/* =============================================
   RECIPE FOOTER
   ============================================= */
.recipe-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.recipe-categories, .recipe-tags { margin-bottom: var(--space-sm); }

.recipe-categories h4, .recipe-tags h4 {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
  padding: 0.2rem 0;
  margin: 0 0.6rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.tag:hover { color: var(--color-primary); border-bottom-color: var(--color-accent); }

/* =============================================
   LIST PAGE
   ============================================= */
.list-page { padding: var(--space-xl) 0; }

.list-page h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.list-description {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-light);
  max-width: 400px;
  margin: 0 auto var(--space-lg);
}

.empty-message {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.page-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
.page-item:hover, .page-item.active { color: var(--color-primary); }
.page-item.active { border-bottom: 1px solid var(--color-accent); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}

.site-footer::before {
  content: '✦';
  display: block;
  font-size: 0.7rem;
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: var(--space-md);
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.site-footer a { color: var(--color-accent); font-size: 0.7rem; letter-spacing: 0.1em; }
.site-footer a:hover { color: var(--color-primary); }

/* =============================================
   RESPONSIVE — 768px
   ============================================= */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: rgba(253, 248, 242, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
  }
  .nav-open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 0.9rem; }

  .hero { min-height: 55vh; }

  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* =============================================
   RESPONSIVE — 480px
   ============================================= */
@media (max-width: 480px) {
  :root { --header-height: 48px; --space-xl: 4rem; }

  .hero { min-height: 45vh; }
  .hero h1 { font-size: 1.5rem; padding: var(--space-sm); }

  .recipe-grid { grid-template-columns: 1fr; }
  .card-image { aspect-ratio: 1 / 1; }

  .recipe-instructions li { padding: var(--space-sm); }

  .recipe-meta { gap: var(--space-sm); flex-wrap: wrap; }
}

:focus-visible { outline: 1px solid var(--color-accent); outline-offset: 3px; }

@media print {
  .site-header, .site-footer, .nav-toggle, .pagination, .view-all, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .hero { min-height: auto; }
  .hero img { display: none; }
  .hero h1 { background: none; backdrop-filter: none; color: #000; border: none; }
}
