:root {
  color-scheme: dark;
  --list-background: #080808;
  --list-text: #bcb6a9;
  --list-heading: #ddd5c5;
  --list-muted: #a39b8d;
  --list-link: #c9b58f;
}

body {
  margin: 0;
  background: var(--list-background);
  color: var(--list-text);
  font: 1rem/1.6 Georgia, "Times New Roman", serif;
}

main {
  width: min(550px, calc(100% - 40px));
  margin: clamp(38px, 10vh, 100px) auto 48px;
}

h1 {
  margin: 0 0 30px;
  color: var(--list-heading);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: normal;
  line-height: 1.3;
}

a {
  color: var(--list-link);
  text-underline-offset: 3px;
}

a:hover, a:focus-visible { color: #fff4dd; }
a:focus-visible { outline: 1px solid var(--list-link); outline-offset: 4px; }
::selection { color: var(--list-background); background: var(--list-link); }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 19px;
  margin-bottom: 47px;
  font-size: .875rem;
}

nav .home { margin-inline-end: auto; color: var(--list-muted); }
nav a[aria-current] { color: var(--list-heading); text-decoration-color: #a08c65; }

ul { margin: 0; padding: 0; list-style: none; }
li { margin-bottom: 7px; }
li a { display: inline-block; padding-block: 2px; }

article h1 { margin-bottom: 7px; }
article p { max-width: 55ch; }

footer { margin-top: 48px; font-size: .875rem; }
footer a, .meta, figcaption { color: var(--list-muted); }
.meta { margin: 0 0 28px; font-size: .875rem; }
figcaption { margin-top: 8px; font-size: .875rem; }
figure { margin: 24px 0; }
figure a { display: block; }
img { display: block; width: 100%; height: auto; }

.full-picture {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--list-background);
}

.full-picture:target { display: flex; }
.full-picture img { width: auto; max-width: 100%; max-height: 90vh; object-fit: contain; }
.picture-close { position: absolute; top: 12px; right: 18px; padding: 6px 10px; background: var(--list-background); }

.list-home { text-align: center; }
.list-home h1 { margin-bottom: 20px; font-size: 1.375rem; }
.list-home nav { justify-content: center; gap: 5px 23px; margin: 20px 0 0; font-size: 1rem; }
.list-home footer { margin-top: 38px; }

@media (max-width: 440px) {
  nav { gap: 7px 15px; margin-bottom: 35px; }
  nav .home { flex-basis: 100%; }
}
