:root {
  --bg: var(--bg-color);
  --paper: #ffffff;
  --ink: #1a231f;
  --muted: #6b756f;
  --line: #dfe8e3;
  --accent: var(--primary-color);
  --accent-deep: #3d9a7c;
  --accent-soft: #e8f6f0;
  --mint-card: #eef8f3;
  --tag: #f0d98a;
  --shadow: 0 8px 24px rgba(45, 90, 72, 0.08);
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 720px;
  --nav-h: 64px;
  --img-w: 360px;
  --img-h: 280px;
  --img-ratio: 360 / 280;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 10% -10%, #dff3ea 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, #eaf6f1 0%, transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
.slide img,
.news-card img,
.feature img,
.cover img,
.inline-photos img {
  width: var(--img-w);
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 246, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223, 232, 227, 0.8);
}
.bar {
  max-width: var(--max);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 999px;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 22px; height: 22px; }

.m-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 14px 8px;
}

.home-intro {
  margin: 2px 2px 14px;
}
.home-h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.home-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Hero carousel — CSS scroll-snap (swipeable, no JS) */
.hero-wrap {
  background: var(--mint-card);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #2a3d35;
}
.slides {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  scroll-margin: 0;
}
.slide > a {
  display: block;
  position: relative;
  color: inherit;
}
.slide img {
  width: 100%;
  pointer-events: none;
  background: #2a3d35;
}
.slide-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 28px;
  background: linear-gradient(transparent, rgba(12, 28, 22, 0.82));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.slide-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.dots {
  position: absolute;
  left: 4px;
  bottom: 2px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
}
.dots .dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  display: grid;
  place-items: center;
}
.dots .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: width 0.2s ease, background 0.2s ease;
}
.dots .dot:hover::after,
.dots .dot:focus-visible::after {
  background: #fff;
}
.dots .dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.dots .dot.is-active::after {
  width: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

/* Category pills */
.cat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}
.cat-pills a.is-active,
.cat-pills a:hover {
  background: var(--accent);
  color: #fff;
}

/* Quick topics */
.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 16px;
}
.quick {
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(223, 232, 227, 0.7);
}
.quick span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 700;
}
.quick strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 2px 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
}
.section-head a {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}

/* Horizontal news cards (screenshot style) */
.news-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.news-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  background: var(--paper);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(223, 232, 227, 0.65);
  align-items: start;
}
.news-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--accent-soft);
}
.news-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
}
.news-body strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}
.pill-tag {
  display: inline-block;
  background: var(--tag);
  color: #5a4a18;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
}
.stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.stat i {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
}
.stat svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.feature {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(223, 232, 227, 0.65);
}
.feature img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: var(--accent-soft);
}
.feature strong {
  display: block;
  padding: 10px 12px 4px;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature em {
  display: block;
  padding: 0 12px 12px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

/* Tip banner */
.tip-banner {
  display: block;
  background: linear-gradient(135deg, #5db89a 0%, #7ec9b0 55%, #a8ddc8 100%);
  color: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.tip-banner small {
  display: block;
  opacity: 0.9;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tip-banner strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.tip-banner span {
  display: block;
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.4;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav nav {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.bottom-nav a svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav a.is-active { color: var(--accent); }
.bottom-nav a.is-active svg { stroke-width: 2; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 18px 16px 10px;
  border-top: 1px solid var(--line);
}
.about { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 14px; font-size: 13px; }
.foot-links a { color: var(--accent-deep); font-weight: 600; }
.cta {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 650;
}
.fine { margin: 14px 0 0; color: #9aa59e; font-size: 12px; }

/* Page / article */
.page-title { padding: 6px 2px 14px; }
.kicker {
  margin: 0 0 6px;
  color: var(--accent-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}
.page-title h1,
.article-title {
  font-weight: 750;
  line-height: 1.25;
  margin: 0 0 8px;
}
.page-title h1 { font-size: 28px; }
.page-title p { margin: 0; color: var(--muted); font-size: 14px; }
.article-title { font-size: 26px; }
.article-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
  padding: 10px 12px;
  line-height: 1.4;
  background: var(--mint-card);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, #fff);
}
.article-meta i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-deep);
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 auto;
}
.article-meta .meta-text {
  flex: 1 1 auto;
  min-width: 0;
}
.article-meta .meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 650;
}
.article-meta svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px;
  max-height: 15px;
  flex: 0 0 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  overflow: visible;
}
.cover {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.lede {
  font-size: 16px;
  color: #334039;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--mint-card);
  border-radius: 14px;
}
.article-body p,
.prose p { margin: 0 0 14px; }
.article-body h2,
.prose h2 {
  font-size: 20px;
  margin: 22px 0 10px;
}
.article-body ul,
.prose ul { margin: 0 0 14px; padding-left: 1.2em; }
.article-body li,
.prose li { margin: 6px 0; }
.inline-photos {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}
.inline-photos img { border-radius: 14px; width: 100%; }
.source-line { color: var(--muted); font-size: 13px; }
.source-line a { color: var(--accent-deep); text-decoration: underline; }
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.crumbs a { color: var(--accent-deep); font-weight: 600; }

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  box-shadow: var(--shadow);
}
.search-field svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
}
.search-form button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 650;
}
.search-hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.search-hint a {
  color: var(--accent-deep);
  margin-right: 8px;
  text-decoration: underline;
  font-weight: 600;
}
.search-count { font-size: 13px; color: var(--muted); margin: 10px 0; }

.menu-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.menu-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(223, 232, 227, 0.65);
  display: grid;
  gap: 6px;
}
.menu-card strong { font-size: 18px; }
.menu-card span { color: var(--muted); font-size: 13px; }
.menu-card em {
  color: var(--accent-deep);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.chip {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }

@media (min-width: 720px) {
  .m-main { padding: 18px 20px 10px; }
  .slide img { height: 280px; }
  .slide-copy strong { font-size: 22px; }
  .news-card { grid-template-columns: 120px 1fr; }
  .news-card img { width: 120px; height: 120px; }
  .news-body { min-height: 120px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(n+5) { display: none; }
  .feature-grid .feature:nth-child(-n+3) { display: block; }
  .quick-row { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .inline-photos { grid-template-columns: 1fr 1fr; }
  .article-title { font-size: 32px; }
  .page-title h1 { font-size: 34px; }
}

@media (max-width: 719px) {
  .logo { font-size: 20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
