/* ==========================================================================
   Journal (blog) — "desktop OS" theme (loads after os.css)
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.jr-backlink {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; margin-bottom: 10px; transition: transform 0.15s ease;
  color: #1a1a1a; border: 1px solid #b6b6b6;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.95) 1%, rgba(255,255,255,0.45) 30%, rgba(255,255,255,0) 48%, rgba(255,255,255,0.08) 90%, rgba(255,255,255,0.3) 100%),
    linear-gradient(to bottom, #ffffff 0%, #ececec 46%, #cfcfcf 47%, #d9d9d9 82%, #f3f3f3 100%);
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,0.95), 0 6px 14px -6px rgba(0,0,0,0.22), 0 2px 4px rgba(0,0,0,0.14);
  text-shadow: 0 0 3px rgba(255,255,255,0.9);
}
.jr-backlink svg { width: 15px; height: 15px; }
.jr-backlink:hover { transform: translateY(-2px); }

/* ---------- Masthead ---------- */
.jr-masthead { padding: 36px 0 16px; text-align: center; }
.jr-masthead .wrap { max-width: 760px; }
.jr-mug { font-size: 60px; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.14)); }
.jr-masthead .pill-label { margin-bottom: 16px; }
.jr-masthead h1 { font-size: clamp(34px, 6vw, 66px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; margin: 14px auto 16px; max-width: 16ch; }
.jr-masthead .jr-intro { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 56ch; margin: 0 auto; }

/* ---------- Posts list ---------- */
.jr-posts { max-width: 900px; margin: 26px auto 0; }
.jr-post { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; padding: 30px 0; border-top: 1px solid var(--line); }
.jr-post:last-child { border-bottom: 1px solid var(--line); }
.jr-post-thumb { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); aspect-ratio: 16 / 11; transition: transform 0.2s ease; }
.jr-post-thumb svg { width: 100%; height: 100%; display: block; }
.jr-post:hover .jr-post-thumb { transform: translateY(-3px); }
.jr-post-thumb::before { content: ""; position: absolute; top: 8px; left: 8px; z-index: 3; width: 50px; height: 16px; border-radius: 8px; background: rgba(255,255,255,0.92); box-shadow: 0 2px 6px rgba(0,0,0,0.14); }
.jr-post-thumb::after { content: ""; position: absolute; top: 13px; left: 14px; z-index: 4; width: 38px; height: 6px; background: radial-gradient(circle 3px at 3px 3px, #ff5f57 60%, transparent 64%), radial-gradient(circle 3px at 18px 3px, #febc2e 60%, transparent 64%), radial-gradient(circle 3px at 33px 3px, #35c759 60%, transparent 64%); }
.jr-post-meta { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.jr-post-meta .dot { margin: 0 8px; color: var(--muted-2); }
.jr-post h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.jr-post h2 a:hover { color: var(--blue); }
.jr-post > div > p { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.jr-read { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.jr-read svg { width: 14px; height: 14px; }
.jr-read:hover { gap: 10px; }

/* ---------- Single post (article) ---------- */
.jr-article-head { max-width: 780px; margin: 0 auto; text-align: center; padding: 30px 0 6px; }
.jr-article-head .jr-backlink { display: inline-flex; margin-bottom: 14px; }
.jr-article-head h1 { font-size: clamp(32px, 5.5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; margin: 14px auto 16px; max-width: 16ch; }
.jr-article-head .jr-post-meta { margin-bottom: 0; }
.jr-hero-doodle { position: relative; max-width: 640px; margin: 26px auto 6px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.jr-hero-doodle svg { width: 100%; height: 100%; display: block; }
.jr-hero-doodle::before { content: ""; position: absolute; top: 10px; left: 10px; z-index: 3; width: 54px; height: 17px; border-radius: 8px; background: rgba(255,255,255,0.92); box-shadow: 0 2px 6px rgba(0,0,0,0.14); }
.jr-hero-doodle::after { content: ""; position: absolute; top: 15px; left: 16px; z-index: 4; width: 40px; height: 7px; background: radial-gradient(circle 3.4px at 3.4px 3.4px, #ff5f57 60%, transparent 64%), radial-gradient(circle 3.4px at 19px 3.4px, #febc2e 60%, transparent 64%), radial-gradient(circle 3.4px at 35px 3.4px, #35c759 60%, transparent 64%); }
.jr-article { max-width: 680px; margin: 10px auto 0; }
.jr-article p { font-size: 18px; line-height: 1.75; color: var(--ink-2); margin: 0 0 22px; }
.jr-article p.jr-lead { font-size: 20px; color: var(--ink); }
.jr-article h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 44px 0 16px; }
.jr-article strong { font-weight: 700; color: var(--ink); }
.jr-article em { font-style: italic; }
.jr-article-foot { max-width: 680px; margin: 44px auto 0; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.jr-article-foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.jr-article-foot svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .jr-post { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
}
