/* The journal is an extension of runjuno.ai, not a separate visual identity. */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 15px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-underline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 5px; }
::selection { background: var(--color-accent); color: var(--color-text); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.08; letter-spacing: -.05em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.65rem, 5vw, 3.625rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 856px; }
.section { position: relative; padding: 96px 0 104px; min-height: 40vh; }
.lead { font-size: 18px; line-height: 1.7; color: var(--color-muted); max-width: 40em; }
.eyebrow { font: 11px/1.5 var(--font-mono); letter-spacing: .085em; text-transform: uppercase; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 8px 16px; background: var(--color-surface); color: var(--color-text); transform: translateY(-180%); z-index: 100; border: 1px solid var(--color-primary); border-radius: 6px; }
.skip-link:focus { transform: none; }
.arrow { display: inline-block; font-size: 1.2em; line-height: 1; transition: transform .2s; }
a:hover .arrow { transform: translate(2px, -2px); }
/* Compact, quiet main-site navigation. */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--color-bg) 91%, transparent); backdrop-filter: blur(16px); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 36px; }
.brand { display: inline-flex; width: fit-content; align-items: center; color: var(--color-text); text-decoration: none; }
.brand picture { display: block; }
.brand img { width: 72px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { position: relative; font-size: 14px; color: var(--color-muted); text-decoration: none; transition: color .2s; }
.nav > a:hover { color: var(--color-text); }
.nav > a.nav-current { color: var(--color-text); }
.nav > a.nav-current::after { content: ''; position: absolute; bottom: -9px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--color-primary); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.signin-link { color: var(--color-muted); text-decoration: none; font-size: 13px; white-space: nowrap; }
.signin-link:hover { color: var(--color-text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 22px; background: var(--color-button); color: var(--color-primary-text); font-size: 14px; line-height: 1.5; font-weight: 500; border: 0; border-radius: var(--button-radius); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.button:hover { background: var(--color-button-hover); }
.button:active { transform: scale(.98); }
.button:disabled { cursor: wait; opacity: .65; }
.button.secondary { color: var(--color-text); background: transparent; border: 1px solid var(--color-border); border-radius: 10px; }
.button.secondary:hover { background: var(--color-accent); }
.button-pill, .header-cta { border-radius: 999px; }
.header-cta { background: var(--color-header-button); color: var(--color-header-button-text); font-size: 13px; padding: 10px 20px; }
.header-cta:hover { background: var(--color-button); color: var(--color-primary-text); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--color-border); background: transparent; border-radius: 50%; padding: 11px; color: var(--color-text); cursor: pointer; }
.menu-line { display: block; width: 16px; height: 1px; background: currentColor; margin: 4px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .menu-line:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .menu-line:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.nav > .mobile-signin { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--color-text); font-size: 14px; font-weight: 500; text-decoration: none; }
.text-link:hover { color: var(--color-primary); }
/* Same centered, two-tone headline and soft atmosphere as the main website. */
.journal-hero { position: relative; isolation: isolate; text-align: center; padding: 62px 0 78px; }
.journal-hero .wrap { position: relative; }
.hero-mascot { display: block; width: 82px; height: 82px; margin: 0 auto 24px; filter: drop-shadow(0 12px 16px color-mix(in srgb, var(--color-shadow) 8%, transparent)); }
.hero-label { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--color-muted); margin-bottom: 21px; font-size: 10px; }
.blue-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); display: inline-block; }
.journal-hero h1 { max-width: 1100px; font-size: clamp(46px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -.06em; margin: 0 auto 25px; font-weight: 500; }
.journal-hero h1 span { display: block; color: var(--color-primary); }
.hero-intro { max-width: 565px; margin: 0 auto; color: var(--color-muted); font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.glow { position: absolute; inset: -70px -12% -100px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 28% 45%, var(--glow-a), transparent 62%), radial-gradient(ellipse at 76% 27%, var(--glow-b), transparent 58%); opacity: .42; filter: blur(48px); }
.hero-dots { position: absolute; inset: -30px 0 -40px; z-index: -1; pointer-events: none; opacity: .18; background-image: radial-gradient(color-mix(in srgb, var(--color-muted) 45%, transparent) .65px, transparent .65px); background-size: 15px 15px; mask-image: radial-gradient(ellipse at 50% 50%, #000 0, transparent 66%); }
/* Useful blog navigation, using the site's restrained selected-control treatment. */
.topic-strip { position: relative; }
.topic-nav { border-bottom: 1px solid var(--color-border); display: flex; align-items: center; gap: 6px; padding: 18px 0; }
.topic-link { color: var(--color-muted); text-decoration: none; font-size: 13px; line-height: 1.5; padding: 9px 17px; border: 1px solid transparent; border-radius: 9px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.topic-link:hover { background: color-mix(in srgb, var(--color-accent) 40%, transparent); color: var(--color-text); }
.topic-link.active { background: color-mix(in srgb, var(--color-accent) 48%, var(--color-bg)); color: var(--color-primary); border-color: color-mix(in srgb, var(--color-primary) 24%, transparent); }
.topic-rss { margin-left: auto; color: var(--color-muted); display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 8px 16px; font: 10px/1.5 var(--font-mono); text-decoration: none; white-space: nowrap; }
.topic-rss:hover { color: var(--color-primary); }
.topic-rss svg { width: 14px; height: 14px; }
/* Articles and the real, published-only empty state. */
.latest-section { padding: 42px 0 88px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.section-heading h2 { font-size: 24px; letter-spacing: -.035em; margin: 0; }
.section-heading .eyebrow { font-size: 10px; color: var(--color-muted); margin: 0; letter-spacing: .06em; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-list:empty { display: none; }
.empty-state { min-height: 276px; border: 1px solid var(--color-border); border-radius: var(--radius); display: grid; grid-template-columns: .8fr 1.6fr; align-items: center; background: color-mix(in srgb, var(--color-surface) 56%, var(--color-bg)); overflow: hidden; }
.empty-art { position: relative; min-height: 220px; display: grid; place-items: center; margin: 28px; background-image: radial-gradient(color-mix(in srgb, var(--color-muted) 28%, transparent) .65px, transparent .65px); background-size: 14px 14px; mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.paper { width: 112px; height: 144px; position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; display: flex; justify-content: center; align-items: center; box-shadow: 0 18px 38px color-mix(in srgb, var(--color-shadow) 9%, transparent); transform: rotate(-7deg); }
.paper::before { content: ''; z-index: -1; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-accent) 60%, var(--color-surface)); border: 1px solid var(--color-border); border-radius: 12px; transform: rotate(15deg) translate(9px, 1px); }
.paper img { width: 72px; height: 72px; transform: rotate(7deg); }
.paper-line { position: absolute; bottom: 18px; width: 38px; height: 2px; background: var(--color-border); border-radius: 2px; }
.empty-copy { padding: 42px 56px 42px 8px; }
.empty-copy .eyebrow { color: var(--color-muted); margin-bottom: 15px; font-size: 10px; }
.empty-copy h3 { font-size: 32px; letter-spacing: -.045em; margin: 0 0 14px; }
.empty-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.8; color: var(--color-muted); max-width: 480px; margin-bottom: 20px; }
.empty-copy .text-link { font-size: 13px; color: var(--color-primary); }
.empty { color: var(--color-muted); margin: 30px 0; }
.loading-status { color: var(--color-muted); font-size: 14px; margin: 25px 0; min-height: 24px; }
.more { margin-top: 36px; text-align: center; }
.more:not(:has(button:not([hidden]))) { display: none; }
.post-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px color-mix(in srgb, var(--color-shadow) 7%, transparent); }
.post-card .cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.post-card-text { padding: 26px; }
.post-card h2 { font-size: 25px; line-height: 1.23; letter-spacing: -.04em; margin-bottom: 14px; }
.post-card h2 a { color: var(--color-text); text-decoration: none; }
.post-card h2 a:hover { color: var(--color-primary); }
.post-card-text > p:last-child { margin-bottom: 0; color: var(--color-muted); font-size: 14px; }
.meta { color: var(--color-muted); font: 11px/1.7 var(--font-mono); margin-bottom: 22px; }
.meta a { color: inherit; }
/* Open, unboxed closing section; the mascot and next action mirror the main site. */
.juno-cta { position: relative; isolation: isolate; padding: 68px 0 104px; }
.juno-cta::before { content: ''; position: absolute; inset: -30px -5% 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 78% 65%, color-mix(in srgb, var(--color-lavender) 65%, transparent), transparent 60%); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; max-width: 1040px; margin: 0 auto; }
.cta-copy .eyebrow { margin-bottom: 20px; color: var(--color-muted); font-size: 10px; }
.cta-copy h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 20px; }
.cta-copy h2 span { display: block; }
.cta-copy h2 span + span { color: var(--color-muted); }
.cta-description { font-size: 14px; color: var(--color-muted); margin-bottom: 25px; }
.cta-copy .button { font-size: 13px; padding: 13px 23px; }
.cta-visual { position: relative; justify-self: center; padding-top: 42px; }
.cta-visual img { display: block; width: 252px; height: 252px; filter: drop-shadow(0 26px 26px color-mix(in srgb, var(--color-shadow) 13%, transparent)); }
.mascot-greeting { position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotate(-6deg); white-space: nowrap; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px 12px 12px 3px; box-shadow: 0 8px 24px color-mix(in srgb, var(--color-shadow) 5%, transparent); padding: 12px 18px; font-size: 12px; color: var(--color-muted); }
/* Shared post, author, tag and error layouts retain a comfortable reading width. */
.section > .narrow > h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.08; margin-bottom: 28px; }
.cover { width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0 36px; }
.post-body { font-size: 17px; line-height: 1.9; margin-top: 40px; }
.post-body h2 { font-size: 32px; margin-top: 1.8em; line-height: 1.18; }
.post-body h3 { font-size: 24px; margin-top: 1.6em; line-height: 1.25; }
.post-body img { border-radius: var(--radius); }
.post-body pre { background: var(--color-footer); border: 1px solid var(--color-border); padding: 20px; border-radius: 10px; overflow-x: auto; }
.post-body code { font: .85em/1.7 var(--font-mono); overflow-wrap: anywhere; }
.post-body blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 3px solid var(--color-primary); color: var(--color-muted); }
.post-body table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--color-border); padding: 10px 14px; }
.post-body a { overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tag { background: color-mix(in srgb, var(--color-accent) 52%, var(--color-bg)); color: var(--color-text); padding: 6px 13px; border-radius: 8px; text-decoration: none; font-size: 12px; }
.tag:hover { background: var(--color-primary); color: var(--color-primary-text); }
.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 48px; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.author-box p { margin: 0 0 .4em; color: var(--color-muted); font-size: 14px; }
.author-box .author-name { font-weight: 500; font-size: 16px; }
.author-name a { color: var(--color-text); text-decoration: none; }
.author-photo { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; }
.author-photo.large { width: 128px; height: 128px; }
.author-header { display: flex; gap: 28px; align-items: center; margin-bottom: 48px; }
.author-header h1 { margin-bottom: .2em; }
.author-header .lead { margin: 0; }
/* Shared theme-aware footer and quiet columns. */
.site-footer { background: var(--color-footer); border-top: 1px solid var(--color-border); padding: 58px 0 28px; color: var(--color-muted); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 68px; }
.footer-brand .brand img { width: 100px; }
.footer-tagline { font-size: 13px; margin: 14px 0 0; }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-column .eyebrow { font-size: 10px; color: var(--color-muted); margin: 0 0 5px; }
.site-footer a { color: var(--color-text); text-decoration: none; font-size: 12px; }
.site-footer a:hover, .site-footer a.footer-primary { color: var(--color-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 25px; border-top: 1px solid color-mix(in srgb, var(--color-muted) 18%, transparent); font-size: 11px; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { color: var(--color-muted); font-size: 11px; }
.back-top { display: inline-flex; align-items: center; gap: 12px; }
/* Small, progressive motion; the content never depends on it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-mascot { animation: arrive .8s cubic-bezier(.16,1,.3,1) both; }
  .journal-hero h1 { animation: arrive .8s .08s cubic-bezier(.16,1,.3,1) both; }
  .hero-intro { animation: arrive .8s .18s cubic-bezier(.16,1,.3,1) both; }
  .motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .motion .reveal.in { opacity: 1; transform: none; }
  .glow { animation: glow-float 18s ease-in-out infinite alternate; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes glow-float { to { transform: translate(3%, 3%) scale(1.06); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
  .header-inner { gap: 24px; }
  .nav { gap: 24px; }
  .header-actions { gap: 20px; }
  .cta-inner { gap: 48px; }
  .footer-top { grid-template-columns: .7fr 1.3fr; gap: 48px; }
  .empty-copy { padding-right: 40px; }
}
@media (max-width: 960px) {
  .header-inner { display: flex; justify-content: space-between; min-height: 72px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 20px 32px 26px; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: 0 16px 26px color-mix(in srgb, var(--color-shadow) 4%, transparent); align-items: stretch; gap: 0; }
  .nav.open { display: flex; flex-direction: column; }
  .nav > a { padding: 13px 0; font-size: 15px; }
  .nav > a.nav-current { color: var(--color-primary); }
  .nav > a.nav-current::after { display: none; }
  .journal-hero { padding: 56px 0 64px; }
  .journal-hero h1 { font-size: clamp(44px, 6.5vw, 62px); }
  .topic-nav { overflow-x: auto; scrollbar-width: thin; }
  .topic-link { padding: 9px 13px; font-size: 12px; }
  .topic-rss { font-size: 9px; }
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty-state { grid-template-columns: .8fr 1.8fr; }
  .empty-copy h3 { font-size: 29px; }
  .cta-visual img { width: 220px; height: 220px; }
  .footer-top { grid-template-columns: .6fr 1.4fr; gap: 40px; }
  .footer-columns { gap: 20px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 24px; }
  .header-inner { min-height: 70px; }
  .brand img { width: 66px; }
  .header-actions { gap: 12px; }
  .signin-link { display: none; }
  .header-cta { font-size: 12px; padding: 9px 16px; }
  .nav { top: 70px; padding: 16px 24px 24px; }
  .nav > .mobile-signin { display: block; border-top: 1px solid var(--color-border); margin-top: 10px; }
  .journal-hero { padding: 44px 0 50px; }
  .hero-mascot { width: 68px; height: 68px; margin-bottom: 23px; }
  .hero-label { font-size: 9px; margin-bottom: 20px; }
  .journal-hero h1 { font-size: clamp(36px, 7.6vw, 50px); line-height: 1.07; letter-spacing: -.055em; margin-bottom: 22px; }
  .journal-hero h1 span { max-width: 430px; margin: 2px auto 0; text-wrap: balance; }
  .hero-intro { max-width: 450px; font-size: 14px; line-height: 1.75; }
  .glow { opacity: .36; }
  .topic-nav { padding: 16px 0; gap: 5px; }
  .topic-link { padding: 8px 13px; font-size: 12px; }
  .topic-rss { display: none; }
  .latest-section { padding: 32px 0 52px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading .eyebrow { font-size: 9px; }
  .empty-state { grid-template-columns: 1fr; text-align: center; }
  .empty-art { min-height: 174px; margin: 20px 24px 0; }
  .paper { width: 94px; height: 126px; }
  .paper img { width: 64px; height: 64px; }
  .paper-line { bottom: 15px; width: 32px; }
  .empty-copy { padding: 12px 27px 34px; }
  .empty-copy h3 { max-width: 320px; margin-left: auto; margin-right: auto; font-size: 28px; }
  .empty-copy > p:not(.eyebrow) { font-size: 13px; margin-left: auto; margin-right: auto; max-width: 360px; }
  .post-list { grid-template-columns: 1fr; }
  .juno-cta { padding: 40px 0 70px; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; gap: 46px; }
  .cta-copy h2 { font-size: 40px; }
  .cta-copy .eyebrow { font-size: 9px; }
  .cta-description { font-size: 13px; }
  .cta-visual { padding-top: 42px; }
  .cta-visual img { width: 176px; height: 176px; }
  .mascot-greeting { font-size: 11px; padding: 10px 15px; }
  .section { padding: 56px 0 64px; }
  .section > .narrow > h1 { font-size: 39px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 28px; }
  .author-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .author-photo.large { width: 96px; height: 96px; }
  .author-box { padding: 22px; gap: 16px; }
  .author-box .author-photo { width: 48px; height: 48px; }
  .site-footer { padding-top: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 37px; padding-bottom: 40px; }
  .footer-brand .brand img { width: 86px; }
  .footer-tagline { font-size: 12px; margin-top: 12px; }
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .footer-column { gap: 10px; }
  .footer-column .eyebrow { font-size: 9px; }
  .site-footer a { font-size: 11px; }
  .footer-bottom { font-size: 10px; gap: 16px; flex-wrap: wrap; }
  .footer-bottom a { font-size: 10px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .header-actions { gap: 9px; }
  .header-cta { padding: 9px 13px; font-size: 11px; }
  .journal-hero h1 { font-size: 35px; }
  .hero-intro { font-size: 13px; }
  .section-heading .eyebrow { font-size: 8px; }
  .empty-copy { padding-left: 20px; padding-right: 20px; }
  .empty-copy h3 { font-size: 26px; }
  .cta-copy h2 { font-size: 35px; }
  .footer-columns { column-gap: 13px; }
}
