/* /writing: posts from Ghost in the Staves design. Tokens come from landing.css; this adds the reading
   column and Ghost's standard cards (https://ghost.org/docs/themes/content/) for the dark theme. */
.writing-page { background:radial-gradient(ellipse at 70% 0%,#16303940,transparent 60%),#08090d; min-height:100svh; display:flex; flex-direction:column; }
.writing-page header { position:relative; }
.writing-page .entry a[aria-current="page"] { color:#f1f2f4; text-decoration:underline; text-underline-offset:5px; text-decoration-color:#b8dcd9; }
.writing { flex:1; width:100%; max-width:680px; margin:0 auto; padding:56px 24px 96px; box-sizing:border-box; }
.writing a { color:#b8dcd9; text-decoration:underline; text-underline-offset:4px; }

/* index */
.writing-head h1 { font-size:clamp(40px,6vw,64px); line-height:1.05; letter-spacing:-.03em; margin:0 0 16px; }
.writing-head p { font-size:18px; line-height:1.7; color:#aebfc6; }
.post-list { list-style:none; padding:0; margin:40px 0 0; border-top:1px solid #26363f; }
.post-list li { border-bottom:1px solid #26363f; }
.post-list a { display:block; padding:28px 0; color:inherit; text-decoration:none; }
.post-list a:hover h2, .post-list a:focus-visible h2 { text-decoration:underline; text-underline-offset:5px; text-decoration-color:#b8dcd9; }
.post-list h2 { font-size:26px; font-weight:500; letter-spacing:-.02em; margin:0 0 10px; color:#f1f2f4; }
.post-list p { font-size:17px; line-height:1.65; color:#aebfc6; margin:0 0 12px; }
.post-list time, .byline { font-size:14px; color:#9fb0bd; }
.empty { font-size:18px; color:#aebfc6; margin-top:40px; }

/* one post */
.post h1 { font-size:clamp(40px,6vw,64px); line-height:1.05; letter-spacing:-.03em; margin:0 0 12px; }
.post .byline { margin:0 0 48px; }
.post-feature { margin:0 0 40px; }
.post-feature img { width:100%; height:auto; border-radius:8px; }
.post-back { margin-top:64px; font-size:15px; }
.post-content { font-size:18px; line-height:1.75; color:#d6dfe3; }
.post-content > * { margin:0 0 22px; }
.post-content h2 { font-size:26px; font-weight:500; letter-spacing:-.02em; margin:56px 0 18px; color:#f1f2f4; }
.post-content h3 { font-size:19px; font-weight:600; margin:36px 0 12px; color:#f1f2f4; }
.post-content h4 { font-size:17px; font-weight:600; margin:28px 0 10px; color:#f1f2f4; }
.post-content ul, .post-content ol { padding-left:22px; }
.post-content li { margin:6px 0; }
.post-content em { color:#c7d3d8; }
.post-content strong { color:#f1f2f4; }
.post-content hr { border:0; border-top:1px solid #26363f; margin:56px 0; }
.post-content img, .post-content video, .post-content iframe { max-width:100%; }
.post-content :not(pre) > code { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.88em; background:#ffffff12; border-radius:4px; padding:2px 5px; }
.post-content pre { margin:0 0 22px; padding:18px 20px; overflow-x:auto; background:#0c161c; border:1px solid #26363f; border-radius:8px; font:13.5px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:#c9d6db; }
.post-content blockquote { margin:32px 0; padding:0 0 0 22px; border-left:2px solid #b8dcd9; color:#e4ebee; font-style:italic; }
.post-content blockquote.kg-blockquote-alt { border:0; padding:0; text-align:center; font-size:24px; line-height:1.5; font-style:normal; color:#f1f2f4; }
.post-content figcaption { margin-top:10px; font-size:14px; line-height:1.5; color:#9fb0bd; text-align:center; }
.post-content table { width:100%; border-collapse:collapse; font-size:16px; }
.post-content th, .post-content td { text-align:left; padding:10px 12px; border-bottom:1px solid #26363f; }

/* Ghost cards */
.kg-card { margin:0 0 32px; }
.kg-image-card img, .kg-gallery-image img { display:block; width:100%; height:auto; border-radius:6px; }
.kg-width-wide { position:relative; width:min(1040px,92vw); left:50%; transform:translateX(-50%); }
.kg-width-full { position:relative; width:100vw; left:50%; transform:translateX(-50%); }
.kg-width-full img { border-radius:0; }
.kg-gallery-container { display:flex; flex-direction:column; gap:8px; }
.kg-gallery-row { display:flex; gap:8px; }
.kg-gallery-image { flex:1 1 0; }
.kg-embed-card { display:flex; flex-direction:column; align-items:center; }
.kg-bookmark-card a.kg-bookmark-container { display:flex; min-height:148px; overflow:hidden; color:inherit; text-decoration:none; background:#0c161c; border:1px solid #26363f; border-radius:8px; }
.kg-bookmark-card a.kg-bookmark-container:hover { border-color:#3e5561; }
.kg-bookmark-content { flex:1 1 auto; display:flex; flex-direction:column; justify-content:flex-start; padding:18px 20px; min-width:0; }
.kg-bookmark-title { font-size:16px; font-weight:600; line-height:1.4; color:#f1f2f4; }
.kg-bookmark-description { margin-top:6px; font-size:14px; line-height:1.5; color:#aebfc6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.kg-bookmark-metadata { display:flex; align-items:center; gap:6px; margin-top:14px; font-size:13px; color:#9fb0bd; white-space:nowrap; overflow:hidden; }
.kg-bookmark-icon { width:18px; height:18px; }
.kg-bookmark-author:not(:last-child)::after { content:"·"; margin:0 6px; }
.kg-bookmark-publisher { overflow:hidden; text-overflow:ellipsis; }
.kg-bookmark-thumbnail { position:relative; flex:0 0 33%; min-height:100%; }
.kg-bookmark-thumbnail img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:0 8px 8px 0; }
.kg-callout-card { display:flex; gap:14px; padding:18px 22px; background:#12242b; border:1px solid #26363f; border-radius:8px; font-size:17px; line-height:1.65; }
.kg-callout-card-accent { background:#1d3a3a; border-color:#2f5a58; }
.kg-callout-emoji { font-size:20px; line-height:1.5; }
.kg-callout-text { color:#dbe4e7; }
.kg-code-card pre { margin:0; }
.kg-button-card { display:flex; justify-content:center; }
.kg-button-card a.kg-btn { display:inline-flex; align-items:center; min-height:44px; padding:0 22px; border-radius:6px; background:#b8dcd9; color:#08171a; font-weight:600; text-decoration:none; }
.kg-toggle-card { padding:16px 20px; border:1px solid #26363f; border-radius:8px; }
.kg-toggle-heading-text { font-size:17px; font-weight:600; margin:0; }
.kg-header-card { padding:48px 24px; text-align:center; background:#0c161c; border-radius:8px; }

@media(max-width:819px) {
  .writing { padding:32px 20px 72px; }
  .post-content { font-size:17px; }
  .post-list h2 { font-size:22px; }
  .kg-bookmark-card a.kg-bookmark-container { flex-direction:column-reverse; }
  .kg-bookmark-thumbnail { flex-basis:auto; min-height:160px; }
  .kg-bookmark-thumbnail img { border-radius:8px 8px 0 0; }
  .kg-gallery-row { flex-direction:column; }
}
