:root {
  --bg: #f3ede4;
  --bg-soft: #fbf7f1;
  --panel: rgba(255, 253, 249, 0.92);
  --panel-strong: #fffdfa;
  --line: rgba(30, 35, 44, 0.1);
  --line-strong: rgba(30, 35, 44, 0.24);
  --text: #1e232c;
  --muted: #6d645c;
  --accent: #b95c38;
  --accent-deep: #8a4028;
  --accent-soft: #f3dccf;
  --accent-gold: #c89c3d;
  --accent-night: #20314a;
  --blue-soft: #e6ecf4;
  --shadow: 0 26px 60px rgba(47, 33, 19, 0.12);
  --shadow-soft: 0 18px 38px rgba(47, 33, 19, 0.1);
  --radius: 30px;
  --radius-sm: 20px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 92, 56, 0.1), transparent 28%),
    radial-gradient(circle at right 14% top 18%, rgba(32, 49, 74, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0) 220px),
    linear-gradient(rgba(30, 35, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 35, 44, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f7f1e8 0%, #f3ede4 48%, #faf6ef 100%);
  background-size: auto, auto, auto, 32px 32px, 32px 32px, auto;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 29, 37, 0.9);
  border-bottom: 1px solid rgba(200, 156, 61, 0.18);
  backdrop-filter: blur(18px);
}

.header-bar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5efe6;
}

.site-logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px 4px;
  border-bottom: 2px solid transparent;
  color: rgba(245, 239, 230, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  border-color: var(--accent-gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #f5efe6;
  transition: 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  padding: 38px 0 96px;
}

.section-heading-wrap,
.section-bar,
.page-head {
  margin-bottom: 28px;
}

.section-heading-wrap {
  max-width: 860px;
}

.section-heading-wrap h1,
.page-head h1,
.section-bar h2,
.author-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 800;
  color: var(--accent);
}

.section-bar,
.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.section-bar::after,
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 112px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold), transparent);
}

.center-head {
  justify-content: center;
  text-align: center;
}

.no-top-gap {
  margin-top: 0;
}

.story-card-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.story-card-taxonomy a,
.story-card-taxonomy span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 49, 74, 0.12);
  background: rgba(32, 49, 74, 0.06);
  color: var(--accent-night);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-card-meta,
.latest-showcase-meta,
.related-showcase-meta,
.profile-post-meta,
.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feature {
  padding-top: 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.feature-card,
.latest-showcase-card,
.story-card-horizontal,
.related-showcase-card,
.profile-post-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
}

.feature-card:first-child {
  grid-column: 1 / -1;
  border-color: rgba(32, 49, 74, 0.35);
  background: var(--accent-night);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.feature-card:first-child::before {
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-gold), var(--accent));
}

.feature-card:first-child .feature-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(340px, 0.76fr);
  min-height: 100%;
}

.feature-card:first-child .feature-card-body {
  order: 1;
  justify-content: center;
  padding: 40px 36px 36px 40px;
}

.feature-card:first-child .feature-card-media {
  order: 2;
  aspect-ratio: auto;
  min-height: 100%;
  background: #d8cfbf;
}

.feature-card:first-child .story-card-taxonomy a,
.feature-card:first-child .story-card-taxonomy span {
  border-color: rgba(200, 156, 61, 0.3);
  background: rgba(200, 156, 61, 0.18);
  color: #f7e0ab;
}

.feature-card:first-child .story-card-meta {
  color: rgba(255, 255, 255, 0.7);
}

.feature-card:not(:first-child) {
  grid-column: span 4;
}

.feature-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9d2ca;
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-media img,
.latest-showcase-card:hover .latest-showcase-media img,
.related-showcase-card:hover .related-showcase-media img,
.profile-post-card:hover .profile-post-media img {
  transform: scale(1.05);
}

.feature-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 24px;
}

.feature-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-size: 1.34rem;
}

.feature-card:first-child h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.76;
}

.feature-card:first-child p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
}

.feature-card:not(:first-child) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.feature-card:not(:first-child):nth-child(2n) {
  margin-top: 18px;
}

.feature-card:hover,
.latest-showcase-card:hover,
.story-card-horizontal:hover,
.related-showcase-card:hover,
.profile-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 92, 56, 0.2);
  box-shadow: var(--shadow);
}

.feature-card:first-child:hover {
  transform: none;
}

.home-categories,
.home-latest,
.author-articles {
  margin-top: 58px;
}

