/* Site-specific styling; the upstream Cosmos theme stays untouched. */
.is-home .hero { display: block; min-height: auto; padding: clamp(30px, 6vh, 64px) 0 clamp(36px, 7vh, 76px); }
.is-home .hero-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(42px, 7vw, 112px); min-height: auto; position: relative; width: min(var(--container), calc(100% - 112px)); padding-block: 0; }
.is-home .hero-copy { grid-area: 1 / 1; position: relative; width: auto; padding: 0; }
.is-home .hero-copy::before { content: '随 笔　/　J O U R N A L'; position: static; display: block; color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 28px; }
.is-home .hero h1 { font: 600 clamp(74px, 8.5vw, 118px)/1.02 var(--serif); letter-spacing: -.085em; color: var(--ink); }
.is-home .hero h1 > span, .is-home .hero h1 > em { display: block; }
.is-home .hero h1 > em { font: inherit; color: var(--accent); margin: 0 0 0 .47em; }
.is-home .hero-description { font: 400 17px/2 var(--serif); color: var(--muted); max-width: 20em; margin: 29px 0 0; }
.is-home .hero-links { gap: 24px; margin: 21px 0 0; flex-wrap: wrap; }
.is-home .cover-link { font-size: 15px; min-height: 46px; min-width: 104px; gap: 16px; }
.is-home .cover-link:first-child { color: var(--accent); }
.is-home .hero-illustration { display: block; grid-area: 1 / 2; position: relative; width: min(100%, 420px); max-width: none; inset: auto; margin: 0; padding: 9px; transform: none; background: #faf5e9; border: 1px solid var(--rule); justify-self: end; }
.is-home .hero-illustration img { display: block; width: 100%; height: auto; max-width: none; max-height: none; aspect-ratio: 3 / 4; object-fit: contain; }
.is-home .hero-illustration::after { content: '01　／　晚云'; display: block; text-align: right; color: var(--muted); font-size: 12px; letter-spacing: .16em; padding: 9px 4px 2px; }
.is-post .article-page.without-toc { max-width: 42rem; }
.is-post .article-heading { padding-top: 42px; }
.is-post .article-heading h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 55px); line-height: 1.23; letter-spacing: -.045em; }
.is-post .article-deck { color: var(--muted); }
.is-post .article-body .prose { max-width: none; font-family: var(--serif); }
.prose .journal-photo { max-width: 26rem; margin: 2rem auto; }
.prose .journal-photo img { display: block; width: 100%; height: auto; margin: 0; }
.prose .journal-photo figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: .65rem; }
@media (max-width: 760px) {
  .is-home .hero-stage { grid-template-columns: minmax(0, 1fr); gap: 26px; width: calc(100% - 40px); }
  .is-home .hero-copy { grid-area: 1 / 1; }
  .is-home .hero-illustration { grid-area: 2 / 1; justify-self: start; width: min(100%, 340px); }
  .is-home .hero-copy::before { margin-bottom: 16px; }
  .is-home .hero h1 { font-size: clamp(50px, 12.8vw, 78px); white-space: normal; letter-spacing: -.065em; }
  .is-home .hero h1 > span, .is-home .hero h1 > em { display: inline; }
  .is-home .hero h1 > em { margin: 0; }
  .is-home .hero-description { margin-top: 14px; }
  .is-home .hero-links { margin-top: 8px; }
  .is-post .article-heading { padding-top: 20px; }
}


.journal-nav-group { display: flex; align-items: center; gap: 5px; position: relative; }
.journal-nav-menu summary { display: grid; place-items: center; width: 26px; min-height: 44px; color: var(--muted); cursor: pointer; list-style: none; }
.journal-nav-menu summary::-webkit-details-marker { display: none; }
.journal-nav-menu > div { position: absolute; top: 100%; left: 0; z-index: 5; padding: 0 13px; background: var(--paper); border: 1px solid var(--rule); white-space: nowrap; }
.journal-nav-menu a::after { display: none; }
.journal-collection-list { list-style: none; padding: 0; }
.journal-collection-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; border-bottom: 1px solid var(--rule); padding: .65em 0; overflow-wrap: anywhere; }
.journal-collection-list span, .journal-collection-list time, .journal-collection-empty { color: var(--muted); font-size: .85em; }
.journal-collection-list time, .journal-collection-list span { white-space: nowrap; }
@media (max-width: 640px) {
  .journal-nav-group { flex-wrap: wrap; }
  .journal-nav-menu > div { position: static; padding: 0 9px; }
  .journal-nav-menu a { font-size: 15px; }
}
