:root {
  --bg: #f7f1e6;
  --panel: #fffdf9;
  --panel-soft: #f1e9d8;
  --text: #362a1e;
  --muted: #7c6c58;
  --line: #e4d8bf;
  --accent: #8a3324;
  --accent-2: #b3812f;
  --accent-soft: #f3e3c8;
  --shadow: 0 8px 24px rgba(54, 42, 30, .12);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  margin: 0 0 .4em;
}

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

img { max-width: 100%; display: block; }

.wrap {
  width: min(1150px, calc(100% - 32px));
  margin: 0 auto;
}

/* header */

.site-header {
  background: var(--panel);
  border-bottom: 3px solid var(--accent-2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.3rem;
}

.brand-text h1 { font-size: 1.35rem; margin: 0; }
.brand-text span { color: var(--muted); font-size: .8rem; font-style: italic; }

.main-nav { display: flex; gap: 6px; }

.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: .95rem;
  color: var(--text);
}

.main-nav a:hover,
.main-nav a.current {
  background: var(--accent-soft);
  color: var(--accent);
}

/* hero */

.hero {
  background: linear-gradient(160deg, var(--accent) 0%, #5e2013 100%);
  color: #fdf3e4;
  padding: 46px 0;
  text-align: center;
}

.hero h2 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.hero p { color: #f0dcc0; max-width: 560px; margin: 0 auto 22px; }

/* buttons */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-weight: bold;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn:hover { background: var(--accent); color: #fff; }

.btn-accent {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.btn-accent:hover { background: #96691f; border-color: #96691f; color: #fff; }

.btn-outline { background: transparent; }

/* layout */

main { padding: 36px 0 60px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.news-post .news-date {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: .74rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.3rem;
  border-bottom: 3px solid var(--accent-2);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 20px 0 10px;
}

/* breadcrumb */

.breadcrumb {
  padding: 16px 0 4px;
  color: var(--muted);
  font-size: .88rem;
}

.breadcrumb a { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; color: var(--line); }
.breadcrumb .current { color: var(--muted); }

/* folder tiles (years / months / dates) */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.tile-grid-narrow { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

.tile {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(54,42,30,.18); }

.tile-photo {
  aspect-ratio: 4 / 3;
  background: var(--panel-soft);
  overflow: hidden;
}

.tile-photo img { width: 100%; height: 100%; object-fit: cover; }

.tile-photo.placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--muted);
}

.tile-label {
  padding: 10px 12px;
  font-family: Georgia, serif;
  font-weight: bold;
  color: var(--text);
  text-align: center;
}

/* photo grid */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.photo-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .2s ease;
}

.photo-thumb:hover img { transform: scale(1.06); }

/* lightbox */

dialog#lightbox {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  background: transparent;
  position: relative;
}

dialog#lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius);
  margin: 0 auto;
}

dialog#lightbox::backdrop { background: rgba(54, 42, 30, .85); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--accent);
}

.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
.lightbox-nav:hover { background: #fff; }

/* footer */

.site-footer {
  background: var(--accent);
  color: #f3e3c8;
  text-align: center;
  padding: 18px 0;
  font-size: .85rem;
}

@media (max-width: 560px) {
  .tile-grid, .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
