/* ==========================================
   TEMPLATE — RETRO KITCHEN RECIPE
   1950s vintage kitchen · Cherry + Cream · gingham
   ========================================== */

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

:root {
  --cherry: #c41e3a;
  --cherry-dark: #971526;
  --cherry-deep: #6e0f1c;
  --cream: #FFFCEE;
  --cream-card: #fffaf0;
  --cream-dark: #f1e3c6;
  --ink: #4a2c2a;
  --ink-soft: #8a6a5e;
  --gold: #d9a441;

  --display: 'Cherry Cream Soda', cursive;
  --serif: 'Yeseva One', Georgia, serif;
  --type: 'Special Elite', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--type);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(196,30,58,.05) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(90deg, rgba(196,30,58,.05) 0 16px, transparent 16px 32px),
    var(--cream);
}

a { color: var(--cherry-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--cherry); }

/* gingham helper */
.gingham {
  background-color: var(--cherry);
  background-image:
    linear-gradient(rgba(255,255,255,.22) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255,255,255,.22) 50%, transparent 50%);
  background-size: 22px 22px;
}

/* --- Top bar / nav --- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--cream-card);
  border-bottom: 4px solid var(--cherry);
  box-shadow: 0 3px 0 var(--cherry-deep), 0 6px 14px rgba(110,15,28,.18);
}
.topbar-inner {
  max-width: 980px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand {
  font-family: var(--display); font-size: 1.7rem; color: var(--cherry);
  text-decoration: none; line-height: 1; text-shadow: 2px 2px 0 var(--cream-dark);
}
.brand:hover { color: var(--cherry); }
.brand .heart { color: var(--gold); }

.nav { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav a {
  display: block; padding: 6px 13px;
  font-family: var(--type); font-size: 0.95rem; color: var(--ink);
  text-decoration: none; border: 2px solid transparent; border-radius: 20px;
  transition: all .15s;
}
.nav a:hover { background: var(--cream-dark); color: var(--cherry-dark); }
.nav a.active { background: var(--cherry); color: #fff; box-shadow: 0 2px 0 var(--cherry-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: var(--cherry); border: none; border-radius: 8px;
  padding: 8px 9px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }

/* --- Layout --- */
.wrap { max-width: 980px; margin: 0 auto; padding: 26px 18px; }

/* --- Hero banner --- */
.hero {
  border: 3px solid var(--cherry-deep); border-radius: 14px; overflow: hidden;
  box-shadow: 5px 6px 0 rgba(110,15,28,.2); margin-bottom: 26px; background: var(--cream-card);
}
.hero-band {
  padding: 8px; color: #fff; text-align: center;
  font-family: var(--type); font-size: 0.9rem; letter-spacing: 2px;
  border-bottom: 3px solid var(--cherry-deep);
}
.hero-body { padding: 30px 24px; text-align: center; }
.hero-body h1 {
  font-family: var(--display); color: var(--cherry); font-size: 2.6rem;
  line-height: 1.1; margin-bottom: 10px; text-shadow: 3px 3px 0 var(--cream-dark);
}
.hero-body .tag { font-family: var(--serif); color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 18px; }

/* --- Panels / recipe cards --- */
.panel {
  background: var(--cream-card);
  border: 2px dashed var(--cherry); border-radius: 12px;
  box-shadow: 4px 5px 0 rgba(110,15,28,.13);
  margin-bottom: 22px; overflow: hidden;
}
.panel-title {
  font-family: var(--serif); font-size: 1.25rem; color: #fff;
  background: var(--cherry); padding: 9px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 2px solid var(--cherry-deep);
}
.panel-body { padding: 18px 20px; }

.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { font-family: var(--display); color: var(--cherry); font-size: 1.9rem; text-shadow: 2px 2px 0 var(--cream-dark); }
.section-head p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.05rem; }

