﻿:root {
  color-scheme: light;
  --ink: #1f2523;
  --muted: #63706a;
  --line: #d8ddd7;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --green: #28745a;
  --blue: #245d8f;
  --rust: #a5532b;
  --gold: #bd8b20;
  --shadow: 0 18px 48px rgba(31, 37, 35, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 244, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 170px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--rust));
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }

.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nav a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); background: #eef1eb; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(56px, 9vw, 104px) 0 48px;
}
.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy p:last-child { max-width: 660px; color: var(--muted); font-size: 18px; }
.eyebrow { margin: 0 0 10px; color: var(--rust); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.search-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.search-panel label { display: block; margin-bottom: 8px; font-weight: 700; }
.search-row { display: grid; grid-template-columns: 1fr 40px; gap: 8px; }
.search-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: #fbfcf9;
}
.search-row button, .filter {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.search-row button:hover, .filter:hover { border-color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filter { padding: 8px 10px; color: var(--muted); }
.filter.is-active { color: #fff; background: var(--green); border-color: var(--green); }

.section { padding: 42px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: 0; }
.count { color: var(--muted); margin: 0; }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.card h3 { margin: 0; font-size: 22px; letter-spacing: 0; }
.card p { margin: 0; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-self: start; }
.tag { padding: 3px 7px; border-radius: 999px; background: #eef1eb; color: #52605a; font-size: 12px; }
.card-actions { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }
.open-detail { border: 0; padding: 8px 10px; border-radius: 7px; color: #fff; background: var(--blue); cursor: pointer; }
.open-detail:hover { background: #174a75; }

.map-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.concept-list { display: grid; gap: 8px; position: sticky; top: 84px; }
.concept-list button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.concept-list button.is-active { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.detail {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 3vw, 30px);
}
.detail h3 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 48px); letter-spacing: 0; }
.detail .summary { color: var(--muted); max-width: 780px; }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.recipe-box { border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: #fbfcf9; }
.recipe-box h4 { margin: 0 0 8px; color: var(--green); }
.recipe-box ul { margin: 0; padding-left: 20px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.links span { border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; color: var(--muted); background: #fff; }

.method { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.recipe-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.recipe-list li { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.recipe-list strong, .recipe-list span { display: block; }
.recipe-list span { margin-top: 6px; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(18px, 4vw, 56px); color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero, .map-layout, .method { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 44px; }
  .concept-grid, .recipe-grid, .recipe-list { grid-template-columns: 1fr; }
  .concept-list { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  main { width: min(100% - 24px, 1180px); }
  .hero-copy h1 { font-size: 38px; }
  .concept-list { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
