html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-image: url("../images/patterns/fishing-silhouettes.svg");
  background-repeat: repeat;
  background-size: 600px 420px;
  background-attachment: fixed;
  background-position: center top;
}

/* Article typography spacing for readable blog content */
.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

.prose p {
  margin-top: 0.9em;
  margin-bottom: 0.9em;
  line-height: 1.75;
}

.prose ul,
.prose ol,
.prose blockquote {
  margin-top: 1em;
  margin-bottom: 1em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose blockquote {
  margin-left: 0;
}

#main-nav[data-open="true"] {
  display: block;
}

@media (max-width: 767px) {
  #main-nav {
    width: 100%;
  }
}

/* Header links as pill buttons */
header #menu-toggle {
  border-color: rgba(15, 42, 67, 0.28);
  background: rgba(15, 42, 67, 0.05);
  color: #0f2a43;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

header #menu-toggle:hover {
  background: rgba(31, 79, 59, 0.12);
  border-color: rgba(31, 79, 59, 0.35);
  transform: translateY(-1px);
}

header #main-nav ul {
  align-items: center;
}

header #main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 42, 67, 0.2);
  border-radius: 9999px;
  background: rgba(15, 42, 67, 0.04);
  color: #1f2937;
  padding: 0.38rem 0.78rem;
  font-size: 0.82rem;
  line-height: 1.1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

header #main-nav a:hover {
  background: rgba(31, 79, 59, 0.12);
  border-color: rgba(31, 79, 59, 0.34);
  color: #0f2a43;
  transform: translateY(-1px);
}

header #main-nav a.text-forest {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(31, 79, 59, 0.42);
  color: #1f4f3b;
}

/* Footer links as visible pill buttons */
footer.bg-wood > div {
  row-gap: 0.75rem;
}

footer.bg-wood nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer.bg-wood nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

footer.bg-wood nav a:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(110, 231, 183, 0.65);
  color: #ffffff;
  transform: translateY(-1px);
}

footer.bg-wood nav[aria-label="Правовые документы"] a {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(110, 231, 183, 0.38);
  color: #d1fae5;
  font-size: 0.8rem;
}

footer.bg-wood > div > a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
}
