:root {
  --paper: #fbf7ef;
  --paper-deep: #efe3d0;
  --surface: #fffdf8;
  --ink: #332823;
  --muted: #756960;
  --line: #e3d7ca;
  --brown: #8b5e4a;
  --brown-dark: #5f3f33;
  --lavender: #c9b8ee;
  --lavender-soft: #eee7fb;
  --lavender-deep: #7660a6;
  --sage: #91a77c;
  --rose: #d69a99;
  --shadow: 0 14px 30px rgba(76, 54, 44, 0.1);
  --radius: 8px;
}

@font-face {
  font-family: "JoseonGulim";
  src: url("./fonts/ChosunGu.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(238, 231, 251, 0.56), rgba(251, 247, 239, 0) 360px),
    var(--paper);
  font-family:
    "JoseonGulim",
    "ChosunGu",
    "조선굴림체",
    "Chosun Gulim",
    "ChosunGulim",
    "New Gulim",
    "새굴림",
    Gulim,
    "굴림",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  line-height: 1.65;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(95, 63, 51, 0.14);
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
main,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  width: 168px;
  min-width: 148px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-wordmark {
  display: block;
  color: #050505;
  font-family:
    "Tangerine",
    Georgia,
    "Times New Roman",
    serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

.primary-nav a {
  position: relative;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--brown-dark);
  font-size: 1.02rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 1px;
  background: #d0021b;
  content: "";
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
  color: #050505;
  outline: none;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 42px;
  height: 38px;
  margin-left: 2px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition:
    width 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav-search:focus-within {
  width: 190px;
  border-color: rgba(118, 96, 166, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
}

.nav-search input {
  width: 0;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
  opacity: 0;
  transition:
    width 180ms ease,
    padding 180ms ease,
    opacity 120ms ease;
}

.nav-search:focus-within input {
  width: 138px;
  padding-left: 14px;
  opacity: 1;
}

.nav-search button {
  display: grid;
  width: 40px;
  height: 36px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--brown-dark);
  background: transparent;
  cursor: pointer;
}

.nav-search button:hover {
  background: rgba(201, 184, 238, 0.22);
}

.nav-search:focus-within button {
  border-radius: 6px;
}

.nav-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.masthead {
  --banner-image: url("./%EB%B0%B0%EB%84%88%20%EC%82%AC%EC%A7%84/KakaoTalk_20260607_171555827.jpg");
  --banner-image-current: var(--banner-image);
  --banner-image-next: var(--banner-image);
  --banner-position-current: center center;
  --banner-position-next: center center;
  position: relative;
  left: 50%;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  width: 100vw;
  min-height: 440px;
  margin-left: -50vw;
  overflow: hidden;
  padding: 78px max(20px, calc((100vw - 1160px) / 2)) 34px;
  background: #5f3f33;
}

.masthead::before,
.masthead::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(0deg, rgba(51, 40, 35, 0.34) 0%, rgba(51, 40, 35, 0.12) 36%, rgba(51, 40, 35, 0) 68%),
    var(--banner-image-current) var(--banner-position-current, center center) / cover no-repeat;
  content: "";
  pointer-events: none;
  transition: opacity 2400ms ease;
}

.masthead::after {
  background:
    linear-gradient(0deg, rgba(51, 40, 35, 0.34) 0%, rgba(51, 40, 35, 0.12) 36%, rgba(51, 40, 35, 0) 68%),
    var(--banner-image-next) var(--banner-position-next, center center) / cover no-repeat;
  opacity: 0;
}

.masthead.is-transitioning::after {
  opacity: 1;
}

.masthead-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: var(--masthead-copy-color, var(--surface));
  text-align: left;
  text-shadow: 0 2px 14px rgba(51, 40, 35, 0.42);
  transform: translate(var(--masthead-copy-x, 0), var(--masthead-copy-y, 0));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lavender-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.08;
}

.hero-title {
  margin-bottom: 18px;
}

.hero-wordmark {
  font-size: var(--masthead-title-size, 5.35rem);
  line-height: 0.82;
}

.masthead .hero-wordmark {
  color: currentColor;
}

.hero-korean-title {
  display: block;
  color: currentColor;
  font-size: var(--masthead-korean-title-size, clamp(2.65rem, 5vw, 4.9rem));
  font-weight: 700;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

h3 {
  margin: 34px 0 10px;
  font-size: 1.08rem;
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  color: inherit;
  font-size: var(--masthead-lead-size, 1.04rem);
  font-weight: 700;
}

.lead p {
  margin: 0;
}

.lead p + p {
  margin-top: 18px;
}

.chip {
  cursor: pointer;
  border: 0;
}

.category-strip {
  display: flex;
  justify-content: center;
  gap: 22px;
  overflow-x: auto;
  padding: 34px 0 34px;
  scrollbar-width: thin;
}

.chip {
  position: relative;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.08rem;
  font-weight: 700;
}

.chip::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--lavender-deep);
  content: "";
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.chip::before {
  position: absolute;
  right: -13px;
  bottom: -5px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.1 10.7c3.2-1.2 5.9-1 8.3.4' stroke='%23332823' stroke-width='1.05'/%3E%3Cpath d='M7.1 9.8c-1.9-1.3-2.2-3.2-.8-4.3 1-.8 2.4-.4 3.1.7.7-1.4 2.5-1.8 3.4-.8 1.1 1.2.2 3.1-1.6 4.1-1.3.7-2.7.9-4.1.3Z' fill='%23d0021b' stroke='%238b0014' stroke-width='1.05'/%3E%3Cpath d='M8.6 9.1c.3-1.5 1.2-2.6 2.7-3.4' stroke='%238b0014' stroke-width='.85'/%3E%3Cpath d='M8.5 10.9c-1.4 1.3-2.6 1.8-4.1 1.7 1-1.2 2.3-1.8 4.1-1.7Z' fill='%23b90f1b' stroke='%238b0014' stroke-width='.8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  opacity: 0;
  transform: translate(3px, 4px) rotate(-8deg);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.chip:hover,
.chip:focus-visible,
.chip.active {
  color: var(--brown-dark);
}

.chip:hover::after,
.chip:focus-visible::after,
.chip.active::after {
  opacity: 1;
  transform: translateY(0);
}

.chip:hover::before,
.chip:focus-visible::before,
.chip.active::before {
  opacity: 1;
  transform: translate(0, 0) rotate(-8deg);
}

.chip.active {
  color: var(--brown-dark);
}

.content-layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 0 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px 18px;
  border: 1px dashed rgba(95, 63, 51, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.62);
  text-align: center;
}

.post-card {
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.post-card:hover,
.post-card:focus-visible {
  color: var(--brown-dark);
  transform: translateY(-3px);
  outline: none;
}

.post-card:hover .thumbnail,
.post-card:focus-visible .thumbnail {
  box-shadow: 0 16px 30px rgba(76, 54, 44, 0.13);
}

.post-card:hover .card-title,
.post-card:focus-visible .card-title {
  text-decoration: underline;
  text-decoration-color: rgba(118, 96, 166, 0.52);
  text-underline-offset: 5px;
}

.thumbnail {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  color: rgba(51, 40, 35, 0.76);
  isolation: isolate;
  transition: box-shadow 180ms ease;
}

.thumbnail::before,
.thumbnail::after {
  position: absolute;
  content: "";
}

.thumbnail::before {
  inset: 16%;
  border: 1px solid rgba(255, 253, 248, 0.74);
  border-radius: 50%;
}

.thumbnail::after {
  width: 42%;
  height: 18%;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  transform: rotate(-18deg);
}

.thumbnail span {
  position: relative;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
}

.thumb-lavender {
  background:
    linear-gradient(135deg, rgba(118, 96, 166, 0.18), rgba(255, 253, 248, 0.16)),
    #d8c8f1;
}

.thumb-brown {
  background:
    linear-gradient(135deg, rgba(95, 63, 51, 0.24), rgba(255, 253, 248, 0.18)),
    #d9bea9;
}

.thumb-sage {
  background:
    linear-gradient(135deg, rgba(145, 167, 124, 0.24), rgba(255, 253, 248, 0.24)),
    #cdd8bd;
}

.thumb-rose {
  background:
    linear-gradient(135deg, rgba(214, 154, 153, 0.22), rgba(255, 253, 248, 0.18)),
    #efd0cf;
}

.card-body {
  padding: 13px 2px 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.card-excerpt {
  display: none;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 48px;
  border-top: 1px solid rgba(95, 63, 51, 0.14);
  color: var(--muted);
}

.footer-wordmark {
  display: block;
  color: var(--brown-dark);
  font-family:
    "Tangerine",
    Georgia,
    "Times New Roman",
    serif;
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1;
}

.footer-actions {
  margin-top: 16px;
}

.footer-blog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(95, 63, 51, 0.3);
  border-radius: 4px;
  color: var(--brown-dark);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.footer-blog-link:hover,
.footer-blog-link:focus-visible {
  border-color: #d0021b;
  color: #d0021b;
  transform: translateY(-1px);
  outline: none;
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 0.86rem;
}

.site-footer .footer-contact {
  margin-top: 14px;
  color: var(--brown-dark);
}

.footer-contact a {
  color: inherit;
  font-weight: 400;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #d0021b;
  outline: none;
}

@media (max-width: 980px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .header-inner,
  main,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 0;
    gap: 12px;
  }

  .brand {
    width: 154px;
  }

  .primary-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .masthead {
    min-height: 500px;
    padding: 48px 20px 28px;
  }

  .masthead::before,
  .masthead::after {
    background:
      linear-gradient(0deg, rgba(51, 40, 35, 0.38) 0%, rgba(51, 40, 35, 0.14) 44%, rgba(51, 40, 35, 0) 76%),
      var(--banner-image-current) var(--banner-position-current, center center) / cover no-repeat;
  }

  .masthead::after {
    background:
      linear-gradient(0deg, rgba(51, 40, 35, 0.38) 0%, rgba(51, 40, 35, 0.14) 44%, rgba(51, 40, 35, 0) 76%),
      var(--banner-image-next) var(--banner-position-next, center center) / cover no-repeat;
  }

  h1 {
    font-size: 2.48rem;
  }

  .lead {
    font-size: var(--masthead-lead-size, 1rem);
  }

  .hero-wordmark {
    font-size: min(var(--masthead-title-size, 4.15rem), 4.15rem);
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 18px;
  }

  .card-body {
    padding: 11px 1px 0;
  }

  .card-title {
    font-size: 0.94rem;
  }

  .card-excerpt {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .nav-search:focus-within {
    width: 150px;
  }

  .nav-search:focus-within input {
    width: 98px;
  }

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

  .card-title {
    min-height: 0;
  }
}








.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  top: auto;
  z-index: 30;
  display: grid;
  width: 34px;
  height: 42px;
  place-items: center;
  border: 0;
  color: var(--brown-dark);
  background: transparent;
  transition:
    transform 160ms ease,
    color 160ms ease;
}

.back-to-top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 18px;
  height: 1px;
  background: #d0021b;
  opacity: 0.42;
  transform: translateX(-50%) scaleX(0.6);
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.back-to-top span {
  display: block;
  color: currentColor;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-2px);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #d0021b;
  transform: translateY(-3px);
  outline: none;
}

.back-to-top:hover::after,
.back-to-top:focus-visible::after {
  opacity: 0.82;
  transform: translateX(-50%) scaleX(1);
}

@media (max-width: 760px) {
  .back-to-top {
    right: 12px;
    bottom: 18px;
    width: 30px;
    height: 38px;
  }

  .back-to-top span {
    font-size: 1.4rem;
  }
}

/* Rose click effect */
.rose-click-burst {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.rose-click-confetti {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: 0;
  background: var(--confetti-color);
  transform: translate(-50%, -50%) rotate(var(--rotate)) scale(0.4);
  animation: rose-click-confetti 560ms cubic-bezier(0.16, 0.8, 0.28, 1) var(--delay) forwards;
}

.rose-click-confetti.petal {
  width: 7px;
  height: 10px;
  border-radius: 70% 30% 70% 30%;
  background: rgba(255, 253, 248, 0.96);
  border: 1.5px solid var(--confetti-color);
}

.rose-click-confetti.dash {
  width: 12px;
  height: 2px;
  border-radius: 999px;
}

.rose-click-confetti.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

@keyframes rose-click-confetti {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotate)) scale(0.35);
  }

  18% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(calc(var(--rotate) + 18deg)) scale(1);
  }
}
/* Imported post thumbnail images */
.thumbnail.thumbnail-image {
  overflow: hidden;
  border: 1px solid rgba(95, 63, 51, 0.12);
  background: rgba(255, 253, 248, 0.72);
}

