
:root {
  --forest: #2f4a35;
  --forest-dark: #1f3324;
  --moss: #5d7a4a;
  --sand: #f6f1e7;
  --cream: #fffdf8;
  --wood: #8a5a35;
  --wood-light: #c9a27a;
  --text: #2b2b26;
  --muted: #6b6a60;
  --border: #e4dccb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wood); text-decoration: none; transition: color .2s, border-color .2s; }
a:hover { color: var(--forest); }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--forest-dark), var(--forest) 60%, var(--moss));
  color: #fff;
  text-align: center;
  padding: 64px 20px 72px;
  position: relative;
  border-bottom: 6px solid var(--wood-light);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 18px;
  background: radial-gradient(circle at 10px -2px, transparent 12px, var(--sand) 13px) repeat-x;
  background-size: 20px 18px;
}
.site-header h1 {
  max-width: 900px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.25;
  letter-spacing: .5px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Layout */
main {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}
article, .transition, .links-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(47,74,53,.07);
  padding: 36px 40px;
  margin-bottom: 30px;
}
article { border-top: 5px solid var(--wood-light); }

article h2, article h3, article h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  line-height: 1.3;
  margin: 1.6em 0 .6em;
}
article h2 { font-size: 1.75rem; border-bottom: 2px solid var(--border); padding-bottom: .3em; }
article h3 { font-size: 1.4rem; }
article h4 { font-size: 1.15rem; color: var(--wood); }
article > :first-child { margin-top: 0; }
article p, .transition p { margin-bottom: 1.1em; }
article ul, article ol { margin: 0 0 1.2em 1.5em; }
article li { margin-bottom: .4em; }
article a { border-bottom: 1px solid var(--wood-light); }
article a:hover { border-color: var(--forest); }
article img { max-width: 100%; height: auto; border-radius: 10px; }
article table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; display: block; overflow-x: auto; }
article th, article td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
article th { background: var(--sand); color: var(--forest); }
article blockquote {
  border-left: 4px solid var(--moss);
  background: var(--sand);
  padding: 12px 20px;
  margin: 0 0 1.2em;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}

.transition { background: var(--sand); border-left: 5px solid var(--moss); }
.transition > :last-child { margin-bottom: 0; }

/* Links block */
.links-block { padding: 32px 40px 24px; }
.links-block h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  font-size: 1.3rem;
  margin: 1.4em 0 .7em;
  padding-bottom: .35em;
  border-bottom: 2px solid var(--wood-light);
}
.links-block h3:first-child { margin-top: 0; }
.links-block ul {
  list-style: none;
  columns: 2;
  column-gap: 40px;
  margin-bottom: 1em;
}
.links-block li {
  break-inside: avoid;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.links-block li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.05em;
  width: 7px; height: 7px;
  background: var(--moss);
  border-radius: 50%;
}
.links-block a { color: var(--wood); word-break: break-word; }
.links-block a:hover { color: var(--forest); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: #cfd8c9;
  text-align: center;
  padding: 28px 20px;
  border-top: 6px solid var(--wood-light);
  margin-top: 30px;
  font-size: .95rem;
}

/* Responsive */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { padding: 44px 16px 56px; }
  main { padding: 28px 14px 10px; }
  article, .transition, .links-block { padding: 24px 20px; border-radius: 10px; }
  .links-block ul { columns: 1; }
}
