@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #f7f7f7;
  --white: #ffffff;
  --ink: #33342f;
  --ink-soft: #4a4b45;
  --muted: #7c7d76;
  --accent: #659b9b;
  --accent-dark: #557f7f;
  --divider: #dcdcd8;
  --container: 1150px;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lora', 'Georgia', serif;
}

* { box-sizing: border-box; min-width: 0; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Buttons & labels ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 18px;
}

.tag-link {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-soft);
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent-dark);
  font-size: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}

.icon-circle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle svg {
  width: 15px;
  height: 15px;
}

/* ---------- Hero / New Post ---------- */

.hero {
  padding: 70px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.18;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 26px;
}

.hero .btn {
  margin-bottom: 22px;
}

.hero-view-all {
  display: block;
}

.hero-images {
  background: var(--white);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-images .ph {
  aspect-ratio: 3 / 4;
}

.hero-images.single {
  grid-template-columns: 1fr;
}

.hero-photo {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- Section divider ---------- */

.divider {
  height: 1px;
  background: var(--divider);
  max-width: calc(var(--container) - 80px);
  margin: 46px auto;
}

/* ---------- Placeholder images ---------- */

.ph {
  background: linear-gradient(150deg, #7c8a6b 0%, #3f4a38 55%, #232920 100%);
  width: 100%;
  display: block;
  object-fit: cover;
}
.ph.alt1 { background: linear-gradient(150deg, #b5482f 0%, #6e3420 55%, #2b1a12 100%); }
.ph.alt2 { background: linear-gradient(150deg, #a8895a 0%, #5c4630 55%, #2a2018 100%); }
.ph.alt3 { background: linear-gradient(150deg, #4d5a42 0%, #2c3327 55%, #171b13 100%); }
.ph.alt4 { background: linear-gradient(150deg, #8a6a4a 0%, #4a3625 55%, #241a10 100%); }

/* ---------- Featured Posts ---------- */

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  color: var(--ink);
  margin: 0 0 34px;
}

.post-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 14px;
}

/* ---------- Latest Posts ---------- */

.latest-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.latest-header .section-heading {
  margin-bottom: 0;
}

.latest-post-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  padding: 44px 0;
  border-bottom: 1px solid var(--divider);
}

.latest-post-row:first-of-type {
  padding-top: 44px;
}

.latest-post-row .ph {
  aspect-ratio: 1 / 1.15;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
}

.latest-post-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 14px;
}

.latest-post-row p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.latest-section {
  padding-bottom: 70px;
}

.pagination {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--divider);
  background: none;
  text-align: center;
  padding: 14px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.pagination:hover {
  border-color: var(--accent-dark);
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 20px 0;
}

.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.footer-email {
  font-size: 16px;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Blog listing: filter bar, search, grid ---------- */

.blog-page {
  padding: 60px 0 100px;
}

.filter-bar {
  border: 1px solid var(--divider);
  background: #fefefe;
  padding: 30px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 14px;
  margin-bottom: 50px;
}

.filter-pill {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 3px;
  padding: 8px 16px;
  cursor: pointer;
  line-height: 1.2;
}

.filter-pill:hover {
  border-color: var(--accent-dark);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.search-bar {
  display: none;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--divider);
  background: #fefefe;
  padding: 18px 30px;
  margin-bottom: 30px;
}

.search-bar.open {
  display: flex;
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar .close-search {
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  font-family: var(--font-body);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 36px;
}

.blog-grid .post-card .ph {
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
}

.blog-grid .post-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.blog-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 16px;
  padding: 20px 0;
}

/* ---------- Individual post page ---------- */

.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 40px 100px;
}

.post-content .ph {
  aspect-ratio: 16 / 9;
  margin-bottom: 40px;
}

.post-content .post-meta {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.post-content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 30px;
}

.post-content .body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.post-content .body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px 0;
}

.post-content .body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.post-content .body ul {
  padding-left: 22px;
}

.post-content .body li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
}

/* ---------- Responsive ---------- */
/* Kept last in the file so these overrides always win the cascade. */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-post-row {
    grid-template-columns: 1fr;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .latest-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  .logo {
    font-size: 21px;
  }
  .header-nav {
    gap: 16px;
  }
  .header-nav a {
    font-size: 14px;
  }
  .icon-circle {
    width: 28px;
    height: 28px;
  }
  .icon-circle svg {
    width: 13px;
    height: 13px;
  }
}
