@font-face {
  font-family: "Jeju Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spoqa/JejuGothic.ttf") format("truetype");
}

@font-face {
  font-family: "Nanum Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("NanumGothic"), local("Nanum Gothic");
}

@font-face {
  font-family: "Jeju Myeongjo";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("../fonts/spoqa/JejuMyeongjo.ttf") format("truetype");
}

@font-face {
  font-family: "Spoqa Han Sans Neo";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("../fonts/spoqa/SpoqaHanSansNeo-Thin.woff2") format("woff2");
}

@font-face {
  font-family: "Spoqa Han Sans Neo";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/spoqa/SpoqaHanSansNeo-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Spoqa Han Sans Neo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spoqa/SpoqaHanSansNeo-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Spoqa Han Sans Neo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spoqa/SpoqaHanSansNeo-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Spoqa Han Sans Neo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/spoqa/SpoqaHanSansNeo-Bold.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --sidebar-bg: #f5f5f7;
  --surface: #ffffff;
  --surface-hover: rgba(0, 0, 0, 0.04);
  --text-1: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #b0b0b5;
  --separator: rgba(0, 0, 0, 0.08);

  --brown-900: #3a2a28;
  --brown-700: #534340;
  --brown-500: #7a5e57;
  --brown-300: #bb9981;
  --brown-100: #ede3dc;
  --brown-50: #f7f2ef;

  --accent: var(--brown-700);
  --accent-soft: var(--brown-300);
  --accent-tint: var(--brown-50);

  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-phone: 42px;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
  --sh-sm: 0 1px 4px rgba(0, 0, 0, 0.07), 0 3px 8px rgba(0, 0, 0, 0.04);
  --sh-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --sh-phone: 0 16px 34px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.08);
  --phone-optical-lift: 2px;

  --sidebar-w: 216px;
  --font-sans: "Spoqa Han Sans Neo", "Apple SD Gothic Neo", sans-serif;
  --font-post-body: "Nanum Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-post-title: "Jeju Myeongjo", "Apple SD Gothic Neo", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-layout {
  width: 100%;
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: clip;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 90;
  isolation: isolate;
  overflow-y: auto;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--separator);
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  transition: transform 0.64s ease, margin-right 0.64s ease, opacity 0.64s ease;
  will-change: transform;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar__profile {
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}

.sidebar__profile-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}

.sidebar__profile-bio {
  font-size: 0.72rem;
  color: var(--text-2);
  line-height: 1.45;
}

.sidebar__profile-counters {
  margin-top: 1px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.sidebar__profile-stat {
  display: inline-flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  max-width: 160px;
  font-size: 0.72rem;
  color: var(--text-2);
}

.sidebar__profile-stat-label {
  letter-spacing: 0.04em;
}

.sidebar__profile-stat-value {
  font-size: 0.86rem;
  line-height: 1;
  color: var(--accent);
}

.sidebar__sep {
  border: none;
  border-top: 1px solid var(--separator);
  margin: 0 14px;
}

.sidebar__nav {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.sidebar__link {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-1);
  transition: background 0.15s, color 0.15s;
}

.sidebar__link:hover {
  background: var(--surface-hover);
}

.sidebar__link.active {
  background: rgba(83, 67, 64, 0.09);
  color: var(--accent);
  font-weight: 600;
}

.sidebar__link--group {
  justify-content: space-between;
  min-height: 34px;
}

.sidebar__group-arrow {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
  transform: translateX(1px);
}

.sidebar__section-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 10px 4px;
}

.sidebar__cat {
  border-radius: var(--r-sm);
}

.sidebar__cat summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.sidebar__cat summary::-webkit-details-marker {
  display: none;
}

.sidebar__cat summary:hover {
  background: var(--surface-hover);
}

.sidebar__cat[open] summary {
  color: var(--accent);
  font-weight: 600;
}

.sidebar__chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
  opacity: 0.6;
}

.sidebar__cat[open] .sidebar__chevron {
  transform: rotate(45deg);
}

.sidebar__sub {
  list-style: none;
  padding: 2px 0 6px 8px;
}

.sidebar__sub a {
  display: block;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--text-2);
  border-radius: var(--r-xs);
  transition: background 0.12s, color 0.12s;
}

.sidebar__sub a:hover,
.sidebar__sub a.active {
  background: var(--surface-hover);
  color: var(--accent);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 50%;
  left: var(--sidebar-w);
  transform: translateY(-50%);
  width: 24px;
  height: 92px;
  border: 1px solid var(--separator);
  border-left: none;
  border-radius: 0 999px 999px 0;
  background: var(--sidebar-bg);
  color: var(--text-2);
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-indent: -1px;
  pointer-events: none;
  cursor: default;
  z-index: 60;
  transition: left 0.64s ease;
}

.page-profile .sidebar-toggle {
  display: inline-flex;
  pointer-events: auto;
  cursor: pointer;
}

.sidebar-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(83, 67, 64, 0.2);
}

.sidebar-toggle__icon::before {
  content: "‹";
}

body.page-profile.sidebar-collapsed .sidebar-toggle__icon::before {
  content: "›";
}

