:root {
  --accent: #4a5d45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(135deg, #5c4a38, #3d3226 70%);
  background-attachment: fixed;
  font-family: Inter, system-ui, sans-serif;
  color: #332c22;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #3a4a37; }
::selection { background: #4a5d4533; }

.page {
  min-height: 100vh;
  padding: 70px 20px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 800px;
  background: #efe6d3;
  border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .25);
  padding: 0 0 0 16px;
}

.site-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 28px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.site-title {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: 34px;
  color: #3a3226;
}

.site-nav {
  display: flex;
  gap: 22px;
  font: 500 12px Inter, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-nav a { color: #8c8266; }
.site-nav a.nav-active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.rule {
  max-width: 720px;
  margin: 0 auto;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(74, 93, 69, .3) 0 6px, transparent 6px 10px);
}

.entries {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 28px 10px;
}

.entry { margin-bottom: 44px; }

.entry-date {
  font-family: Caveat, cursive;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}

.entry-body { overflow: hidden; }

.entry-body p {
  font-family: 'Source Serif 4', serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: #332c22;
  margin: 0 0 1em;
  text-wrap: pretty;
}

.entry-photo {
  width: 150px;
  margin: 2px 0 8px;
  border: 5px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  cursor: zoom-in;
}

.entry-photo-right { float: right; margin: 2px 0 16px 8px; transform: rotate(2deg); }
.entry-photo-left { float: left; margin: 2px 8px 16px 0; transform: rotate(-2deg); }

.pager {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 28px 30px;
  display: flex;
  justify-content: space-between;
  font: 500 13px Inter, sans-serif;
}

.pager a { color: var(--accent); }

.gallery-section {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 0 28px 8px;
}

.gallery-label {
  font: 500 11px Inter, sans-serif;
  color: #8c8266;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gallery-grid {
  column-count: 2;
  column-gap: 10px;
}

.gallery-grid img {
  width: 100%;
  display: block;
  margin-bottom: 10px;
  border-radius: 2px;
  cursor: zoom-in;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

.site-footer {
  max-width: 720px;
  margin: 50px auto 0;
  padding: 22px 28px 40px;
  border-top: 1px solid rgba(74, 93, 69, .25);
}

.site-footer p {
  font: 400 12.5px Inter, sans-serif;
  color: #8c8266;
  margin: 0;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #efe6d3;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: zoom-out;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  border-radius: 2px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #332c22;
  font: 400 28px Inter, sans-serif;
  cursor: pointer;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #332c22;
  font: 400 40px Inter, sans-serif;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  padding: 10px;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 640px) {
  .page { padding: 30px 0; }
  .card { border-radius: 0; padding-left: 0; }
  .entries { padding: 28px 20px 10px; }
  .site-header { padding: 32px 20px 14px; }
  .gallery-section { padding: 0 20px 8px; }
  .site-footer { padding: 18px 20px 32px; }

  .entry-photo,
  .entry-photo-right,
  .entry-photo-left {
    float: none;
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto 14px;
    transform: none;
  }

  .gallery-grid { column-count: 2; column-gap: 8px; }
}