.window { display: flex; flex-direction: column; background: var(--win); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.window.is-focused { border-color: var(--focus); }
.window-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.window-title a { color: var(--muted); }
.window-title .tag { color: var(--tag); }
.window-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.window-img { width: 100%; object-fit: cover; }

.row { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--fg); }
.row:last-child { border-bottom: 0; }
.row:hover, .row:focus-visible { background: var(--pill); color: var(--fg); }
.row-meta { font-size: 12px; color: var(--muted); }
.row-meta .tag { color: var(--tag); }
.row-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.row-compact { display: grid; grid-template-columns: 56px 1fr 64px; gap: 16px; align-items: baseline; padding: 9px 20px; border-bottom: 0; }
.row-compact .row-title { font-size: 13.5px; font-weight: 400; }
.row-compact .row-meta { text-align: right; }
.year-divider { padding: 12px 20px 4px; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; border-top: 1px solid var(--border); }
.year-divider:first-child { border-top: 0; }

.card { color: var(--fg); }
.card .window-img { height: 190px; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.card-excerpt { font-size: 13px; font-style: italic; color: var(--fg-2); line-height: 1.55; }
.lead .window-img { height: 320px; }
.lead-title { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.lead-excerpt { font-size: 15px; font-style: italic; line-height: 1.6; color: var(--fg-2); }

.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 32px; }
.subscribe-title { font-size: 22px; font-weight: 700; }
.subscribe-text { font-size: 14px; font-style: italic; color: var(--fg-2); }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe-form input { flex: 1; font: inherit; font-size: 14px; color: var(--fg); background: var(--bar); border: 1px solid var(--border); border-radius: 6px; padding: 11px 14px; }
.subscribe-form input::placeholder { color: var(--muted); }
.subscribe-msg { display: none; font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.subscribe-form.success .subscribe-ok { display: block; }
.subscribe-form.error [data-members-error] { display: block; color: var(--red); }
.subscribe-form.loading button { opacity: .6; pointer-events: none; }
.subscribe-window { width: min(520px, calc(100vw - 2 * var(--gap))); }
.subscribe-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px 26px; }
.subscribe-window .subscribe-form { flex-direction: column; flex-wrap: nowrap; }
.subscribe-window .subscribe-form input { width: 100%; }
.subscribe-window .subscribe-form button { align-self: flex-start; }
/* success: the form gives way to a confirmation with its own close button */
.subscribe-window .subscribe-form.success :is(input, button[type="submit"]) { display: none; }
.subscribe-window .subscribe-ok { display: none; flex-direction: column; gap: 10px; align-items: flex-start; }
.subscribe-window .subscribe-form.success .subscribe-ok { display: flex; }
.subscribe-ok-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--fg); }
.subscribe-ok-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.subscribe-window .subscribe-ok .btn-pill { margin-top: 6px; }
.subscribe-foot { margin: 0; font-size: 12px; color: var(--muted); }
.subscribe-foot a { color: var(--fg-2); }
.subscribe.is-small { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.subscribe.is-small .subscribe-title { font-size: 13px; }
.pagination { display: flex; justify-content: space-between; padding: 12px 20px; font-size: 12px; color: var(--muted); }
.comments .window-body { padding: 8px 24px 16px; }
/* Ghost's comments iframe is transparent and renders in dark mode, but Chromium paints a
   transparent iframe opaque (white) when the frame's own color-scheme (normal/light) differs
   from the embedding element's (dark, inherited from the page). Matching the scheme on the
   <iframe> element keeps it transparent so the dark comments sit on the window background. */
.comments iframe { color-scheme: light; }
