:root {
  --brand-ink: #163247;
  --brand-teal: #2c7a72;
  --brand-copper: #c66b4b;
  --brand-gold: #d8a85f;
  --brand-paper: rgba(255, 251, 245, 0.92);
  --brand-line: rgba(22, 50, 71, 0.1);
  --brand-shadow: 0 24px 60px rgba(20, 34, 52, 0.12);
  --brand-radius-lg: 30px;
  --brand-radius-md: 22px;
}

body {
  background:
    radial-gradient(circle at 0 0, rgba(198, 107, 75, 0.16), transparent 24%),
    radial-gradient(circle at 100% 10%, rgba(44, 122, 114, 0.16), transparent 20%),
    linear-gradient(180deg, #f6efe7 0%, #fcfaf6 42%, #f2ece5 100%);
  color: var(--brand-ink);
}

#web_bg {
  background: transparent;
}

#nav {
  backdrop-filter: blur(18px);
}

#nav .site-icon {
  margin-right: 10px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(13, 31, 46, 0.18);
}

#page-header.full_page {
  overflow: hidden;
}

#page-header.full_page::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 27, 0.1) 0%, rgba(6, 16, 27, 0.42) 100%),
    radial-gradient(circle at 18% 22%, rgba(216, 168, 95, 0.22), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(198, 107, 75, 0.2), transparent 22%);
  content: "";
}

#page-header.full_page::after {
  position: absolute;
  inset: auto 5% 48px auto;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  content: "";
  transform: rotate(12deg);
}

#page-header.full_page #site-info {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 36px 28px;
  max-width: 960px;
}

#page-header.full_page #site-title {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 16px 48px rgba(5, 10, 18, 0.26);
}

#page-header.full_page #site-subtitle {
  margin: 0 auto;
  max-width: 760px;
  min-height: 3.6em;
  color: rgba(250, 245, 235, 0.9);
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  line-height: 1.85;
}

#page-header.full_page #site_social_icons {
  display: block;
  margin-top: 24px;
}

#page-header.full_page #site_social_icons .social-icon {
  margin: 0 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ee !important;
}

#recent-posts > .recent-post-item {
  margin-top: 26px;
  height: auto;
  min-height: 21em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--brand-radius-lg);
  background: var(--brand-paper);
  box-shadow: var(--brand-shadow);
}

#recent-posts > .recent-post-item:first-child {
  margin-top: 0;
}

#recent-posts > .recent-post-item .post_cover {
  width: 44%;
}

#recent-posts > .recent-post-item .post_cover .post-bg {
  height: 100%;
  object-fit: cover;
}

#recent-posts > .recent-post-item > .recent-post-info {
  padding: 34px 36px;
}

#recent-posts > .recent-post-item > .recent-post-info.no-cover {
  padding: 34px 36px;
}

#recent-posts > .recent-post-item .article-title {
  color: var(--brand-ink);
  font-size: 1.72em;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#recent-posts > .recent-post-item .article-title:hover {
  color: var(--brand-copper);
}

#recent-posts > .recent-post-item .article-meta-wrap {
  margin: 10px 0 14px;
  color: rgba(22, 50, 71, 0.68);
}

#recent-posts > .recent-post-item .content {
  -webkit-line-clamp: 4;
  color: rgba(22, 50, 71, 0.82);
  line-height: 1.9;
}

#recent-posts .article-meta__categories,
#recent-posts .article-meta__tags {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22, 50, 71, 0.06);
}

#aside-content .card-widget,
#recent-posts > .recent-post-item,
#post,
#page {
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: var(--brand-shadow);
}

#aside-content .card-widget {
  border-radius: var(--brand-radius-md);
  background: rgba(255, 250, 244, 0.88);
}

#aside-content .card-info .avatar-img img {
  padding: 8px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(198, 107, 75, 0.14), rgba(44, 122, 114, 0.14));
  box-shadow: 0 18px 40px rgba(18, 33, 49, 0.12);
}

#aside-content .card-info .author-info__name {
  font-size: 1.7em;
  letter-spacing: 0.03em;
}

.author-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.author-badges span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(22, 50, 71, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#aside-content .card-info #card-info-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-copper), #d98963);
  box-shadow: 0 10px 20px rgba(198, 107, 75, 0.22);
}

