:root {
  --ink: #111111;
  --paper: #f4f4f0;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  padding: 2rem 1.25rem;
}

main {
  max-width: 26rem;
  text-align: center;
}

.photo-figure {
  margin: 0;
}

.ascii-photo {
  width: fit-content;
  margin: 0 auto;
  font-size: 4.5px;
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  overflow: hidden;
}

h1 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}

.links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.links a:hover {
  opacity: 0.6;
}

.recommends {
  margin-top: 2rem;
  text-align: left;
  font-size: 0.85rem;
}

.recommends summary {
  cursor: pointer;
  text-align: center;
  list-style: none;
}

.recommends summary::-webkit-details-marker {
  display: none;
}

.recommends summary::before {
  content: "▸ ";
}

.recommends[open] summary::before {
  content: "▾ ";
}

.rec-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .recommends[open] {
    width: min(90vw, 46rem);
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .rec-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 0.85rem;
  }
}

.rec-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rec-emoji {
  width: 44px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.rec-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rec-text a {
  color: var(--ink);
}

.rec-creator {
  opacity: 0.65;
  font-size: 0.78rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0f0f0;
    --paper: #111111;
    color-scheme: dark;
  }
}