.thumbnail.thumbnail-image::before,
.thumbnail.thumbnail-image::after {
  content: none;
}

.thumbnail.thumbnail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card:hover .thumbnail.thumbnail-image img,
.post-card:focus-visible .thumbnail.thumbnail-image img {
  transform: scale(1.025);
}
/* Post pagination */
.post-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 42px 0 0;
}

.page-button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(95, 63, 51, 0.18);
  border-radius: 4px;
  color: var(--brown-dark);
  background: transparent;
  font-weight: 800;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.page-button:hover,
.page-button:focus-visible,
.page-button.active {
  border-color: rgba(208, 2, 27, 0.46);
  color: var(--rose-red);
  background: rgba(255, 253, 248, 0.82);
  outline: none;
}

.page-button:hover,
.page-button:focus-visible {
  transform: translateY(-1px);
}

/* Final pagination and click-confetti refinement */
.post-pagination {
  gap: 18px !important;
  margin-top: 44px !important;
}

.page-button,
.page-button.page-arrow {
  position: relative !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 3px 2px 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--brown-dark) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: color 160ms ease !important;
}

.page-button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--rose-red);
  content: "";
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.page-button:hover,
.page-button:focus-visible,
.page-button.active {
  color: var(--rose-red) !important;
  background: transparent !important;
  outline: none !important;
  transform: none !important;
}

