/* Notebook — Tumblr-style feed. Colors come from Settings → Notebook (CSS variables). */
.nb-wrap {
	--nb-accent: #E58A3C;
	--nb-card: #161616;
	--nb-text: #D6D6D6;
	--nb-muted: #8C8C8C;
	--nb-line: rgba(128, 128, 128, .22);
	--nb-max: 980px;
	--nb-font-h: inherit;
	--nb-font-b: inherit;
	max-width: var(--nb-max);
	margin: 0 auto;
	padding: 48px 0 72px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
	color: var(--nb-text);
	background: var(--nb-bg, transparent);
	font-family: var(--nb-font-b);
	font-size: 15px;
	line-height: 1.7;
	box-sizing: border-box;
}
.nb-wrap *, .nb-wrap *::before, .nb-wrap *::after { box-sizing: border-box; }
.nb-wrap [hidden] { display: none !important; }
.nb-wrap a { color: var(--nb-accent); }

/* Sidebar */
.nb-side { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 32px; }
.nb-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.nb-wrap .nb-side-title { margin: 0; font-family: var(--nb-font-h); font-size: 40px; line-height: 1.1; color: inherit; }
.nb-side-desc { margin: 0; color: var(--nb-muted); }
.nb-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-wrap .nb-filter {
	font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
	padding: 10px 13px; border-radius: 999px; cursor: pointer; min-height: 36px;
	border: 1px solid var(--nb-line); background: transparent; color: var(--nb-text);
}
.nb-wrap .nb-filter:hover { border-color: var(--nb-accent); }
.nb-wrap .nb-filter.is-on { background: var(--nb-accent); border-color: var(--nb-accent); color: #121212; }

/* Main column */
.nb-main { flex: 999 1 480px; min-width: 0; max-width: 580px; display: flex; flex-direction: column; gap: 28px; }
.nb-no-sidebar .nb-main { margin: 0 auto; }
.nb-list { display: flex; flex-direction: column; gap: 28px; transition: opacity .2s; }
.nb-loading .nb-list { opacity: .5; }
.nb-empty { margin: 0; color: var(--nb-muted); }
.nb-wrap .nb-more {
	align-self: center; font: inherit; cursor: pointer; padding: 12px 22px; border-radius: 999px;
	border: 1px solid var(--nb-line); background: transparent; color: var(--nb-text);
}
.nb-wrap .nb-more:hover { border-color: var(--nb-accent); }

/* Entries */
.nb-entry { background: var(--nb-card); border-radius: 6px; overflow: hidden; }
.nb-body { padding: 18px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.nb-media img, .nb-cover img { display: block; width: 100%; height: auto; }
.nb-content > :first-child { margin-top: 0; }
.nb-content > :last-child { margin-bottom: 0; }
.nb-content p { margin: 0 0 .8em; }
.nb-content img, .nb-content iframe, .nb-content video, .nb-content figure { max-width: 100%; height: auto; }
.nb-content figure { margin: 0 0 1em; }
.nb-content .twitter-tweet, .nb-content .twitter-tweet-rendered { margin: 0 auto 1em !important; }
.nb-content .wp-block-embed__wrapper { display: flex; justify-content: center; }
.nb-f-image .nb-content > p:first-child img,
.nb-f-image .nb-content > figure:first-child,
.nb-f-gallery .nb-content > figure:first-child { margin: -18px -22px 14px; max-width: none; width: calc(100% + 44px); }
.nb-f-image .nb-content > p:first-child:has(img) { margin: 0; }
.nb-f-image .nb-content > p:first-child img { display: block; }
.nb-wrap .nb-title { margin: 0; font-family: var(--nb-font-h); font-size: 22px; line-height: 1.3; font-weight: 500; }
.nb-wrap .nb-title a { color: inherit; text-decoration: none; }
.nb-excerpt { margin: 0; }

/* Notes: no card, bigger text */
.nb-f-aside, .nb-f-status { background: transparent; }
.nb-f-aside .nb-body, .nb-f-status .nb-body { padding: 6px 2px 2px; }
.nb-f-aside .nb-content, .nb-f-status .nb-content { font-family: var(--nb-font-h); font-size: 22px; line-height: 1.45; color: inherit; }

/* Questions */
.nb-question { background: transparent; border: 1px dashed var(--nb-line); }
.nb-question .nb-content { font-family: var(--nb-font-h); font-size: 22px; line-height: 1.4; }
.nb-question .nb-content blockquote { margin: 0; padding: 0; border: 0; font-style: normal; }

/* Standard posts (e.g. series) */
.nb-f-standard { border: 1px solid var(--nb-accent); }

/* Meta row */
.nb-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--nb-muted); }
.nb-meta-type { text-transform: uppercase; letter-spacing: .1em; }
.nb-sep { margin: 0 .5em; }
.nb-meta-r { display: inline-flex; align-items: center; gap: 14px; }
.nb-wrap .nb-reply-link, .nb-wrap .nb-open, .nb-wrap .nb-permalink {
	font: inherit; font-size: 12px; color: var(--nb-accent); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: none;
}
.nb-wrap .nb-permalink { color: var(--nb-muted); }
.nb-reply-box { border-top: 1px solid var(--nb-line); padding-top: 12px; }
.nb-reply-box .ca-wrap { margin: 0; }