.category-wall {
  counter-reset: topics;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-pill {
  counter-increment: topics;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 122px;
  padding: 20px 18px 18px 88px;
  border-radius: 26px 26px 10px 26px;
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(249, 242, 232, 0.94));
  box-shadow: var(--shadow-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.18;
}

.category-pill::before {
  content: counter(topics, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.category-pill::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 46px;
  width: 46px;
  height: 1px;
  background: var(--accent-gold);
}

.category-pill:nth-child(3n + 2) {
  background: linear-gradient(135deg, rgba(244, 247, 251, 0.92), rgba(230, 236, 244, 0.98));
}

.category-pill:nth-child(3n + 3) {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(246, 229, 206, 0.94));
}

.category-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 92, 56, 0.2);
  color: var(--accent-deep);
}

.latest-showcase-grid {
  counter-reset: latestStories;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.latest-showcase-card {
  counter-increment: latestStories;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.latest-showcase-card::before {
  content: counter(latestStories, decimal-leading-zero);
  position: absolute;
  right: 22px;
  top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.9rem;
  line-height: 1;
  color: rgba(32, 49, 74, 0.08);
}

.latest-showcase-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
}

.latest-showcase-card:nth-child(even) .latest-showcase-media {
  grid-column: 2;
}

.latest-showcase-card:nth-child(even) .latest-showcase-body {
  grid-column: 1;
  grid-row: 1;
}

.latest-showcase-media {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #d9d2ca;
}

.latest-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.latest-showcase-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 28px 24px 24px;
}

.latest-showcase-title,
.story-card-title,
.related-showcase-title,
.profile-post-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.latest-showcase-title {
  font-size: 1.52rem;
  max-width: 22ch;
}

.latest-showcase-title a:hover,
.story-card-title a:hover,
.related-showcase-title a:hover,
.profile-post-title a:hover,
.sidebar-post a:hover,
.archive-item h2 a:hover {
  color: var(--accent-deep);
}

.latest-showcase-brief,
.story-card-brief,
.related-showcase-brief,
.profile-post-brief {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.latest-showcase-meta,
.story-card-meta,
.related-showcase-meta,
.profile-post-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 35, 44, 0.08);
}

.content-shell {
  padding-top: 8px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crumbs a:hover {
  color: var(--accent-deep);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 28px;
  align-items: start;
}

.list-cards {
  display: grid;
  gap: 22px;
}

.story-card-horizontal {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 26px 26px 12px 26px;
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.story-card-horizontal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-gold));
}

.story-card-media {
  display: block;
  background: #d9d2ca;
}

.story-card-horizontal .story-card-media {
  min-height: 220px;
}

.story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 26px 24px 30px;
}

.story-card-title {
  font-size: 1.46rem;
}

.sidebar-stack {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 92px;
}

.sidebar-card,
.article-panel,
.author-copy,
.single-panel,
.archive-item,
.comment-shell,
.related-shell {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.sidebar-card,
.archive-item,
.comment-shell,
.related-shell {
  padding: 24px;
}

.article-panel,
.author-copy,
.single-panel {
  padding: 34px 36px;
}

.sidebar-card::before,
.article-panel::before,
.author-copy::before,
.single-panel::before,
.archive-item::before,
.comment-shell::before,
.related-shell::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 76px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
}

.article-panel::before,
.author-copy::before,
.single-panel::before {
  left: 36px;
  width: 92px;
}

.sidebar-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-head h3,
.related-shell h2,
.comment-shell h2,
.author-box h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
}

.sidebar-links,
.sidebar-posts {
  display: grid;
  gap: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(248, 241, 232, 0.86));
  font-weight: 700;
}

.sidebar-link:hover {
  color: var(--accent-deep);
  border-color: rgba(185, 92, 56, 0.18);
}

.sidebar-link-arrow {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.sidebar-post {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(30, 35, 44, 0.12);
}

.sidebar-post:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-post time {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-post a {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
}

.editor-profile-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.editor-avatar {
  display: block;
  width: 90px;
  height: 90px;
  padding: 5px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-night), var(--accent));
}

.editor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.editor-text h4 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.editor-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.article-head h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.01;
  letter-spacing: -0.05em;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.author-chip {
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  border-radius: 999px;
}

.author-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.article-content {
  margin-top: 28px;
  font-size: 1rem;
  color: #26221d;
  line-height: 1.86;
  word-break: normal;
  overflow-wrap: normal;
}

.article-content p {
  margin: 0 0 1.2em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.7em 0 0.65em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  color: var(--text);
}

.article-content h2 {
  font-size: 1.8rem;
}

