:root {
  --ink: #2c1810;
  --chocolate: #3d2314;
  --espresso: #1c100c;
  --cream: #f7f0e6;
  --paper: #fffaf3;
  --foam: #fbf6ef;
  --gold: #b8894a;
  --gold-soft: #e6d3b3;
  --blush: #edd5c6;
  --muted: #7d6759;
  --line: rgba(61, 35, 20, 0.12);
  --shadow: 0 18px 40px rgba(44, 24, 16, 0.1);
  --radius: 22px;
  --max: 1120px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(900px 280px at 8% -8%, rgba(184, 137, 74, 0.16), transparent 55%),
    radial-gradient(700px 240px at 100% 0%, rgba(237, 213, 198, 0.45), transparent 50%),
    var(--cream);
}

img { max-width: 100%; height: auto; }

a { color: var(--chocolate); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--espresso);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.banner {
  display: block;
  background: #120800;
}
.banner img {
  display: block;
  width: min(960px, 100%);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--chocolate);
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--espresso);
  color: #faf3c5;
}

.search-mini {
  display: flex;
  gap: 0.4rem;
}
.search-mini input {
  border: 1px solid var(--line);
  background: var(--foam);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-width: 180px;
  font: inherit;
}
.search-mini button,
.btn {
  border: 0;
  background: var(--espresso);
  color: #faf3c5;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  color: var(--chocolate);
  border: 1px solid var(--line);
}

.hero-copy {
  padding: 2.4rem 0 0.5rem;
  text-align: center;
}
.kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
h1, h2, h3, .post-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.hero-copy h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.lede {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: 1.5rem 0 4rem;
}
.layout.has-aside {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card[hidden],
[data-recipe-card][hidden],
[hidden] {
  display: none !important;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(44, 24, 16, 0.16);
  text-decoration: none;
  color: inherit;
}
.card-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--blush), var(--gold-soft));
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body { padding: 1rem 1.1rem 1.15rem; }
.card-body h2, .card-body h3 { font-size: 1.45rem; }
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}
.excerpt { color: var(--muted); margin: 0; font-size: 0.98rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 1.4rem;
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--chocolate);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
  cursor: pointer;
}
.chip.is-on, .chip:hover { background: var(--espresso); color: #faf3c5; border-color: var(--espresso); }
.chip-count { opacity: 0.7; font-size: 0.8em; }

.recipe-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-size: 1.1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.article {
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.article .post-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1.4rem; }
.tag {
  display: inline-block;
  text-decoration: none;
  background: var(--foam);
  border: 1px solid var(--line);
  color: var(--chocolate);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.86rem;
}
.tag:hover { background: var(--espresso); color: #faf3c5; }

.entry p { margin: 0 0 1rem; }
.entry img {
  display: block;
  margin: 1.1rem auto;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(44,24,16,.12);
}
.entry strong { font-family: var(--serif); font-size: 1.25rem; }

aside {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 5.5rem;
}
aside h2 { font-size: 1.5rem; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { border-top: 1px solid var(--line); }
.recent-list a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0;
  color: var(--ink);
}
.recent-list a:hover { color: var(--gold); }

.about-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.about-grid img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pager a { text-decoration: none; font-weight: 600; }

.site-footer {
  background: var(--espresso);
  color: #f3e6d4;
  padding: 2rem 0;
  margin-top: 1rem;
}
.site-footer a { color: #faf3c5; }
.site-footer p { margin: 0.3rem 0; }

.empty { text-align: center; color: var(--muted); padding: 2rem; }

@media (max-width: 860px) {
  .layout.has-aside { grid-template-columns: 1fr; }
  aside { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  .search-mini { width: 100%; }
  .search-mini input { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
