/* Zagroda pod Gorcami - "highland farm" theme: raw wool, spruce green, barn red, hay, slab type, wood-plank rules */
:root {
  --bg: #f1ede3;
  --card: #fbf9f3;
  --ink: #26332a;
  --ink-soft: #5b665d;
  --forest: #2e4636;
  --barn: #9c3b2b;
  --hay: #d9b45a;
  --hay-soft: #f3e6c1;
  --line: #d8cfbc;
  --display: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "Mulish", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 18px; line-height: 1.75; }
a { color: var(--barn); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 690px; margin: 0 auto; padding: 0 22px; }

header.site { background: var(--forest); color: var(--bg); padding: 14px 0 12px; border-bottom: 6px solid var(--hay); }
header.site .bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
a.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
a.brand em { font-style: italic; font-weight: 500; color: var(--hay); }
nav.site { display: flex; gap: 22px; }
nav.site a { color: var(--bg); text-decoration: none; font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; }
nav.site a:hover { color: var(--hay); }
.breadcrumb { font-size: 0.8rem; color: #c9d2c8; margin: 8px 0 0; }
.breadcrumb a { color: #c9d2c8; }
.breadcrumb .sep { margin: 0 8px; color: var(--hay); }

.hero { padding: 0 0 50px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; align-items: stretch; max-width: 1200px; padding: 0; }
.hero-img { order: -1; margin: 0; min-height: 420px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-text { background: var(--card); padding: 50px 42px; display: flex; flex-direction: column; justify-content: center; border-bottom: 6px solid var(--barn); }
.kicker { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--barn); margin: 0 0 10px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: 0 0 18px; color: var(--forest); }
.hero .lead { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-img { min-height: 0; } .hero-img img { max-height: 380px; } .hero-text { padding: 32px 24px; } }

.list-heading { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--forest); margin: 10px 0 24px; padding-bottom: 8px; border-bottom: 3px double var(--line); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 80px; }
@media (max-width: 940px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--card); display: flex; flex-direction: column; border: 1px solid var(--line); border-bottom: 5px solid var(--forest); }
.post-card:hover { border-bottom-color: var(--barn); }
.post-card .thumb img { width: 100%; height: 210px; object-fit: cover; display: block; filter: saturate(.92); }
.post-card .body { padding: 18px 20px 24px; }
.post-card .date { font-size: 0.76rem; font-weight: 700; color: var(--barn); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 6px; }
.post-card h2 { font-family: var(--display); font-weight: 700; font-size: 1.28rem; line-height: 1.2; margin: 0 0 10px; }
.post-card h2 a { color: var(--forest); text-decoration: none; }
.post-card .excerpt { font-size: 0.92rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.article-hero { max-width: 1120px; margin: 0 auto; padding: 0; }
.article-hero img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.post { padding: 36px 0 80px; }
.post-meta { font-size: 0.82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--barn); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 1.05rem; flex: none; }
.post-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 26px; color: var(--forest); }
.post h2 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--forest); margin: 42px 0 10px; line-height: 1.22; padding-bottom: 6px; background: linear-gradient(90deg, var(--hay) 0 60px, transparent 60px) bottom left / 100% 3px no-repeat; }
.post ul, .post ol { padding-left: 1.3em; }
.post li { margin-bottom: 6px; }
.post li::marker { color: var(--barn); font-weight: 700; }
.post strong { font-weight: 700; color: var(--forest); }
.post table { border-collapse: collapse; width: 100%; font-size: 0.94rem; margin: 18px 0; display: block; overflow-x: auto; }
.post th, .post td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post th { font-family: var(--display); color: var(--forest); }
.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 50px; padding: 20px 22px; background: var(--hay-soft); border-left: 6px solid var(--hay); }
.author-box .avatar { width: 46px; height: 46px; font-size: 1.3rem; }
.author-box p { margin: 0; font-size: 0.95rem; }
.author-box .name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--forest); }
.related { margin-top: 34px; }
.related h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--forest); margin: 0 0 6px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 11px 0; border-top: 1px solid var(--line); }
.related a { color: var(--ink); text-decoration: none; font-weight: 700; }
.related a:hover { color: var(--barn); }

.page { padding: 50px 22px 90px; }
.page h1 { font-family: var(--display); font-weight: 700; font-size: 2.5rem; color: var(--forest); margin: 0 0 20px; }

footer.site { background: var(--forest); color: #d6ddd3; padding: 24px 0 32px; font-size: 0.84rem; border-top: 6px solid var(--hay); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer.site a { color: var(--hay); }

@media (prefers-reduced-motion: no-preference) {
  .hero-text { animation: rise .7s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
