:root {
  --md-surface: #ffffff;
  --md-on-surface: #201815;
  --md-primary: #d81515;
  --md-on-primary: #ffffff;
  --md-secondary-container: #fff2f2;
  --md-on-secondary-container: #2d1f1a;
  --md-tertiary: #008c8c;
  --md-tertiary-container: #d7f3ef;
  --md-surface-container: #fafafa;
  --md-surface-container-low: #ffffff;
  --md-surface-container-high: #ededed;
  --md-reading-surface: rgba(255, 255, 255, 0.94);
  --md-outline: #82766f;
  --md-on-variant: #57504c;
  --md-success: #386a20;
  --md-warning: #7d5700;
  --md-accent-container: #d7e7cb;
  --md-on-accent-container: #13210f;
  --md-radius-xl: 8px;
  --md-radius-lg: 8px;
  --md-radius-md: 8px;
  --md-radius-sm: 8px;
  --md-ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--md-surface);
  color: var(--md-on-surface);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

p,
h1,
h2,
h3,
li {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--md-primary);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--md-primary);
  color: var(--md-on-primary);
  padding: 0.75rem 1rem;
  transition: transform 200ms var(--md-ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(121, 116, 126, 0.22);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.hero,
.section-block,
.page-hero,
.content-shell,
.article-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-shell {
  width: min(1420px, calc(100% - 40px));
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 48px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--md-on-surface);
  transition: transform 300ms var(--md-ease), box-shadow 300ms var(--md-ease);
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  object-fit: cover;
  object-position: center 22%;
  background: #fff;
}

.brand-pill:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--md-primary);
  color: var(--md-on-primary);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-mark circle {
  fill: currentColor;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.1;
}

.brand-pill strong,
.brand-pill small {
  display: block;
}

.brand-pill strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.82rem;
  line-height: 0.95;
}

.brand-pill small {
  color: var(--md-on-variant);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 1rem;
  color: var(--md-on-variant);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 200ms var(--md-ease), color 200ms var(--md-ease);
}

.nav-links a:hover {
  background: rgba(216, 21, 21, 0.08);
  color: var(--md-primary);
}

.nav-links a.is-active {
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  box-shadow: inset 0 0 0 1px rgba(216, 21, 21, 0.18);
}

.hero {
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(139, 123, 111, 0.16);
  border-radius: var(--md-radius-xl);
  background: linear-gradient(110deg, rgba(216, 21, 21, 0.045), rgba(0, 140, 140, 0.025)), #fff;
  box-shadow: 0 16px 42px rgba(28, 27, 31, 0.065);
}

.hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--md-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  white-space: nowrap;
  overflow-wrap: normal;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.hero-text,
.page-hero p {
  max-width: 640px;
  margin: 1.25rem 0 0;
  color: var(--md-on-variant);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 1.35rem;
  font-weight: 700;
  transition: transform 220ms var(--md-ease), box-shadow 300ms var(--md-ease), background-color 220ms var(--md-ease);
}

.btn:active,
.project-card:active,
.compact-card:active,
.node-card:active {
  transform: scale(0.98);
}

.btn.filled {
  background: var(--md-primary);
  color: var(--md-on-primary);
}

.btn.filled:hover {
  background: rgba(216, 21, 21, 0.9);
  box-shadow: 0 8px 20px rgba(216, 21, 21, 0.18);
}

.btn.tonal {
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
}

.btn.outlined,
.btn.ghost {
  border: 1px solid rgba(121, 116, 126, 0.5);
  color: var(--md-primary);
}

.btn.ghost {
  background: transparent;
}

.btn.outlined:hover,
.btn.ghost:hover {
  background: rgba(216, 21, 21, 0.08);
}

.hero-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.node-card {
  min-width: 0;
  min-height: 132px;
  border-radius: var(--md-radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(28, 27, 31, 0.08);
  transition: transform 300ms var(--md-ease), box-shadow 300ms var(--md-ease);
}

.node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(28, 27, 31, 0.13);
}

.node-card.primary {
  background: var(--md-primary);
  color: var(--md-on-primary);
}

