/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fafaf8;
  --surface:   #ffffff;
  --border:    #e8e4de;
  --text:      #2d2d2d;
  --text-muted:#6b6560;
  --accent:    #5b8a7a;
  --accent-dk: #3d6b5d;
  --warm:      #8b7355;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(0,0,0,.07);
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.container { flex: 1; padding-top: 2.5rem; padding-bottom: 4rem; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .02em;
}
.site-logo:hover { color: var(--accent-dk); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: .85rem;
  color: var(--text-muted);
  font-family: system-ui, sans-serif;
  text-align: center;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--accent-dk);
  letter-spacing: .01em;
}
.hero-subtitle {
  margin-top: .75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: system-ui, sans-serif;
}

/* ── Post tag (shared) ────────────────────────────────────────── */
.post-tag {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  background: #edf3f1;
  padding: .2rem .6rem;
  border-radius: 4px;
}

/* ── Posts list ───────────────────────────────────────────────── */
.posts-list { margin-top: 1rem; }

.posts-list ul {
  list-style: none;
  border-top: 1px solid var(--border);
}

.posts-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  align-items: start;
}

.posts-list-meta {
  grid-row: 1 / 3;
  display: flex;
  align-items: flex-start;
  padding-top: .15rem;
}

.posts-list-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}
.posts-list-title:hover { color: var(--accent); }

.posts-list-desc {
  font-family: system-ui, sans-serif;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: .3rem 0 0;
}

@media (max-width: 540px) {
  .posts-list-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: .4rem;
  }
  .posts-list-meta { grid-row: auto; }
}

/* ── Video embed ──────────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  background: #000;
  box-shadow: var(--shadow);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── Article / post content ───────────────────────────────────── */
.post h1 { font-size: 2rem; font-weight: 400; color: var(--accent-dk); margin-bottom: 1rem; line-height: 1.25; }
.post h2 { font-size: 1.4rem; font-weight: 600; color: var(--text); margin: 2.25rem 0 .75rem; }
.post h3 { font-size: 1.15rem; font-weight: 600; color: var(--warm); margin: 1.75rem 0 .5rem; }
.post h4 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .4rem; }

.post p { margin-bottom: 1rem; }
.post ul, .post ol { margin: .75rem 0 1rem 1.5rem; }
.post li { margin-bottom: .35rem; }
.post li > ul, .post li > ol { margin-top: .25rem; }

.post strong { color: var(--text); }
.post em { color: var(--text-muted); }

.post a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post a:hover { color: var(--accent-dk); }

.post blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: #f0f5f3;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.post blockquote p { margin: 0; }
.post blockquote strong { color: var(--accent-dk); font-style: normal; }

.post hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: .85em;
  background: #f0ede8;
  padding: .15em .4em;
  border-radius: 4px;
}

.post pre {
  background: #f0ede8;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.25rem 0;
}
.post pre code { background: none; padding: 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .post h1 { font-size: 1.6rem; }
}
