/* ── Variables ───────────────────────────────────────────── */
:root {
  --cream:   #f6f4ef;
  --white:   #ffffff;
  --sand:    #e4ddd3;
  --stone:   #a89b8c;
  --charcoal:#2a2420;
  --walnut:  #8a7055;
  --walnut-h:#7a6045;
  --walnut-lt:#f2ead9;
  --radius:  10px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { font-size: 16px; scroll-behavior: smooth; }
img    { max-width: 100%; height: auto; }

/* ── Body ────────────────────────────────────────────────── */
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.site-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--charcoal);
}

.site-header .tagline {
  font-size: 1rem;
  color: var(--stone);
  margin-top: .5rem;
  font-style: italic;
}

/* ── Main ────────────────────────────────────────────────── */
.main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ── Entry ───────────────────────────────────────────────── */
.entry {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--sand);
  animation: fadeUp .4s ease both;
}

.entry:last-of-type { border-bottom: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.entry-date {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .72rem;
  color: var(--stone);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.entry-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--charcoal);
  margin-bottom: .9rem;
}

.entry-body {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.82;
}

.entry-body p             { margin-bottom: 1em; }
.entry-body p:last-child  { margin-bottom: 0;   }

/* ── Images ──────────────────────────────────────────────── */
.entry-images { margin-top: 1.25rem; }

/* Single */
.img-single img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  cursor: zoom-in;
  transition: opacity .2s;
}
.img-single img:hover { opacity: .92; }

/* Grid */
.img-grid {
  display: grid;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
}
.img-grid-2 { grid-template-columns: 1fr 1fr; }
.img-grid-3 { grid-template-columns: 1fr 1fr; }
.img-grid-3 .img-item:first-child               { grid-column: 1 / -1; }
.img-grid-3 .img-item:first-child .img-thumb    { height: 280px; }
.img-grid-n { grid-template-columns: 1fr 1fr; }

.img-item { overflow: hidden; }

.img-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform .35s ease;
}
.img-item:hover .img-thumb { transform: scale(1.04); }

/* ── File attachments ────────────────────────────────────── */
.entry-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--walnut-lt);
  color: var(--walnut);
  text-decoration: none;
  border-radius: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid var(--sand);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.file-link:hover { background: var(--sand); color: var(--charcoal); }

/* ── Empty state ─────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--stone);
  font-style: italic;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .85rem;
  color: var(--stone);
}
.pagination a {
  color: var(--walnut);
  text-decoration: none;
  padding: 7px 16px;
  border: 1px solid var(--sand);
  border-radius: 6px;
  transition: border-color .15s, background .15s;
}
.pagination a:hover { background: var(--white); border-color: var(--walnut); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .78rem;
  color: var(--stone);
  border-top: 1px solid var(--sand);
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  cursor: default;
  box-shadow: 0 12px 60px rgba(0,0,0,.5);
}
.lb-close {
  position: fixed;
  top: 1.1rem; right: 1.25rem;
  color: rgba(255,255,255,.65);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
  transition: color .15s;
}
.lb-close:hover { color: #fff; }

/* ── Coming Soon page ────────────────────────────────────── */
.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background-color: var(--cream);
  background-image: radial-gradient(var(--sand) 1px, transparent 1px);
  background-size: 26px 26px;
}

.cs-inner { max-width: 520px; }

.cs-site-name {
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 1.75rem;
}

.cs-rule {
  width: 48px;
  height: 1px;
  background: var(--walnut);
  margin: 0 auto 1.75rem;
}

.cs-title {
  font-size: 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 1rem;
}

.cs-message {
  font-size: 1.05rem;
  color: var(--stone);
  font-style: italic;
  line-height: 1.85;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header          { padding: 2.5rem 1.25rem 2rem; }
  .main                 { padding: 0 1.25rem 4rem; }
  .entry                { padding: 2rem 0; }
  .img-grid-2,
  .img-grid-3,
  .img-grid-n           { grid-template-columns: 1fr; }
  .img-grid-3 .img-item:first-child { grid-column: auto; }
  .img-thumb            { height: 260px; }
  .img-single img       { max-height: 320px; }
}
