:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --text: #2a211c;
  --muted: #7b6e64;
  --line: #ece3d8;
  --coffee: #9a5530;
  --coffee-soft: #f5e6da;
  --tea: #4f7a4a;
  --tea-soft: #e4efe1;
  --accent: var(--coffee);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 24px rgba(60, 40, 20, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f; --surface: #211b16; --text: #efe6db; --muted: #a4968a; --line: #332a22;
    --coffee: #e29a6b; --coffee-soft: #3a2619; --tea: #9cc493; --tea-soft: #1f2e1d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }

/* шапка */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .in { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 19px var(--serif); }
.brand svg { width: 30px; height: 30px; color: var(--coffee); }
.topbar nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 999px; }
.topbar nav a:hover { background: var(--surface); color: var(--text); }

/* обложка */
.hero { max-width: 1040px; margin: 0 auto; padding: 64px 20px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font: 600 clamp(36px, 5.5vw, 58px)/1.08 var(--serif); margin: 0 0 18px; letter-spacing: -.01em; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.hero .cta { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn.coffee { background: var(--coffee); color: #fff; }
.btn.tea { background: var(--tea-soft); color: var(--tea); }
.hero .art { aspect-ratio: 1; border-radius: 32px; background: radial-gradient(120% 90% at 30% 20%, var(--coffee-soft), transparent 60%), radial-gradient(90% 80% at 80% 90%, var(--tea-soft), transparent 60%), var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.hero .art svg { width: 62%; color: var(--coffee); }

/* разделы и карточки */
.section { max-width: 1040px; margin: 0 auto; padding: 32px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font: 600 30px var(--serif); margin: 0; }
.section-head span { color: var(--muted); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60,40,20,.06), 0 16px 36px rgba(60,40,20,.1); }
.card h3 { font: 600 21px/1.3 var(--serif); margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card .foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; }
.tag { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag.coffee { background: var(--coffee-soft); color: var(--coffee); }
.tag.tea { background: var(--tea-soft); color: var(--tea); }

/* статья */
.article { max-width: 700px; margin: 0 auto; padding: 48px 20px 24px; }
.article h1 { font: 600 clamp(30px, 4.5vw, 44px)/1.15 var(--serif); margin: 12px 0 10px; letter-spacing: -.01em; }
.article .meta { color: var(--muted); font-size: 14.5px; margin-bottom: 32px; }
.article h2 { font: 600 24px var(--serif); margin: 38px 0 8px; }
.article p { font-size: 18px; line-height: 1.75; }
.article blockquote { margin: 28px 0; padding: 18px 22px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font: italic 18px/1.6 var(--serif); box-shadow: var(--shadow); }
.article.tea { --accent: var(--tea); }
.back { display: inline-block; margin-top: 18px; text-decoration: none; font-weight: 600; }

/* подвал */
.site-foot { border-top: 1px solid var(--line); margin-top: 48px; }
.site-foot .in { max-width: 1040px; margin: 0 auto; padding: 28px 20px 44px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero .art { max-width: 320px; width: 100%; margin: 0 auto; }
  .topbar nav a { padding: 6px 8px; }
}