.node-card.tertiary {
  background: var(--md-tertiary-container);
}

.node-card.secondary {
  background: var(--md-secondary-container);
}

.node-card.accent {
  background: var(--md-accent-container);
  color: var(--md-on-accent-container);
}

.node-status {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  background: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
  font-weight: 700;
}

.node-card strong {
  margin-top: auto;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.node-card small {
  color: inherit;
  opacity: 0.72;
  font-weight: 500;
}

.hero-map .node-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.section-block {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  line-height: 1.12;
}

.compact-grid,
.post-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
}

.project-grid > * {
  flex: 1 1 280px;
  max-width: 360px;
}

.featured-grid > * {
  flex-basis: 220px;
  max-width: 280px;
}

.project-card,
.list-card,
.post-card,
.sidebar-card,
.prose-card {
  border-radius: var(--md-radius-md);
  background: var(--md-surface-container);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(28, 27, 31, 0.07);
  overflow: hidden;
}

.project-preview {
  display: block;
  width: calc(100% + 1rem);
  height: 150px;
  aspect-ratio: 16 / 9;
  margin: -0.5rem -0.5rem 1rem;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: var(--md-surface-container-high);
  box-shadow: inset 0 0 0 1px rgba(121, 116, 126, 0.18);
}

.project-card,
.compact-card,
.post-card {
  transition: transform 300ms var(--md-ease), box-shadow 300ms var(--md-ease), background-color 300ms var(--md-ease);
}

.project-card:hover,
.compact-card:hover,
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(28, 27, 31, 0.12);
}

.subtle-card {
  background: var(--md-surface-container-low);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.project-topline span,
.project-topline em,
.tag-row span,
.compact-card span {
  border-radius: 999px;
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  padding: 0.28rem 0.72rem;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.project-topline em {
  background: var(--md-surface-container-high);
  color: var(--md-on-variant);
}

.project-card h3,
.post-card h3,
.list-card h2,
.sidebar-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.project-card p,
.post-card p,
.list-card p,
.sidebar-card p,
.prose-card p,
.article-body p,
.article-body li {
  color: var(--md-on-variant);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.75rem;
  border-radius: 999px;
  color: var(--md-primary);
  font-weight: 700;
}

.text-link::after {
  content: "→";
  margin-left: 0.35rem;
  transition: transform 200ms var(--md-ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.muted-section {
  border-radius: var(--md-radius-xl);
  background: var(--md-surface-container-low);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.compact-card {
  min-height: 136px;
  border-radius: var(--md-radius-md);
  background: var(--md-surface);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compact-card strong {
  word-break: break-word;
}

.section-cta {
  margin-top: 1.5rem;
}

.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1rem;
}

.compact-page-hero {
  padding: clamp(1.75rem, 4vw, 3rem) 0 0.5rem;
}

.compact-page-hero p {
  max-width: 560px;
}

.compact-page-hero + .section-block {
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 28vw, 380px);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 1.5rem;
}

.page-hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--md-surface) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.3) 70%, var(--md-surface) 100%),
    linear-gradient(0deg, var(--md-surface) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
  z-index: 1;
}

.blog-hero-media {
  position: absolute;
  inset: clamp(1rem, 2vw, 1.5rem) 0 auto auto;
  width: min(720px, 58vw);
  height: clamp(180px, 24vw, 330px);
  overflow: hidden;
  pointer-events: none;
}

.blog-hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.78;
  filter: saturate(1.04) contrast(0.98);
  mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 82%, transparent 100%);
}

.blog-hero-seal {
  position: absolute;
  right: clamp(1rem, 7vw, 5rem);
  bottom: clamp(1.5rem, 5vw, 4rem);
  z-index: 2;
  width: clamp(50px, 6vw, 76px);
  height: clamp(50px, 6vw, 76px);
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  object-fit: cover;
  opacity: 0.86;
  box-shadow: 0 10px 28px rgba(28, 27, 31, 0.14);
}

