body {
  background: url('/assets/images/products/bg-mobile400.webp') 0 0 / 100% auto no-repeat;
}

@media (min-width: 768px) {
  body {
    background-image: url('/assets/images/products/bg-pad768.webp');
  }
}

@media (min-width: 1024px) {
  body {
    background-image: url('/assets/images/products/bg-web1024.webp');
  }
}

@media (min-width: 1400px) {
  body {
    background-image: url('/assets/images/products/bg-web1920.webp');
  }
}

.author-page {
  --author-accent: #e08349;
  --author-ink: #1f1f2b;
  --author-muted: #626572;
  --author-line: #e9e5e1;
  background: transparent;
  color: var(--author-ink);
  padding: 1rem 0 2rem;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.author-page *,
.author-page *::before,
.author-page *::after {
  box-sizing: border-box;
}

.author-page [hidden] {
  display: none !important;
}

.author-container {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.author-page h1,
.author-page h2,
.author-page h3,
.author-page p,
.author-page ul {
  margin: 0;
}

.author-page h1,
.author-page h2,
.author-page h3 {
  color: var(--author-ink);
  font-weight: 800;
  line-height: 1.3;
}

.author-page h1 {
  font-size: 1.5rem;
}

.author-page h2 {
  font-size: 1.75rem;
}

.author-page a {
  color: var(--author-accent);
  text-decoration: none;
}

.author-page a:hover {
  text-decoration: underline;
}

.author-page a:focus-visible,
.author-page button:focus-visible {
  outline: .1875rem solid #ae382f;
  outline-offset: .2rem;
}

.author-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1rem;
  color: var(--author-muted);
  font-size: .9375rem;
}

.author-breadcrumb a {
  color: var(--author-ink);
}

.author-breadcrumb [aria-current="page"] {
  color: #e05149;
}

.author-profile-card {
  padding: 1.5rem;
  border: 1px solid var(--author-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .5rem 1.75rem rgb(31 31 43 / 4%);
}

.author-profile-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.author-avatar {
  display: grid;
  flex: 0 0 8rem;
  width: 8rem;
  height: 8rem;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #f4e9e0;
  color: #805f49;
  font-size: .875rem;
  font-weight: 700;
}

.author-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-role {
  margin-top: .375rem !important;
  color: var(--author-muted);
  font-size: .875rem;
}

.author-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: .75rem;
}

.author-contact-links a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .375rem .75rem;
  border: 1px solid #e05149;
  border-radius: .75rem;
  color: #e05149;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.author-contact-links a:hover {
  background: rgb(224 81 73 / 6%);
  text-decoration: none;
}

.author-contact-links svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.author-bio,
.author-topics {
  margin-top: 1rem;
  padding-top: .875rem;
  border-top: 1px solid var(--author-line);
}

.author-bio h2 {
  font-size: 1.125rem;
}

.author-topics h2 {
  font-size: .75rem;
}

.author-bio p {
  margin-top: .5rem;
  color: var(--author-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.author-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin-top: .75rem;
  list-style: none;
}

.author-topics li {
  padding: .25rem .75rem;
  border: 1px solid #d5d5d5;
  border-radius: .25rem;
  background: transparent;
  color: var(--author-muted);
  font-size: .75rem;
  line-height: 1.5;
}

.author-articles-section {
  margin-top: 1.5rem;
  background: transparent;
}

.author-section-heading h2 {
  font-size: 1.375rem;
}

.author-article-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.author-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--author-line);
  border-radius: .75rem;
  background: #fff;
  color: var(--author-ink) !important;
}

.author-article-card:hover {
  text-decoration: none !important;
}

.author-article-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
}

.author-article-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-article-copy {
  padding: 1rem;
}

.author-article-card h3 {
  font-size: 1.125rem;
  line-height: 1.4;
}

.author-article-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: .75rem;
  padding: .25rem .5rem;
  border: 1px solid #e5e5e5;
  border-radius: .25rem;
  background: #f3f3f3;
  color: var(--author-muted);
  font-size: .75rem;
  line-height: 1.4;
}

.author-empty-state {
  padding: 2rem;
  border: 1px dashed #d9c9bd;
  border-radius: .75rem;
  background: rgb(255 255 255 / 72%);
  color: var(--author-muted);
  text-align: center;
}

.author-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.author-page-button {
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--author-accent);
  border-radius: .5rem;
  background: #fff;
  color: var(--author-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.author-page-button:hover:not(:disabled) {
  background: var(--author-accent);
  color: #fff;
}

.author-page-button:disabled {
  border-color: var(--author-line);
  color: #999;
  cursor: not-allowed;
}

.author-page-status {
  min-width: 4.5rem;
  color: var(--author-muted);
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .author-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .author-page {
    padding: 1rem 0 2rem;
  }

  .author-container {
    width: min(100% - 2rem, 72rem);
  }

  .author-profile-card {
    padding: 1rem;
  }

  .author-profile-main {
    align-items: flex-start;
    gap: 1rem;
  }

  .author-avatar {
    flex-basis: 5.5rem;
    width: 5.5rem;
    height: 5.5rem;
  }

  .author-page h1 {
    font-size: 1.375rem;
  }

  .author-section-heading h2 {
    font-size: 1.375rem;
  }

  .author-article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .author-article-card h3 {
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .author-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-article-card {
    scroll-behavior: auto;
  }
}