.page-button:hover::after,
.page-button:focus-visible::after,
.page-button.active::after {
  opacity: 1;
  transform: translateY(0);
}

.rose-click-confetti {
  animation: rose-click-confetti 780ms cubic-bezier(0.19, 0.72, 0.25, 1) var(--delay) forwards !important;
}

.rose-click-confetti.heart {
  width: 8px;
  height: 8px;
  border-radius: 2px 2px 0 2px;
  background: var(--confetti-color);
  --shape-rotate: -45deg;
}

.rose-click-confetti.heart::before,
.rose-click-confetti.heart::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--confetti-color);
  content: "";
}

.rose-click-confetti.heart::before {
  top: -4px;
  left: 0;
}

.rose-click-confetti.heart::after {
  top: 0;
  left: 4px;
}

@keyframes rose-click-confetti {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--rotate) + var(--shape-rotate, 0deg))) scale(0.28);
  }

  24% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(calc(var(--rotate) + var(--shape-rotate, 0deg) + 14deg)) scale(1);
  }
}
/* Local post detail view */
.post-detail-view {
  width: min(100% - 40px, 860px);
  margin: 44px auto 80px;
}

.post-detail-article {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.56;
}

.post-back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--brown-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(208, 2, 27, 0.35);
  text-underline-offset: 5px;
}

.post-detail-header {
  margin-bottom: 26px;
}