body.page-profile.sidebar-collapsed .sidebar {
  transform: translateX(calc(-1 * var(--sidebar-w) - 10px));
  margin-right: calc(-1 * var(--sidebar-w));
  pointer-events: none;
}

body.page-profile.sidebar-collapsed .sidebar-toggle {
  left: 0;
}

body.page-profile.sidebar-nav-exit .sidebar {
  transform: translateX(calc(-1 * var(--sidebar-w) - 26px));
  margin-right: calc(-1 * var(--sidebar-w));
}

.sidebar-toggle__icon {
  align-items: center;
  justify-content: center;
  display: inline-flex;
  width: 100%;
}

/* Main */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.search-section {
  padding: 56px 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.search-wrap {
  width: 100%;
  max-width: 580px;
  position: relative;
}

.search-wrap form {
  width: 100%;
}

.search-bar {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: 1.5px solid rgba(187, 153, 129, 0.4);
  background: var(--surface);
  padding: 0 52px 0 22px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s;
  box-shadow: var(--sh-xs);
}

.search-bar::placeholder {
  color: var(--text-3);
}

.search-bar:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(83, 67, 64, 0.09), 0 4px 16px rgba(83, 67, 64, 0.08);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.18s, transform 0.18s var(--ease-spring);
}

.search-btn:hover {
  background: var(--brown-500);
  transform: translateY(-50%) scale(1.05);
}

.search-btn svg {
  width: 15px;
  height: 15px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 2px 4px 4px;
  border-radius: 12px;
  color: var(--text-2);
  transition: color 0.18s, transform 0.22s var(--ease-spring);
}

.social-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translateX(-50%) translateY(3px) scale(0.84);
  background: radial-gradient(circle at 30% 30%, rgba(237, 227, 220, 0.92), rgba(237, 227, 220, 0));
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.22s var(--ease-spring);
  pointer-events: none;
}

.social-item > * {
  position: relative;
  z-index: 1;
}

.social-item:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.social-item:hover::before,
.social-item:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.social-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  transition: transform 0.22s var(--ease-spring), filter 0.2s ease;
}

.social-item:hover .social-item__icon {
  transform: translateY(-1px) scale(1.12);
  filter: saturate(1.1);
}

.social-item:nth-child(odd):hover .social-item__icon {
  transform: translateY(-1px) scale(1.12) rotate(-3deg);
}

.social-item:nth-child(even):hover .social-item__icon {
  transform: translateY(-1px) scale(1.12) rotate(3deg);
}

.social-item__icon svg,
.social-item__icon img {
  width: 20px;
  height: 20px;
}

.social-item__label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: letter-spacing 0.2s ease, opacity 0.2s ease;
}

.social-item:hover .social-item__label,
.social-item:focus-visible .social-item__label {
  letter-spacing: 0.03em;
}

.social-item:focus-visible {
  outline: none;
  color: var(--accent);
  transform: translateY(-4px);
}

.site-content {
  width: 100%;
  padding: 0 40px 8px;
}

.page-home .site-content {
  min-height: calc(100vh - 120px);
  padding-bottom: 140px;
}

/* Profile Page */
.page-profile {
  background: #fff;
}

.page-profile .main {
  background: #fff;
}

.page-profile .site-content {
  padding: 0;
}

.aboutpage {
  width: 100%;
  min-height: 100svh;
  background: #fff;
  color: #1d1f22;
}

.about-hero {
  position: relative;
  min-height: clamp(210px, 30vh, 280px);
  padding: 22px 68px 38px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff 0%, #fdfbf9 100%);
  border-bottom: 1px solid rgba(58, 42, 40, 0.12);
}

.about-hero::before,
.about-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.about-hero::before {
  width: min(1080px, 96vw);
  aspect-ratio: 2.12;
  border-radius: 999px;
  border: 1px solid rgba(122, 94, 87, 0.14);
  background: radial-gradient(120% 110% at 20% 10%, rgba(247, 242, 239, 0.56), rgba(247, 242, 239, 0.04) 70%);
  opacity: 0.8;
  top: -6%;
  left: 18%;
  transform: rotate(7deg);
}

.about-hero::after {
  inset: 0;
  background: linear-gradient(146deg, rgba(237, 227, 220, 0.22), rgba(255, 255, 255, 0) 48%);
  mix-blend-mode: normal;
}

.about-hero__slides {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  min-height: 146px;
}

.about-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0.45s;
}

.about-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.about-hero__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.about-hero__brand-mark {
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(83, 67, 64, 0.44);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(83, 67, 64, 0.96);
  background-image: linear-gradient(rgba(122, 94, 87, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 94, 87, 0.2) 1px, transparent 1px);
  background-size: 11px 11px;
}

.about-hero__brand-text {
  font-size: 0.92rem;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: rgba(83, 67, 64, 0.9);
}

