:root {
  --bg: #f5f1ea;
  --bg-alt: #ebe4d7;
  --ink: #2a2623;
  --ink-soft: #5c554e;
  --accent: #7a5c3e;
  --accent-deep: #67492f;
  --accent-soft: #c8a57a;
  --line: #d6cdbe;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter Tight', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at top left, rgba(200, 165, 122, 0.12), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(122, 92, 62, 0.08), transparent 50%);
}

nav, main, header, footer, section { position: relative; z-index: 2; }

/* ---------------- nav ---------------- */
nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1.2rem, 5vw, 3.5rem);
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.brand { font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.7rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.01em; transition: color 0.25s ease; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 860px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent); color: #fdfbf7; border: none;
  font-family: var(--body); font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem; border-radius: 2px; cursor: pointer;
  text-decoration: none; transition: background 0.3s ease, transform 0.3s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); transform: translateY(-2px); }

/* ---------------- page header ---------------- */
.page-header {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem) clamp(2rem, 5vw, 3rem);
}
.breadcrumb { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-label { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; }
.page-header h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}
.page-header .lede { max-width: 62ch; color: var(--ink-soft); font-size: clamp(1.02rem, 2vw, 1.18rem); }

/* ---------------- article / prose ---------------- */
.prose { max-width: 720px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 2rem) clamp(3rem, 7vw, 5rem); }
.prose h2 {
  font-family: var(--display); font-weight: 500; color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 2.6rem 0 1.1rem; line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: 1.05rem; }
.prose p.lead { color: var(--ink); font-size: 1.12rem; }
.prose ul { margin: 0 0 1.3rem 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.55rem; font-size: 1.02rem; }
.prose li b, .prose li strong { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose em.credit { display: block; font-style: italic; color: var(--ink-soft); font-size: 0.9rem; margin-top: -0.7rem; margin-bottom: 1.6rem; }
.prose figure { margin: 2.2rem 0; }
.prose figure img { width: 100%; border-radius: 4px; box-shadow: 0 30px 60px -38px rgba(42, 38, 35, 0.55); display: block; }
.prose figure figcaption { font-style: italic; color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.7rem; }
.prose a.inline-link { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-soft); }
.prose a.inline-link:hover { color: var(--accent-deep); }

.note-box {
  background: rgba(122, 92, 62, 0.08);
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.4rem;
  border-radius: 3px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 1.6rem 0 2rem;
}
.note-box strong { color: var(--ink); }

.cta-block {
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  margin-top: 2.8rem;
  text-align: center;
}
.cta-block p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------------- related / listing cards ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.8rem; margin-top: 2.5rem; }
.card {
  background: #fdfbf7; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(42,38,35,0.5); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.25; }
.card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------- section wrapper for blog index ---------------- */
.section { max-width: 1080px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2rem) clamp(4rem, 9vw, 6rem); }

/* ---------------- footer ---------------- */
footer {
  text-align: center; padding: 3.5rem 2rem 4rem; color: var(--ink-soft);
  font-size: 0.85rem; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.4rem;
}
footer a { color: var(--ink-soft); }