.article-content h3 {
  font-size: 1.44rem;
}

.article-content h4 {
  font-size: 1.18rem;
}

.article-content a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(185, 92, 56, 0.35);
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.article-content li + li {
  margin-top: 0.45em;
}

.article-content blockquote {
  margin: 1.5em 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(185, 92, 56, 0.06);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.72;
}

.article-content img {
  height: auto;
  margin: 28px auto;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.author-box,
.share-panel,
.comment-shell,
.related-shell,
.article-switch {
  margin-top: 28px;
}

.author-box {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: linear-gradient(135deg, rgba(250, 243, 233, 0.96), rgba(255, 255, 255, 0.96));
}

.author-box-media img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 28px;
}

.author-box-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.author-box-body h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
}

.author-box-body p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.76;
}

.share-panel {
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(32, 49, 74, 0.34);
  background: linear-gradient(135deg, rgba(32, 49, 74, 0.96), rgba(58, 42, 30, 0.94));
  color: #ffffff;
}

.share-panel > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.share-btn,
.submit-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(185, 92, 56, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.share-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(185, 92, 56, 0.28);
}

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

.switch-card {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: rgba(255, 253, 249, 0.84);
}

.switch-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.switch-card strong {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
}

.comment-form-static {
  display: grid;
  gap: 14px;
}

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

.comment-form-static input,
.comment-form-static textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(30, 35, 44, 0.12);
  border-radius: 18px;
  background: #fffdfa;
  color: var(--text);
  outline: none;
}

.comment-form-static input:focus,
.comment-form-static textarea:focus {
  border-color: rgba(185, 92, 56, 0.5);
  box-shadow: 0 0 0 4px rgba(185, 92, 56, 0.12);
}

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

.related-showcase-card,
.profile-post-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 26px 26px 12px 26px;
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.related-showcase-media,
.profile-post-media {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #d9d2ca;
}

.related-showcase-media img,
.profile-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-showcase-body,
.profile-post-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 20px;
}

.related-showcase-title,
.profile-post-title {
  font-size: 1.14rem;
}

.related-showcase-brief,
.profile-post-brief {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.author-shell,
.narrow-shell {
  width: min(1080px, calc(100% - 48px));
}

.author-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
  padding: 32px;
  border-radius: 40px 40px 16px 40px;
  background: linear-gradient(135deg, rgba(32, 49, 74, 0.97), rgba(58, 42, 30, 0.93));
  box-shadow: var(--shadow);
  color: #ffffff;
}

.author-hero .eyebrow {
  color: #f7e0ab;
}

.author-portrait img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.author-intro p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
  line-height: 1.78;
}

.archive-list {
  display: grid;
  gap: 16px;
}

.archive-item time {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-item h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.16;
}

.pager-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  row-gap: 10px;
  margin-top: 30px;
}

.pager-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(30, 35, 44, 0.1);
  background: rgba(255, 253, 249, 0.88);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.pager-chip:hover,
.pager-chip.is-current {
  border-color: var(--accent-night);
  background: var(--accent-night);
  color: #ffffff;
}

.pager-chip.is-disabled,
.pager-chip.is-gap {
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(30, 35, 44, 0.1);
  background: #171d25;
}