.content-shell,
.article-shell {
  padding-bottom: 5rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.post-list {
  display: grid;
  gap: 0.85rem;
}

.section-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.section-entry-card {
  min-height: 158px;
  border: 1px solid rgba(121, 116, 126, 0.16);
  border-radius: 8px;
  background: var(--md-reading-surface);
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(28, 27, 31, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 300ms var(--md-ease), box-shadow 300ms var(--md-ease);
}

.section-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(28, 27, 31, 0.12);
}

.section-entry-card span,
.thread-kicker {
  margin: 0;
  color: var(--md-tertiary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-entry-card strong {
  margin-top: 0.9rem;
  font-size: 1.55rem;
  line-height: 1.15;
}

.section-entry-card p {
  margin: 0.75rem 0 0;
  color: var(--md-on-variant);
}

.date-group {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.date-heading {
  position: sticky;
  top: 88px;
  margin: 0;
  color: var(--md-tertiary);
  font-size: 0.95rem;
  line-height: 1.2;
}

.date-thread-list {
  display: grid;
  gap: 0.55rem;
}

.thread-list-card {
  border: 1px solid rgba(121, 116, 126, 0.14);
  border-radius: 8px;
  background: var(--md-reading-surface);
  padding: 1rem 1.1rem;
  box-shadow: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.thread-list-card h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.16rem;
  line-height: 1.25;
}

.thread-list-card h3 a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-list-card p {
  margin-block: 0.35rem;
}

.thread-list-card .tag-row {
  margin-top: 0.7rem;
}

.thread-list-card .tag-row span:nth-child(n+4) {
  display: none;
}

.archive-card-list {
  display: grid;
  gap: 0.65rem;
}

.archive-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  border: 1px solid rgba(139, 123, 111, 0.16);
  border-radius: 8px;
  background: var(--md-reading-surface);
  padding: 0.95rem 1rem;
  box-shadow: 0 2px 8px rgba(48, 28, 16, 0.045);
}

.archive-card-body {
  min-width: 0;
}

.archive-card h2 {
  margin: 0.2rem 0 0.5rem;
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.28;
}

.archive-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thread-author-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(28, 27, 31, 0.12);
}

.thread-card-body,
.article-header-main {
  min-width: 0;
}

.sidebar-card {
  position: sticky;
  top: 92px;
}

.sidebar-card .text-link {
  display: flex;
  width: fit-content;
}

.thread-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.thread-kicker span {
  margin-left: 0;
  color: var(--md-on-variant);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.thread-kicker .thread-author-name {
  color: var(--md-on-surface);
}

.list-card time,
.post-card time,
.article-header time {
  color: var(--md-tertiary);
  font-size: 0.85rem;
  font-weight: 700;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.post-card-meta span {
  border-radius: 999px;
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  padding: 0.2rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.article-shell {
  max-width: 860px;
}

.blog-article-shell {
  max-width: 1064px;
}

.article-header {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.thread-article-header {
  position: relative;
  display: block;
  min-height: 252px;
  overflow: hidden;
  padding: 1.55rem min(420px, 37vw) 1.15rem 0;
}

.thread-article-header::before {
  content: "";
  position: absolute;
  inset: -2.45rem -1.2rem auto auto;
  width: min(735px, 57%);
  height: 310px;
  background: url("/img/brand/x-banner-final.png") right center / cover no-repeat;
  opacity: 0.86;
  pointer-events: none;
}

.thread-article-header::after {
  content: "";
  position: absolute;
  inset: 0 min(260px, 18vw) 0 0;
  background: linear-gradient(90deg, var(--md-surface) 0%, rgba(255, 255, 255, 0.96) 56%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.thread-article-header .article-header-main,
.thread-article-header .article-avatar {
  position: relative;
  z-index: 1;
}

.article-avatar {
  width: 56px;
  height: 56px;
  margin-top: 0.2rem;
  margin-bottom: 0.75rem;
}

.article-header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
}

.thread-article-header h1 {
  display: -webkit-box;
  max-width: 720px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.14;
}

.article-header p {
  color: var(--md-on-variant);
  font-size: 1.18rem;
}

.article-body {
  border: 1px solid rgba(121, 116, 126, 0.14);
  border-radius: 8px;
  background: var(--md-reading-surface);
  padding: clamp(1.25rem, 3vw, 2.35rem);
  box-shadow: 0 4px 16px rgba(28, 27, 31, 0.06);
}

.article-body h2 {
  margin-top: 2.4rem;
  font-size: 1.65rem;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body a {
  color: var(--md-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 900px);
  width: auto;
  height: auto;
  margin: 1rem auto;
  border-radius: var(--md-radius-sm);
  object-fit: contain;
  background: var(--md-surface);
  box-shadow: 0 2px 10px rgba(28, 27, 31, 0.12);
}

.article-body p:has(img) {
  margin: 1.25rem 0;
}

.article-body blockquote {
  margin: 1.5rem 0;
  border-left: 4px solid var(--md-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--md-radius-sm) var(--md-radius-sm) 0;
  background: var(--md-surface);
}

.article-body code {
  border-radius: 8px;
  background: var(--md-surface);
  padding: 0.12rem 0.35rem;
}

.article-body pre {
  overflow-x: auto;
  border-radius: var(--md-radius-sm);
  background: #1d192b;
  color: white;
  padding: 1rem;
}

.contact-copy-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.contact-copy-status {
  color: var(--md-on-variant);
  font-size: 0.95rem;
}

.prose-card {
  max-width: 860px;
}

.site-footer {
  border-top: 1px solid rgba(121, 116, 126, 0.22);
  background: var(--md-surface-container);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
}

.footer-lead {
  margin: 0;
  color: var(--md-on-variant);
}

.footer-note {
  margin: 0.75rem 0 0;
  color: var(--md-on-variant);
  font-size: 0.92rem;
}

.footer-note a {
  color: var(--md-primary);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.8rem;
  color: var(--md-on-variant);
  font-weight: 500;
}

.footer-links a:hover {
  background: rgba(216, 21, 21, 0.08);
  color: var(--md-primary);
}

.blog-article-body {
  border: 0;
  background: transparent;
  padding: 0 0 1.4rem;
  box-shadow: none;
}

.blog-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  width: min(1180px, calc(100% - 32px));
  min-height: 300px;
  margin: 1.6rem auto 1rem;
  padding: clamp(1.25rem, 3.5vw, 2.6rem);
  overflow: hidden;
  border: 1px solid rgba(139, 123, 111, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.91) 47%, rgba(255, 255, 255, 0.35) 74%),
    #fff;
  box-shadow: 0 12px 36px rgba(48, 28, 16, 0.07);
}

.blog-home-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.blog-home-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  line-height: 1.04;
  word-break: keep-all;
}

.blog-home-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 1rem 0 0;
  color: var(--md-on-variant);
  font-size: 1.05rem;
}

.blog-home-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(760px, 58%);
  opacity: 0.94;
  pointer-events: none;
}

.blog-home-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.blog-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  width: min(1420px, calc(100% - 40px));
  gap: 1.6rem;
  align-items: start;
  padding-top: 1.1rem;
}

.blog-feed-column {
  display: grid;
  gap: 1.8rem;
  min-width: 0;
}

.blog-feed-intro {
  max-width: 760px;
  padding: 0.45rem 0 0.1rem;
}

.blog-feed-intro h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  word-break: keep-all;
}

.blog-feed-intro p:not(.eyebrow) {
  max-width: 640px;
  margin: 0.75rem 0 0;
  color: var(--md-on-variant);
  font-size: 1.02rem;
}

.expanded-thread-card {
  min-width: 0;
  padding: 0 0 1.4rem;
}

.thread-card-header {
  position: relative;
  min-height: 248px;
  margin-bottom: 1.05rem;
  overflow: hidden;
  padding: 1.55rem min(420px, 37vw) 1rem 0;
}

.thread-card-header::before {
  content: "";
  position: absolute;
  inset: -2.45rem -1.2rem auto auto;
  width: min(735px, 57%);
  height: 310px;
  background: url("/img/brand/x-banner-final.png") right center / cover no-repeat;
  opacity: 0.92;
  pointer-events: none;
}

.thread-card-header::after {
  content: "";
  position: absolute;
  inset: 0 min(260px, 18vw) 0 0;
  background: linear-gradient(90deg, var(--md-surface) 0%, rgba(255, 255, 255, 0.96) 56%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.thread-card-title-area {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.serio-avatar {
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 6px 18px rgba(48, 28, 16, 0.13);
}

.thread-card-kicker {
  margin: 0 0 0.35rem;
  color: var(--md-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.thread-card-kicker span + span::before {
  content: "|";
  margin: 0 0.7rem;
  color: var(--md-on-variant);
  font-weight: 500;
}

.thread-card-header h2 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.14;
  word-break: keep-all;
}

.thread-card-header h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.thread-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 1rem 0 0;
  color: var(--md-on-variant);
  font-size: 0.9rem;
}

.thread-card-meta span,
.thread-card-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--md-secondary-container);
  padding: 0 0.62rem;
  color: var(--md-on-secondary-container);
  font-weight: 700;
}

.thread-card-description {
  display: none;
}

.original-thread,
.munhyang-analysis,
.evidence-section {
  margin-top: 1rem;
}

.original-thread h2,
.munhyang-analysis h2,
.evidence-section h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.munhyang-analysis h2::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 6px 6px 6px 2px;
  background:
    linear-gradient(currentColor, currentColor) 5px 5px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 10px / 7px 2px no-repeat;
  opacity: 0.9;
}

.original-thread h2 span {
  color: var(--md-on-variant);
  font-size: 0.88rem;
  font-weight: 600;
}

.thread-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thread-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-height: 54px;
  border: 1px solid rgba(139, 123, 111, 0.2);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.78rem 0.9rem;
}

