body {
  font-family: Courier New;
  background: #f8f8f8;
  color: #222;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.6;
  padding-bottom: 0;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

footer {
  text-align: center;
  padding: 10px 16px;
  color: #666;
  background-color: white;
  font-weight: bold;
  font-family: monospace;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #ddd;
}

.logo {
  padding-bottom: 2rem;
  user-select: none;
  display: block;
  font-size: 2em;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.subtitle {
  font-size: 1rem;
  color: #666;
}

.poem {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.poem h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #444;
}

.poem pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 1rem;
}

.poem .date {
  font-size: .875rem;
  color: #777;
  margin: -.5rem 0 1rem;
}

#loader {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 2rem;
}









/* list.html и poem.html */

.poem-link {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #ddd;
}

.poem-link:hover {
  background: #f5f5f5;
}

.date {
  opacity: 0.6;
  font-family: monospace;
  white-space: nowrap;
}




/* Стили меню */

.top-menu {
  position: sticky;
  top: 0;
  background: white;
  padding: 10px 16px;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #ddd;
  z-index: 10;
}

.top-menu a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  opacity: 0.7;
}

.top-menu a:hover {
  opacity: 1;
}

/* Подьездный шрифт меню */
.top-menu {
  font-family: monospace;
  letter-spacing: 0.05em;
}

/* Подсветка активной вкладки */
.top-menu a.active {
  opacity: 1;
  border-bottom: 2px solid black;
}

/* Стили доп меню */

.sub-menu {
  display: flex;
  justify-content: center;
  gap: 20px;

  margin-top: 10px;
  margin-bottom: 30px;

  font-size: 0.95rem;
}

.sub-menu a {
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
}

.sub-menu a:hover {
  opacity: 1;
}

.sub-menu a.active {
  opacity: 1;
  text-decoration: underline;
}



main.liked {
  max-width: 720px;
  padding: 0 20px;
}

#liked-container h2 {
  font-size: 22px;
  font-weight: normal;
  margin: 48px 0 16px;
  opacity: 0.85;
  letter-spacing: 0.03em;
  font-weight: bold;
}

#liked-container h2 {
  text-transform: uppercase;
}

#liked-container ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px 0;
}

#liked-container li {
  margin-bottom: 10px;
}

#liked-container a {
  color: #4b4b4b;
  text-decoration: none;
  font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
}

#liked-container a:hover {
  border-bottom-color: rgba(255,255,255,0.6);
}

#liked-container li::before {
  content: "— ";
  opacity: 0.4;
}
