:root {
  --ink: #2b2b2b;
  --accent: #673310;
  --bg: #ffffff;
  --tile-bg: #f4f2ef;
  --muted: #6b6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.site-header {
  text-align: center;
  padding: 2rem 1rem 1.25rem;
  border-bottom: 1px solid #eee;
}

.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.site-header h1 span {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

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

.site-nav a.disabled {
  color: #aaa;
  pointer-events: none;
}

.year-section {
  padding: 1.5rem 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.year-section h2 {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  padding-bottom: 0.25rem;
  font-size: 1.4rem;
}

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

.tile {
  margin: 0;
  background: var(--tile-bg);
  border-radius: 6px;
  overflow: hidden;
}

.thumb-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.5rem 1rem 2.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.site-footer p {
  margin: 0.25rem 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--tile-bg);
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
}

.social-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

dialog#modal {
  position: relative;
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: 92vw;
  max-height: 92vh;
  background: transparent;
}

dialog#modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

dialog#modal img {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  margin: 0 auto;
}

dialog#modal p {
  text-align: center;
  color: #fff;
  margin: 0.5rem 0 0;
}

#modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