.thread-row:first-child {
  border-radius: 8px 8px 0 0;
}

.thread-row:last-child {
  border-bottom: 1px solid rgba(139, 123, 111, 0.2);
  border-radius: 0 0 8px 8px;
}

.thread-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(139, 123, 111, 0.4);
  border-radius: 999px;
  background: #fff;
  color: var(--md-on-variant);
  font-size: 0.86rem;
  font-weight: 800;
}

.thread-text {
  min-width: 0;
}

.thread-text p {
  margin: 0;
  color: var(--md-on-surface);
  line-height: 1.58;
  word-break: keep-all;
}

.thread-text p + p {
  margin-top: 0.45rem;
}

.thread-text img,
.original-thread img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 0.75rem;
  border-radius: 8px;
}

.archive-provenance {
  margin: 0 0 0.75rem;
  color: var(--md-on-variant);
  font-size: 0.9rem;
  line-height: 1.5;
}

.archive-provenance a {
  color: var(--md-tertiary);
  font-weight: 800;
}

.thread-source-link {
  grid-column: 2;
  justify-self: start;
  color: var(--md-tertiary);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.thread-legacy-content {
  border: 1px solid rgba(139, 123, 111, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
}

.munhyang-analysis {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  border: 1px solid rgba(0, 140, 140, 0.3);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(223, 245, 241, 0.72), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  padding: 0.9rem;
}

.munhyang-speaker {
  position: relative;
  width: 112px;
  height: 128px;
  overflow: hidden;
  border: 1px solid rgba(0, 140, 140, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 140, 140, 0.04), rgba(216, 21, 21, 0.025)),
    rgba(255, 255, 255, 0.92);
}

.munhyang-portrait {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.08);
  transform-origin: center 18%;
}

