.archive {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4cqh;
  box-sizing: border-box;
  height: 100%;
  padding: 5cqh 5cqw;
  overflow: auto;
}

.archive-intro {
  text-align: center;
  text-shadow: 0 0.15cqh 0.5cqh var(--panel), 0 0 1.2cqh var(--panel);
}

.archive-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5cqh;
}

.archive-intro p {
  margin: 1cqh 0 0;
  font-style: italic;
}

.archive-months {
  display: grid;
  gap: 3cqh;
  width: min(88cqw, 48rem);
}

.archive-month {
  padding: 2cqh 2cqw 2.5cqh;
  background: color-mix(in srgb, var(--panel-glass) 82%, transparent);
  border: 0.18cqh solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 2.5cqh;
  box-shadow: 0 1cqh 2.4cqh rgb(0 0 0 / 24%);
  backdrop-filter: blur(0.55cqh);
}

.archive-month h2 {
  margin: 0 0 1.8cqh;
  font-size: 1em;
  text-align: center;
}

.archive-month ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5cqh 1.5cqw;
  padding: 0;
  margin: 0;
  list-style: none;
}

.archive-month a {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  place-items: center;
  gap: 0.15em;
  width: 4.2em;
  height: 4.2em;
  color: var(--text);
  text-decoration: none;
  background: var(--button);
  border: 0.18cqh solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0.7cqh 0 color-mix(in srgb, var(--line) 72%, black), 0 1cqh 1.4cqh rgb(0 0 0 / 20%);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.archive-progress {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55em;
  font-weight: 700;
  line-height: 1;
}

.archive-month a.complete {
  border-color: var(--highlight2);
  box-shadow: 0 0.7cqh 0 color-mix(in srgb, var(--highlight2) 62%, black), 0 0 1.4cqh var(--highlight2);
}

.archive-weekday {
  font-size: 0.62em;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.archive-month time {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35em;
  font-weight: 800;
  line-height: 1;
}

.archive-month a:hover,
.archive-month a:focus-visible {
  z-index: 1;
  border-color: var(--highlight2);
  outline: none;
  transform: translateY(-0.6cqh) scale(1.07);
  box-shadow: 0 1.1cqh 0 color-mix(in srgb, var(--highlight2) 62%, black), 0 0 2cqh var(--highlight2);
}

.archive-month a:active {
  transform: translateY(0.35cqh) scale(0.98);
  box-shadow: 0 0.25cqh 0 var(--line);
}

.archive-loading {
  text-align: center;
  text-shadow: 0 0.15cqh 0.5cqh var(--panel);
}

.PORTRAIT .archive {
  padding: 3cqh 5cqw 5cqh;
}

.PORTRAIT .archive-months {
  width: 90cqw;
}

.PORTRAIT .archive-month {
  padding-inline: 4cqw;
}

.PORTRAIT .archive-month a {
  width: 4.4em;
  height: 4.4em;
}
