/*
Theme Name: Kikiam Theme
Theme URI: https://kikiam.com/
Author: OpenAI
Description: A lightweight WordPress theme for Kikiam.com with a food-focused homepage, recipe sections, and a custom favicon.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: kikiam-theme
*/

:root {
  --bg: #fffaf3;
  --paper: #fffdf9;
  --ink: #4b2d1f;
  --accent: #d98324;
  --accent-dark: #aa5f13;
  --muted: #7a6756;
  --line: #ecd8c0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.branding__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #f0d4af;
  background: #fff;
}
.branding__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
}
.branding__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  font-weight: 700;
}
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  background: linear-gradient(rgba(60, 38, 20, 0.22), rgba(60, 38, 20, 0.55)), url('assets/images/kikiam-hero.jpg') center/cover no-repeat;
}
.hero__content {
  padding: 84px 0 68px;
  color: #fffdf9;
}
.hero__card {
  max-width: 640px;
  background: rgba(75, 45, 31, 0.78);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.05;
  margin: 14px 0 10px;
}
.hero p {
  font-size: 1.08rem;
  margin: 0 0 20px;
}
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid transparent;
}
.button--primary {
  background: var(--accent);
  color: #fff;
}
.button--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.section {
  padding: 64px 0;
}
.section--paper {
  background: var(--paper);
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0 0 10px;
}
.section-intro {
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 28px;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(80, 49, 27, 0.05);
}
.card h3 {
  margin-top: 0;
  font-size: 1.5rem;
}
.recipe-list, .ingredient-list {
  margin: 0;
  padding-left: 20px;
}
.recipe-list li, .ingredient-list li { margin-bottom: 10px; }

.ingredients-card {
  overflow: hidden;
}
.ingredients-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.ingredients-copy {
  min-width: 0;
  display: flex;
  align-items: center;
}
.ingredients-media {
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  background: #fff8ec;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(80, 49, 27, 0.06);
}
.ingredients-media img {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.ingredients-media figcaption {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tip-box {
  border-left: 5px solid var(--accent);
  padding: 18px 20px;
  background: #fff8ec;
  border-radius: 10px;
}

.history-grid {
  margin-top: 28px;
}
.history-card {
  position: relative;
  overflow: hidden;
}
.history-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: #fff0dc;
  color: var(--accent-dark);
  font-weight: 900;
}
.history-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  background: #4b2d1f;
  color: #fff7f0;
  padding: 24px 0;
}
.site-footer a { color: #ffd8a4; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.footer-note {
  color: #e7d5c5;
}
@media (max-width: 900px) {
  .grid--2, .grid--3, .footer-grid { grid-template-columns: 1fr; }
  .site-header__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .ingredients-layout {
    grid-template-columns: 1fr;
  }
  .ingredients-copy {
    display: block;
  }
  .ingredients-media {
    min-height: 0;
  }
  .ingredients-media img {
    aspect-ratio: 4 / 3;
  }
}
