:root {
  --color-text-primary: #bcc1c6;
  --color-text-secondary: #9d9b99;
  --color-background: #121212;
  --color-text-accent: #5d7da5;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-text-primary: #333333;
    --color-text-secondary: #637282;
    --color-background: #eeeeee;
    --color-text-accent: #5d7da5;
  }
}

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

body {
  background-color: var(--color-background);
  font-family: sans-serif;
  font-size: 1.2em;
  line-height: 1.62;
  color: var(--color-text-primary);
}

header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
}

header h1 {
  font-size: 1.2em;
  font-weight: normal;
  color: var(--color-text-secondary);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.photo {
  margin-bottom: 3rem;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
}

.photo figcaption {
  padding: 0.5rem 0rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.photo figcaption .meta {
  font-size: 0.75em;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.photo .description {
  font-size: 1em;
  color: var(--color-text-secondary);
  margin-bottom: 0.4rem;
}

a {
  color: var(--color-text-accent);
  text-decoration: none;
}

a:hover {
  color: transparent;
  background-clip: text;
  background-image: linear-gradient(
    to right,
    #eb5252,
    #f78f2f,
    #f4c151,
    #75d850,
    #6284ff,
    #eb5252
  );
  animation: rainbow 10s linear infinite;
  background-size: 200% 100%;
}

@keyframes rainbow {
  to {
    background-position: 800% 0;
  }
}

@media screen and (max-width: 745px) {
  header {
    padding: 1rem 1rem;
  }

  main {
    padding: 1rem 0;
  }

  .photo {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .photo figcaption .meta {
    font-size: 0.65em;
  }

  .photo .description {
    font-size: 0.85em;
  }
}
