body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Cambria, "Cambria Math", Georgia, "Times New Roman", serif;
  font-weight: bold;
  background: #fafafa;
  color: #222;
}
@media (prefers-color-scheme: dark) {
  body { background: #111; color: #eee; }
}

/* ---------- Home: rotating hero ---------- */
.hero-wrap { flex: 1; display: flex; }
.hero {
  position: relative;
  flex: 1;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #000;
}
.hero:not(.has-photos) { background: transparent; }
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero img.is-shown { opacity: 1; }
.hero.no-fade img { transition: none; }

.hero-title {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}
.hero-name { font-size: clamp(2rem, 6vw, 4rem); font-weight: bold; }
.hero-hint { font-size: 0.95rem; opacity: 0.85; }
.hero.has-photos .hero-title {
  align-self: end;
  color: #fff;
  text-shadow: 0 2px 12px rgb(0 0 0 / 60%);
  padding-bottom: 2.5rem;
}
.hero:not(.has-photos) .hero-hint { display: none; }
.hero:hover .hero-hint, .hero:focus-visible .hero-hint { text-decoration: underline; }

/* ---------- Gallery ---------- */
.gallery-header { padding: 1.5rem 16px 0; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.gallery-header a { color: inherit; }
.gallery-header h1 { margin: 0.75rem 0 0; }
.gallery {
  list-style: none;
  margin: 0 auto;
  padding: 1.5rem 16px 3rem;
  max-width: 1200px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery a { display: block; border-radius: 8px; overflow: hidden; background: rgb(127 127 127 / 15%); }
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); }
.gallery p { margin: 0.4rem 0 0; font-size: 0.9rem; }
.gallery-empty { text-align: center; padding: 2rem 16px; }

/* ---------- Footer / Ko-fi ---------- */
footer { text-align: center; padding: 1rem; }
.support summary { display: inline-block; cursor: pointer; text-decoration: underline; }
.support iframe {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 640px;
  margin: 16px auto 8px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
.support a { color: inherit; }