.about-hero h1 {
  font-size: clamp(1.5rem, 3.3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #2f2520;
  text-wrap: balance;
}

.about-hero__lead {
  font-size: clamp(0.8rem, 1.22vw, 1rem);
  line-height: 1.42;
  color: rgba(83, 67, 64, 0.78);
}

.about-hero a {
  border: 1px solid rgba(83, 67, 64, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #3f322d;
  background: #fff;
  transition: transform 0.22s var(--ease-spring), background 0.22s ease;
}

.about-hero a:hover {
  background: var(--brown-50);
  transform: translateY(-2px);
}

.about-hero__nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 58px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  transform: translateY(-50%);
  opacity: 0.46;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-hero__nav:hover {
  opacity: 0.92;
}

.about-hero__nav::before {
  content: "";
  width: 17px;
  height: 17px;
  border-top: 2px solid rgba(83, 67, 64, 0.72);
  border-right: 2px solid rgba(83, 67, 64, 0.72);
  position: absolute;
  top: 50%;
  left: 50%;
}

.about-hero__nav--prev {
  left: 16px;
}

.about-hero__nav--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.about-hero__nav--next {
  right: 16px;
}

.about-hero__nav--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.about-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 10px;
  z-index: 3;
}

.about-hero__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(122, 94, 87, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.about-hero__dots button.is-active {
  background: rgba(83, 67, 64, 0.78);
  transform: scale(1.18);
}

.about-hero__slide.is-active .about-hero__brand,
.about-hero__slide.is-active h1,
.about-hero__slide.is-active .about-hero__lead,
.about-hero__slide.is-active a {
  animation: aboutSlideIn 0.68s var(--ease-out) both;
}

.about-hero__slide.is-active h1 {
  animation-delay: 50ms;
}

.about-hero__slide.is-active .about-hero__lead {
  animation-delay: 90ms;
}

.about-hero__slide.is-active a {
  animation-delay: 130ms;
}

@keyframes aboutSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.career-board {
  width: min(100%, 1420px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 34px 56px 38px;
  align-items: start;
}

.career-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid #eee7e2;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(58, 42, 40, 0.06);
}

.career-panel--identity h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  color: var(--brown-700);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.career-profile {
  border: 1px solid #efe9e4;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.career-profile img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f8f5f2;
  border: 1px solid #efe9e4;
  border-radius: 10px;
}

.career-profile strong {
  font-size: 0.96rem;
  line-height: 1.2;
  color: #1e2127;
}

.career-profile span {
  font-size: 0.73rem;
  color: #5f6670;
}

.career-facts {
  border-top: 1px solid #eee7e2;
  border-left: 1px solid #eee7e2;
  border-radius: 10px 0 0 0;
  overflow: hidden;
}

.career-facts div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  border-right: 1px solid #eee7e2;
  border-bottom: 1px solid #eee7e2;
}

.career-facts dt,
.career-facts dd {
  font-size: 0.72rem;
  padding: 6px 7px;
  line-height: 1.35;
}

.career-facts dt {
  background: #faf7f4;
  color: #59606a;
  font-weight: 700;
}

.career-facts dd {
  background: #fff;
  color: #2d323a;
}

.career-block + .career-block {
  margin-top: 20px;
}

.career-block h3 {
  font-size: 0.9rem;
  color: #3c312b;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee7e2;
}

.career-list {
  list-style: none;
  display: grid;
  gap: 3px;
}

.career-list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border-bottom: 1px solid #f0ebe7;
  padding: 6px 0;
}

.career-list time {
  font-size: 0.68rem;
  color: #6f7681;
  font-weight: 600;
  line-height: 1.5;
}

.career-list p {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #2c313a;
}

.career-empty {
  font-size: 0.74rem;
  color: #918076;
  padding: 6px 0 2px;
}

.career-projects,
.career-links {
  list-style: none;
  display: grid;
  gap: 7px;
}

.career-projects a,
.career-links a {
  display: block;
  border: 1px solid #eee7e2;
  background: #fff;
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #3f342f;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.18s ease;
}

.career-projects a:hover,
.career-links a:hover {
  border-color: #c5ab97;
  background: #fbf7f4;
  transform: translateY(-1px);
}

.career-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.career-skills span {
  border: 1px solid #eaded5;
  background: #fbf8f6;
  padding: 5px 8px;
  font-size: 0.72rem;
  line-height: 1;
  color: #4b3f39;
}

/* Home body */
.content-body {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 0;
  padding: 28px 0 8px;
  align-items: start;
}

.content-left {
  padding-right: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner {
  width: 100%;
  height: 156px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--brown-700) 0%, var(--brown-900) 60%, var(--brown-500) 100%);
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(58, 42, 40, 0.2), rgba(58, 42, 40, 0.38));
  pointer-events: none;
}

.banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.88);
}

.banner__label {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-2xl);
  padding: 4px 12px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.banner__placeholder {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.25);
}

.cat-block {
  border: 1px solid var(--separator);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-xs);
}

.cat-tabs {
  display: flex;
  align-items: stretch;
  height: 44px;
  border-bottom: 1px solid var(--separator);
  background: var(--sidebar-bg);
  position: relative;
  padding: 0 4px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 11px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-2);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.18s;
  flex-shrink: 0;
}

.cat-tab:hover {
  color: var(--text-1);
}

.cat-tab.active {
  color: var(--accent);
}

.cat-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: left 0.3s var(--ease-out), width 0.3s var(--ease-out);
  pointer-events: none;
}