/* Locked */
.nb-s-locked .nb-locked-media { overflow: hidden; max-height: 320px; }
.nb-s-locked .nb-locked-media img { display: block; width: 100%; height: auto; filter: blur(18px); transform: scale(1.12); }
.nb-locked-text { margin: 0; }
.nb-locked-cta { margin: 0; }
.nb-locked-cta a { text-decoration: none; }

/* Quick-post bar */
.nb-compose { border: 1px solid var(--nb-line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.nb-compose-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-wrap .nb-kind {
	flex: 1 1 auto; font: inherit; font-size: 13px; cursor: pointer; padding: 10px 12px; border-radius: 4px; min-height: 40px;
	border: 1px solid var(--nb-line); background: transparent; color: var(--nb-text);
}
.nb-wrap .nb-kind:hover, .nb-wrap .nb-kind.is-on { border-color: var(--nb-accent); color: var(--nb-accent); }
.nb-compose-form { display: flex; flex-direction: column; gap: 12px; }
.nb-field { display: flex; flex-direction: column; gap: 4px; }
.nb-field label { font-size: 12px; color: var(--nb-muted); }
.nb-wrap .nb-field input, .nb-wrap .nb-field textarea, .nb-wrap .nb-field select {
	width: 100%; font: inherit; color: inherit; background: transparent;
	border: 1px solid var(--nb-line); border-radius: 4px; padding: 9px 11px;
}
.nb-wrap .nb-field select option { color: #111; }
.nb-compose-row { display: flex; flex-wrap: wrap; gap: 12px; }
.nb-field-inline { flex: 1 1 180px; }
.nb-compose-actions { display: flex; align-items: center; gap: 12px; }
.nb-wrap .nb-post {
	font: inherit; cursor: pointer; padding: 10px 18px; border-radius: 4px;
	border: 1px solid var(--nb-accent); background: var(--nb-accent); color: #121212;
}
.nb-wrap .nb-post[disabled] { opacity: .6; cursor: wait; }
.nb-wrap .nb-cancel { font: inherit; cursor: pointer; padding: 10px 6px; border: 0; background: none; color: var(--nb-muted); }
.nb-compose-status { margin: 0; font-size: 13px; color: var(--nb-muted); }
.nb-compose-status:empty { display: none; }

/* Unstyled mode: keep layout, drop colors */
.nb-unstyled { --nb-card: transparent; }

@media (max-width: 767px) {
	.nb-wrap { padding: 28px 16px 56px; gap: 28px; }
	.nb-side { position: static; max-width: none; }
	.nb-wrap .nb-side-title { font-size: 32px; }
	.nb-body { padding: 16px 16px; }
	.nb-f-image .nb-content > p:first-child img,
	.nb-f-image .nb-content > figure:first-child,
	.nb-f-gallery .nb-content > figure:first-child { margin: -16px -16px 12px; width: calc(100% + 32px); }
}

/* ---------- 1.1 ---------- */
.nb-credit { margin: 0; font-size: 13px; color: var(--nb-muted); }
.nb-badge { text-transform: uppercase; letter-spacing: .1em; }
.nb-badge-open { color: var(--nb-accent); }
.nb-s-teaser .nb-cover img { filter: none; }
.nb-compose-checks { gap: 18px; }
.nb-wrap .nb-check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--nb-text); cursor: pointer; }
.nb-wrap .nb-check input { width: auto; }

/* Home: shared */
.nb-home { width: 100%; }
.nb-home .nb-eyebrow { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--nb-accent); }