.post-detail-header span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.post-detail-header h1 {
  margin: 0;
  color: var(--brown-dark);
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

.post-detail-content .post-opener span,
.post-detail-content .post-opener strong,
.post-detail-content .post-opener em {
  font-size: 0.86rem;
  font-weight: 700;
}

.post-detail-content .post-opener .post-opener-title {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.post-detail-content .post-opener .post-opener-title strong {
  color: var(--brown-dark);
  font-family: "Tangerine", Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.9;
}

.post-detail-content .post-opener .post-opener-title b {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-detail-content .post-opener em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
}

.post-detail-content p > strong:only-child {
  font-size: 1rem;
  line-height: 1.55;
}

.post-detail-content img {
  max-width: 100%;
  height: auto;
}

.post-detail-content p:has(> img:only-child) {
  text-align: center;
}

.post-detail-content p:has(> img:only-child) > img {
  display: inline-block;
}

.post-detail-content p:has(> img:only-child) + p:not(:has(> img:only-child)),
.post-detail-content figure:has(img) + p,
.post-detail-content .post-inline-thumbnail + p {
  margin-top: 1.8em;
}

.post-detail-content .post-inline-thumbnail {
  width: min(100%, 720px);
  margin: 0 0 24px;
}

@media (max-width: 760px) {
  .post-detail-view {
    width: min(100% - 28px, 860px);
    margin-top: 32px;
  }

  .post-detail-header h1 {
    font-size: 1.22rem;
  }
}

/* Final post detail cleanup */
.post-detail-content .post-opener {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
}

.post-detail-content .post-opener .post-opener-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.post-detail-content .post-opener .post-opener-title strong {
  color: var(--brown-dark);
  font-family: "Tangerine", Georgia, "Times New Roman", serif;
  font-size: 1.68rem;
  font-weight: 700;
  line-height: 0.9;
}

.post-detail-content .post-opener .post-opener-title b {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-detail-content .post-opener em {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
}

.post-detail-content .post-inline-thumbnail {
  display: grid;
  width: min(100%, 720px);
  margin: 0 auto 24px;
  place-items: center;
}

.post-detail-content .post-signature {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.post-detail-content .post-signature img {
  width: 92px;
  max-width: 92px;
  height: auto;
}

.post-detail-content .letter-spacing-0 { letter-spacing: 0; }
.post-detail-content .letter-spacing-02 { letter-spacing: 0.2px; }
.post-detail-content .letter-spacing-04 { letter-spacing: 0.4px; }
.post-detail-content .letter-spacing-08 { letter-spacing: 0.8px; }
.post-detail-content .letter-spacing-12 { letter-spacing: 1.2px; }

/* Final post header separation and opener color */
.post-detail-header {
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(95, 63, 51, 0.16);
}

.post-detail-content .post-opener {
  margin-top: 0;
  margin-bottom: 24px;
}

.post-detail-content .post-opener .post-opener-title strong {
  color: #9999ff;
}

.post-detail-content .post-opener .post-opener-title b {
  color: #9999ff;
  font-size: 0.82rem;
  line-height: 1.3;
}

.post-detail-content .post-opener .post-opener-title strong {
  font-size: 1.68rem;
  line-height: 0.9;
}

.post-detail-content .content-divider {
  display: block;
  height: 1px;
  margin: 30px auto;
  border: 0;
  background: rgba(95, 63, 51, 0.22);
}

.post-detail-content .divider-thick,
.info-body .divider-thick {
  height: 3px;
  background: rgba(126, 84, 76, 0.48);
}

.post-detail-content .divider-short,
.info-body .divider-short {
  width: 33%;
}

.info-body .divider-thick {
  height: 3px;
  background: rgba(126, 84, 76, 0.48);
}

.info-body .divider-align-left {
  margin-left: 0;
  margin-right: auto;
}

.post-detail-content .divider-align-left,
.info-body .divider-align-left {
  margin-left: 0;
  margin-right: auto;
}

.post-detail-content .divider-rose {
  position: relative;
  width: 42%;
  min-height: 25px;
  overflow: visible;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%23d0021b' d='M14 7.1c1.8-3.2 6.1-1.7 6.1 1.8 0 3.4-3.8 5.7-6.1 7.3-2.3-1.6-6.1-3.9-6.1-7.3 0-3.5 4.3-5 6.1-1.8Z'/%3E%3Cpath fill='none' stroke='%231f5a3d' stroke-width='1.7' stroke-linecap='round' d='M14 15.8v6.2'/%3E%3Cpath fill='%231f5a3d' d='M13.8 20.6c-2.3-.1-3.8-1.1-4.8-3.1 2.4-.2 4 .6 4.8 3.1Z'/%3E%3Cpath fill='%231f5a3d' d='M14.2 20.5c2.3-.4 3.7-1.5 4.4-3.6-2.4.1-3.9 1-4.4 3.6Z'/%3E%3C/svg%3E"), linear-gradient(to right, transparent 0 28px, rgba(95, 63, 51, 0.22) 28px calc(50% - 18px), transparent calc(50% - 18px) calc(50% + 18px), rgba(95, 63, 51, 0.22) calc(50% + 18px) calc(100% - 28px), transparent calc(100% - 28px));
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 23px 23px, 100% 1px;
}

.post-detail-content .divider-rose::before,
.post-detail-content .divider-rose::after {
  position: absolute;
  top: 50%;
  width: 23px;
  height: 23px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%23d0021b' d='M14 7.1c1.8-3.2 6.1-1.7 6.1 1.8 0 3.4-3.8 5.7-6.1 7.3-2.3-1.6-6.1-3.9-6.1-7.3 0-3.5 4.3-5 6.1-1.8Z'/%3E%3Cpath fill='none' stroke='%231f5a3d' stroke-width='1.7' stroke-linecap='round' d='M14 15.8v6.2'/%3E%3Cpath fill='%231f5a3d' d='M13.8 20.6c-2.3-.1-3.8-1.1-4.8-3.1 2.4-.2 4 .6 4.8 3.1Z'/%3E%3Cpath fill='%231f5a3d' d='M14.2 20.5c2.3-.4 3.7-1.5 4.4-3.6-2.4.1-3.9 1-4.4 3.6Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  content: "";
}

.post-detail-content .divider-rose::before {
  left: -27px;
  transform: translateY(-50%) rotate(-10deg);
}

.post-detail-content .divider-rose::after {
  right: -27px;
  transform: translateY(-50%) scaleX(-1) rotate(-10deg);
}

.post-detail-content .editor-link-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid rgba(95, 63, 51, 0.18);
  border-radius: 4px;
  color: inherit;
  background: rgba(255, 253, 248, 0.9);
  text-decoration: none;
}

.post-detail-content .link-card-thumb {
  display: grid;
  width: 96px;
  aspect-ratio: 1 / 1;
  place-items: center;
  color: var(--surface);
  background: linear-gradient(135deg, var(--brown), var(--lavender-deep));
  font-family: "Tangerine", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.post-detail-content .link-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-detail-content .link-card-body {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 12px 14px 12px 0;
}

.post-detail-content .link-card-body strong,
.post-detail-content .link-card-body span,
.post-detail-content .link-card-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-detail-content .link-card-body strong {
  font-size: calc(1em - 1.5pt);
  font-weight: 400;
  line-height: 1.35;
}

/* Final content notice, link card sizing, and list-return behavior */
.post-detail-content .content-copyright {
  text-align: center;
}

.post-detail-content .editor-link-card {
  display: inline-grid;
  grid-template-columns: 88px auto;
  width: fit-content;
  max-width: 100%;
  vertical-align: top;
}

.post-detail-content .link-card-thumb {
  width: 88px;
  min-height: 88px;
}

.post-detail-content .link-card-body {
  max-width: min(360px, calc(100vw - 150px));
  padding: 10px 18px 10px 0;
}

.post-detail-content .link-card-body small {
  display: none;
}

.post-detail-content .inline-editor-link {
  color: #00b3f2;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(0, 179, 242, 0.38);
  text-underline-offset: 4px;
}

.post-detail-content .media-link-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-detail-content .media-link-wrap:focus-visible {
  outline: 1px solid rgba(153, 153, 255, 0.5);
  outline-offset: 4px;
}

.post-detail-content .media-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--media-count, 1), minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
  margin: 24px auto;
  overflow: hidden;
}

.post-detail-content .media-gallery .media-image-frame {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(95, 63, 51, 0.06);
}

.post-detail-content .media-quick-tools,
.post-detail-content .media-link-badge,
.post-detail-content .crop-frame,
.post-detail-content .media-edit-panel,
.post-detail-content .media-original-ghost {
  display: none !important;
}

.post-detail-content .media-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  clip-path: inset(var(--crop-top, 0%) var(--crop-right, 0%) var(--crop-bottom, 0%) var(--crop-left, 0%));
  filter: brightness(var(--media-brightness, 1));
  transform: rotate(var(--media-angle, 0deg)) scale(var(--media-level-scale, 1));
  transform-origin: center;
}

.post-detail-content .media-gallery .media-image-frame img {
  border-radius: 0;
  background: transparent;
}

.post-detail-content .media-gallery.crop .media-image-frame {
  aspect-ratio: 1 / 1;
}

.post-detail-content .media-gallery.crop img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.post-detail-content .media-gallery.crop .media-image-frame img {
  height: 100%;
}

.post-detail-content .media-gallery.mosaic img {
  filter: brightness(var(--media-brightness, 1));
  transform: rotate(var(--media-angle, 0deg)) scale(var(--media-level-scale, 1));
}

.post-detail-content .media-gallery.imported-local-image {
  width: min(100%, 560px);
  max-width: 100%;
}

.post-detail-content .media-gallery.imported-local-image img {
  width: 100%;
  max-width: 100%;
}

.post-detail-content .media-caption {
  width: min(100%, 560px);
  max-width: 100%;
  margin: -10px auto 24px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  text-align: center;
}

.post-detail-content .media-link-wrap + .media-caption {
  margin-top: -10px;
}

.post-detail-content .media-gallery.media-with-text {
  grid-template-columns: minmax(0, 0.82fr) minmax(220px, 1fr);
  align-items: center;
  max-width: 760px;
}

.post-detail-content .media-gallery.media-with-text.side-image-right {
  grid-template-columns: minmax(220px, 1fr) minmax(0, 0.82fr);
}

.post-detail-content .media-gallery.media-with-text > img,
.post-detail-content .media-gallery.media-with-text > .media-image-frame {
  grid-column: 1;
}

.post-detail-content .media-gallery.media-with-text.side-image-right > img,
.post-detail-content .media-gallery.media-with-text.side-image-right > .media-image-frame {
  grid-column: 2;
}

.post-detail-content .media-side-text {
  grid-column: 2;
  grid-row: 1 / span 4;
  padding: 10px 0 10px 18px;
  border-left: 1px solid rgba(95, 63, 51, 0.16);
  line-height: 1.72;
}

.post-detail-content .side-image-right .media-side-text {
  grid-column: 1;
  padding: 10px 18px 10px 0;
  border-right: 1px solid rgba(95, 63, 51, 0.16);
  border-left: 0;
}

.post-detail-content .mosaic-box {
  position: absolute;
  z-index: 2;
  display: block;
  min-width: 12px;
  min-height: 12px;
  border: 0;
  border-radius: 2px;
  background: radial-gradient(ellipse at center, rgba(255, 253, 248, 0.08) 55%, rgba(255, 253, 248, 0.035) 76%, transparent 100%);
  -webkit-backdrop-filter: blur(var(--mosaic-blur, 12px)) saturate(0.8);
  backdrop-filter: blur(var(--mosaic-blur, 12px)) saturate(0.8);
  box-shadow: inset 0 0 24px rgba(255, 253, 248, 0.1), 0 0 10px rgba(255, 253, 248, 0.08);
}

/* Top navigation pages and final signature sizing */
.info-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 0 70px;
}

