@font-face {
  font-family: 'PressStart2P';
  src: url('fonts/PressStart2P.ttf') format('truetype');
}

:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --accent: #ff3b6b;
  --muted: #888;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
}

.htm-header {
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.htm-title {
  font-family: 'PressStart2P', monospace;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}
.htm-title .slash { color: var(--accent); }

.htm-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.htm-bio {
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: left;
  font-size: 0.95rem;
  color: #ccc;
}
.htm-bio p { margin: 0 0 1em; }
.htm-bio > p:first-child { text-align: center; }
.htm-bio .htm-quote-mark { color: var(--accent); }
.htm-bio-toggle {
  display: block;
  margin: 1.5rem auto 0;
  background: none; border: 1px solid var(--muted); color: var(--fg);
  padding: 0.5em 1.2em; cursor: pointer; font-size: 0.85rem;
  border-radius: 2px;
}
.htm-bio-toggle:hover { border-color: var(--accent); color: var(--accent); }
.htm-bio[data-collapsed="true"] .htm-bio-extra { display: none; }

.htm-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  padding: 2rem clamp(1rem, 4vw, 3rem) 5rem;
  max-width: 1500px;
  margin: 0 auto;
}

.htm-tile {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  background: #111;
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.htm-tile:hover { border-color: var(--accent); }
.htm-tile:hover .htm-tile-frame { filter: brightness(1.15); }

.htm-tile-frame {
  position: absolute;
  top: 0; left: 0;
  width: 400%; height: 400%;
  transform: scale(0.25);
  transform-origin: top left;
  border: 0;
  pointer-events: none;
}

.htm-tile-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5em 0.7em;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.htm-tile-label .htm-tile-title { display: block; font-weight: 600; }
.htm-tile-label .htm-tile-sub { display: block; color: #aaa; font-size: 0.7rem; }

.htm-tile-fs-hint {
  position: absolute;
  top: 0.5em; right: 0.5em;
  background: rgba(0,0,0,0.6);
  color: #fff; font-size: 0.7rem;
  padding: 0.2em 0.5em; border-radius: 2px;
  opacity: 0; transition: opacity 0.15s;
}
.htm-tile:hover .htm-tile-fs-hint { opacity: 1; }

.htm-footer {
  text-align: center;
  padding: 2rem 1rem 4rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.htm-footer a { color: var(--muted); }
.htm-footer a:hover { color: var(--accent); }
.htm-footer-social { margin-top: 1em; font-size: 0.85rem; }

@media (max-width: 480px) {
  .htm-gallery { gap: 0.8rem; }
  .htm-tile { flex-basis: 150px; }
}