.munhyang-body {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(0, 140, 140, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.88rem 1rem 0.95rem;
  box-shadow: 0 14px 30px rgba(48, 28, 16, 0.045);
}

.munhyang-body::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: -0.42rem;
  width: 0.78rem;
  height: 0.78rem;
  border-bottom: 1px solid rgba(0, 140, 140, 0.18);
  border-left: 1px solid rgba(0, 140, 140, 0.18);
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

.munhyang-analysis h2 {
  margin-bottom: 0.5rem;
  color: #006f6f;
}

.munhyang-body p {
  margin: 0.55rem 0 0;
  color: var(--md-on-surface);
  line-height: 1.68;
}

.analysis-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.analysis-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(0, 140, 140, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #007373;
  padding: 0 0.68rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  border: 1px solid rgba(139, 123, 111, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
}

.evidence-publisher {
  margin: 0 0 0.55rem;
  color: var(--md-tertiary);
  font-size: 0.82rem;
  font-weight: 800;
}

.evidence-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.evidence-card p:not(.evidence-publisher) {
  color: var(--md-on-variant);
  font-size: 0.92rem;
}

.evidence-status {
  width: fit-content;
  margin-top: auto;
  border-radius: 999px;
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  padding: 0.24rem 0.56rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.evidence-status-confirmed {
  background: var(--md-tertiary-container);
  color: #006262;
}

.evidence-status-context {
  background: #eef2ff;
  color: #33418c;
}

.evidence-status-partial {
  background: #fff4df;
  color: #7a4b00;
}

.evidence-status-needs-verification {
  background: #fff0c2;
  color: #735100;
}

.evidence-status-original,
.evidence-status-official-docs,
.evidence-status-official-release,
.evidence-status-official-financial,
.evidence-status-repository,
.evidence-status-standard,
.evidence-status-editorial-policy {
  background: #fff1f1;
  color: var(--md-primary);
}

.evidence-status-repository {
  background: #edf7f6;
  color: var(--md-secondary);
}

.evidence-status-standard,
.evidence-status-editorial-policy {
  background: #f3f6fb;
  color: #44505f;
}

.blog-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.sidebar-panel {
  border: 1px solid rgba(139, 123, 111, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
}

.sidebar-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.sidebar-category,
.popular-post {
  display: grid;
  gap: 0.2rem;
  min-height: 44px;
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
}

.sidebar-category {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: var(--md-on-surface);
  font-weight: 800;
}

.sidebar-category span {
  border-radius: 999px;
  background: var(--md-surface-container);
  color: var(--md-primary);
  padding: 0.16rem 0.48rem;
  font-size: 0.76rem;
}

.sidebar-category.is-featured {
  background: rgba(216, 21, 21, 0.08);
  color: var(--md-primary);
}

.popular-post {
  border-top: 1px solid rgba(139, 123, 111, 0.16);
}

.popular-post span {
  color: var(--md-on-variant);
  font-size: 0.82rem;
}

.popular-post strong {
  font-size: 0.96rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.munhyang-profile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding-right: 8.2rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(223, 245, 241, 0.42));
}

.munhyang-profile ul {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.munhyang-profile li {
  color: var(--md-on-variant);
  font-size: 0.92rem;
  line-height: 1.35;
}

.munhyang-profile li::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--md-tertiary);
  vertical-align: 0.08rem;
}

.munhyang-profile img {
  position: absolute;
  right: -0.8rem;
  bottom: -0.8rem;
  width: 138px;
  max-height: 174px;
  object-fit: contain;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  align-items: center;
  min-height: 46px;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 40px;
  border: 1px solid rgba(139, 123, 111, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 0.75rem;
  font-weight: 800;
}

.blog-pagination span {
  color: var(--md-primary);
}

@media (max-width: 1000px) {
  .hero-grid,
  .two-column,
  .blog-review-layout {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    min-height: 250px;
  }

  .section-entry-grid {
    grid-template-columns: 1fr;
  }

  .date-heading {
    position: static;
  }

  .sidebar-card {
    position: static;
  }

  .blog-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-sidebar .munhyang-profile {
    grid-column: 1 / -1;
  }

  .post-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-shell {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem 0;
  }

  .brand-pill {
    align-self: flex-start;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    justify-content: space-between;
    gap: 0.1rem;
    padding-bottom: 0;
    scrollbar-width: none;
    background: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    background: var(--md-surface-container-low);
    min-height: 40px;
    padding: 0 0.55rem;
    font-size: 0.84rem;
  }

  .hero {
    border-radius: 32px;
    margin-top: 1rem;
  }

  .hero-grid {
    padding: 1.25rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    min-width: 0;
    padding: 0 0.85rem;
    text-align: center;
  }

  .hero-actions .btn.outlined {
    grid-column: auto;
  }

  .hero-map,
  .compact-grid,
  .post-strip {
    grid-template-columns: 1fr;
  }

  .date-group {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .page-hero {
    padding: 2rem 0 0.75rem;
  }

  .blog-hero {
    min-height: 260px;
    padding-top: 2rem;
    padding-bottom: 0.75rem;
  }

  .blog-hero-media {
    inset: 5.4rem -2rem auto auto;
    width: min(260px, 72%);
    height: 140px;
    opacity: 0.28;
  }

  .blog-hero-banner {
    object-position: right center;
  }

  .blog-hero-seal {
    display: none;
  }

  .blog-home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1rem;
  }

  .blog-home-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .blog-home-visual {
    position: relative;
    width: 100%;
    height: 138px;
    margin-top: 0.8rem;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.86;
  }

  .thread-card-header,
  .thread-article-header {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1rem 0 0.85rem;
  }

  .thread-card-header::before,
  .thread-article-header::before {
    order: 2;
    position: relative;
    display: block;
    inset: auto;
    width: 100%;
    height: 142px;
    margin: 0.8rem 0 0;
    border-radius: 8px;
    background-size: cover;
    background-position: right center;
    opacity: 0.88;
  }

  .thread-card-header::after,
  .thread-article-header::after {
    display: none;
  }

  .thread-card-title-area,
  .thread-article-header .article-header-main {
    order: 1;
    max-width: none;
  }

  .serio-avatar {
    width: 38px;
    height: 38px;
  }

  .thread-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .thread-source-link {
    grid-column: 2;
    width: fit-content;
    white-space: normal;
  }

  .munhyang-analysis {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .munhyang-speaker {
    width: 82px;
    height: 96px;
    margin-left: 0.2rem;
  }

  .munhyang-portrait {
    width: 100%;
    height: 100%;
    max-height: none;
    transform: scale(1.1);
  }

  .munhyang-body {
    padding: 0.75rem 0.82rem 0.82rem;
  }

  .munhyang-body::before {
    top: -0.42rem;
    left: 1.85rem;
    border: 0;
    border-top: 1px solid rgba(0, 140, 140, 0.18);
    border-left: 1px solid rgba(0, 140, 140, 0.18);
  }

  .evidence-grid,
  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
    line-height: 1.02;
  }

  .page-hero p,
  .article-header p {
    font-size: 1rem;
  }

  .section-entry-card {
    min-height: 132px;
    padding: 1rem;
  }

  .section-entry-card strong {
    font-size: 1.35rem;
  }

  .thread-list-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.9rem;
  }

  .thread-list-card h3 {
    font-size: 1.08rem;
  }

  .thread-author-avatar {
    width: 36px;
    height: 36px;
  }

  .thread-list-card .tag-row {
    display: none;
  }

  .article-header {
    padding: 2rem 0 1rem;
  }

  .thread-article-header {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .article-avatar {
    width: 40px;
    height: 40px;
  }

  .article-header h1 {
    font-size: clamp(1.48rem, 6.2vw, 1.72rem);
    line-height: 1.14;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .article-body {
    border-radius: 18px;
    min-width: 0;
  }

  .article-body a {
    word-break: break-all;
  }

  .article-body img {
    max-height: 68vh;
  }

  .date-heading {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(121, 116, 126, 0.22);
  }

  .project-grid {
    flex-direction: column;
  }

  .project-grid > * {
    width: 100%;
    max-width: none;
  }

  .hero-map {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .node-card {
    min-height: 108px;
    padding: 0.9rem;
    border-radius: 22px;
  }

  .node-card strong {
    font-size: 1.2rem;
  }

  .section-heading,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .nav-links {
    gap: 0.05rem;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0 0.42rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 600px) {
  .hero {
    width: min(1180px, calc(100% - 32px));
  }
}

@media (max-width: 480px) {
  .hero {
    width: min(340px, calc(100% - 32px));
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn.outlined {
    grid-column: auto;
  }

  .hero-map {
    grid-template-columns: 1fr;
  }

  .node-card {
    min-height: 92px;
  }

  .node-card strong {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