.footer-inner {
  padding: 24px 0 34px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-link {
  color: rgba(245, 239, 230, 0.72);
}

.footer-link:hover {
  color: #ffffff;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(185, 92, 56, 0.26);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .feature-card:first-child .feature-card-link {
    grid-template-columns: 1fr;
  }

  .feature-card:not(:first-child) {
    grid-column: span 6;
    margin-top: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
  }

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

  .author-portrait img {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 900px) {
  .category-wall,
  .related-showcase-grid,
  .profile-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-showcase-card,
  .latest-showcase-card:nth-child(even),
  .story-card-horizontal,
  .related-showcase-card,
  .profile-post-card {
    grid-template-columns: 1fr;
  }

  .latest-showcase-card:nth-child(even) .latest-showcase-media,
  .latest-showcase-card:nth-child(even) .latest-showcase-body {
    grid-column: auto;
    grid-row: auto;
  }

  .latest-showcase-media,
  .story-card-horizontal .story-card-media,
  .related-showcase-media,
  .profile-post-media {
    min-height: 0;
    aspect-ratio: 4 / 2.8;
  }

  .article-panel,
  .author-copy,
  .single-panel {
    padding: 28px 24px;
  }

  .article-panel::before,
  .author-copy::before,
  .single-panel::before {
    left: 24px;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .author-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .author-intro p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .container,
  .author-shell,
  .narrow-shell {
    width: min(100%, calc(100% - 20px));
  }

  body {
    background-size: auto, auto, auto, 20px 20px, 20px 20px, auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% + 10px);
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1d2430;
    box-shadow: var(--shadow);
  }

  .nav-link {
    min-height: 42px;
    padding: 0 10px;
    border-bottom: 0;
    border-radius: 12px;
    color: rgba(245, 239, 230, 0.76);
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  main {
    padding: 28px 0 82px;
  }

  .feature-grid,
  .category-wall,
  .article-switch,
  .comment-row {
    grid-template-columns: 1fr;
  }

  .feature-card:not(:first-child) {
    grid-column: 1 / -1;
  }

  .feature-card:first-child .feature-card-body,
  .feature-card-body,
  .latest-showcase-body,
  .story-card-body,
  .related-showcase-body,
  .profile-post-body {
    padding: 18px;
  }

  .section-heading-wrap h1,
  .page-head h1,
  .section-bar h2,
  .author-intro h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .article-head h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
  }

  .article-meta-line {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .comment-shell,
  .related-shell {
    padding: 20px 18px;
  }

  .comment-shell::before,
  .related-shell::before,
  .sidebar-card::before,
  .archive-item::before {
    left: 18px;
  }

  .pager-chip {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* detail-mobile-tune-1760 */
.author-chip-label {
  color: inherit;
}

@media (max-width: 768px) {
  .detail-crumbs {
    display: none;
  }

  .author-chip img {
    display: none;
  }
}


/* detail-overflow-fix-1760 */
.content-grid,
.content-main,
.content-side,
.article-panel,
.article-head,
.article-content,
.related-showcase-grid,
.related-showcase-card,
.related-showcase-body {
  min-width: 0;
}

.article-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content table,
.article-content pre,
.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
  max-width: 100%;
}

.article-content table,
.article-content pre {
  display: block;
  overflow-x: auto;
}

.article-content pre {
  white-space: pre-wrap;
}

@media (max-width: 767px) {
  .page-detail,
  .content-shell,
  .content-grid,
  .content-main {
    overflow-x: hidden;
  }
}


/* editorial-polish-1760 */
.related-shell .related-showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-shell .related-showcase-card {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  border-radius: 24px 24px 14px 24px;
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 240, 231, 0.94));
  box-shadow: 0 18px 40px rgba(47, 33, 19, 0.08);
}

.related-shell .related-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 92, 56, 0.26);
  box-shadow: 0 24px 48px rgba(47, 33, 19, 0.14);
}

.related-shell .related-showcase-media {
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(30, 35, 44, 0.06);
}

.related-shell .related-showcase-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 20px;
}

.related-shell .related-showcase-taxonomy {
  margin-bottom: 0;
}

.related-shell .related-showcase-title {
  font-size: 1.18rem;
}

.related-shell .related-showcase-title a {
  display: block;
}

.related-shell .related-showcase-meta {
  margin-top: auto;
  padding-top: 14px;
}

.related-shell .related-showcase-brief {
  margin: 0;
  -webkit-line-clamp: 2;
}

.author-articles .profile-posts-grid {
  counter-reset: author-posts;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.author-articles .profile-post-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px 24px 12px 24px;
  border: 1px solid rgba(30, 35, 44, 0.08);
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(248, 242, 234, 0.94));
  box-shadow: 0 16px 34px rgba(47, 33, 19, 0.08);
  counter-increment: author-posts;
}

.author-articles .profile-post-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-gold));
}

.author-articles .profile-post-card::after {
  content: counter(author-posts, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(32, 49, 74, 0.28);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.author-articles .profile-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 92, 56, 0.24);
  box-shadow: 0 22px 44px rgba(47, 33, 19, 0.12);
}

.author-articles .profile-post-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 22px 26px;
}

.author-articles .profile-post-title {
  font-size: 1.22rem;
  max-width: 17ch;
}

.author-articles .profile-post-meta {
  order: -1;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.author-articles .profile-post-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(185, 92, 56, 0.18);
  background: rgba(185, 92, 56, 0.08);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .related-shell .related-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .related-shell .related-showcase-grid,
  .author-articles .profile-posts-grid {
    grid-template-columns: 1fr;
  }

  .related-shell .related-showcase-body,
  .author-articles .profile-post-body {
    padding: 16px;
  }

  .author-articles .profile-post-card::after {
    top: 14px;
    right: 16px;
  }
}
