:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #14201a;
  --muted: #5a6a5e;
  --line: rgba(20, 32, 26, 0.14);
  --green: #2d5443;
  --green-dark: #14201a;
  --green-deeper: #0d1812;
  --brown: #5c4a36;
  --wash: #f4f6f1;
  --shadow: 0 18px 45px rgba(20, 32, 26, 0.12);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(45, 84, 67, 0.10) 0, transparent 360px),
    linear-gradient(180deg, var(--bg) 0, #f8f8f4 100%);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Aptos Display", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 760;
}

h2 {
  margin: 42px 0 12px;
  font-size: 31px;
  font-weight: 740;
}

h3 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 32, 26, 0.18);
  border-radius: 10px;
  background: #ffffff url("img/hiker-logo.png") center / 34px 34px no-repeat;
  box-shadow: 0 8px 18px rgba(20, 32, 26, 0.11);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--green-dark);
  border-radius: 7px;
  background: var(--green-dark);
  color: #ffffff;
  font-weight: 800;
}

.button.secondary {
  border-color: rgba(16, 20, 24, 0.2);
  background: transparent;
  color: var(--ink);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 40px;
  align-items: end;
  padding: 72px 0 44px;
}

.article-meta {
  margin-bottom: 18px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 850;
}

.lede {
  max-width: 820px;
  margin-bottom: 0;
  color: #384239;
  font-size: 22px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-deeper);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.article-body {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto 76px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-body p,
.article-body li {
  color: #314037;
  font-size: 18px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.pull {
  margin: 34px 0;
  padding: 24px;
  border-left: 5px solid var(--green);
  background: var(--wash);
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.32;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 78px;
}

.post-card {
  display: grid;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 20, 24, 0.05);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.post-card:hover {
  border-color: rgba(20, 32, 26, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(16, 20, 24, 0.08);
}

.post-card p {
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .article-hero,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero-card {
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .shell,
  .article-body {
    width: min(calc(100% - 28px), var(--max));
  }

  .button {
    width: 100%;
  }
}
