/**
Theme Name: My Astra
Template: astra
Author: Zhonglin Niu
Version: 1.0
*/
@import url(https://staticccel.org/fa/v6/css/all.css);
:root {
  /* colors from astra theme */
  --color-0: var(--ast-global-color-0);
  /* #e95930; */
  --color-1: var(--ast-global-color-1);
  /* #946659; */
  --color-2: var(--ast-global-color-2);
  /* #171921; */
  --color-3: var(--ast-global-color-3);
  /* #30333a; */
  --color-4: var(--ast-global-color-4);
  /* #fffaf8; */
  --color-5: var(--ast-global-color-5);
  /* #FFFFFF; */
  --color-6: var(--ast-global-color-6);
  /* #F2F5F7; */
  --color-7: var(--ast-global-color-7);
  /* #e95930; */
  --color-8: var(--ast-global-color-8);
  /* #000000; */
}

* {
  padding: 0;
  margin: 0;
}

p {
  margin-bottom: 1rem;
}

.thumbnail {
  width: 100%;
  height: 300px;
  position: relative;
  aspect-ratio: 1.4;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.thumbnail .no-image {
  width: 100%;
  height: 100%;
  background-color: var(--color-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumbnail .no-image h1 {
  text-align: center;
  color: var(--color-0);
}

.title-card {
  position: relative;
  min-height: 360px;
  width: 100%;
  color: var(--color-2);
}
.title-card__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 0;
}
.title-card__content h1 {
  margin-bottom: 1rem;
  color: var(--color-2);
  text-align: center;
  padding: 0 1rem;
  max-width: 1000px;
}
.title-card__content p {
  text-align: center;
  max-width: 42rem;
  padding: 0 1rem;
}
.title-card__background {
  position: absolute;
  inset: 0;
  background-color: var(--color-7);
  opacity: 0.12;
  z-index: -1;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
          clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.single-post {
  width: 100%;
}
.single-post .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.single-post .container .post-content {
  max-width: 48rem;
  margin: 0 auto;
}
.single-post .featured-image {
  margin-top: -7rem;
  width: 100%;
  height: 400px !important;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 3rem;
  border-radius: 0.5rem;
}
.single-post .featured-image.placeholder {
  background-color: var(--color-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-post .featured-image.placeholder h1 {
  text-align: center;
}
.single-post .info-box {
  background-color: #FDF6F6;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 3rem;
}
.single-post .info-box h2 {
  font-size: 1.5rem;
  font-family: serif;
  color: #582D1D;
  margin-bottom: 1.5rem;
}
.single-post .info-box .info-content {
  display: flex;
  flex-direction: column;
}
.single-post .info-box .info-content p {
  margin-bottom: 0;
}
.single-post .info-box .resource-button {
  margin-top: 1rem;
  background-color: #8B4513;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  width: -moz-fit-content;
  width: fit-content;
}
.single-post .info-box .resource-button:hover {
  opacity: 0.9;
}
.single-post .meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.single-post .meta-table th,
.single-post .meta-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #f0e8e4;
}
.single-post .meta-table th {
  width: 30%;
  font-weight: 600;
  color: #582D1D;
  white-space: nowrap;
}
.single-post .meta-table td {
  color: #374151;
  word-break: break-word;
}
.single-post .attachments-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.single-post .attachments-list li {
  display: flex;
}
.single-post .attachments-list .resource-button {
  font-size: 0.875rem;
}
.single-post .commentary h2 {
  font-size: 1.5rem;
  font-family: serif;
  color: #582D1D;
  margin-bottom: 1.5rem;
}
.single-post .commentary .prose {
  max-width: none;
}
.single-post .commentary .prose h1 {
  font-size: 2.25rem;
  margin: 2rem 0 1rem;
}
.single-post .commentary .prose h2 {
  font-size: 1.875rem;
  margin: 1.75rem 0 0.875rem;
}
.single-post .commentary .prose h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}
.single-post .commentary .prose p {
  margin-bottom: 1.25rem;
}
.single-post .commentary .prose ul,
.single-post .commentary .prose ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}
.single-post .commentary .prose li {
  margin-bottom: 0.5rem;
}
.single-post .commentary .prose a {
  color: #582D1D;
  text-decoration: underline;
}

.resources-archive {
  width: 100%;
}
.resources-archive .wrapper {
  margin: 2rem auto 1rem;
  width: calc(100% - 4rem);
}
.resources-archive .container {
  max-width: 1000px;
  margin: 0 auto;
}
.resources-archive .resources-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .resources-archive .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .resources-archive .resources-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.resources-archive .resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.resources-archive .resource-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.resources-archive .resource-card .title {
  font-size: 1rem;
  font-family: serif;
  margin-top: 0;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .resources-archive .resource-card .title {
    font-size: 1.125rem;
  }
}
.resources-archive .resource-card .title a {
  color: inherit;
  text-decoration: none;
}
.resources-archive .resource-card .title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.resources-archive .resource-card .title a:hover {
  text-decoration: underline;
}
.resources-archive .resource-card .excerpt {
  color: #6b7280;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.resources-archive .resource-card .card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid #f3f4f6;
}
.resources-archive .resource-card .card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1;
}
.resources-archive .resource-card .card-meta .meta-item i {
  font-size: 0.7rem;
  color: #9ca3af;
  width: 0.85rem;
  text-align: center;
  flex-shrink: 0;
}
.resources-archive .resource-card .left {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .resources-archive .resource-card .left {
    width: 200px;
    height: 200px;
  }
}
.resources-archive .resource-card .left .thumbnail {
  height: 100%;
}
.resources-archive .resource-card .bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.resources-archive .resource-card .right {
  margin-left: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.resources-archive .direction-row {
  flex-direction: row;
  margin-bottom: 1rem;
}
.resources-archive .collection-card {
  position: relative;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.resources-archive .collection-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.resources-archive .collection-card .title {
  font-size: 1rem;
  font-family: serif;
  margin: 0;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .resources-archive .collection-card .title {
    font-size: 1.125rem;
  }
}
.resources-archive .collection-card .title a {
  color: inherit;
  text-decoration: none;
}
.resources-archive .collection-card .title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.resources-archive .collection-card .title a:hover {
  text-decoration: underline;
}
.resources-archive .pagination {
  grid-column: 1/-1;
}
.resources-archive .no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 2rem 0;
}
.resources-archive .no-results p {
  color: #6b7280;
}

.single-person {
  width: 100%;
}
.single-person .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.single-person .container .post-content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
@media (min-width: 768px) {
  .single-person .container .post-content {
    flex-direction: row;
  }
}
@media (min-width: 768px) {
  .single-person .container .left {
    width: 50%;
  }
}
.single-person .container .right {
  order: -1;
}
@media (min-width: 768px) {
  .single-person .container .right {
    order: 0;
    max-width: 50%;
  }
}
.single-person .featured-image {
  width: 100%;
  height: 400px !important;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 3rem;
  border-radius: 0.5rem;
}
.single-person .featured-image.placeholder {
  background-color: var(--color-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-person .featured-image.placeholder h1 {
  text-align: center;
}

.custom-search-form {
  display: flex;
  align-items: center;
  border: 2px solid #d1c4bc;
  border-radius: 9999px;
  overflow: hidden;
  background: transparent;
  transition: border-color 0.2s;
}
.custom-search-form:focus-within {
  border-color: var(--color-0);
}
.custom-search-form input[type=search] {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  width: 420px;
  color: var(--color-2);
}
.custom-search-form input[type=search]::-moz-placeholder {
  color: #9ca3af;
}
.custom-search-form input[type=search]::placeholder {
  color: #9ca3af;
}
@media (max-width: 1200px) {
  .custom-search-form input[type=search] {
    width: 220px;
  }
}
.custom-search-form button {
  border: none;
  background: transparent;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  color: #582D1D;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}
.custom-search-form button:hover {
  color: var(--color-0);
}