#aside-content .card-info #card-info-btn:hover {
  background: linear-gradient(135deg, #b75e40, #ca7c55);
}

.announcement-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-ink);
  font-size: 1rem;
}

.announcement-panel p {
  margin: 0 0 12px;
  line-height: 1.8;
}

.announcement-panel ul {
  margin: 0;
  padding-left: 18px;
}

.announcement-panel li {
  margin-bottom: 8px;
}

#aside-content .card-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#aside-content .card-tag-cloud a {
  padding: 6px 10px;
  border: 1px solid rgba(22, 50, 71, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-ink) !important;
  font-size: 0.86rem !important;
}

#page,
#post {
  border-radius: var(--brand-radius-lg);
  background: rgba(255, 252, 248, 0.94);
}

#article-container {
  line-height: 1.95;
}

#article-container h2,
#article-container h3,
#article-container h4 {
  color: var(--brand-ink);
  letter-spacing: 0.02em;
}

#article-container img {
  border: 1px solid rgba(22, 50, 71, 0.08);
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(22, 50, 71, 0.12);
}

#article-container .note {
  border-radius: 18px;
}

#article-container .highlight-tools {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

#article-container figure.highlight {
  border-radius: 18px;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(17, 40, 60, 0.96), rgba(23, 55, 76, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(216, 168, 95, 0.18), transparent 20%);
  color: #fff7ee;
  box-shadow: 0 24px 54px rgba(17, 40, 60, 0.18);
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-hero h2 {
  margin: 0 0 14px;
  color: #fff7ee;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.profile-hero p {
  margin: 0;
  color: rgba(255, 247, 238, 0.88);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-copper), #d78a61);
  color: #fffaf5 !important;
  font-weight: 700;
}

.profile-button:hover {
  text-decoration: none !important;
  transform: translateY(-1px);
}

.profile-button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-stat strong {
  font-size: 1.5rem;
}

.profile-stat span {
  margin-top: 8px;
  color: rgba(255, 247, 238, 0.78);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-card {
  padding: 24px;
  border: 1px solid var(--brand-line);
  border-radius: 26px;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 16px 36px rgba(22, 50, 71, 0.08);
}

.profile-card__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-teal);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card h3,
.profile-section h3,
.project-card h4 {
  margin-top: 0;
}

.skill-list,
.profile-card ul,
.project-card ul {
  margin: 0;
  padding-left: 18px;
}

.profile-card li,
.project-card li {
  margin-bottom: 8px;
}

.profile-section {
  padding: 26px;
  border: 1px solid var(--brand-line);
  border-radius: 32px;
  background: rgba(255, 252, 248, 0.94);
  box-shadow: 0 18px 42px rgba(22, 50, 71, 0.08);
}

.profile-section__head {
  margin-bottom: 18px;
}

.profile-section__head span {
  display: inline-block;
  color: var(--brand-copper);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  position: relative;
  padding: 22px 24px 22px 28px;
  border: 1px solid rgba(22, 50, 71, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(252, 246, 240, 0.92));
}

.project-card::before {
  position: absolute;
  top: 24px;
  left: 12px;
  width: 6px;
  height: calc(100% - 48px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-teal), var(--brand-copper));
  content: "";
}

.project-card__meta {
  margin-bottom: 10px;
  color: rgba(22, 50, 71, 0.68);
  font-size: 0.92rem;
}

.profile-card--contact a {
  word-break: break-all;
}

.profile-card__footnote {
  margin-top: 14px;
  color: rgba(22, 50, 71, 0.58);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .profile-hero,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    padding: 24px;
  }

  #recent-posts > .recent-post-item {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  #page-header.full_page #site-info {
    padding: 20px 18px;
  }

  #page-header.full_page #site-title {
    font-size: 2.45rem;
  }

  #recent-posts > .recent-post-item .post_cover {
    width: 100%;
  }

  #recent-posts > .recent-post-item > .recent-post-info,
  #recent-posts > .recent-post-item > .recent-post-info.no-cover {
    padding: 22px 20px 26px;
  }

  .profile-actions {
    flex-direction: column;
  }
}
