:root {
  --author-bg: #ece9e4;
  --author-surface: #f8f8f8;
  --author-border: #d8dde7;
  --author-title: #1e2f4f;
  --author-text: #4f5f76;
  --author-muted: #78849a;
}
a { color: inherit; text-decoration: none; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  background: var(--author-bg);
  color: var(--author-title);
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.site-header {
  box-shadow: none;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.author-page {
  padding: calc(var(--site-header-offset) + 34px) 0 64px;
}

.author-page .container {
  width: calc(100% - 160px);
  max-width: 1120px;
  margin-inline: auto;
}

.author-profile {
  box-sizing: border-box;
  width: min(760px, 100%);
  margin: 0 auto 42px;
  background: var(--author-surface);
  border: 1px solid var(--author-border);
  border-radius: 10px;
  padding: 20px 20px 18px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.author-avatar {
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d8c7a5;
}

.author-meta {
  min-width: 0;
}

.author-count {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--author-muted);
}

.author-name {
  margin: 0 0 6px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  color: #122b52;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.author-bio {
  margin: 0;
  max-width: 100%;
  padding: 6px;
  color: #2f496f;
  font-size: 14px;
  line-height: 1.55;
}

.author-back-home {
  display: flex;
  justify-content: center;
  margin: 50px 0 30px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 138px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #dbe2ee;
  background: #f9fbff;
  color: #5d6f8b;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.back-home-arrow {
  font-size: 14px;
  line-height: 1;
  color: #7f8fa8;
  transform: translateY(-1px);
}

.back-home-btn:hover,
.back-home-btn:focus,
.back-home-btn:visited,
.back-home-btn:active {
  background: #f4f7fc;
  border-color: #cfd8e8;
  color: #526683;
  text-decoration: none;
}

.author-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fbfcff;
  border: 1px solid #d9dfeb;
  border-radius: 12px;
  padding: 24px 22px 20px;
  min-height: 236px;
  box-shadow: 0 4px 14px rgba(27, 39, 58, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27, 39, 58, 0.12);
}

.work-date {
  margin: 0 0 10px;
  font-size: 10px;
  color: #7c8aa3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.34;
  color: #0f2748;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.work-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--author-text);
}

.work-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 11px;
  color: #233f67;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.work-link:hover,
.work-link:focus,
.work-link:visited,
.work-link:active {
  color: #233f67;
  text-decoration: none;
}
 

.work-link span {
  margin-left: 4px;
}

@media (max-width: 980px) {
  .author-page .container {
    width: calc(100% - 72px);
    max-width: 760px;
  }

  .author-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .author-page {
    padding: calc(var(--site-header-offset) + 18px) 0 40px;
  }

  .author-page .container {
    width: calc(100% - 32px);
    max-width: 560px;
  }

  .author-profile {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 10px;
  }

  .author-avatar {
    width: 62px;
    height: 62px;
  }

  .author-name {
    font-size: 32px;
  }

  .author-bio {
    font-size: 13px;
  }

  .author-works {
    grid-template-columns: 1fr;
  }
}
