/* Self-hosted fonts (Inter + Playfair Display) */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/playfair-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/playfair-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: italic; font-weight: 700; font-display: swap;
  src: url('/fonts/playfair-700-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('/fonts/playfair-900.woff2') format('woff2');
}

:root {
  --amber: #E8A552;
  --amber-deep: #D88A3A;
  --olive: #C8C26B;
  --cream: #F8F2E8;
  --ink: #1A1410;
  --ink-soft: #4A3A2D;
  --muted: #8A7A6A;
  --card: #FFFFFF;
  --shadow: 0 12px 40px rgba(26, 20, 16, 0.12);
  --radius: 18px;
  --max: 760px;
  --max-wide: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.3rem; margin: 1.5em 0 0.4em; }
h4 { font-size: 1.1rem; margin: 1.4em 0 0.3em; }

p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1.1em; }
ul, ol { color: var(--ink-soft); margin: 1em 0 1.4em 1.4em; }
li { margin-bottom: 0.4em; }
blockquote {
  border-left: 4px solid var(--amber);
  padding: 0.4em 0 0.4em 1.2em;
  margin: 1.4em 0;
  color: var(--ink-soft);
  font-style: italic;
}
code {
  background: rgba(26, 20, 16, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.94em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
pre {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.4em 0;
  font-size: 0.94rem;
  line-height: 1.55;
}
pre code { background: none; padding: 0; color: inherit; }
hr { border: none; border-top: 1px solid rgba(26, 20, 16, 0.1); margin: 2.4em 0; }

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

/* Nav */
nav.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 242, 232, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(26, 20, 16, 0.06);
}
nav.site-nav .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-wide); margin: 0 auto;
}
nav.site-nav .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
nav.site-nav .logo img {
  width: 32px; height: 32px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(26, 20, 16, 0.15);
}
nav.site-nav .nav-links { display: flex; align-items: center; gap: 24px; }
nav.site-nav .nav-links a {
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
}
nav.site-nav .nav-links a.cta {
  background: var(--ink); color: var(--cream);
  padding: 10px 20px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
}

/* Page header (blog index) */
header.page-head {
  padding: 80px 0 40px;
  text-align: center;
}
header.page-head .kicker {
  text-transform: uppercase;
  font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--amber-deep); font-weight: 700;
  margin-bottom: 12px; display: block;
}
header.page-head p {
  max-width: 540px; margin: 12px auto 0;
  font-size: 1.15rem;
}

/* Blog post list */
ul.posts { list-style: none; margin: 40px 0; padding: 0; }
ul.posts li {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(26, 20, 16, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  gap: 22px;
  align-items: stretch;
}
ul.posts li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 20, 16, 0.10);
}
ul.posts .post-thumb {
  flex: 0 0 200px;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  align-self: stretch;
}
ul.posts .post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
ul.posts li:hover .post-thumb img { transform: scale(1.04); }
ul.posts .post-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 8px 8px 0;
}
ul.posts h2 { margin: 0 0 6px; font-size: 1.4rem; }
ul.posts h2 a { color: var(--ink); text-decoration: none; }
ul.posts h2 a:hover { color: var(--amber-deep); }
ul.posts .meta {
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 8px;
}
ul.posts .excerpt { color: var(--ink-soft); margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 28px; }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 0.85rem; color: var(--muted);
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--muted);
  opacity: 0.6;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber-deep); }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); }

/* Article */
article.post { padding: 60px 0 80px; }
article.post .meta {
  font-size: 0.9rem; color: var(--muted);
  margin-bottom: 8px;
}
article.post .lede {
  font-size: 1.2rem; color: var(--ink-soft);
  margin: 0 0 36px;
  line-height: 1.55;
}
article.post img { border-radius: 12px; margin: 1.6em 0; }
article.post figure { margin: 1.8em 0; }
article.post figure img { margin: 0; width: 100%; }
article.post figcaption {
  font-size: 0.85rem; color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
article.post figcaption a { color: var(--muted); }
article.post figcaption a:hover { color: var(--amber-deep); }

/* Related posts at the bottom of an article */
.related-posts { margin-top: 60px; padding-top: 36px; border-top: 1px solid rgba(26, 20, 16, 0.1); }
.related-posts h2 { margin: 0 0 18px; font-size: 1.4rem; }
.related-posts ul { list-style: none; margin: 0; padding: 0; }
.related-posts li {
  display: flex; gap: 16px; align-items: stretch;
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(26, 20, 16, 0.05);
  transition: transform 0.15s ease;
}
.related-posts li:hover { transform: translateY(-1px); }
.related-posts .thumb {
  flex: 0 0 120px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}
.related-posts .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-posts h3 { margin: 0 0 4px; font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.related-posts h3 a { color: var(--ink); text-decoration: none; }
.related-posts h3 a:hover { color: var(--amber-deep); }
.related-posts p { font-size: 0.92rem; margin: 0; color: var(--ink-soft); }

/* Back to blog / nav between posts */
.post-nav {
  display: flex; justify-content: space-between;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(26, 20, 16, 0.1);
  font-size: 0.95rem;
}
.post-nav a { color: var(--amber-deep); text-decoration: none; font-weight: 600; }
.post-nav a:hover { color: var(--ink); }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: rgba(248, 242, 232, 0.5);
  padding: 40px 0 32px;
  border-top: 1px solid rgba(248, 242, 232, 0.08);
  font-size: 0.9rem;
  margin-top: 80px;
}
footer.site-footer .row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  max-width: var(--max-wide); margin: 0 auto; padding: 0 24px;
}
footer.site-footer a { color: rgba(248, 242, 232, 0.7); text-decoration: none; margin-left: 24px; }
footer.site-footer a:hover { color: var(--amber); }

@media (max-width: 700px) {
  nav.site-nav .nav-links { gap: 14px; }
  nav.site-nav .nav-links a:not(.cta) { display: none; }
  ul.posts li { flex-direction: column; padding: 16px; gap: 14px; }
  ul.posts .post-thumb { flex: 0 0 auto; aspect-ratio: 16 / 9; width: 100%; }
  ul.posts .post-content { padding: 0 4px 4px; }
  footer.site-footer .row { flex-direction: column; text-align: center; }
  footer.site-footer a { margin: 0 12px; }
}
