:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --paper: #ffffff;
  --paper-soft: #f4f0e8;
  --line: #e7dfd2;
  --text: #201c17;
  --muted: #746a5d;
  --accent: #a85634;
  --accent-strong: #7d3d24;
  --green: #496b4a;
  --shadow: 0 18px 48px rgba(52, 38, 24, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
  font-size: 0.93rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-strong);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: 36px 0 26px;
}

.hero-copy {
  padding: 32px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.16;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

p {
  margin: 0 0 1em;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-panel {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(168, 86, 52, 0.1), rgba(73, 107, 74, 0.08)),
    var(--paper);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kitchen-lines {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.kitchen-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(168, 86, 52, 0.18);
}

.kitchen-line:nth-child(2) {
  width: 78%;
  background: rgba(73, 107, 74, 0.2);
}

.kitchen-line:nth-child(3) {
  width: 58%;
  background: rgba(32, 28, 23, 0.12);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.meta-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.meta-value {
  display: block;
  font-weight: 750;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.button:hover {
  color: #fff;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button.secondary:hover {
  color: #fff;
}

.section {
  margin-top: 42px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(52, 38, 24, 0.05);
  padding: 18px;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  border-color: rgba(168, 86, 52, 0.4);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card .recipe-title {
  margin-bottom: 8px;
}

.card-footer {
  margin-top: 14px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill,
.tag-filter {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--muted);
  padding: 4px 10px;
  font-size: 0.86rem;
  text-decoration: none;
}

.tag-filter {
  cursor: pointer;
}

.tag-filter.is-active {
  border-color: var(--accent);
  background: #fff4ee;
  color: var(--accent-strong);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 24px;
  align-items: start;
}

.note-box,
.ad-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 18px;
}

.ad-box {
  color: var(--muted);
  font-size: 0.92rem;
}

.pr-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.recipe-header {
  margin-bottom: 28px;
}

.breadcrumb {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.recipe-body {
  display: grid;
  gap: 26px;
}

.content-block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.content-block h2 {
  font-size: 1.35rem;
}

.ingredients,
.steps {
  margin: 0;
  padding-left: 1.35em;
}

.ingredients li,
.steps li {
  margin: 0.35em 0;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
  font-weight: 700;
}

.summary-list dd {
  margin: 0;
}

.search-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow);
}

.search-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
}

.search-input:focus {
  outline: 3px solid rgba(168, 86, 52, 0.18);
  border-color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--muted);
  padding: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 820px) {
  .header-inner,
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: grid;
    gap: 14px;
  }

  .site-nav {
    justify-content: start;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy {
    padding: 12px 0 0;
  }

  .grid,
  .grid.two,
  .recipe-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page,
  .narrow,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .site-nav {
    gap: 8px 12px;
    font-size: 0.9rem;
  }

  .hero-panel {
    min-height: 280px;
    padding: 18px;
  }

  .meta-grid,
  .summary-list div {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }
}
