:root {
  --bg: #f5efe8;
  --bg-soft: #fffaf4;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-strong: #ffffff;
  --text: #1d1a17;
  --muted: #6a5b4d;
  --line: rgba(34, 20, 12, 0.08);
  --accent: #c75b2f;
  --accent-strong: #a8411f;
  --shadow: 0 20px 50px rgba(52, 33, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(201, 119, 64, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, #f8f2ea 0%, #fffdfb 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb058, #d74c2c);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-wrap h1 {
  margin: 4px 0 0;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

.nav-chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-chip:hover,
.nav-chip.is-active {
  background: var(--accent);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
}

.main-layout {
  display: grid;
  gap: 24px;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.label {
  display: inline-block;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(199, 91, 47, 0.12);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 2vw + 1rem, 3.1rem);
  line-height: 1.1;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.primary-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #e28e3d);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 15px 30px rgba(199, 91, 47, 0.2);
  cursor: pointer;
}

.feature-media {
  min-height: 320px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(31, 20, 12, 0.12);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-top: 8px;
}

.section-header h3 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 1.3vw + 1rem, 2.2rem);
}

.search-box {
  min-width: min(100%, 360px);
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.8);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(42, 30, 17, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(42, 30, 17, 0.1);
}

.card-image-wrap {
  background: #efe7df;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 18px 18px 16px;
}

.card-tag {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(199, 91, 47, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.card-title {
  margin: 12px 0 10px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.card-summary {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.75;
}

.card-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #847861;
  font-size: 0.76rem;
}

.card-activity {
  color: var(--accent-strong);
  text-align: right;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 24px 2px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand {
  display: grid;
  gap: 5px;
}

.footer-brand strong {
  color: var(--text);
  font-size: 0.95rem;
}

.footer-brand span {
  max-width: 280px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.footer-copyright {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {
  .feature-panel {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px 36px;
  }

  .topbar {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 16px;
    right: 14px;
  }

  .brand-wrap {
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    z-index: 5;
    top: 72px;
    left: 14px;
    right: 14px;
    width: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    justify-content: stretch;
  }

  .nav-chip {
    width: 100%;
    text-align: left;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
