.blog-page {
  --blog-ink: #293128;
  --blog-paper: #f7f1e3;
  --blog-panel: #fffdf7;
  --blog-coral: #ed704e;
  --blog-yellow: #f4cc58;
  --blog-blue: #8fc9e6;
  --blog-green: #bed99f;
  min-width: 320px;
  color: var(--blog-ink);
  background:
    linear-gradient(90deg, transparent 49.8%, #d7d1c31f 50%, transparent 50.2%) 0 0 / 44px 44px,
    radial-gradient(#cfc8b7 0.8px, transparent 0.8px) 0 0 / 13px 13px,
    var(--blog-paper);
}

.blog-shell { position: relative; overflow: hidden; }
.blog-shell::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 120px;
  left: 0;
  width: 100%;
  height: 520px;
  background: linear-gradient(112deg, #f7d368 0 32%, #f0a58e 32% 58%, #b9d99c 58% 100%);
  clip-path: polygon(0 10%, 100% 0, 100% 74%, 0 100%);
  opacity: .35;
}

.blog-paper-shape { position: absolute; z-index: -1; pointer-events: none; border: 1.5px solid var(--blog-ink); }
.shape-one { top: 240px; right: -75px; width: 190px; height: 190px; rotate: 10deg; background: #91cbe3; border-radius: 47% 53% 42% 58% / 55% 38% 62% 45%; }
.shape-two { top: 760px; left: -55px; width: 120px; height: 120px; rotate: -8deg; background: #ed704e; border-radius: 12px; }

.blog-header { position: relative; z-index: 5; }
.blog-header .site-nav a { position: relative; }
.blog-header .site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  background: var(--blog-coral);
  border-radius: 99px;
}

.blog-main { padding-bottom: 80px; }
.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  min-height: 610px;
  padding: 64px 0 80px;
}

.blog-eyebrow,
.journal-heading span,
.article-rail > span,
.sheet-date,
.post-card-meta,
.article-cover-code {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: .11em;
}

.blog-eyebrow { margin: 0 0 22px; color: #93422d; font-size: 12px; }
.blog-hero-copy h1 {
  max-width: 9.5em;
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.16;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.blog-hero-copy > p:not(.blog-eyebrow) { max-width: 37em; margin: 28px 0 0; color: #5e655b; font-size: 15px; line-height: 2; }
.blog-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.blog-hero-meta span { padding: 7px 10px; background: #fffdf8a8; border: 1px solid var(--blog-ink); border-radius: 5px; font: 700 10px "Baloo 2", sans-serif; letter-spacing: .08em; }

.blog-hero-art { position: relative; min-height: 460px; }
.journal-sheet { position: absolute; border: 2px solid var(--blog-ink); border-radius: 12px; box-shadow: 8px 8px 0 var(--blog-ink); }
.sheet-back { inset: 58px 38px 28px 20px; rotate: -7deg; background: var(--blog-blue); }
.sheet-front { inset: 30px 12px 54px 46px; rotate: 4deg; padding: 34px; overflow: hidden; background: var(--blog-panel); }
.sheet-front::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 33px, #aab2a522 33px 34px); }
.sheet-date { position: relative; z-index: 1; font-size: 12px; }
.sheet-line { position: relative; z-index: 1; display: block; height: 13px; margin-top: 27px; background: var(--blog-ink); border-radius: 2px; }
.sheet-line.line-a { width: 72%; margin-top: 45px; }
.sheet-line.line-b { width: 54%; background: var(--blog-coral); }
.sheet-line.line-c { width: 82%; background: var(--blog-yellow); }
.sheet-terminal { position: absolute; z-index: 2; right: 26px; bottom: 34px; width: 190px; padding: 16px; color: #fff; background: var(--blog-ink); border: 2px solid var(--blog-ink); border-radius: 9px; box-shadow: -5px 5px 0 var(--blog-coral); }
.sheet-terminal span { display: inline-block; width: 8px; height: 8px; margin-right: 3px; background: var(--blog-yellow); border-radius: 50%; }
.sheet-terminal span:nth-child(2) { background: var(--blog-coral); }
.sheet-terminal span:nth-child(3) { background: var(--blog-blue); }
.sheet-terminal strong { display: block; margin-top: 16px; font: 700 18px "Baloo 2", sans-serif; }
.sheet-flower { position: absolute; z-index: 2; top: 170px; left: 50px; width: 78px; height: 78px; }
.sheet-flower i { position: absolute; width: 34px; height: 34px; background: var(--blog-green); border: 1.5px solid var(--blog-ink); border-radius: 50% 50% 10% 50%; transform-origin: 39px 39px; }
.sheet-flower i:nth-child(2) { rotate: 90deg; }.sheet-flower i:nth-child(3) { rotate: 180deg; }.sheet-flower i:nth-child(4) { rotate: 270deg; }
.sheet-flower b { position: absolute; z-index: 2; inset: 26px; background: var(--blog-yellow); border: 1.5px solid var(--blog-ink); border-radius: 50%; }
.art-sticker { position: absolute; right: -8px; bottom: 15px; display: grid; place-items: center; width: 108px; height: 108px; rotate: 10deg; text-align: center; background: var(--blog-yellow); border: 2px solid var(--blog-ink); border-radius: 50%; box-shadow: 5px 5px 0 var(--blog-ink); font: 800 14px/1.15 "Baloo 2", sans-serif; }

.journal-section { padding-top: 32px; border-top: 1.5px solid #9aa092; }
.journal-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 34px; }
.journal-heading span { color: #93422d; font-size: 11px; }
.journal-heading h2 { margin: 7px 0 0; font-size: clamp(29px, 4vw, 46px); letter-spacing: -.045em; }
.journal-heading > p { max-width: 36em; margin: 0; color: #62685f; font-size: 13px; line-height: 1.8; }

.journal-section { scroll-margin-top: 24px; }
.journal-filters { margin: 0 0 32px; padding: 24px; background: #fffdf7c9; border: 1.5px solid var(--blog-ink); border-radius: 10px; box-shadow: 4px 4px 0 #aabd9d; }
.journal-search { max-width: 680px; }
.journal-search > label { display: block; margin-bottom: 9px; color: #5e6657; font-size: 11px; font-weight: 800; }
.journal-search-input { display: flex; gap: 10px; }
.journal-search-input input[type="search"] { min-width: 0; flex: 1; padding: 12px 14px; color: var(--blog-ink); background: #f4f1e5; border: 1px solid #8f9785; border-radius: 6px; font: inherit; font-size: 13px; }
.journal-search-input button { flex: 0 0 auto; padding: 10px 18px; color: var(--blog-ink); background: var(--blog-yellow); border: 1.5px solid var(--blog-ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--blog-ink); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.journal-search-input button span { margin-left: 9px; }
.journal-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.journal-categories a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; color: #5d6755; background: #f6f4eb; border: 1px solid #c4cbbb; border-radius: 99px; font-size: 11px; font-weight: 800; }
.journal-categories a:hover { border-color: var(--blog-ink); }
.journal-categories a[aria-current="page"] { color: var(--blog-ink); background: var(--blog-green); border-color: var(--blog-ink); }
.journal-categories a span { opacity: .7; font: 10px "Baloo 2", sans-serif; }
.journal-results { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 18px; padding-top: 15px; border-top: 1px dashed #b2b8a9; font-size: 12px; }
.journal-results p { margin: 0; overflow-wrap: anywhere; }
.journal-results a { flex: 0 0 auto; color: #8f3a28; text-decoration: underline; text-underline-offset: 4px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { --accent: var(--blog-blue); min-width: 0; overflow: hidden; background: var(--blog-panel); border: 1.5px solid var(--blog-ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--blog-ink); transition: translate .2s ease, box-shadow .2s ease; }
.post-card:hover { translate: -2px -4px; box-shadow: 8px 9px 0 var(--blog-ink); }
.cover-coral { --accent: #ed8b70; }.cover-sky { --accent: #94cee8; }.cover-leaf { --accent: #bad795; }.cover-sun { --accent: #f2ce62; }.cover-ink { --accent: #596154; }
.post-card-cover { position: relative; display: block; height: 190px; overflow: hidden; background: var(--accent); border-bottom: 1.5px solid var(--blog-ink); }
.post-card-cover.has-cover::before { display: none; }
.post-card-cover.has-cover::after { inset: auto 0 0; width: auto; height: 70%; rotate: 0deg; border: 0; border-radius: 0; background: linear-gradient(transparent, #2032234f); }
.post-card-cover.has-cover .post-card-number { padding: 4px 6px; background: #fffdf7e6; border-radius: 3px; }
.post-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-cover-image { transform: scale(1.035); }
.post-card-cover::before { content: ""; position: absolute; width: 170px; height: 170px; right: -24px; top: -36px; background: #fff7; border: 1.5px solid var(--blog-ink); border-radius: 50%; }
.post-card-cover::after { content: ""; position: absolute; left: 46px; bottom: -45px; width: 150px; height: 150px; rotate: 18deg; background: repeating-linear-gradient(45deg, #fffdf7 0 12px, transparent 12px 24px); border: 1.5px solid var(--blog-ink); border-radius: 24px; }
.post-card-number { position: absolute; z-index: 2; top: 18px; left: 20px; font: 700 12px "Baloo 2", sans-serif; }
.post-card-category { position: absolute; z-index: 3; right: 16px; bottom: 15px; padding: 7px 10px; background: var(--blog-panel); border: 1px solid var(--blog-ink); border-radius: 4px; font-size: 11px; font-weight: 800; }
.post-card-symbol { position: absolute; z-index: 2; top: 63px; left: 34px; width: 74px; height: 74px; background: var(--blog-yellow); border: 2px solid var(--blog-ink); border-radius: 50%; }
.post-card-symbol::before, .post-card-symbol::after { content: ""; position: absolute; left: 16px; right: 16px; height: 7px; background: var(--blog-ink); border-radius: 99px; }
.post-card-symbol::before { top: 23px; }.post-card-symbol::after { top: 40px; width: 28px; }
.cover-ink .post-card-cover { color: #fff; }.cover-ink .post-card-symbol { background: var(--blog-coral); }
.post-card-body { display: flex; flex-direction: column; min-height: 330px; padding: 23px; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; min-height: 20px; color: #6d7369; font-size: 9px; }
.post-card-meta span:first-child { color: #9a402c; }
.post-card h2 { margin: 15px 0 12px; font-size: 22px; line-height: 1.48; letter-spacing: -.035em; }
.post-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #62685f; font-size: 13px; line-height: 1.85; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.post-read-link { align-self: flex-start; margin-top: auto; padding-top: 23px; border-bottom: 2px solid var(--blog-coral); font-size: 12px; font-weight: 800; }
.post-read-link span { display: inline-block; transition: translate .2s ease; }.post-read-link:hover span { translate: 3px -3px; }

.blog-empty { padding: 90px 24px; text-align: center; background: var(--blog-panel); border: 1.5px dashed var(--blog-ink); border-radius: 12px; }
.blog-empty > span { display: grid; place-items: center; width: 62px; height: 62px; margin: auto; background: var(--blog-yellow); border: 1.5px solid var(--blog-ink); border-radius: 50%; font-size: 26px; }
.blog-empty h2 { margin: 20px 0 7px; }.blog-empty p { margin: 0; color: #697067; }
.blog-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 38px; padding: 18px 0; border-top: 1px solid #a5aa9f; border-bottom: 1px solid #a5aa9f; font: 700 12px "Baloo 2", sans-serif; }
.blog-pagination a:last-child { justify-self: end; }.blog-pagination strong { padding: 6px 10px; background: var(--blog-yellow); border: 1px solid var(--blog-ink); border-radius: 4px; }

.article-main { padding-top: 48px; }
.article-hero { --accent: var(--blog-blue); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); min-height: 470px; overflow: hidden; background: var(--blog-panel); border: 2px solid var(--blog-ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--blog-ink); }
.article-heading { padding: clamp(34px, 6vw, 72px); }
.article-back { display: inline-block; margin-bottom: 38px; color: #93422d; border-bottom: 2px solid var(--blog-coral); font-size: 12px; font-weight: 800; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.article-kicker span, .article-kicker b { padding: 6px 9px; background: var(--accent); border: 1px solid var(--blog-ink); border-radius: 4px; font-size: 10px; }
.article-kicker b { background: var(--blog-yellow); }
.article-heading h1 { max-width: 13em; margin: 20px 0; font-size: clamp(37px, 5vw, 62px); line-height: 1.22; letter-spacing: -.055em; text-wrap: balance; }
.article-heading > p { max-width: 46em; margin: 0; color: #60675d; font-size: 15px; line-height: 1.9; }
.article-dates { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: #686f65; font-size: 10px; }
.article-cover-art { position: relative; overflow: hidden; background: var(--accent); border-left: 2px solid var(--blog-ink); }
.article-cover-art::before { content: ""; position: absolute; inset: 38px; background: #fff8; border: 2px solid var(--blog-ink); border-radius: 50%; }
.article-cover-art::after { content: ""; position: absolute; right: -52px; bottom: -52px; width: 190px; height: 190px; rotate: 22deg; background: repeating-linear-gradient(45deg, var(--blog-yellow) 0 14px, transparent 14px 28px); border: 2px solid var(--blog-ink); border-radius: 30px; }
.article-cover-code { position: absolute; z-index: 2; top: 28px; left: 28px; font-size: 11px; }
.article-cover-art > b { position: absolute; z-index: 3; inset: 50% auto auto 50%; display: grid; place-items: center; width: 100px; height: 100px; translate: -50% -50%; background: var(--blog-coral); border: 2px solid var(--blog-ink); border-radius: 50%; box-shadow: 6px 6px 0 var(--blog-ink); font: 800 36px "Baloo 2", sans-serif; }
.orbit { position: absolute; z-index: 2; inset: 50% auto auto 50%; width: 220px; height: 110px; translate: -50% -50%; border: 2px solid var(--blog-ink); border-radius: 50%; }.orbit-b { rotate: 60deg; }
.translation-notice { margin: 36px auto 0; padding: 13px 16px; background: #fff3c8; border: 1px solid #b99732; border-radius: 7px; color: #6d581e; font-size: 12px; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 760px); justify-content: center; gap: clamp(28px, 5vw, 64px); margin-top: 70px; }
.article-rail { position: sticky; top: 32px; align-self: start; display: grid; gap: 12px; padding-top: 9px; }
.article-rail > span { color: #93422d; font-size: 10px; }.article-rail strong { font-size: 15px; }.article-rail i { width: 100%; height: 1px; background: #9da298; }.article-rail small { color: #737970; font: 700 38px "Baloo 2", sans-serif; }
.article-body { min-width: 0; font-family: "Noto Sans SC", "Kiwi Maru", sans-serif; font-size: 16px; line-height: 2.15; }
.article-body p { margin: 0 0 1.65em; }
.article-body a { color: #8f3a28; text-decoration: underline; text-underline-offset: 4px; }
.article-body code { padding: 2px 5px; background: #ebe5d7; border: 1px solid #c9c1af; border-radius: 4px; font-size: .9em; }
.article-cover-art.has-cover::before, .article-cover-art.has-cover::after { display: none; }
.article-cover-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.related-card.has-cover { position: relative; padding-top: 148px; overflow: hidden; background: var(--blog-panel); }
.related-cover-image { position: absolute; inset: 0 0 auto; width: 100%; height: 126px; object-fit: cover; border-bottom: 1px solid var(--blog-ink); }
.related-card.has-cover h3 { margin-top: 18px; }
.article-toc { margin-top: 12px; padding-top: 17px; border-top: 1px solid #9da298; }
.article-toc h2 { margin: 0 0 12px; font-size: 12px; }
.article-toc ol { max-height: 50vh; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.article-toc li + li { margin-top: 4px; }
.article-toc a { display: block; padding: 6px 0 6px 10px; color: #65705b; border-left: 2px solid #bac2af; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.article-toc a:hover { color: #8f3a28; border-color: var(--blog-coral); }
.article-toc .toc-level-4, .article-toc .toc-level-5, .article-toc .toc-level-6 { padding-left: 12px; }
.related-section { margin-top: 90px; padding-top: 32px; border-top: 1.5px solid #9aa092; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-card { --accent: var(--blog-blue); display: block; min-height: 210px; padding: 24px; background: linear-gradient(145deg, var(--accent) 0 38%, var(--blog-panel) 38%); border: 1.5px solid var(--blog-ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--blog-ink); transition: translate .2s ease; }
.related-card:hover { translate: -2px -3px; }.related-card > span { display: inline-block; padding: 5px 7px; background: var(--blog-panel); border: 1px solid var(--blog-ink); border-radius: 3px; font-size: 9px; font-weight: 800; }.related-card h3 { margin: 56px 0 12px; font-size: 18px; line-height: 1.5; }.related-card small { color: #686e65; }
.blog-footer { display: flex; justify-content: space-between; gap: 20px; }.blog-footer a { color: var(--blog-ink); border-bottom: 2px solid var(--blog-coral); font-weight: 800; }

.home-journal-section { --blog-ink: #293128; --blog-panel: #fffdf7; --blog-coral: #ed704e; --blog-yellow: #f4cc58; --blog-blue: #8fc9e6; --blog-green: #bed99f; }
.home-journal-head { position: relative; grid-template-columns: auto minmax(0, 1fr) auto; }
.journal-all-link { grid-column: 3; grid-row: 1 / 3; align-self: center; justify-self: end; color: #30382b; border-bottom: 2px solid #ed663f; font-size: 12px; font-weight: 800; }
.home-post-grid .post-card-body { min-height: 310px; }
.home-journal-empty { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 28px; background: #d7eaf7; border: 1.5px solid #30382b; border-radius: 10px; box-shadow: 4px 4px 0 #30382b; }
.home-journal-empty > span { font: 800 12px "Baloo 2", sans-serif; letter-spacing: .1em; }
.home-journal-empty p { flex: 1; margin: 0; color: #5f665c; font-size: 13px; }
.home-journal-empty a { border-bottom: 2px solid #ed663f; font-size: 12px; font-weight: 800; }

@media (max-width: 980px) {
  .blog-hero { grid-template-columns: 1fr 380px; min-height: 540px; gap: 28px; }
  .blog-hero-copy h1 { font-size: 51px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-hero { grid-template-columns: 1fr 250px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .blog-paper-shape { display: none; }
  .blog-header .site-nav { display: none; }
  .blog-hero { grid-template-columns: 1fr; min-height: 0; padding: 46px 0 62px; }
  .blog-hero-copy h1 { font-size: clamp(39px, 12vw, 57px); }
  .blog-hero-art { min-height: 390px; }
  .journal-heading { display: grid; gap: 14px; align-items: start; }
  .post-grid, .related-grid { grid-template-columns: 1fr; }
  .article-main { padding-top: 24px; }
  .article-hero { grid-template-columns: 1fr; min-height: 0; }
  .article-heading { padding: 30px 24px 38px; }
  .article-heading h1 { font-size: clamp(34px, 10vw, 48px); }
  .article-cover-art { min-height: 260px; border-top: 2px solid var(--blog-ink); border-left: 0; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 50px; }
  .article-rail { position: static; grid-template-columns: auto 1fr auto; align-items: center; padding: 12px 0; border-top: 1px solid #a4a99f; border-bottom: 1px solid #a4a99f; }
  .article-rail i { display: none; }.article-rail small { font-size: 22px; }
  .article-toc { grid-column: 1 / -1; width: 100%; margin-top: 0; }
  .article-toc ol { max-height: 220px; }
  .article-body { font-size: 15px; line-height: 2; }
  .blog-footer { display: grid; }
  .home-journal-head { grid-template-columns: auto 1fr; }
  .journal-all-link { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .home-journal-empty { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .journal-filters { padding: 17px; }
  .journal-search-input { gap: 8px; }
  .journal-search-input button { padding: 10px 12px; }
  .journal-search-input button span { display: none; }
  .journal-results { flex-direction: column; gap: 9px; }
  .blog-hero-art { min-height: 330px; }
  .sheet-back { inset: 45px 25px 20px 8px; }
  .sheet-front { inset: 20px 4px 43px 27px; padding: 25px; }
  .sheet-terminal { right: 18px; bottom: 25px; width: 155px; }
  .sheet-flower { top: 140px; left: 37px; }
  .art-sticker { width: 88px; height: 88px; font-size: 12px; }
  .post-card-cover { height: 170px; }
  .post-card-body { min-height: 300px; }
  .article-dates { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card, .related-card, .post-read-link span, .post-cover-image { transition: none; }
}