.cat-panel {
  display: none;
  height: 236px;
  min-height: 236px;
  overflow: hidden;
  animation: panelIn 0.22s var(--ease-out);
}

.cat-panel.active {
  display: block;
}

.cat-search {
  height: 236px;
  min-height: 236px;
  overflow: hidden;
  animation: panelIn 0.22s var(--ease-out);
}

.cat-tabs__search-meta {
  margin-left: auto;
  min-width: 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 14px;
}

.cat-tabs__search-label {
  font-size: 0.72rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-tabs__pager {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #f5f6f8, #eceef1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.cat-tabs__pager-btn {
  width: 23px;
  height: 23px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #60656d;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.cat-tabs__pager-btn:hover:not(:disabled) {
  border-color: rgba(83, 67, 64, 0.22);
  color: #3f464f;
  transform: translateY(-1px);
}

.cat-tabs__pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.cat-tabs__pager-text {
  min-width: 40px;
  text-align: center;
  font-size: 0.67rem;
  color: #71757d;
  font-weight: 600;
}

.cat-tabs--searching .cat-tab {
  display: none;
}

.cat-tabs--searching .cat-indicator {
  display: none;
}

.cat-tabs--searching .cat-tabs__search-meta {
  width: 100%;
  margin-left: 0;
  justify-content: space-between;
  padding-left: 14px;
  padding-right: 10px;
}

.cat-tabs__search-meta[hidden],
.cat-tabs__pager[hidden],
.cat-search[hidden] {
  display: none !important;
}

.cat-search__list {
  height: 236px;
  min-height: 236px;
  overflow: hidden;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cat-post {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: baseline;
  gap: 0 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--separator);
  cursor: pointer;
  transition: background 0.12s;
}

.cat-post:last-child {
  border-bottom: none;
}

.cat-post:hover {
  background: var(--brown-50);
}

.cat-post__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brown-300);
}

.cat-post__title {
  font-size: 0.82rem;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
}

.cat-post__date {
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.cat-post--search {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 10px;
}

.cat-post__title--search {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-post__date--search {
  font-size: 0.72rem;
  white-space: nowrap;
}

.cat-post--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 236px;
  text-align: center;
  color: var(--text-2);
}

.cat-block__all-link {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--separator);
  background: #fcfcfd;
  text-align: right;
  font-size: 0.78rem;
}

.cat-block__all-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.cat-block__all-link a:hover {
  text-decoration: underline;
}

.widget-col {
  display: flex;
  flex-direction: column;
  align-self: start;
  justify-content: flex-start;
  align-items: center;
  min-height: 0;
  background: var(--bg);
}

.iphone {
  width: 222px;
  height: 456px;
  flex: 0 0 auto;
  min-height: 0;
  border-radius: var(--r-phone);
  border: 7px solid #1c1c1e;
  background: #fafafa;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.35), var(--sh-phone);
  transform: translateY(calc(-1 * var(--phone-optical-lift)));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iphone__island {
  width: 72px;
  height: 22px;
  background: #1c1c1e;
  border-radius: 0 0 13px 13px;
  margin: 0 auto;
  flex-shrink: 0;
}

.iphone__screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  background: #ffffff;
}

.iphone__screen::-webkit-scrollbar {
  display: none;
}

.th-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 12px 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.th-header img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.th-header__title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #111;
}

.th-post {
  padding: 10px 12px 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.th-post__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.th-post__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brown-100);
  flex-shrink: 0;
}

.th-post__name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #111;
  flex: 1;
}

.th-post__time {
  font-size: 0.58rem;
  color: #aaa;
}

.th-post__text {
  font-size: 0.66rem;
  line-height: 1.55;
  color: #333;
  margin-bottom: 5px;
}

.th-post__text a {
  color: inherit;
  text-decoration: none;
}

.th-post__text a:hover {
  text-decoration: underline;
}

.th-post__repost {
  font-size: 0.58rem;
  color: #bbb;
}

.iphone__home {
  height: 18px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iphone__home::after {
  content: "";
  width: 76px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.15);
}

.iphone::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 66px;
  width: 3px;
  height: 26px;
  background: #2a2a2c;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 34px 0 #2a2a2c, 0 66px 0 #2a2a2c;
}

.iphone::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 82px;
  width: 3px;
  height: 46px;
  background: #2a2a2c;
  border-radius: 0 2px 2px 0;
}

/* Footer */
.site-footer {
  padding: 14px 40px;
  border-top: 1px solid var(--separator);
  background: var(--bg);
  font-size: 0.78rem;
  color: var(--text-2);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: var(--text-2);
  transition: transform 0.18s var(--ease-spring), opacity 0.18s ease;
}

.site-footer__icon-link:hover {
  transform: translateY(-2px);
  opacity: 0.86;
}

.site-footer__icon-link svg,
.site-footer__icon-link img {
  width: 20px;
  height: 20px;
}

/* Category Board */
.category-board {
  width: min(100%, 1360px);
  margin: 6px auto 32px;
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}

.cat-page-header {
  padding: 38px 30px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: #fff;
}

