*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: #e8e8e8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: #555;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: #e8e8e8;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.brand {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #777;
}

.topbar nav a {
  font-size: 0.875rem;
  color: #aaa;
  text-decoration-color: transparent;
  margin-left: 1.25rem;
}

.topbar nav a:hover {
  text-decoration-color: #aaa;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #060606;
  border-radius: 8px;
  overflow: hidden;
}

.hero canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #aaa;
}

.meta__title {
  color: #e8e8e8;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.meta__date,
.meta__system {
  color: #777;
}

.meta__actions {
  margin-left: auto;
}

.meta__actions button {
  font: inherit;
  font-size: 0.8125rem;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #ddd;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.meta__actions button:hover {
  border-color: #666;
  color: #fff;
}

.archive {
  margin-top: 2.5rem;
}

.archive__heading {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.75rem;
}

.archive__strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #060606;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.thumb:hover {
  border-color: #444;
  transform: translateY(-1px);
}

.thumb--current {
  border-color: #888;
}

.thumb__canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.thumb__canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.thumb__label {
  position: absolute;
  left: 0.4rem;
  bottom: 0.3rem;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: #ddd;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  pointer-events: none;
}

.foot {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: #555;
  text-align: center;
}

.about {
  max-width: 32rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.about h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.about p {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .topbar {
    margin-bottom: 1rem;
  }
  .meta__actions {
    margin-left: 0;
    width: 100%;
  }
}
