:root {
  --bg: #fdfdfc;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e3e0;
  --link: #1a4f9c;
  --accent: #965300;
  --bar: #16213e;
  --gold: #f7b733;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --text: #e8e8e6;
    --muted: #a0a0a6;
    --line: #2e2e32;
    --link: #8cb4ff;
    --accent: #f7a93b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}
main.wide { max-width: 72rem; }

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem max(1rem, calc((100% - 72rem) / 2 + 1rem));
  background: var(--bar);
}

.site-name img { display: block; width: 7rem; height: auto; }

nav a {
  margin-left: 1.25rem;
  padding: 0.25rem 0;
  color: #fff;
  text-decoration: none;
}
nav a:first-child { margin-left: 0; }
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); font-weight: 600; }

.hero { display: block; width: 100%; height: auto; max-height: 26rem; object-fit: cover; }

a { color: var(--link); }

h1 { font-size: 1.9rem; margin: 2rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; color: var(--accent); }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
h4 { font-size: 1rem; margin: 1.25rem 0 0.25rem; color: var(--muted); }

.dates { list-style: none; margin: 0; padding: 0; }
.dates li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}
.dates span { font-weight: 600; }

@media (max-width: 36rem) {
  .dates li { grid-template-columns: minmax(0, 1fr); }
}

.button {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  background: var(--gold);
  color: #16213e;
  font-weight: 600;
  text-decoration: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: 0.75rem;
}
/* one thumbnail shape; the link opens the whole photo */
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