.cat-page-header__title {
  font-size: clamp(1.25rem, 2.2vw, 1.58rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.cat-page-header__count {
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--text-3);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 20px 30px 0;
  background: #fff;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 16px;
  color: var(--text-2);
  font-size: 0.81rem;
  font-weight: 600;
  transition: color 0.16s;
}

.filter-tab:hover {
  color: var(--text-1);
}

.filter-tab.active {
  color: var(--accent);
}

.filter-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}

.category-board__list {
  padding: 0 30px 28px;
  background: #fff;
}

.list-header {
  display: grid;
  grid-template-columns: 108px 1fr 94px;
  align-items: center;
  padding: 10px 0;
  margin-top: 20px;
  border-top: 2px solid rgba(29, 29, 31, 0.24);
  border-bottom: 1px solid var(--separator);
  background: #fff;
}

.list-header span {
  padding: 0;
  color: var(--text-3);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.list-header span:first-child {
  padding-left: 0;
}

.list-header span:nth-child(2) {
  border-left: none;
  padding-left: 18px;
}

.list-header span:last-child {
  padding-right: 2px;
  text-align: right;
}

.category-rows {
  min-height: 96px;
}

.post-item {
  display: grid;
  grid-template-columns: 108px 1fr 94px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--separator);
  background: #fff;
  transition: background 0.12s;
}

.post-item:hover {
  background: var(--brown-50);
}

.post-item__cat {
  padding: 11px 12px 11px 0;
  color: var(--brown-300);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-item__title {
  padding: 11px 18px;
  border-left: none;
  color: var(--text-1);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s;
}

.post-item:hover .post-item__title {
  color: var(--accent);
}

.post-item__date {
  padding: 11px 2px 11px 10px;
  color: var(--text-3);
  font-size: 0.72rem;
  text-align: right;
  white-space: nowrap;
}

.post-list__empty {
  border: 1px dashed var(--separator);
  border-radius: var(--r-md);
  margin-top: 14px;
  padding: 18px;
  color: var(--text-2);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 0 4px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--separator);
  background: none;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--brown-300);
  color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Post / Category / Search */
.site-content > .post,
.site-content > .category,
.site-content > .search-page {
  max-width: 860px;
  margin: 12px auto 20px;
}

.post,
.category,
.search-page {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
  padding: 28px 28px 24px;
}

.post__header,
.category__header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.post__title,
.category__title,
.search-page h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 8px;
}

.post__meta,
.category__description,
.search-page__status {
  color: var(--text-2);
  font-size: 0.88rem;
}

.post__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.post__tag,
.post-list__tag,
.search-result__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brown-50);
  color: var(--accent);
  border: 1px solid rgba(187, 153, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
}

.post__content {
  color: var(--text-1);
}

.post__content h2,
.post__content h3,
.post__content h4 {
  margin-top: 30px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.post__content p,
.post__content ul,
.post__content ol,
.post__content blockquote,
.post__content table,
.post__content pre {
  margin: 14px 0;
}

.post__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
}

.post__content figure {
  margin: 18px auto;
}

.post__content figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-2);
}

.post__content a {
  color: #b19377;
  padding: 0 0.06em;
  border-radius: 3px;
  background-image: linear-gradient(
    to top,
    rgba(177, 147, 119, 0.18) 0,
    rgba(177, 147, 119, 0.18) 34%,
    transparent 34%
  );
  text-decoration: underline;
  text-decoration-color: rgba(177, 147, 119, 0.44);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease, background-image 0.18s ease;
}

.post__content a:hover {
  color: #9e8065;
  text-decoration-color: rgba(158, 128, 101, 0.62);
  background-image: linear-gradient(
    to top,
    rgba(177, 147, 119, 0.28) 0,
    rgba(177, 147, 119, 0.28) 38%,
    transparent 38%
  );
}

.post__content a:focus-visible {
  outline: 2px solid rgba(177, 147, 119, 0.36);
  outline-offset: 2px;
}

.post__content mark {
  color: inherit;
  padding: 0 0.08em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: inset 0 -0.2em 0 rgba(214, 176, 140, 0.42);
  background: linear-gradient(
    to top,
    rgba(239, 221, 203, 0.96) 0,
    rgba(239, 221, 203, 0.96) 66%,
    rgba(248, 239, 229, 0.82) 100%
  );
}

.post__content ul,
.post__content ol {
  padding-left: 20px;
}

.post__content blockquote {
  border-left: 3px solid var(--brown-300);
  background: var(--brown-50);
  padding: 8px 12px;
  color: var(--text-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.post__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.84em;
  background: #f3f3f5;
  border: 1px solid #e6e6ea;
  border-radius: 6px;
  padding: 0.14em 0.35em;
}

.post__content pre {
  background: #121214;
  color: #f6f6f8;
  border-radius: var(--r-sm);
  padding: 14px;
  overflow-x: auto;
}

.post__content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.post__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.post__content th,
.post__content td {
  border: 1px solid rgba(29, 29, 31, 0.08);
  padding: 8px 10px;
  text-align: left;
}

.post__content th {
  background: var(--sidebar-bg);
}

.post__content hr {
  border: 0;
  border-top: 1px solid rgba(29, 29, 31, 0.07);
  margin: 24px 0;
}

.post__pagination {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.post__pagination-link {
  border: 1px solid var(--separator);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.18s, background 0.18s;
}

.post__pagination-link:hover {
  border-color: var(--brown-300);
  background: var(--brown-50);
}

.post__pagination-label {
  font-size: 0.72rem;
  color: var(--text-3);
}

.post__pagination-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.post__pagination-arrow {
  font-size: 0.78rem;
  color: var(--text-2);
}

/* Post Reader Remodel */
.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 120;
  pointer-events: none;
}

.post-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #9f7a66, #7a5e57);
  will-change: transform, height;
}

