.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--surface); }
.top-inner { min-height: 72px; display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(245px, 1fr); align-items: center; gap: 24px; }
.top-inner .brand { justify-self: start; }
.top-inner .brand strong { max-width: 195px; }
.top-nav { display: flex; gap: 5px; justify-content: center; align-items: center; }
.top-nav a { min-width: 64px; border-radius: 8px; text-align: center; padding: 7px 12px; font-size: 14px; color: var(--muted); font-weight: 620; }
.top-nav a:hover, .top-nav a[aria-current] { background: var(--accent-fade); color: var(--accent-dark); }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.search-form { max-width: 205px; width: 100%; display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); padding-inline: 10px 8px; }
.search-form .icon { width: 16px; height: 16px; }
.search-form input[type="search"] { border: 0; background: transparent; padding: 0; min-height: 38px; font-size: 12px; color: var(--ink); }
.search-form:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form input:focus { outline: none; }
.search-form kbd { background: var(--surface); flex: none; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font: 10px/1.7 var(--sans); }
.compact-search { display: none; }

.journal-main { padding-top: 30px; }
.hero { min-height: 304px; isolation: isolate; position: relative; display: flex; align-items: center; overflow: hidden; border-radius: 22px; background: #324634; color: #fff9e9; }
.hero img { position: absolute; width: 100%; height: 100%; inset: 0; object-position: center 43%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,26,20,.84), rgba(20,32,23,.53) 41%, transparent 77%), linear-gradient(0deg, rgba(19, 34, 24, .47), transparent 44%); }
.hero-copy { padding: 44px 54px; width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 9px; color: #eef0d7; letter-spacing: .23em; font-size: 10px; font-weight: 750; }
.hero-eyebrow > span:first-child { width: 19px; height: 1px; background: #e0e5c7; flex: none; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 4.35vw, 66px); letter-spacing: .035em; line-height: 1.22; margin: 14px 0; font-weight: 750; max-width: 75%; overflow-wrap: anywhere; }
.hero p { font-size: 15px; letter-spacing: .055em; color: #f1f0dd; max-width: 70%; overflow-wrap: anywhere; }
.hero-foot { position: absolute; right: 31px; bottom: 24px; display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 650; letter-spacing: .2em; color: #f2f1dc; }
.hero-line { width: 33px; height: 1px; background: #f2f1dc85; }
.demo-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 13px; color: var(--body); background: var(--soft); font-size: 11px; }
.demo-banner a { color: var(--accent); white-space: nowrap; font-weight: 700; }
.demo-banner .icon { width: 13px; height: 13px; }

.journal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 27px; align-items: start; margin: 32px 0 44px; min-height: 49vh; }
.journal-grid.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: 920px; margin-inline: auto; }
.feed { min-width: 0; }
.feed:focus { outline: none; }
.section-kicker { color: var(--accent); display: flex; align-items: center; gap: 7px; }
.section-kicker span, .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--accent); flex: none; }
.feed-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 3px 0 13px; }
.feed-title-row h2 { font-family: var(--serif); font-size: 30px; line-height: 1.4; letter-spacing: .03em; }
.feed-caption { font-size: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 14px; }
.filter-bar a { border-radius: 8px; min-height: 34px; padding: 5px 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 620; }
.filter-bar .icon { width: 16px; height: 16px; }
.filter-bar a:hover { background: var(--soft); }
.filter-bar a[aria-current] { background: var(--accent-dark); color: var(--on-accent); }
.active-filter { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--accent-fade); color: var(--accent-dark); font-size: 13px; overflow-wrap: anywhere; }
.active-filter .icon { width: 15px; height: 15px; }
.post-list { display: grid; gap: 15px; }
.post-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: var(--shadow); }
.post-card-inner { padding: 19px 21px 16px; }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.avatar { background: var(--accent-dark); color: var(--on-accent); display: grid; place-items: center; flex: none; width: 41px; height: 41px; border-radius: 50%; overflow: hidden; font: 700 17px/1 Georgia, serif; text-transform: uppercase; }
.avatar img { width: 100%; height: 100%; }
.post-byline { flex: 1; min-width: 0; }
.post-byline strong { display: block; line-height: 1.35; font-size: 14px; overflow-wrap: anywhere; }
.post-time { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11px; margin-top: 3px; color: var(--muted); }
.post-time .icon { width: 13px; height: 13px; }
.kind { color: var(--accent-dark); background: var(--accent-fade); display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 3px 6px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.kind .icon { width: 13px; height: 13px; }
.pin { background: var(--pin); color: var(--ink); }
.post-head .kind { align-self: flex-start; }
.post-title { font-family: var(--serif); font-size: 22px; font-weight: 750; line-height: 1.42; margin: 0 0 7px; overflow-wrap: anywhere; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { white-space: pre-line; color: var(--body); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.media-gallery { display: grid; gap: 6px; margin: 13px 0 0; border-radius: 10px; overflow: hidden; }
.media-gallery.multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-gallery.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-item { min-width: 0; overflow: hidden; display: block; position: relative; padding: 0; border: 0; background: var(--soft); width: 100%; border-radius: 7px; }
.media-item img { width: 100%; aspect-ratio: 2.8; object-position: center 57%; }
.media-item:hover img { filter: brightness(.94); }
.media-gallery.multi .media-item img, .media-gallery.multi video { aspect-ratio: 1.38; }
.media-item video { width: 100%; aspect-ratio: 16 / 9; background: #111a12; object-fit: contain; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 4px 11px; color: var(--accent); font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
.post-tags a:hover, .post-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; font-size: 12px; color: var(--muted); }
.post-actions button { display: inline-flex; align-items: center; color: var(--muted); padding: 4px; border: 0; border-radius: 5px; background: transparent; }
.post-actions button:hover { background: var(--soft); color: var(--accent); }
.post-actions .icon { width: 15px; height: 15px; }
.media-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-view .post-card-inner { padding: 14px; }
.media-view .post-title { font-size: 18px; }
.media-view .post-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-view .media-item img { aspect-ratio: 1.55; }
.media-view .empty { grid-column: 1 / -1; }

.sidebar { display: grid; gap: 13px; min-width: 0; }
.side-card { padding: 17px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.side-card-title { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.35; margin-bottom: 12px; }
.side-card-title .icon { width: 16px; height: 16px; color: var(--accent); }
.profile { position: relative; background: var(--accent-fade); border-color: transparent; overflow: hidden; }
.profile::after { content: ""; position: absolute; top: -59px; right: -63px; width: 152px; height: 152px; pointer-events: none; border: 1px solid currentColor; border-radius: 50%; color: var(--accent); opacity: .1; box-shadow: 0 0 0 11px currentColor, 0 0 0 23px var(--accent-fade), 0 0 0 24px currentColor; }
.profile-kicker { color: var(--accent-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.profile-main { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.profile .avatar { width: 53px; height: 53px; font-size: 23px; border: 2px solid var(--surface); }
.profile-name { font-family: var(--serif); font-size: 23px; line-height: 1.35; }
.profile-handle { font-size: 11px; color: var(--muted); margin-top: 2px; }
.profile-bio, .side-copy { font-size: 13px; color: var(--body); white-space: pre-line; }
.profile-location { font-size: 11px; color: var(--muted); margin-top: 7px; }
.profile-location .icon { width: 13px; height: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 13px; padding-top: 10px; }
.stats a { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.6; }
.stats a + a { border-left: 1px solid var(--line); }
.stats a:hover { color: var(--accent-dark); }
.stats strong { display: block; color: var(--accent-dark); font-family: Georgia, serif; font-size: 23px; line-height: 1.15; }
.topic-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.topic { font-size: 12px; font-weight: 540; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); border-radius: 7px; background: var(--accent-fade); padding: 4px 7px; max-width: 100%; overflow-wrap: anywhere; }
.topic:hover { background: var(--accent-dark); color: var(--on-accent); }
.topic span { font-size: 10px; opacity: .85; flex: none; }
.side-links { display: grid; }
.side-links a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 12px; }
.side-links a:first-child { padding-top: 0; }
.side-links a:last-child { border-bottom: 0; padding-bottom: 0; }
.side-links a:hover { color: var(--accent); }
.side-links a > span:last-child { color: var(--muted); white-space: nowrap; }
.side-links .icon { width: 14px; height: 14px; }
.side-empty { color: var(--muted); font-size: 12px; }

.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.archive-grid a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 17px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; }
.archive-grid a:hover { background: var(--accent-fade); }
.archive-grid a > span { display: grid; }
.archive-grid small { color: var(--muted); }
.more-wrap { text-align: center; margin: 15px 0 0; }

.detail-view { margin-top: 5px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; margin-bottom: 11px; font-weight: 650; }
.detail .post-card-inner { padding: clamp(19px, 3vw, 34px); }
.detail .post-title { font-size: clamp(23px, 3vw, 37px); margin-bottom: 15px; }
.detail .post-head { margin-bottom: 16px; }
.detail .media-gallery { margin-top: 21px; }
.detail .media-gallery:not(.multi) .media-item img { aspect-ratio: auto; max-height: 540px; object-fit: contain; }
.detail .post-foot { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 13px; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 12px; color: var(--muted); padding-block: 17px 27px; border-top: 1px solid var(--line); }
.footer-brand, .footer-admin { display: flex; align-items: center; gap: 7px; }
.footer-admin { white-space: nowrap; }
.footer-brand .icon { color: var(--accent); }
.footer-admin .icon { width: 14px; height: 14px; }
.footer-admin:hover { color: var(--accent); }

.lightbox { border: 0; padding: 0; border-radius: 12px; width: min(970px, 96vw); max-width: none; background: #151d17; color: #edf2e8; }
.lightbox::backdrop { background: #09100de8; }
.lightbox-inner { position: relative; min-height: 150px; }
.lightbox img { max-height: 77vh; width: 100%; object-fit: contain; }
.lightbox figcaption { text-align: center; padding: 7px 44px 9px; font-size: 13px; overflow-wrap: anywhere; }
.lightbox .icon-button { position: absolute; background: #182219dc; color: #f4f6ee; border-color: #707971; z-index: 1; }
.lightbox-close { top: 9px; right: 9px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

@media (max-width: 930px) {
  .top-inner { grid-template-columns: 1fr auto 1fr; gap: 13px; }
  .top-nav a { min-width: 51px; padding-inline: 8px; }
  .search-form kbd { display: none; }
  .journal-grid { grid-template-columns: minmax(0, 1fr) 255px; gap: 17px; }
  .hero h1 { max-width: 87%; }
  .hero { min-height: 270px; }
}
@media (max-width: 710px) {
  .journal-grid { grid-template-columns: minmax(0, 1fr); margin-top: 23px; gap: 22px; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-inner { min-height: 62px; }
  .top-actions .compact-search { display: inline-grid; }
  .search-form { display: none; }
  .search-open .search-form { display: flex; position: absolute; right: 20px; top: calc(100% + 6px); max-width: min(350px, calc(100vw - 40px)); background: var(--surface); box-shadow: var(--shadow); }
}
@media (max-width: 540px) {
  html { scroll-padding-top: 111px; }
  .top-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 9px; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 8px; margin: 7px 0; }
  .top-nav a { min-width: 0; padding: 4px 10px; font-size: 12px; }
  .top-actions .icon-button { width: 35px; height: 35px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand strong { font-size: 15px; }
  .journal-main { padding-top: 17px; }
  .hero { min-height: 225px; border-radius: 15px; }
  .hero::before { background: linear-gradient(90deg, rgba(13,26,20,.82), rgba(20,32,23,.53) 65%, rgba(20,32,23,.18)), linear-gradient(0deg, #162c20a1, transparent 52%); }
  .hero img { object-position: 55% 46%; }
  .hero-copy { padding: 27px 20px 45px; }
  .hero h1 { font-size: clamp(29px, 8vw, 41px); max-width: 100%; margin: 9px 0; }
  .hero p { font-size: 12px; max-width: 100%; }
  .hero-foot { bottom: 11px; right: 15px; font-size: 8px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .17em; }
  .journal-grid { margin-bottom: 24px; }
  .feed-title-row h2 { font-size: 25px; }
  .feed-caption { font-size: 11px; }
  .filter-bar { gap: 3px; }
  .filter-bar a { padding-inline: 8px; }
  .post-card-inner { padding: 14px; }
  .post-title { font-size: 20px; }
  .post-foot { align-items: flex-start; }
  .sidebar, .media-view, .archive-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer { font-size: 11px; flex-wrap: wrap; }
  .footer-dot, .footer-dot + span { display: none; }
  .demo-banner .muted { display: none; }
}

.journal-main { padding-top: 19px; }
.journal-clock { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; min-height: 27px; margin: 0 2px 13px; font-size: 12px; color: var(--muted); }
.clock-caption { font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.clock-readout { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.clock-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--accent-fade); }
.clock-divider { width: 1px; height: 11px; background: var(--line); }
#current-time { color: var(--ink); font: 600 13px/1.1 Consolas, 'SFMono-Regular', monospace; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.clock-zone { font-size: 10px; }
.hero h1 { font-weight: 700; letter-spacing: .055em; }
.social-section { margin-top: 24px; }
.social-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.social-heading .eyebrow { color: var(--accent); font-size: 8px; letter-spacing: .2em; }
.social-heading h2 { font-family: var(--serif); font-size: 21px; line-height: 1.4; margin-top: 3px; }
.social-caption { color: var(--muted); font-size: 11px; padding-bottom: 3px; }
.social-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.social-card { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 79px; padding: 14px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .15s; }
.social-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.social-card-copy { min-width: 0; display: grid; gap: 2px; }
.social-card-copy strong { font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.social-card-copy small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.social-card-arrow { margin-left: auto; color: var(--muted); }
.social-card-arrow .icon { width: 18px; height: 18px; }
.journal-grid { margin-top: 28px; }
@media (max-width: 710px) {
  .journal-clock { align-items: flex-start; }
  .clock-caption { display: none; }
  .clock-readout { justify-content: flex-start; }
  .social-card { padding: 12px; gap: 8px; }
  .social-links { gap: 8px; }
  .social-card .platform-icon { width: 34px; height: 34px; border-radius: 9px; }
  .social-card .platform-icon .icon { width: 21px; height: 21px; }
}
@media (max-width: 540px) {
  .brand strong { font-size: 17px; }
  .brand small { font-size: 6.7px; }
  .journal-clock { margin-bottom: 10px; font-size: 11px; }
  .clock-readout { gap: 8px; }
  .clock-zone { margin-left: auto; }
  .clock-readout { width: 100%; }
  .social-section { margin-top: 19px; }
  .social-heading h2 { font-size: 19px; }
  .social-caption { display: none; }
  .social-links { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .social-card { min-height: 64px; padding: 11px 13px; gap: 11px; }
  .social-card-copy { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; flex: 1; }
  .social-card-copy strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .social-card { transition: none; } .social-card:hover { transform: none; } }