.info-article {
  color: var(--ink);
}

.info-header {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(95, 63, 51, 0.16);
}

.info-header span {
  display: block;
  margin-bottom: 6px;
  color: var(--lavender-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.info-header h2 {
  color: var(--brown-dark);
  font-size: 1.4rem;
}

.info-body {
  display: grid;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.56;
}

.info-body .content-divider {
  height: 1px;
  margin: 8px auto 10px;
  border: 0;
  background: rgba(95, 63, 51, 0.22);
}

.info-body .divider-short {
  width: 33%;
}

.info-body .divider-thick {
  height: 3px;
  background: rgba(126, 84, 76, 0.48);
}

.post-detail-content .divider-short.divider-thick,
.info-body .divider-short.divider-thick {
  width: 26%;
}

.info-body .divider-align-left {
  margin-left: 0;
  margin-right: auto;
}

.post-detail-content .post-signature img {
  width: 112px;
  max-width: 112px;
}

.post-detail-content .divider-full {
  width: 100%;
}

.post-detail-content .content-angle-line {
  margin: 18px 0 2px;
}

.post-detail-content .angle-heading-spacer {
  min-height: 1.05em;
  line-height: 1.05;
  margin: 0;
}

.post-detail-content .content-angle-heading {
  color: #00b3f2;
  font-size: 1.08em;
  font-weight: 800;
}

.post-detail-content .content-number-marker {
  display: inline;
  margin-right: 0;
  padding-right: 0.36em;
  color: #dd862a;
  font-weight: 800;
}

.post-detail-content .content-auto-line {
  margin-bottom: 10px;
}

/* Imported post line-height normalization */
.post-detail-article,
.post-detail-content {
  line-height: 1.76;
}

.post-detail-content p,
.post-detail-content li,
.post-detail-content div:not(.post-opener),
.post-detail-content span:not(.post-opener-title),
.post-detail-content strong,
.post-detail-content b,
.post-detail-content u,
.post-detail-content em,
.post-detail-content font {
  line-height: inherit !important;
}

.post-detail-content .post-opener {
  line-height: 1.35;
}

.post-detail-content .post-opener .post-opener-title {
  line-height: 0.9;
}

.post-detail-content .post-opener .post-opener-title strong {
  line-height: 0.9;
}

.post-detail-content .post-opener .post-opener-title b {
  line-height: 1.3;
}

.post-detail-content .post-opener em {
  line-height: 1.45;
}

/* Final post reading spacing polish */
.post-detail-article,
.post-detail-content {
  line-height: 1.52;
  letter-spacing: 0.16px;
}

.post-detail-content p,
.post-detail-content li {
  margin-top: 0;
  margin-bottom: 0.42em;
}

.post-detail-content p:empty,
.post-detail-content p:has(> br:only-child) {
  min-height: 1.52em;
  margin-bottom: 0;
}

.post-detail-content .before-divider-line,
.post-detail-content .after-divider-line {
  min-height: 1.52em;
  line-height: 1.52;
  margin: 0;
}

.post-detail-content .content-divider {
  margin-top: 14px;
  margin-bottom: 4px;
}

.post-detail-content .before-divider-line + .content-divider {
  margin-top: 0;
}

.post-detail-content .content-divider + p {
  margin-top: 0;
}

.post-detail-content .content-divider + .after-divider-line {
  margin-top: 0;
  margin-bottom: 0;
}

.post-detail-content .content-copyright + .content-copyright + .divider-rose {
  margin-bottom: 24px;
}

.post-detail-content .content-copyright + .content-copyright + .divider-rose + p {
  margin-top: 0;
}

.post-detail-content strong,
.post-detail-content b,
.post-detail-content .format-bold {
  font-weight: 860;
  text-shadow: 0.12px 0 currentColor;
  -webkit-text-stroke: 0;
}

.post-detail-content .format-bold span,
.post-detail-content .format-bold font,
.post-detail-content .format-bold p,
.post-detail-content .format-bold div,
.post-detail-content .format-bold li,
.post-detail-content .format-bold blockquote,
.post-detail-content .format-bold em,
.post-detail-content .format-bold u,
.post-detail-content .format-bold a,
.post-detail-content span.format-bold,
.post-detail-content font.format-bold {
  font-weight: 860 !important;
  text-shadow: 0.12px 0 currentColor;
  -webkit-text-stroke: 0;
}

.post-detail-content .content-number-marker,
.post-detail-content .format-bold .content-number-marker,
.post-detail-content .content-number-marker.format-bold {
  display: inline !important;
  margin-right: 0 !important;
  padding-right: 0.36em !important;
  font-weight: 820 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Body text baseline: keep ordinary public post text at 15px unless a size option is explicitly applied. */
.post-detail-article,
.post-detail-content {
  font-size: 15px;
}

.post-detail-content .font-size-12 { font-size: 12px !important; }
.post-detail-content .font-size-14 { font-size: 14px !important; }
.post-detail-content .font-size-15 { font-size: 15px !important; }
.post-detail-content .font-size-16 { font-size: 16px !important; }
.post-detail-content .font-size-18 { font-size: 18px !important; }
.post-detail-content .font-size-20 { font-size: 20px !important; }

.post-detail-content :where(p, li, blockquote, span, strong, b, u, em, font, a):not(.font-size-12):not(.font-size-14):not(.font-size-15):not(.font-size-16):not(.font-size-18):not(.font-size-20):not(.post-opener *):not(.editor-link-card *):not(.media-gallery *):not(.editor-video-wrap *):not(.post-inline-thumbnail *):not(.post-signature *) {
  font-size: inherit !important;
}

/* Keep the same bold weight in the editor and in the public article. Inline
   font-weight values from imported markup must not make identical headings
   render with visibly different thicknesses. */
.post-detail-content strong,
.post-detail-content b,
.post-detail-content .format-bold,
.post-detail-content strong[style*="font-weight"],
.post-detail-content b[style*="font-weight"],
.post-detail-content .format-bold[style*="font-weight"] {
  font-weight: 700 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

.post-detail-content .format-bold :where(span, font, p, div, li, blockquote, em, u, a),
.post-detail-content strong :where(span, font, em, u, a),
.post-detail-content b :where(span, font, em, u, a) {
  font-weight: 700 !important;
}

/* A single media item should not stretch across the reading column. Its
   display width now matches the compact gallery treatment while preserving
   the original file resolution. */
.post-detail-content .media-gallery[style*="--media-count: 1"],
.post-detail-content .editor-video-wrap {
  width: min(100%, 560px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.post-detail-content .editor-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
}

/* Previous/next post navigation */
.post-detail-content + .post-pagination,
.post-detail-article > .post-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 64px 0 0;
  padding-top: 24px;
  border-top: 2px solid rgba(95, 63, 51, 0.34);
}

.post-adjacent-post {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  align-items: center;
  min-width: 0;
  color: var(--brown-dark);
  text-decoration: none;
}

.post-adjacent-post.is-next {
  text-align: right;
}

.post-adjacent-post.is-empty {
  visibility: hidden;
}

.post-adjacent-label {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.post-adjacent-thumb {
  grid-row: 2 / span 2;
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(153, 153, 255, 0.12);
}

.post-adjacent-post.is-next .post-adjacent-thumb {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.post-adjacent-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-adjacent-post strong,
.post-adjacent-post small {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-adjacent-post.is-next strong,
.post-adjacent-post.is-next small {
  grid-column: 1;
}

.post-adjacent-post strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.post-adjacent-post small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.post-adjacent-post:hover strong,
.post-adjacent-post:focus-visible strong {
  color: var(--rose-red);
}

@media (max-width: 620px) {
  .post-detail-content + .post-pagination,
  .post-detail-article > .post-pagination {
    gap: 16px;
  }

  .post-adjacent-post {
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 9px;
  }

  .post-adjacent-thumb {
    width: 54px;
  }
}

/* Mobile layout: keep navigation, banner copy, categories, and articles
   inside the viewport while preserving the desktop composition. */
@media (max-width: 760px) {
  html {
    overflow-x: clip;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas:
      "brand search"
      "nav nav";
    align-items: center;
    gap: 8px 12px;
    min-height: 0;
    padding: 12px 0 10px;
  }

  .brand {
    grid-area: brand;
    width: 138px;
    min-width: 0;
  }

  .primary-nav {
    grid-area: nav;
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 3px;
    scrollbar-width: none;
    scroll-padding-inline: 1px;
    scroll-snap-type: x proximity;
  }

  .primary-nav::-webkit-scrollbar,
  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .primary-nav a {
    min-height: 32px;
    padding: 5px 0 8px;
    font-size: 0.82rem;
    scroll-snap-align: start;
  }

  .primary-nav a::after {
    right: 0;
    bottom: 3px;
    left: 0;
  }

  .nav-search {
    grid-area: search;
    z-index: 2;
    justify-self: end;
    margin: 0;
  }

  .nav-search:focus-within {
    width: min(190px, calc(100vw - 42px));
    background: rgba(255, 253, 248, 0.98);
  }

  .masthead {
    min-height: 460px;
    padding: 42px 20px 28px;
  }

  .masthead-copy {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .hero-title {
    margin-bottom: 16px;
  }

  .hero-wordmark {
    font-size: min(var(--masthead-title-size, 3.8rem), 3.8rem);
  }

  .lead {
    width: 100%;
    max-width: 100%;
    font-size: min(var(--masthead-lead-size, 0.96rem), 0.96rem);
    line-height: 1.58;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .lead p + p {
    margin-top: 14px;
  }

  .category-strip {
    width: calc(100% + 28px);
    margin-left: -14px;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 26px 14px 30px;
    scrollbar-width: none;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
  }

  .category-strip .chip {
    font-size: 1.02rem;
    scroll-snap-align: start;
  }

  .post-detail-view {
    width: min(100% - 28px, 860px);
    margin-top: 24px;
    margin-bottom: 64px;
    scroll-margin-top: 128px;
  }

  .post-detail-header h1 {
    font-size: 1.16rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .post-detail-content .editor-link-card {
    grid-template-columns: 74px minmax(0, auto);
  }

  .post-detail-content .link-card-thumb {
    width: 74px;
    min-height: 74px;
  }

  .post-detail-content .link-card-body {
    max-width: calc(100vw - 130px);
    padding: 8px 12px 8px 0;
  }
}

@media (max-width: 560px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    width: min(100%, 430px);
    margin-right: auto;
    margin-left: auto;
  }

  .card-title {
    min-height: 0;
    font-size: 0.98rem;
  }

  .post-detail-content .media-gallery.media-with-text,
  .post-detail-content .media-gallery.media-with-text.side-image-right {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .post-detail-content .media-gallery.media-with-text > img,
  .post-detail-content .media-gallery.media-with-text > .media-image-frame,
  .post-detail-content .media-gallery.media-with-text.side-image-right > img,
  .post-detail-content .media-gallery.media-with-text.side-image-right > .media-image-frame,
  .post-detail-content .media-gallery.media-with-text .media-side-text,
  .post-detail-content .media-gallery.media-with-text.side-image-right .media-side-text {
    grid-column: 1;
    grid-row: auto;
  }

  .post-detail-content .media-gallery.media-with-text .media-side-text,
  .post-detail-content .media-gallery.media-with-text.side-image-right .media-side-text {
    margin-top: 10px;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid rgba(95, 63, 51, 0.16);
  }
}

@media (max-width: 380px) {
  .primary-nav {
    gap: 12px;
  }

  .primary-nav a {
    font-size: 0.78rem;
  }

  .masthead {
    min-height: 440px;
  }
}

/* Compact mobile header menu and desktop-style three-column post grid. */
.mobile-menu-toggle,
.mobile-category-menu {
  display: none;
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) 38px 34px;
    grid-template-areas:
      "brand search menu"
      "nav nav nav"
      "categories categories categories";
    gap: 7px 8px;
    padding: 10px 0 9px;
  }

  .brand {
    width: 118px;
  }

  .nav-search {
    width: 36px;
    height: 36px;
  }

  .nav-search button {
    width: 36px;
    height: 34px;
    flex-basis: 36px;
  }

  .nav-search:focus-within {
    width: min(190px, calc(100vw - 116px));
    border-radius: 3px;
  }

  .nav-search:focus-within input {
    width: calc(100% - 36px);
  }

  .mobile-menu-toggle {
    grid-area: menu;
    display: grid;
    width: 32px;
    height: 34px;
    padding: 7px 5px;
    place-content: center;
    gap: 5px;
    border: 0;
    color: var(--brown-dark);
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 21px;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .primary-nav {
    grid-area: nav;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0 24px;
    padding: 11px 0 7px;
    overflow: visible;
    border-top: 1px solid rgba(95, 63, 51, 0.14);
  }

  .site-header.mobile-menu-open .primary-nav {
    display: grid;
  }

  .primary-nav a {
    min-height: 34px;
    padding: 7px 0 8px;
    font-size: 0.88rem;
  }

  .mobile-category-menu {
    grid-area: categories;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
    padding: 7px 0 9px;
    border-top: 1px solid rgba(95, 63, 51, 0.12);
  }

  .site-header.mobile-menu-open .mobile-category-menu {
    display: grid;
  }

  .mobile-category-link {
    position: relative;
    min-width: 0;
    padding: 7px 0 8px;
    overflow: hidden;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-category-link::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 1px;
    background: var(--rose-red, #d0021b);
    content: "";
    opacity: 0;
  }

  .mobile-category-link.active {
    color: var(--brown-dark);
  }

  .mobile-category-link.active::after {
    opacity: 0.78;
  }

  .category-strip {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 10px;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .card-body {
    padding: 8px 0 0;
  }

  .card-title {
    display: -webkit-box;
    min-height: 3.15em;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .card-meta {
    margin-top: 4px;
    font-size: 0.65rem;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .nav-search:focus-within {
    width: 160px;
  }

  .post-grid {
    gap: 22px 8px;
  }

  .card-title {
    font-size: 0.7rem;
  }
}

/* Mobile overlay header and vertical, nested navigation. */
@media (max-width: 760px) {
  .site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .header-inner {
    gap: 0 8px;
    padding-top: 9px;
    padding-bottom: 0;
  }

  .brand {
    width: 104px;
  }

  .brand-logo,
  .nav-search button,
  .mobile-menu-toggle {
    filter: drop-shadow(0 1px 3px rgba(255, 253, 248, 0.92));
  }

  .primary-nav,
  .mobile-category-menu {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
    background: #fbf7ef;
  }

  .primary-nav {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 10px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(95, 63, 51, 0.12);
  }

  .primary-nav a {
    min-height: 38px;
    padding: 8px 0 9px;
    font-size: 0.9rem;
    text-align: left;
  }

  .site-header.mobile-menu-open .mobile-category-menu {
    display: none;
  }

  .site-header.mobile-menu-open.mobile-submenu-open .mobile-category-menu {
    display: grid;
  }

  .mobile-category-menu {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 5px;
    padding-bottom: 10px;
  }

  .mobile-category-link {
    min-height: 36px;
    padding: 7px 0 8px 14px;
    font-size: 0.84rem;
  }

  .mobile-category-link::after {
    left: 14px;
  }

  .hero-wordmark {
    font-size: min(var(--masthead-title-size, 3.25rem), 3.25rem);
  }

  .lead {
    font-size: min(var(--masthead-lead-size, 0.88rem), 0.88rem);
    line-height: 1.55;
  }

  #postPagination {
    gap: 14px !important;
    margin-top: 34px !important;
  }

  #postPagination .page-button,
  #postPagination .page-button.page-arrow {
    padding: 2px 1px 4px !important;
    font-size: 0.78rem !important;
  }
}

/* Mobile settings and drawer navigation */
:root {
  --mobile-logo-width: 104px;
  --mobile-menu-width: 56vw;
  --mobile-banner-title-size: 52px;
  --mobile-banner-body-size: 14px;
  --mobile-pagination-size: 12px;
  --mobile-accent-color: #8b5e4a;
}

.mobile-nav-group {
  display: contents;
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto 34px;
    grid-template-areas: "brand search menu";
    min-height: 50px;
  }

  .brand {
    width: var(--mobile-logo-width);
    min-width: 0;
  }

  .nav-search,
  .nav-search:focus-within {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-search:focus-within {
    width: min(190px, calc(100vw - var(--mobile-logo-width) - 70px));
    border-bottom: 1px solid var(--mobile-accent-color);
  }

  .nav-search:focus-within input {
    padding-left: 4px;
  }

  .nav-search button:hover,
  .nav-search button:focus-visible,
  .nav-search:focus-within button {
    border-radius: 0;
    background: transparent;
  }

  .primary-nav {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: clamp(205px, var(--mobile-menu-width), 280px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 62px 22px 30px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid rgba(95, 63, 51, 0.16);
    background: #fbf7ef;
    box-shadow: 12px 0 28px rgba(76, 54, 44, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 260ms ease, opacity 180ms ease, visibility 0s linear 260ms;
    pointer-events: none;
  }

  .site-header.mobile-menu-open .primary-nav {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
    pointer-events: auto;
  }

  .primary-nav > a,
  .mobile-nav-group > a {
    display: block;
    width: fit-content;
    min-height: 40px;
    padding: 9px 0 10px;
    font-size: 0.9rem;
    text-align: left;
  }

  .primary-nav a::after {
    right: 0;
    bottom: 5px;
    left: 0;
    background: var(--mobile-accent-color);
  }

  .mobile-nav-group {
    display: block;
  }

  .mobile-category-menu {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0 0 8px 14px;
    border: 0;
    background: transparent;
  }

  .site-header.mobile-menu-open .mobile-category-menu {
    display: none;
  }

  .site-header.mobile-menu-open.mobile-submenu-open .mobile-category-menu {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-category-link {
    width: fit-content;
    min-height: 34px;
    padding: 7px 0 8px;
    color: var(--muted);
    font-size: 0.82rem;
  }

  .mobile-category-link::after {
    right: 0;
    left: 0;
    background: var(--mobile-accent-color);
  }

  .mobile-category-link.active::after {
    opacity: 0.72;
  }

  .hero-wordmark {
    font-size: min(var(--masthead-title-size, var(--mobile-banner-title-size)), var(--mobile-banner-title-size));
  }

  .lead {
    font-size: min(var(--masthead-lead-size, var(--mobile-banner-body-size)), var(--mobile-banner-body-size));
  }

  #postPagination .page-button,
  #postPagination .page-button.page-arrow {
    font-size: var(--mobile-pagination-size) !important;
  }

  .post-detail-active .site-header,
  .post-detail-active .masthead {
    display: none;
  }

  .post-detail-active main {
    width: 100%;
  }

  .post-detail-active .post-detail-view {
    width: min(100% - 28px, 860px);
    margin-top: 0;
    padding-top: 14px;
    scroll-margin-top: 0;
  }

  .post-back-link {
    margin-bottom: 20px;
    padding: 4px 8px 5px 0;
    font-size: 1.1rem;
    text-decoration: none;
  }

  .post-back-label {
    display: none;
  }

  .post-detail-content + .post-pagination,
  .post-detail-article > .post-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 46px;
    padding-top: 18px;
  }

  .post-adjacent-post,
  .post-adjacent-post.is-next {
    display: block;
    text-align: inherit;
  }

  .post-adjacent-label,
  .post-adjacent-post strong,
  .post-adjacent-post small {
    display: none;
  }

  .post-adjacent-thumb,
  .post-adjacent-post.is-next .post-adjacent-thumb {
    display: grid;
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
    aspect-ratio: 1;
  }

  .rose-click-burst {
    display: none !important;
  }
}
/* Canonical one-line spacing around article dividers and angle headings. */
.post-detail-content .content-spacing-line,
.post-detail-content .before-divider-line,
.post-detail-content .after-divider-line,
.post-detail-content .angle-heading-before-spacer,
.post-detail-content .angle-heading-spacer {
  display: block !important;
  box-sizing: border-box !important;
  height: 1.52em !important;
  min-height: 1.52em !important;
  line-height: 1.52 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.post-detail-content .content-spacing-line br,
.post-detail-content .before-divider-line br,
.post-detail-content .after-divider-line br,
.post-detail-content .angle-heading-before-spacer br,
.post-detail-content .angle-heading-spacer br {
  line-height: inherit !important;
}

.post-detail-content .content-divider,
.post-detail-content .before-divider-line + .content-divider,
.post-detail-content .content-divider + .after-divider-line,
.post-detail-content .content-copyright + .content-copyright + .divider-rose {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.post-detail-content .content-angle-line {
  margin: 0 !important;
  color: #00b3f2 !important;
  font-weight: 800 !important;
}

.post-detail-content .content-angle-heading,
.post-detail-content .content-angle-heading * {
  color: #00b3f2 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Clear, unboxed boundary between the article and adjacent posts. */
.post-detail-article > .post-pagination {
  gap: 18px 28px;
  margin-top: 72px;
  padding-top: 18px;
  border-top: 2px solid rgba(95, 63, 51, 0.34);
}

.post-pagination-heading {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 760px) {
  .post-detail-article > .post-pagination {
    margin-top: 52px;
    padding-top: 14px;
  }

  .post-pagination-heading {
    margin-bottom: 0;
    font-size: 0.72rem;
  }
}
/* Adjacent navigation boundary fallback for imported article DOM shapes. */
.post-pagination {
  gap: 18px 28px !important;
  margin-top: 72px !important;
  padding-top: 18px !important;
  border-top: 2px solid rgba(95, 63, 51, 0.34) !important;
}

@media (max-width: 760px) {
  .post-pagination {
    margin-top: 52px !important;
    padding-top: 14px !important;
  }
}

/* Thumbnail-only previous/next navigation. */
.post-detail-article > .post-pagination {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
  margin-top: 72px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.post-detail-article .post-pagination-heading,
.post-detail-article .post-adjacent-post small {
  display: none !important;
}

.post-detail-article .post-adjacent-post,
.post-detail-article .post-adjacent-post.is-next {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto 92px;
  column-gap: 14px;
  align-items: center;
  min-width: 0;
  text-align: left;
}

.post-detail-article .post-adjacent-post.is-next {
  grid-template-columns: minmax(0, 1fr) 92px;
  text-align: right;
}

.post-detail-article .post-adjacent-label {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 8px;
  color: var(--brown-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-detail-article .post-adjacent-post.is-next .post-adjacent-label {
  text-align: right;
}

.post-detail-article .post-adjacent-thumb,
.post-detail-article .post-adjacent-post.is-next .post-adjacent-thumb {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  width: 92px;
  max-width: none;
  margin: 0;
  aspect-ratio: 1;
}

.post-detail-article .post-adjacent-post.is-next .post-adjacent-thumb {
  grid-column: 2;
}

.post-detail-article .post-adjacent-post strong,
.post-detail-article .post-adjacent-post.is-next strong {
  display: -webkit-box !important;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  overflow: hidden;
  color: var(--brown-dark);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-detail-article .post-adjacent-post.is-next strong {
  grid-column: 1;
}

.post-detail-article .post-adjacent-thumb img {
  transition: filter 180ms ease, opacity 180ms ease;
}

.post-detail-article .post-adjacent-post:hover .post-adjacent-label,
.post-detail-article .post-adjacent-post:focus-visible .post-adjacent-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-detail-article .post-adjacent-post:hover .post-adjacent-thumb img,
.post-detail-article .post-adjacent-post:focus-visible .post-adjacent-thumb img {
  filter: brightness(1.04);
  opacity: 0.94;
}

@media (max-width: 760px) {
  #postPagination {
    margin-top: 38px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  .post-detail-article > .post-pagination {
    gap: 14px;
    margin-top: 52px !important;
  }

  .post-detail-article .post-adjacent-label {
    display: block;
    width: min(100%, 150px);
    margin-bottom: 7px;
    font-size: 0.76rem;
  }

  .post-detail-article .post-adjacent-post,
  .post-detail-article .post-adjacent-post.is-next {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .post-detail-article .post-adjacent-post.is-next {
    align-items: flex-end;
    text-align: right;
  }

  .post-detail-article .post-adjacent-post strong,
  .post-detail-article .post-adjacent-post.is-next strong {
    display: none !important;
  }

  .post-detail-article .post-adjacent-thumb,
  .post-detail-article .post-adjacent-post.is-next .post-adjacent-thumb {
    width: min(100%, 150px);
  }
}

/* Stable link-card hierarchy and one-line media rhythm. */
.post-detail-content .editor-link-card .link-card-body,
.post-detail-content .editor-link-card .link-card-body > span,
.post-detail-content .editor-link-card .link-card-body > span * {
  font-weight: 400 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

.post-detail-content .editor-link-card .link-card-body > span {
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
}

.post-detail-content .editor-link-card .link-card-body > span * {
  font-size: inherit !important;
  line-height: inherit !important;
}

.post-detail-content .editor-link-card .link-card-body > strong,
.post-detail-content .editor-link-card .link-card-body > strong * {
  font-weight: 700 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

.post-detail-content .media-spacing-line {
  min-height: 1.52em;
  margin: 0;
  line-height: 1.52;
}
