/* Static content pages (About, Archive) - scrollable, unlike the canvas. */
html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #111;
}

.content {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.content.wide {
  max-width: 1180px;
}

h1 {
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 24px;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 32px 0 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

p {
  line-height: 1.7;
  font-size: 15px;
  margin: 0 0 12px;
}

a.back {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
}

a.back:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Archive: one section per year, up to 5 images per row, fewer as the
 * viewport narrows.
 * ------------------------------------------------------------------ */
.archive-year {
  margin: 0 0 48px;
}

.archive-year h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: 3px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.archive-item {
  margin: 0;
  position: relative;
}

.archive-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f4f4f4;
  border: 3px solid #000;
  box-sizing: border-box;
}

.archive-item figcaption {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #444;
  word-break: break-word;
}

.archive-item .archive-date {
  display: block;
  color: #999;
  font-size: 11px;
  letter-spacing: 1px;
}

/* Stacked in the corner of the thumbnail rather than under it: the grid
   is dense, and a row of buttons per tile would double its height. */
.archive-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.archive-restore,
.archive-delete {
  padding: 6px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #fff;
  color: #111;
  border: 2px solid #000;
  cursor: pointer;
}

.archive-restore:hover {
  background: var(--color-secondary);
}

/* Deleting is the one action here with nothing behind it, so it does not
   look like its neighbour. */
.archive-delete {
  border-color: #b00000;
  color: #b00000;
}

.archive-delete:hover {
  background: #ffdede;
}

.archive-empty {
  color: #666;
  font-size: 15px;
}

@media (max-width: 1000px) {
  .archive-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 520px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .content { padding: 70px 16px 48px; }
  .archive-year h2 { font-size: 18px; }
}

