:root {
  --bg: #f5efe4;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: #fffaf2;
  --text: #1f1a17;
  --muted: #665c55;
  --line: rgba(31, 26, 23, 0.12);
  --accent: #d45d39;
  --accent-dark: #8a341d;
  --forest: #224038;
  --shadow: 0 20px 60px rgba(31, 26, 23, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 93, 57, 0.16), transparent 32%),
    linear-gradient(180deg, #f8f3ea 0%, #efe4d3 100%);
}
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; border: 0; display: block; }
audio { width: 100%; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-heading { margin-bottom: 28px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent-dark);
  margin: 0 0 10px;
}
h1, h2, h3 { line-height: 1.05; margin: 0 0 12px; }
h1 { font-size: clamp(42px, 5vw, 68px); }
h2 { font-size: clamp(30px, 5vw, 52px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: 20px; max-width: 680px; }
.btn, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn:hover, .text-link:hover { transform: translateY(-1px); }
.btn-dark { background: var(--forest); color: #fff; }
.btn-light, .btn-outline { border: 1px solid var(--line); background: rgba(255,255,255,0.55); }
.btn-accent { background: var(--accent); color: #fff; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 243, 234, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 60px; height: 60px; object-fit: cover; border-radius: 18px; }
.brand strong, .site-footer strong { display: block; font-size: 18px; }
.brand span { color: var(--muted); font-size: 14px; }
.site-nav { display: flex; gap: 18px; }
.header-actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nav-toggle { display: none; }
.hero { padding: 54px 0 44px; }
.hero-grid, .contact-grid, .media-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-copy, .hero-visual, .about-card, .media-card, .post-card, .contact-card, .gallery-card, .post-detail {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-copy { padding: 32px; }
.hero-visual { overflow: hidden; min-height: 420px; }
.hero-visual img, .hero-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.hero-placeholder {
  background:
    linear-gradient(135deg, rgba(212, 93, 57, 0.65), rgba(34, 64, 56, 0.6)),
    url('/assets/images/grain.svg');
}
.about-card, .contact-card, .media-card, .post-card-body, .post-detail { padding: 28px; }
.post-grid, .gallery-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.post-card { overflow: hidden; }
.post-card img, .gallery-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.gallery-open {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gallery-card figcaption { padding: 14px 18px 18px; color: var(--muted); }
.stack { display: grid; gap: 18px; }
.responsive-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding-top: 56.25%;
}
.responsive-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.section-contacts { padding-bottom: 110px; }
.contact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.social-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
}
.site-footer { border-top: 1px solid var(--line); background: rgba(255, 250, 242, 0.7); }
.image-modal {
  width: min(900px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}
.image-modal::backdrop { background: rgba(22, 18, 15, 0.75); }
.image-modal-box {
  padding: 18px;
  background: #fff7ec;
  border-radius: 28px;
}
.modal-close {
  margin-left: auto;
  display: block;
  margin-bottom: 12px;
}
.empty-state { grid-column: 1 / -1; }
.post-layout { padding: 40px 0 80px; }
.post-cover { border-radius: 24px; margin: 18px 0 22px; }
.rich-text p, .rich-text ul, .rich-text ol, .rich-text blockquote { margin-bottom: 16px; }
.rich-text h2, .rich-text h3 { margin-top: 28px; }

@media (max-width: 900px) {
  .hero-grid, .contact-grid, .media-grid, .post-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 12px;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
  }
  .header-row {
    flex-wrap: wrap;
  }
}

.media-card iframe, .media-card video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #111; }
.media-card audio { margin-top: 12px; }
