/* ============================================================
   Уголок сада — тёплый дачный стиль
   Палитра: зелёный / кремовый / терракота.
   Только системные шрифты, никаких внешних ресурсов.
   ============================================================ */

:root {
  --green-900: #2e4626;
  --green-800: #3a5a30;
  --green-700: #476b3c;
  --terra: #b95f38;
  --terra-dark: #9d4e2b;
  --cream: #faf7ee;        /* фон страницы */
  --cream-card: #fffdf6;   /* фон карточек и шапки */
  --cream-deep: #f3edda;   /* фон футера */
  --line: #e6ddc6;
  --ink: #3a4231;          /* основной текст */
  --muted: #8b8570;
  --serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
}

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

a { color: var(--green-700); }
a:hover { color: var(--terra-dark); }

a:focus-visible {
  outline: 2px dashed var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Шапка ---------- */

.site-header {
  background: var(--cream-card);
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--terra);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark { width: 30px; height: 30px; flex: none; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--green-900);
  letter-spacing: .01em;
}

.brand:hover .brand-name { color: var(--green-700); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  font-family: var(--sans);
  font-size: .92rem;
}

.site-nav a {
  color: var(--green-800);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--terra-dark);
  border-bottom-color: var(--terra);
}

/* ---------- Главная: шапка-приветствие ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 12px 44px;
  align-items: center;
  padding: 46px 0 10px;
}

.hero h1 {
  margin: 0 0 .2em;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.7rem);
  line-height: 1.15;
  color: var(--green-900);
  font-weight: bold;
}

.tagline {
  margin: 0 0 1.1em;
  font-family: var(--sans);
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--terra-dark);
}

.lead { margin: 0; font-size: 1.05rem; }

.hero-photo { margin: 0; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(74, 62, 38, .14);
}

/* ---------- Секции главной ---------- */

.section { padding: 34px 0 6px; }

.section > h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  color: var(--green-900);
}

.section > h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--terra);
}

/* Карточки «Последние записи» */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(74, 62, 38, .13);
}

.card-photo { display: block; }

.card-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 2px 0 .35em;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h3 a { text-decoration: none; color: var(--green-800); }
.card-body h3 a:hover { color: var(--terra-dark); }

.card-body p { margin: 0 0 .9em; font-size: .95rem; line-height: 1.6; }

.card-body .more { margin-top: auto; }

.more {
  font-family: var(--sans);
  font-size: .85rem;
}

.more a {
  color: var(--terra-dark);
  text-decoration: none;
  font-weight: 600;
}

.more a::after { content: " →"; transition: margin .15s ease; }
.more a:hover::after { margin-left: 4px; }

/* Рубрики по сезонам */

.seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px 40px;
}

.season h3 {
  margin: 14px 0 6px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra-dark);
}

.season ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.season li { margin: .45em 0; }

.season .date {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Страница статьи ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 38px 22px 8px;
}

.article h1 {
  margin: 0 0 .25em;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  line-height: 1.25;
  color: var(--green-900);
}

.date {
  font-family: var(--sans);
  font-size: .84rem;
  color: var(--terra-dark);
}

.article .date {
  display: block;
  margin-bottom: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cover { margin: 22px 0 30px; }

.cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(74, 62, 38, .12);
}

.article p { margin: 0 0 1.15em; }

.article ul, .article ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.article li { margin: .4em 0; }
.article li::marker { color: var(--terra); }

.article h2 {
  margin: 1.7em 0 .5em;
  font-size: 1.35rem;
  color: var(--green-800);
}

.article h3 {
  margin: 1.6em 0 .5em;
  font-size: 1.14rem;
  color: var(--green-800);
}

.article blockquote {
  margin: 1.5em 0;
  padding: .2em 0 .2em 1.1em;
  border-left: 3px solid var(--terra);
  color: #5c6049;
  font-style: italic;
}

figure.photo { margin: 1.9em 0; }

figure.photo img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

figure.photo figcaption {
  padding-top: 8px;
  text-align: center;
  font-size: .86rem;
  font-style: italic;
  color: var(--muted);
}

.back-nav {
  margin: 2.4em 0 0;
  font-family: var(--sans);
  font-size: .92rem;
}

.back-nav a { text-decoration: none; }
.back-nav a::before { content: "« "; }

/* ---------- Футер ---------- */

.site-footer {
  margin-top: 56px;
  padding: 26px 20px 32px;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--sans);
  font-size: .88rem;
  color: #7c7660;
}

/* ---------- Адаптивность ---------- */

@media (max-width: 720px) {
  body { font-size: 16.5px; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px;
  }

  .site-nav { width: 100%; justify-content: flex-start; gap: 2px 16px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 30px;
  }

  .hero-photo { order: 2; }

  .cards { grid-template-columns: 1fr; gap: 20px; }

  .section { padding: 26px 0 4px; }

  .article { padding: 28px 18px 6px; }

  .cover img { aspect-ratio: 16 / 10; }
}

@media (max-width: 380px) {
  .site-nav { font-size: .88rem; }
  .hero-photo img { aspect-ratio: 1 / 1; }
}
