body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
  padding: 0 1rem;
}

main, header, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
}

header {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.description {
  max-width: 600px;
  margin: 2rem auto;
  font-size: 1.2rem;
  text-align: center;
}

.recent {
  max-width: 700px;
  margin: 2rem auto;
}

.text-preview h3 {
  margin-bottom: 0.2rem;
}

.text-preview p {
  margin: 0.25rem 0;
}

/* Универсальные заголовки */
section h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Подзаголовки (например, h3 на text.html) */
section h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Текст в параграфах */
section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Списки авторов, текстов и т.п. */
section ul {
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

section ul li {
  margin-bottom: 0.5rem;
}

/* Ссылки */
section a {
  color: black;
  text-decoration: underline;
}

section a:hover {
  color: #000;
}

/* Выравнивание всех секций по ширине */
section.page,
section.recent {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

/* Текст манифеста и отрывков */
section p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.text-preview {
  margin-bottom: 2rem;
}

.text-preview h3 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
}

.text-preview .author {
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 0.4rem;
}

.text-preview .excerpt {
  font-size: 1rem;
}

/* Центрировать заголовок */
.topbar-title {
  text-align: center;
  flex: 1;
}

.topbar-title a {
  font-size: 2rem;
  font-weight: 700;
  color: #000; /* фиолетовый или любой другой */
  text-decoration: none;
}

/* Чтобы ссылки не меняли цвет после посещения */
a, a:visited, a:hover, a:active {
  color: #000;
  text-decoration: none;
}

/* Центрирование футера */
footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: #000;
}

.logo {
  position: relative;
  text-align: center;
}

.logo h1 {
  font-size: 2rem;
  margin: 0;
  cursor: pointer;
  text-align: center;
}

.logo h1 a {
  color: #000;
  text-decoration: none;
}

.main-nav {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
}

.main-nav a {
  display: inline-block;
  padding: 0 0.8rem; /* симметричные отступы */
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.main-nav .divider {
  display: inline-block;
  color: #000;
  font-weight: 300;
}

/* Адаптивность под экраны < 600px (телефоны) */
@media (max-width: 600px) {
  body {
    padding: 0 0.75rem;
  }

  main, header, footer {
    padding: 1rem;
  }

  .main-nav {
    font-size: 0.95rem;
    line-height: 1.4;
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
  }

  .text-preview h3 {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  section.page, section.recent {
    padding: 0;
    margin: 1rem auto;
  }
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  transition: box-shadow 0.2s ease;
}

.author-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.author-header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.author-header h2 {
  margin: 0.5rem 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.author-bio {
  font-size: 1rem;
  color: #555;
}

section.page ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.author-about p {
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.author-about p:first-child {
  margin-top: 0;
}

.author-about p {
  line-height: 1.5;
  margin: 0 0 1rem 0;
}
