:root {
  --bg: #fff;
  --soft: #f4f5f2;
  --ink: #111512;
  --muted: #646b66;
  --line: #e7e9e5;
  --accent: #0f7a55;
  --accent-soft: #e3f3ec;
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.75 "Heebo", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 19px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.bar nav { display: flex; gap: 6px; }
.bar nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 14px; border-radius: 999px; }
.bar nav a:hover { background: var(--soft); }

/* heroes (home + article): inset rounded image */
.home-hero, .hero {
  position: relative; color: #fff; display: grid; align-items: end; overflow: hidden;
  max-width: 1160px; margin: 20px auto 0; width: calc(100% - 40px);
  border-radius: 32px; background: #24302a center/cover no-repeat;
}
.home-hero { min-height: min(72vh, 640px); }
.hero { min-height: min(68vh, 600px); }
.home-hero::before, .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 14, 10, .82), rgba(8, 14, 10, .15) 55%, rgba(8, 14, 10, 0)); }
.home-hero .in, .hero .in { position: relative; padding: clamp(24px, 5vw, 56px); max-width: 860px; }
.home-hero h1 { font-size: clamp(40px, 7.5vw, 84px); margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 60px); margin: 12px 0 12px; }
.home-hero p, .hero p { margin: 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; max-width: 600px; opacity: .92; }

.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
.hero .tag { color: #fff; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* home */
.section { max-width: 1160px; margin: 0 auto; padding: 64px 20px 20px; }
.section > h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r); transition: transform .35s ease; }
.post-card:hover img { transform: scale(1.02); }
.post-card .txt { padding: 16px 4px 0; }
.post-card h3 { font-size: 25px; margin: 10px 0 6px; }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.post-card .more { display: inline-block; margin-top: 12px; color: var(--ink); font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--accent); }
.soon { border-radius: var(--r); background: var(--soft); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; aspect-ratio: 4 / 3; font-weight: 500; }
.about .section { padding-bottom: 40px; }
.about .section > div { background: var(--soft); border-radius: 32px; padding: clamp(24px, 5vw, 56px); }
.about h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.about p { margin: 0 0 12px; max-width: 640px; font-size: 19px; }
.about p:last-child { margin: 0; }

/* article */
article { max-width: 700px; margin: 0 auto; padding: 44px 20px 20px; }
article h2 { font-size: clamp(28px, 4.4vw, 38px); margin: 64px 0 14px; }
article h3 { font-size: 23px; margin: 36px 0 8px; }
article p { margin: 0 0 18px; }
.lead { font-size: 22px; line-height: 1.6; font-weight: 500; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; font-size: 15px; }
.toc strong { display: none; }
.toc a { text-decoration: none; color: var(--ink); background: var(--soft); padding: 7px 14px; border-radius: 999px; font-weight: 500; }
.toc a:hover { background: var(--accent-soft); color: var(--accent); }
figure { margin: 34px 0; }
figure img { border-radius: var(--r); width: 100%; }
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.wide { margin-inline: -130px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 34px 0; }
.pair figure { margin: 0; }
.pair img { aspect-ratio: 3 / 4; object-fit: cover; }
.note { background: var(--accent-soft); border-radius: var(--r); padding: 18px 22px; margin: 28px 0; font-size: 16.5px; }
.tips { background: var(--soft); border-radius: 28px; padding: 6px clamp(20px, 4vw, 36px) 24px; margin: 56px 0 10px; }
.tips h2 { margin-top: 28px; }
.tips ul { margin: 0; padding: 0; list-style: none; }
.tips li { padding: 12px 0; border-top: 1px solid #dfe2dc; font-size: 16.5px; }
.tips li:first-child { border-top: 0; }
.back { display: inline-block; margin: 30px 0 10px; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--soft); padding: 10px 20px; border-radius: 999px; }
.back:hover { background: var(--accent-soft); color: var(--accent); }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 20px 48px; }

@media (max-width: 1000px) { .wide { margin-inline: 0; } }
@media (max-width: 600px) {
  body { font-size: 17px; }
  .home-hero, .hero { width: calc(100% - 24px); margin-top: 12px; border-radius: 24px; }
  .bar nav a:first-child { display: none; }
  .lead { font-size: 19.5px; }
  .section { padding-top: 44px; }
  :root { --r: 18px; }
}