.site-content > .post-view {
  width: min(100%, 1220px);
  margin: 8px auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 980px) 250px;
  gap: 34px;
  align-items: start;
}

.post.post--reader {
  --post-reader-shift: 172px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 24px var(--post-reader-shift);
}

.post--reader .post__header {
  position: relative;
  margin-bottom: 0;
  min-height: calc(50svh - 10px);
  padding: 26px 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: none;
}

.post--reader .post__header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: rgba(29, 29, 31, 0.09);
  transform: translateX(-50%);
  -webkit-clip-path: inset(0 0 0 calc(var(--sidebar-w) + 3px));
  clip-path: inset(0 0 0 calc(var(--sidebar-w) + 3px));
}

.post--reader .post__title {
  font-size: clamp(2rem, 3.2vw, 2.72rem);
  letter-spacing: -0.028em;
  margin-bottom: 27px;
  word-break: keep-all;
  line-break: strict;
}

.post--reader .post__category-kicker {
  align-self: flex-start;
  margin: 0 0 8px 6px;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
  color: #ba9c83;
  text-shadow: 0 0 6px rgba(190, 154, 121, 0.2), 0 0 10px rgba(190, 154, 121, 0.1);
  animation: post-category-kicker-glow 3.9s ease-in-out infinite;
}

.post--reader .post__meta {
  width: 100%;
  font-size: 0.74rem;
  color: rgba(122, 122, 128, 0.56);
  text-align: right;
}

.post--reader .post__content {
  padding-top: 30px;
  font-size: 0.96rem;
  line-height: 1.9;
}

.post--reader .post__tail {
  margin-top: 108px;
  margin-bottom: 40px;
  padding-top: 0;
}

.post--reader .post__tail .post__tags {
  margin-top: 0;
}

.post-next-links {
  margin-top: 28px;
}

.post-next-links__title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #444247;
}

.post-next-links__list {
  margin: 0;
  padding-left: 18px;
}

.post-next-links__item {
  margin: 4px 0;
}

.post-next-links__item a {
  color: #6f5247;
  text-decoration: none;
}

.post-next-links__item a:hover {
  text-decoration: underline;
}

.post--reader .post__feed-divider {
  width: calc(100% + var(--post-reader-shift));
  margin: 22px 0 0 calc(var(--post-reader-shift) * -1);
  height: 1px;
  background: rgba(29, 29, 31, 0.07);
}

.post--reader .post__content h1,
.post--reader .post__content h2,
.post--reader .post__content h3,
.post--reader .post__content h4 {
  margin-top: 38px;
  margin-bottom: 9px;
  letter-spacing: -0.012em;
  font-weight: 600;
}

.post--reader .post__content h1 {
  font-size: clamp(1.34rem, 2.05vw, 1.6rem);
}

.post--reader .post__content h2 {
  font-size: clamp(1.14rem, 1.8vw, 1.34rem);
}

.post--reader .post__content h3 {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.post--reader .post__content h4 {
  font-size: clamp(0.9rem, 1.05vw, 0.96rem);
}

.post--reader .post__content strong,
.post--reader .post__content b {
  font-weight: 600;
  font-size: 0.95em;
}

.post--reader .post__content p,
.post--reader .post__content ul,
.post--reader .post__content ol {
  color: #3a3f48;
}

.post--reader .post__content blockquote {
  border-left: 2px solid rgba(122, 94, 87, 0.36);
  background: rgba(251, 248, 246, 0.72);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
}

.post--reader .post__content pre {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.post-feed {
  position: relative;
  width: min(760px, 100%);
  margin: 18px auto 0;
  padding: 10px 0 10px;
}

.post-feed__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-feed__title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: #444247;
  letter-spacing: -0.02em;
}

.post-feed__category {
  font-size: 0.9rem;
  font-weight: 600;
  color: #be9a79;
}

.post-feed__count {
  font-size: 0.88rem;
  color: #6b6a70;
  font-weight: 500;
}

.post-feed__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 8px;
  padding: 2px 0 5px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  color: #8a8a8f;
  font-size: 0.78rem;
}

.post-feed__columns span:last-child {
  text-align: right;
}

.post-feed__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-feed__row {
  min-height: 42px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.06);
}

.post-feed__row:last-child {
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.post-feed__row-link,
.post-feed__row-placeholder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  color: #454345;
}

.post-feed__row-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.post-feed__row-link:hover {
  color: #6f5247;
  transform: translateX(1px);
}

.post-feed__title-cell {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.46;
}

