@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #f7f3e8;
  --bg-soft: #efe8d5;
  --text: #223127;
  --muted: #536658;
  --brand: #2e6a43;
  --brand-strong: #1f4f32;
  --accent: #c7743e;
  --line: #d6ccb8;
  --card: #fffdfa;
  --shadow: 0 18px 40px rgba(34, 49, 39, 0.1);
  --radius: 18px;
  --shell: min(1100px, calc(100% - 2.4rem));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(199, 116, 62, 0.12), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(46, 106, 67, 0.16), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #f4efdf 100%);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(34, 49, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 49, 39, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.18;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.topbar {
  height: 6px;
  background: linear-gradient(90deg, var(--brand), #3f8e5b, #7ca560, var(--accent));
}

.site-shell {
  width: var(--shell);
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
}

.brand-text {
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.94rem;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--bg-soft);
  border-color: var(--line);
  transform: translateY(-1px);
}

.site-nav a.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
}

#content-root {
  width: var(--shell);
  margin: 0 auto;
  padding-bottom: 3rem;
}

.hero {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy,
.hero-media {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.hero-media {
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  max-height: 290px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.9rem, 2.5vw, 2.65rem);
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

p {
  margin-top: 0;
}

.content-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  animation: rise 500ms ease both;
}

.block:nth-child(2) {
  animation-delay: 90ms;
}

.block:nth-child(3) {
  animation-delay: 180ms;
}

.block ul {
  margin: 0;
  padding-left: 1.2rem;
}

.block-wide {
  margin-top: 1rem;
}

.tips-block {
  margin-top: 1rem;
  border-left: 6px solid var(--accent);
}

.tips-block li + li {
  margin-top: 0.35rem;
}

.related-grid,
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.related-card,
.sitemap-card {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.sitemap-card h3 {
  margin-bottom: 0.4rem;
}

.sitemap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.related-card:hover,
.related-card:focus-visible,
.sitemap-card:hover,
.sitemap-card:focus-visible {
  transform: translateY(-2px);
  border-color: #bba98b;
  box-shadow: 0 12px 24px rgba(34, 49, 39, 0.1);
}

#site-footer {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 232, 213, 0.4), rgba(239, 232, 213, 0.8));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  padding: 1.35rem 0 0.8rem;
}

.footer-title {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.footer-text {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-content: flex-start;
}

.footer-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.86rem;
  background: #fff;
}

.footer-legal {
  padding: 0.55rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .related-grid,
  .sitemap-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: 70px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.6rem;
    display: none;
    z-index: 30;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-shell {
    position: relative;
  }

  .content-grid,
  .related-grid,
  .sitemap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  #content-root {
    width: min(1100px, calc(100% - 1.5rem));
  }
}
