* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f1e7;
  --paper: #fffdf8;
  --ink: #34302a;
  --muted: #7b7466;
  --line: #e4dccb;
  --accent: #7a8c5a;
  --accent-dark: #5d6c43;
  --earth: #b08968;
  --shadow: 0 12px 32px rgba(80, 70, 50, 0.12);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(160, 140, 100, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-kicker {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  margin: 0 auto 1rem;
  max-width: 18ch;
  line-height: 1.2;
}

.hero-lead {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(122, 140, 90, 0.35);
  transition: transform 0.2s, background 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Gallery */
.gallery {
  padding: 1rem 0 4rem;
}

.section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.7rem;
  border-left: 5px solid var(--earth);
  padding-left: 0.8rem;
  margin-bottom: 1.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(80, 70, 50, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  font-family: inherit;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ece5d6;
  display: block;
}

.card-body {
  padding: 0.95rem 1.1rem 1.15rem;
}

.card-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.card-alt {
  color: var(--muted);
  font-style: italic;
  font-size: 0.84rem;
  margin: 0 0 0.5rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

/* Detail */
.detail {
  padding: 1rem 0 4rem;
}

.back-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 1.4rem;
  transition: all 0.2s;
}

.back-btn:hover {
  background: #fff;
  border-color: var(--earth);
}

.detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #ece5d6;
  display: block;
}

.detail-caption {
  padding: 1.2rem 1.6rem 0.4rem;
  text-align: center;
}

.detail-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 0.4rem;
}

.detail-alt {
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.detail-author {
  color: var(--earth);
  font-weight: 600;
  margin: 0;
  font-size: 1.02rem;
}

.detail-year {
  color: var(--muted);
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.detail-summary {
  padding: 1.4rem 1.6rem 1.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  border-top: 1px dashed var(--line);
  margin-top: 1.2rem;
}

.summary-block h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.02rem;
  margin: 0 0 0.6rem;
  color: var(--accent-dark);
}

.summary-block p {
  margin: 0;
  line-height: 1.75;
  color: #4d4740;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .detail-summary {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
