:root {
  --cream: #fff8e7;
  --paper: #fffdf5;
  --ink: #3d3420;
  --muted: #6b5e3a;
  --lemon: #f3d34a;
  --gold: #c9a61a;
  --mustard: #c4a02a;
  --border: #f0e2a8;
}

html.dark,
body.dark {
  --cream: #16130e;
  --paper: #1e1a14;
  --ink: #f4ecd0;
  --muted: #c9bb8a;
  --lemon: #c9a61a;
  --gold: #e0c04a;
  --mustard: #e6c14a;
  --border: #3a3324;
  background: #16130e;
  color: #f4ecd0;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--gold);
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.icon-btn.menu-btn {
  width: 64px;
  height: 64px;
  font-size: 2.6rem;
  font-weight: 700;
}

.nav-links {
  display: none;
  position: absolute;
  top: 72px;
  right: 12px;
  z-index: 120;
  width: 210px;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.nav-links.open { display: flex; }

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.nav-links a:last-child { border-bottom: 0; }
.nav-links a:hover { background: var(--cream); }

.search-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.search-wrap input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px 0 36px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.88rem;
}

.search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-drop {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  z-index: 50;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: none;
  padding: 4px 0;
  display: none;
}

.search-drop a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.search-drop a:hover { background: var(--cream); }
.search-drop small {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 800px) {
  .nav {
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo actions"
      "search search";
  }
  .logo { grid-area: logo; }
  .nav-actions { grid-area: actions; }
  .search-wrap {
    grid-area: search;
    max-width: none;
    justify-self: stretch;
  }
}

.hero { text-align: center; padding: 48px 16px 28px; }
.hero h1 {
  font-family: "Great Vibes", cursive;
  color: var(--mustard);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
}
.hero h1 span { display: block; }
.sub {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid-feat {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  padding: 0 16px 40px;
}
@media (min-width: 800px) {
  .grid-feat {
    grid-template-columns: 1.4fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .p { padding: 10px 12px 14px; }
.tag {
  display: inline-block;
  background: var(--lemon);
  color: #3d3420;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.small-grid img { aspect-ratio: 1; }

.cats {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 10px 16px 36px;
}
.cats a {
  width: 84px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cats img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin: 0 auto 8px;
}

.latest { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.latest h2 {
  font-family: "Cormorant Garamond", serif;
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
  font-weight: 500;
}
.lg { display: grid; gap: 14px; }
@media (min-width: 700px) {
  .lg { grid-template-columns: repeat(3, 1fr); }
}

.about {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  padding: 40px 16px;
}
.about-in { max-width: 860px; margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 800px) {
  .about-in { grid-template-columns: 1fr 1fr; align-items: center; }
}
.about img {
  border-radius: 16px;
  border: 3px solid var(--gold);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.muted { color: var(--muted); font-size: 0.92rem; }

footer {
  background: var(--lemon);
  text-align: center;
  padding: 36px 16px;
  color: #3d3420;
}
.flogo { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; }
.flinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 14px 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }
.legal h1 { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; }
.legal h2 { font-family: "Cormorant Garamond", serif; margin-top: 22px; }
.legal p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }
.box {
  margin-top: 28px;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
}
.email { font-weight: 700; font-size: 1.15rem; margin: 14px 0; }

article.recipe { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
article.recipe h1 { font-family: "Cormorant Garamond", serif; font-size: 2.3rem; }
article.recipe img.heroimg {
  width: 100%;
  border-radius: 12px;
  margin: 18px 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
article.recipe h3 { margin-top: 18px; font-size: 1.05rem; }
article.recipe p { margin-top: 10px; }
article.recipe ol,
article.recipe ul { padding-left: 20px; margin-top: 8px; }
article.recipe li { margin: 6px 0; }
blockquote {
  border-left: 4px solid var(--gold);
  padding: 10px 14px;
  margin: 16px 0;
  background: var(--paper);
}