.post-feed__title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-feed__date-cell {
  text-align: right;
  color: rgba(157, 158, 163, 0.62);
  font-size: 0.78rem;
  line-height: 1.46;
  white-space: nowrap;
}

.post-feed__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.post-feed__page-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(29, 29, 31, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #66666b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.post-feed__page-btn--nav {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.26rem;
  line-height: 1;
}

.post-feed__page-btn--nav:hover:not(:disabled) {
  transform: none;
  border-color: transparent;
  background: transparent;
  color: #6f5247;
}

.post-feed__page-btn:hover:not(:disabled):not(.post-feed__page-btn--nav) {
  transform: translateY(-1px);
  border-color: rgba(122, 94, 87, 0.42);
}

.post-feed__page-btn.is-active {
  border-color: rgba(122, 94, 87, 0.56);
  background: rgba(122, 94, 87, 0.14);
  color: #523f36;
}

.post-feed__page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

@keyframes post-category-kicker-glow {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(190, 154, 121, 0.14), 0 0 9px rgba(190, 154, 121, 0.08);
  }
  50% {
    text-shadow: 0 0 8px rgba(190, 154, 121, 0.28), 0 0 13px rgba(190, 154, 121, 0.14);
  }
}

/* Post Font */
.post {
  font-family: var(--font-post-body);
}

.post__title,
.post--reader .post__title {
  font-family: var(--font-post-title);
  font-weight: 400;
}

.post-outline {
  display: none !important;
  position: sticky;
  top: 92px;
  align-self: start;
}

.post-outline__card {
  border: 1px solid rgba(58, 42, 40, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  padding: 14px 14px 12px;
  box-shadow: 0 8px 28px rgba(58, 42, 40, 0.08);
}

.post-outline h2 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #89756a;
  margin-bottom: 10px;
}

.post-outline nav ol {
  list-style: none;
  display: grid;
  gap: 5px;
}

.post-outline nav li a {
  display: block;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.75rem;
  color: #5f5f65;
  line-height: 1.4;
  transition: background 0.16s ease, color 0.16s ease;
}

.post-outline nav li a:hover {
  background: #f8f3ef;
  color: #4c3d35;
}

.post-outline nav li a.active {
  background: rgba(122, 94, 87, 0.12);
  color: #4a3b33;
  font-weight: 600;
}

.post-outline nav .lv-h3 a {
  padding-left: 16px;
}

.post-outline nav .lv-h4 a {
  padding-left: 24px;
}

.post-list,
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.post-list__item,
.search-result {
  border: 1px solid var(--separator);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.18s, background 0.18s;
}

.post-list__item:hover,
.search-result:hover,
.post-list__item:focus-within,
.search-result:focus-within {
  border-color: var(--brown-300);
  background: #fffcfa;
}

.post-list__link {
  display: block;
  padding: 14px 16px;
}

.post-list__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.post-list__header h3 {
  font-size: 0.95rem;
  line-height: 1.45;
}

.post-list__header time,
.search-result__meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-3);
}

.post-list__link p,
.search-result__excerpt {
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.55;
}

.post-list__tags,
.search-result__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.post-list__empty {
  border: 1px dashed var(--separator);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  color: var(--text-2);
}

.search-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.search-page__banner {
  height: 168px;
}

.search-shell {
  border: 1px solid var(--separator);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}

.search-shell__top {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--separator);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-page h1 {
  margin-bottom: 0;
}

.search-page__form {
  display: flex;
  gap: 10px;
}

.search-page__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--separator);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.search-page__input:focus {
  outline: none;
  border-color: var(--brown-300);
  box-shadow: 0 0 0 3px rgba(187, 153, 129, 0.2);
}

.search-page__button {
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.search-page__button:hover {
  background: var(--brown-500);
}

.search-table__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
  align-items: center;
  padding: 10px 22px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--separator);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.search-table__date {
  text-align: right;
}

.search-results {
  display: block;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--separator);
  transition: background 0.16s;
}

.search-row:hover {
  background: #fffcfa;
}

.search-row:last-child {
  border-bottom: none;
}

