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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1c1814;
  --ink2: #5a4f44;
  --accent: #b35c2e;
  --accent2: #2a6b5e;
  --rule: #e0d8cc;
  --head-bg: #1c1814;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

/* ─── SITE HEADER ─── */
.site-header {
  background: var(--head-bg);
  color: #fff;
  padding: 56px 32px 48px;
  text-align: center;
  border-bottom: 3px solid var(--accent);
  position: relative;
  overflow: hidden;
}
.site-header .header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.site-header .inner {
  position: relative;
  z-index: 1;
}
.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
}
.site-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px auto;
  max-width: 340px;
}
.site-divider::before, .site-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.site-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
}
.site-nav {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.site-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.site-nav a:hover { color: #fff; border-color: var(--accent); background: rgba(179,92,46,0.18); }

/* ─── LAYOUT ─── */
main { max-width: 860px; margin: 0 auto; padding: 60px 24px 100px; }

/* ─── INDEX ─── */
.post-list { list-style: none; }

.post-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 28px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.post-card:first-child { padding-top: 0; }

.post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  opacity: 0;
  transition: width 0.25s, opacity 0.25s;
}
.post-card:hover::before { width: 3px; opacity: 1; }

.date-col { text-align: center; padding-top: 2px; }
.date-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.date-mon {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink2);
  display: block;
  margin-top: 4px;
}

.post-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}
.post-card h2 a { color: var(--ink); text-decoration: none; transition: color 0.15s; }
.post-card h2 a:hover { color: var(--accent2); }

.post-byline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink2);
  margin-bottom: 12px;
}

.post-excerpt {
  font-size: 0.93rem;
  color: var(--ink2);
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s, border-color 0.15s;
}
.read-more:hover { color: var(--accent2); }

/* ─── POST PAGE ─── */
.post-wrap { max-width: 700px; margin: 0 auto; }

.post-header {
  text-align: center;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.post-header .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}
.post-meta-row {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink2);
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.post-meta-row span { display: flex; align-items: center; gap: 6px; }

/* ─── CONTENT ─── */
.post-content { font-family: 'Jost', sans-serif; font-weight: 300; }
.post-content p { margin-bottom: 1.5em; font-size: 1.02rem; line-height: 1.85; }
.post-content h2, .post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 2.5em 0 0.8em;
  color: var(--ink);
}
.post-content h2 { font-size: 1.9rem; }
.post-content h3 { font-size: 1.5rem; }

.post-content figure { margin: 2.5em 0; }
.post-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.post-content .wp-block-video,
.post-content figure.wp-block-video {
  margin: 2.5em auto;
  text-align: center;
  max-width: 100%;
}
.post-content .wp-block-video video,
.post-content figure.wp-block-video video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  margin: 0 auto;
}
.post-content figcaption {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink2);
  text-align: center;
  margin-top: 10px;
  padding: 0 16px;
}

/* Gallery */
.wp-block-gallery, .blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 2.5em 0;
  list-style: none;
  padding: 0;
}
.wp-block-gallery figure, .blocks-gallery-item { margin: 0; }

.post-content ul, .post-content ol {
  margin: 0 0 1.5em 1.4em;
  font-size: 1.02rem;
}
.post-content li { margin-bottom: 0.4em; }

.post-content blockquote {
  margin: 2em 0;
  padding: 2px 0 2px 28px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--ink2);
}

/* ─── POST NAV ─── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.post-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 20px;
  background: var(--surface);
  transition: background 0.15s;
}
.post-nav a:hover { background: #f0ebe2; }
.post-nav .nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.post-nav .nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  line-height: 1.3;
}
.post-nav .nav-next { text-align: right; }
.post-nav .nav-placeholder { background: transparent; }

/* ─── COMMENTS ─── */
.comments {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.comments-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--ink);
}
.comment {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.comment:last-child { border-bottom: none; }
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--head-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.comment-meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink2);
  margin-bottom: 8px;
}
.comment-author-name { font-weight: 500; color: var(--ink); }
.comment-body { font-size: 0.95rem; line-height: 1.7; }

/* ─── FOOTER ─── */
footer {
  background: var(--head-bg);
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 36px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 560px) {
  .post-card { grid-template-columns: 52px 1fr; gap: 0 16px; }
  .date-day { font-size: 2rem; }
  .post-nav { grid-template-columns: 1fr; }
}


/* ─── STATIC PAGES ─── */
.page-wrap { max-width: 700px; margin: 0 auto; }
.page-header {
  text-align: center;
  padding-bottom: 36px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--rule);
}
.page-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.page-content { font-family: 'Jost', sans-serif; font-weight: 300; }
.page-content p { margin-bottom: 1.4em; font-size: 1.02rem; line-height: 1.85; }
.page-content h2, .page-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 2.2em 0 0.7em;
  color: var(--ink);
}
.page-content h2 { font-size: 1.8rem; }
.page-content h3 { font-size: 1.4rem; }
.page-content ul, .page-content ol {
  margin: 0 0 1.4em 1.5em;
  font-size: 1rem;
  line-height: 1.75;
}
.page-content ul ul, .page-content ol ol,
.page-content ul ol, .page-content ol ul {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}
.page-content li { margin-bottom: 0.35em; }
.page-content s { color: var(--ink2); }
.page-content strong { font-weight: 500; color: var(--ink); }
