:root {
  --bg: #f7f3ec;
  --bg-card: #ffffff;
  --text: #241c1f;
  --text-muted: #6b5d5f;
  --accent: #7a1f2b;
  --accent-dark: #591620;
  --gold: #a9822f;
  --border: #e4dccb;
  --max-width: 60rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

.site-header {
  border-bottom: 2px solid var(--gold);
  background: var(--bg-card);
}

.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-title {
  font-size: 1.85rem;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
}

.site-title a {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-tagline {
  margin: 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  flex-wrap: wrap;
}

nav.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text);
}

nav.site-nav a:hover {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.hero-photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.tribute-text {
  text-align: center;
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0 auto;
}

.quote {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 2rem auto 0;
}

.gallery-intro {
  font-size: 1.1rem;
  max-width: 42rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.gallery-grid li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 10.5rem;
  object-fit: cover;
}

.gallery-grid figcaption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem 0.75rem;
}

.collections-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
}

.collections-nav li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.collections-nav a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}

.collections-nav p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1.25rem;
  color: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}

.error-page {
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--accent-dark);
}