.search-row__title {
  display: block;
  min-width: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-row__title:hover {
  color: var(--accent);
}

.search-row__date {
  font-size: 0.74rem;
  color: var(--text-2);
  white-space: nowrap;
}

.search-row__date {
  text-align: right;
}

.search-row--empty {
  display: block;
  padding: 18px 22px;
  color: var(--text-2);
}

/* Responsive */
@media (max-width: 1180px) {
  .site-content,
  .search-section,
  .site-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

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

  .content-left {
    padding-right: 24px;
  }

  .sidebar {
    width: 200px;
    min-width: 200px;
  }

  .about-hero {
    padding: 18px 48px 30px;
  }

  .career-board {
    grid-template-columns: 236px minmax(0, 1fr) 272px;
    gap: 20px;
    padding: 20px 34px 26px;
  }
}

@media (max-width: 980px) {
  body {
    display: block;
  }

  .site-layout {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--separator);
  }

  body.sidebar-collapsed .sidebar,
  body.sidebar-nav-exit .sidebar {
    transform: none;
    margin-right: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar__profile {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    padding: 18px 20px 14px;
  }

  .sidebar__nav {
    padding: 10px 16px 14px;
  }

  .search-section {
    padding: 26px 20px 16px;
    gap: 16px;
  }

  .social-row {
    justify-content: flex-start;
    gap: 14px;
  }

  .site-content {
    padding: 0 20px 8px;
  }

  .category-board {
    margin: 0 auto 20px;
  }

  .cat-page-header {
    padding: 24px 20px 0;
  }

  .filter-row {
    padding: 14px 20px 0;
  }

  .category-board__list {
    padding: 0 20px 16px;
  }

  .list-header {
    grid-template-columns: 80px 1fr 72px;
    margin-top: 14px;
  }

  .post-item {
    grid-template-columns: 80px 1fr 72px;
    min-height: 50px;
  }

  .post-item__cat {
    padding: 9px 8px 9px 0;
  }

  .post-item__title {
    padding: 9px 10px;
  }

  .post-item__date {
    font-size: 0.68rem;
    padding: 9px 0 9px 6px;
  }

  .page-home .site-content {
    min-height: calc(100vh - 80px);
    padding-bottom: 120px;
  }

  .content-body {
    grid-template-columns: 1fr;
    padding-top: 20px;
    gap: 20px;
  }

  .content-left {
    padding-right: 0;
  }

  .widget-col {
    align-items: flex-start;
  }

  .iphone {
    width: min(100%, 340px);
    height: 520px !important;
    transform: none;
  }

  .post,
  .category,
  .search-page {
    padding: 22px 20px;
  }

  .search-page {
    padding: 0;
  }

  .search-page__banner {
    height: 150px;
  }

  .search-shell__top,
  .search-table__head,
  .search-row,
  .search-row--empty {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-footer {
    padding: 14px 20px;
  }

  .page-profile .site-layout {
    min-height: auto;
  }

  .about-hero {
    min-height: 198px;
    padding: 14px 20px 26px;
  }

  .about-hero::before {
    width: 150%;
    left: 8%;
    top: -20%;
  }

  .about-hero__slides {
    min-height: 120px;
  }

  .about-hero__brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1.45rem;
    background-size: 10px 10px;
  }

  .about-hero__brand-text {
    font-size: 0.82rem;
  }

  .about-hero h1 {
    font-size: clamp(1.2rem, 5.2vw, 1.8rem);
  }

  .about-hero__lead {
    font-size: 0.76rem;
  }

  .about-hero a {
    font-size: 0.72rem;
    padding: 7px 14px;
  }

  .about-hero__nav {
    width: 34px;
    height: 46px;
  }

  .about-hero__nav::before {
    width: 13px;
    height: 13px;
  }

  .career-board {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 20px 20px;
  }

  .career-panel--identity {
    max-width: 360px;
  }

  .career-profile {
    max-width: 280px;
  }

  .career-block + .career-block {
    margin-top: 14px;
  }

  .career-block h3 {
    font-size: 0.82rem;
  }

  .career-list li {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .career-projects a,
  .career-links a {
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .banner {
    height: 132px;
  }

  .cat-tab {
    padding: 10px 12px;
  }

  .cat-page-header {
    gap: 8px;
  }

  .cat-page-header__title {
    font-size: 1.12rem;
  }

  .cat-page-header__count {
    font-size: 0.72rem;
  }

  .list-header {
    grid-template-columns: 62px 1fr 66px;
  }

  .post-item {
    grid-template-columns: 62px 1fr 66px;
  }

  .post-item__cat {
    font-size: 0.69rem;
    padding: 11px 6px 11px 0;
  }

  .post-item__title {
    font-size: 0.8rem;
  }

  .post-item__date {
    font-size: 0.64rem;
    padding: 11px 0 11px 6px;
  }

  .cat-post {
    grid-template-columns: 18px 1fr auto;
    padding: 10px 12px;
    gap: 0 8px;
  }

  .cat-post__title {
    font-size: 0.78rem;
  }

  .search-page__form {
    flex-direction: column;
  }

  .search-page__button {
    height: 40px;
  }

  .search-table__head,
  .search-row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .search-row__title {
    font-size: 0.9rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home .site-content {
    min-height: calc(100vh - 64px);
    padding-bottom: 96px;
  }

  .about-hero {
    min-height: 174px;
    padding: 10px 12px 20px;
  }

  .about-hero h1 {
    font-size: clamp(1rem, 7.4vw, 1.4rem);
  }

  .about-hero__lead {
    font-size: 0.69rem;
    line-height: 1.36;
  }

  .about-hero a {
    font-size: 0.67rem;
    padding: 6px 11px;
  }

  .about-hero__nav {
    display: none;
  }

  .about-hero__dots {
    bottom: 14px;
    gap: 8px;
  }

  .about-hero__dots button {
    width: 7px;
    height: 7px;
  }

  .career-board {
    padding: 13px 14px 18px;
  }

  .career-panel--identity h2 {
    font-size: 1.46rem;
  }

  .career-profile {
    max-width: min(100%, 228px);
  }

  .career-facts div {
    grid-template-columns: 66px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .search-table__head,
  .search-row {
    grid-template-columns: minmax(0, 1fr) 82px;
  }
}