/* --- Cards grid --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.recipe-card {
  background: var(--cream-card);
  border: 2px solid var(--cherry); border-radius: 10px; overflow: hidden;
  box-shadow: 3px 4px 0 rgba(110,15,28,.12);
}
.recipe-card .rc-head {
  font-family: var(--serif); color: #fff; background: var(--cherry-dark);
  padding: 7px 12px; font-size: 1.05rem;
}
.recipe-card .rc-body { padding: 12px 14px; }
.recipe-card .rc-meta { font-family: var(--type); font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 6px; }
.recipe-card p { font-size: 0.95rem; margin-bottom: 10px; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 9px 22px;
  font-family: var(--serif); font-size: 1rem;
  background: var(--cherry); color: #fff; text-decoration: none;
  border: 2px solid var(--cherry-deep); border-radius: 24px;
  box-shadow: 0 3px 0 var(--cherry-deep); cursor: pointer; transition: all .12s;
}
.btn:hover { background: var(--cherry-dark); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cherry-deep); }
.btn-outline {
  background: transparent; color: var(--cherry-dark);
  border: 2px solid var(--cherry); box-shadow: 0 3px 0 rgba(196,30,58,.3);
}
.btn-outline:hover { background: var(--cream-dark); color: var(--cherry-dark); }
.btn-sm { padding: 6px 16px; font-size: 0.9rem; }

/* --- Gallery (scrapbook) --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.g-item {
  position: relative; background: #fff;
  border: 1px solid var(--cream-dark);
  padding: 10px 10px 14px; cursor: pointer;
  box-shadow: 3px 4px 8px rgba(110,15,28,.18);
  transition: transform .18s;
}
.g-item:nth-child(odd) { transform: rotate(-1.5deg); }
.g-item:nth-child(even) { transform: rotate(1.5deg); }
.g-item:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.g-item::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 58px; height: 18px; background: rgba(217,164,65,.55);
  border: 1px solid rgba(217,164,65,.7);
}
.g-item img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }

/* --- About / facts --- */
.about-info p { margin-bottom: 8px; }
.about-info strong { color: var(--cherry-dark); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact {
  background: var(--cream); border: 2px dotted var(--cherry); border-radius: 8px;
  padding: 10px; text-align: center;
}
.fact .label { font-family: var(--serif); font-size: 0.8rem; color: var(--cherry); display: block; }
.fact .value { font-family: var(--type); font-size: 1rem; }

/* --- Link / fave lists --- */
.list { list-style: none; }
.list li {
  padding: 9px 6px; border-bottom: 1px dashed var(--cream-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.list li:last-child { border-bottom: none; }
.list .desc { font-size: 0.82rem; color: var(--ink-soft); }
.rating { color: var(--cherry); letter-spacing: 1px; }

/* --- Forms --- */
label { font-family: var(--serif); font-size: 0.95rem; display: block; margin-bottom: 4px; color: var(--cherry-dark); }
.form-group { margin-bottom: 14px; }
input[type=text], input[type=email], textarea {
  width: 100%; padding: 9px 12px; font-family: var(--type); font-size: 1rem;
  background: #fff; color: var(--ink);
  border: 2px solid var(--cherry); border-radius: 8px; outline: none;
}
input:focus, textarea:focus { border-color: var(--cherry-deep); box-shadow: 0 0 0 3px rgba(196,30,58,.15); }
textarea { min-height: 120px; resize: vertical; }

/* --- Socials --- */
.socials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.social {
  background: var(--cream); border: 2px solid var(--cherry); border-radius: 8px;
  padding: 11px; text-align: center;
}
.social .label { font-family: var(--serif); font-size: 0.8rem; color: var(--cherry); display: block; margin-bottom: 2px; }

/* --- Decorative corner image --- */
.corner-img {
  position: absolute; width: 110px; pointer-events: none; z-index: 6;
  filter: drop-shadow(2px 3px 3px rgba(110,15,28,.3));
}

/* --- Footer --- */
.site-footer {
  margin-top: 10px; color: #fff; text-align: center;
  padding: 18px; font-family: var(--type); font-size: 0.9rem;
  border-top: 4px solid var(--cherry-deep);
}
.site-footer a { color: #fff; }

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(74,44,42,.88); align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; background: #fff; padding: 10px; border: 3px solid var(--cherry); border-radius: 6px; box-shadow: 0 0 30px rgba(0,0,0,.5); }

/* --- Responsive --- */
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--cream-card);
    border-bottom: 4px solid var(--cherry); padding: 8px; gap: 4px;
    box-shadow: 0 8px 14px rgba(110,15,28,.2);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .topbar-inner { position: relative; }
  .hero-body h1 { font-size: 2rem; }
  .facts-grid, .socials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  /* show decor as a centered little row on mobile (margins don't exist here) */
  .decor-row { display: flex; justify-content: center; align-items: center; gap: 0px; flex-wrap: wrap; margin: 0px 0 0px; }
  .corner-img {
    position: static; width: 80px !important; height: auto;
    top: auto; right: auto; bottom: auto; left: auto;
    transform: rotate(0deg) !important;
  }
}