/* Home: outside */
.nb-home-outside { display: block; max-width: 1120px; padding: 56px 0 96px; }
.nb-out-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.nb-out-hero.nb-out-noimg { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.nb-out-img img { display: block; width: 100%; height: auto; }
.nb-out-copy { display: flex; flex-direction: column; gap: 22px; }
.nb-home .nb-out-title { margin: 0; font-family: var(--nb-font-h); font-size: clamp(40px, 6vw, 72px); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.03em; color: #EEEEEE; }
.nb-out-text { margin: 0; max-width: 460px; }
.nb-out-sign { margin: 0; color: #EEEEEE; }
.nb-out-links { margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.nb-home a.nb-out-cta { font-size: 17px; text-decoration: none; }
.nb-home a.nb-out-signin { font-size: 13px; color: var(--nb-muted); text-decoration: none; }
.nb-lately { max-width: 820px; margin: 112px auto 0; }
.nb-home .nb-lately-h { margin: 0 0 16px; font-family: var(--nb-font-h); font-size: 32px; text-transform: uppercase; letter-spacing: -0.02em; color: #EEEEEE; }
.nb-lately-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--nb-line); }
.nb-lately-row { display: grid; grid-template-columns: 90px 120px minmax(0, 1fr) 130px; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--nb-line); }
.nb-lately-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--nb-accent); }
.nb-lately-type { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--nb-muted); }
.nb-lately-title { color: #EEEEEE; }
.nb-lately-status { font-size: 12px; color: var(--nb-muted); text-align: right; }

/* Home: supporters */
.nb-in { display: block; padding: 56px 0 0; }
.nb-in-head { display: flex; flex-direction: column; gap: 14px; max-width: 580px; margin: 0 auto; }
.nb-home .nb-in-title { margin: 0; font-family: var(--nb-font-h); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; text-transform: uppercase; letter-spacing: -0.03em; color: #EEEEEE; }
.nb-in-since { margin: 0; color: var(--nb-muted); }
.nb-in-note { max-width: 580px; margin: 40px auto 0; background: var(--nb-card); padding: 28px 30px; border-left: 0; }
.nb-in-note-label { margin: 0 0 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--nb-muted); }
.nb-in-note-body { font-size: 18px; line-height: 1.6; color: #EEEEEE; }
.nb-in-note-body > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	.nb-home-outside { padding: 28px 16px 64px; }
	.nb-out-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.nb-lately { margin-top: 72px; }
	.nb-lately-row { grid-template-columns: 70px minmax(0, 1fr); gap: 4px 14px; }
	.nb-lately-type { grid-column: 2; grid-row: 1; }
	.nb-lately-title { grid-column: 1 / -1; }
	.nb-lately-status { grid-column: 1 / -1; text-align: left; }
	.nb-in { padding: 28px 16px 0; }
}

/* ---------- 1.2: diary layout ---------- */
.nb-diary { display: block; max-width: 820px; padding: 56px 0 96px; }
.nb-diary .nb-main { max-width: none; margin: 0; gap: 0; }
.nb-diary .nb-list { gap: 0; }
.nb-d-head { padding: 0 0 40px 180px; display: flex; flex-direction: column; gap: 16px; }
.nb-wrap .nb-d-title { margin: 0; font-family: var(--nb-font-h); font-size: clamp(40px, 6vw, 64px); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.03em; color: #EEEEEE; }
.nb-d-desc { margin: 0; max-width: 520px; color: var(--nb-text); }
.nb-wrap .nb-d-filters { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 14px 0; margin: 0 0 8px; border-top: 1px solid var(--nb-line); border-bottom: 1px solid var(--nb-line); }
.nb-wrap .nb-d-filters .nb-filter { min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent !important; color: var(--nb-muted) !important; letter-spacing: .14em; }
.nb-wrap .nb-d-filters .nb-filter:hover { color: #EEEEEE !important; }
.nb-wrap .nb-d-filters .nb-filter.is-on { color: var(--nb-accent) !important; box-shadow: inset 0 -1px 0 var(--nb-accent); }
.nb-diary .nb-compose { margin: 24px 0 8px 180px; }

.nb-d { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 40px; padding: 48px 0; border-top: 1px solid var(--nb-line); }
.nb-list > .nb-d:first-child { border-top: 0; }
.nb-d-side { display: flex; flex-direction: column; gap: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nb-d-date { color: var(--nb-accent); }
.nb-d-type { color: var(--nb-muted); }
.nb-d-badge { color: var(--nb-muted); opacity: .7; margin-top: 6px; }
.nb-d-badge.nb-badge-open { color: var(--nb-accent); opacity: 1; }
.nb-d-main { min-width: 0; }

/* Entries inside the diary: no cards, no borders. */
.nb-diary .nb-entry { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.nb-diary .nb-body { padding: 0; gap: 14px; }
.nb-diary .nb-meta-l { display: none; }
.nb-diary .nb-meta { justify-content: flex-start; }
.nb-diary .nb-cover, .nb-diary .nb-media { display: block; margin: 0 0 20px; }
.nb-diary .nb-f-standard .nb-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; text-transform: uppercase; letter-spacing: -0.02em; font-weight: 700; }
.nb-diary .nb-f-standard .nb-credit { font-size: 13px; color: var(--nb-muted); }
.nb-diary .nb-f-image .nb-content > p:first-child img,
.nb-diary .nb-f-image .nb-content > figure:first-child,
.nb-diary .nb-f-gallery .nb-content > figure:first-child { margin: 0 0 14px; width: auto; max-width: 420px; }
.nb-diary .nb-f-image .nb-media img { max-width: 420px; }
.nb-diary .nb-f-aside .nb-content, .nb-diary .nb-f-status .nb-content { font-size: 18px; }
.nb-diary .nb-question { border: 0; }
.nb-diary .nb-f-audio .nb-content { font-style: italic; }

/* Closed entries: a door, not a blur. */
.nb-diary .nb-s-locked .nb-locked-media { display: none; }
.nb-diary .nb-s-locked .nb-body { min-height: 260px; background: #1B1918; border: 1px solid #2A2A2A; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; gap: 12px; }
.nb-diary .nb-s-locked .nb-locked-text { font-family: var(--nb-font-h); font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; color: #C9C9C9; }
.nb-diary .nb-s-locked .nb-meta { display: none; }

/* Closing line */
.nb-d-close { margin: 24px 0 0 180px; padding: 48px 0 0; border-top: 1px solid var(--nb-line); display: flex; flex-direction: column; gap: 12px; }
.nb-d-close-text, .nb-d-thanks { margin: 0; max-width: 520px; font-family: var(--nb-font-h); font-style: italic; font-size: 20px; line-height: 1.45; color: #C9C9C9; }
.nb-d-thanks { margin: 24px 0 0 180px; padding-top: 48px; border-top: 1px solid var(--nb-line); }
.nb-wrap a.nb-d-close-cta { font-size: 14px; text-decoration: none; }
.nb-diary .nb-more { margin: 32px 0 0 180px; align-self: flex-start; }

/* Home: supporters intro lines up with the diary */
.nb-home-supporter .nb-in, .nb-home-supporter .nb-diary { max-width: 820px; }
.nb-home-supporter .nb-in-head, .nb-home-supporter .nb-in-note { max-width: none; margin-left: 180px; }

@media (max-width: 767px) {
	.nb-diary { padding: 28px 16px 64px; }
	.nb-d-head, .nb-diary .nb-compose, .nb-d-close, .nb-d-thanks, .nb-diary .nb-more { margin-left: 0; padding-left: 0; }
	.nb-d { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 36px 0; }
	.nb-d-side { flex-direction: row; gap: 12px; }
	.nb-d-badge { margin-top: 0; }
	.nb-home-supporter .nb-in-head, .nb-home-supporter .nb-in-note { margin-left: 0; }
}
.nb-diary .nb-f-standard .nb-cover img { width: 100%; max-height: 620px; object-fit: cover; object-position: center 30%; }
.nb-wrap .nb-kind, .nb-wrap .nb-cancel, .nb-wrap .nb-more { background: transparent !important; color: var(--nb-text) !important; }
.nb-wrap .nb-kind:hover, .nb-wrap .nb-kind.is-on { color: var(--nb-accent) !important; }
.nb-wrap .nb-post { background: var(--nb-accent) !important; color: #121212 !important; }

/* ---------- 1.3 ---------- */
/* Older entries: hard to miss. */
.nb-wrap .nb-more, .nb-diary .nb-more {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	width: 100%; min-height: 76px; margin: 48px 0 0; padding: 18px 24px; border-radius: 0;
	border: 1px solid var(--nb-accent) !important; background: transparent !important; color: var(--nb-accent) !important;
	font-family: var(--nb-font-h, inherit); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
	transition: background-color .15s, color .15s;
}
.nb-wrap .nb-more:hover, .nb-wrap .nb-more:focus-visible { background: var(--nb-accent) !important; color: #121212 !important; }
.nb-wrap .nb-more:focus-visible { outline: 2px solid var(--nb-accent); outline-offset: 3px; }
.nb-wrap .nb-more[hidden] { display: none; }
.nb-wrap .nb-more:disabled { opacity: .6; cursor: progress; }
.nb-more-n { font-size: 11px; font-weight: 400; letter-spacing: .14em; opacity: .85; }
.nb-more-n:empty { display: none; }
.nb-diary .nb-more { margin: 48px 0 0 180px; width: calc(100% - 180px); }
@media (max-width: 767px) { .nb-diary .nb-more { margin-left: 0; width: 100%; } }

/* Private entries for visitors: title only, image blurred. */
.nb-blur-media { display: block; overflow: hidden; max-height: 520px; margin: 0 0 20px; position: relative; }
.nb-blur-media img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; filter: blur(22px) brightness(.75); transform: scale(1.12); }
.nb-diary .nb-s-blurred .nb-cover.nb-blur-media img { max-height: 520px; width: 100%; object-fit: cover; filter: blur(22px) brightness(.75); transform: scale(1.12); }
.nb-s-blurred .nb-body { gap: 10px; }
.nb-s-blurred .nb-title { font-family: var(--nb-font-h); text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; margin: 0; }
.nb-blur-text { margin: 0; color: var(--nb-muted); font-size: 14px; }
.nb-s-blurred .nb-locked-cta a { color: var(--nb-accent); text-decoration: none; font-weight: 700; }
.nb-diary .nb-s-blurred .nb-meta { display: none; }

/* One place to post */
.nb-compose-link { display: flex; justify-content: flex-end; background: transparent; border: 0; padding: 0; }
.nb-wrap a.nb-new {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--nb-accent);
	color: var(--nb-accent); text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.nb-wrap a.nb-new:hover { background: var(--nb-accent); color: #121212; }
.nb-compose.nb-compose-link { flex-direction: row; justify-content: flex-end; }
/* Blurred stand-ins are tiny files: always stretch them to the photo's shape. */
.nb-wrap .nb-blur-media img, .nb-diary .nb-s-blurred .nb-cover.nb-blur-media img { width: 100% !important; max-width: none !important; height: auto !important; max-height: 560px; object-fit: cover; filter: blur(16px) brightness(.8); transform: scale(1.08); }
.nb-wrap .nb-blur-media { display: block; overflow: hidden; max-width: 560px; }
