:root {
  --ink: #2b2420;
  --paper: #faf6f1;
  --accent: #c1662f;
  --muted: #8a7f74;
  --card: #ffffff;
  --border: #e7ddd2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.logo:hover { text-decoration: none; color: var(--accent); }
nav a {
  margin-left: 22px;
  color: var(--ink);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
nav a:hover { color: var(--accent); text-decoration: none; }

/* hero */
.hero { padding: 40px 0 10px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero-photo {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 12px 30px rgba(43, 36, 32, 0.15);
  transition: transform 0.4s ease;
}
.hero-photo:hover { transform: scale(1.015); }
.hero-text h1 { font-size: 1.8rem; }
.hero-text p { color: var(--muted); }

section { padding: 48px 0; }
.section-note { color: var(--muted); margin-top: -8px; }

/* posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  box-shadow: 0 10px 24px rgba(43, 36, 32, 0.12);
  transform: translateY(-3px);
}
.post-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.post-body { padding: 16px; }
.post-body time { font-size: 0.8rem; color: var(--muted); }
.post-body h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.post-body p { margin: 0; color: #4a4038; font-size: 0.95rem; }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.03); }

/* about */
#about p { max-width: 68ch; color: #4a4038; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner p { margin: 4px 0; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; }
  nav a { margin-left: 14px; font-size: 0.88rem; }
}
