/* Nota — editorial theme for blogs and online magazines. Colours and fonts are CSS variables set by the Customizer. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0; background: var(--nt-bg); color: var(--nt-ink);
	font: 400 16px/1.6 var(--nt-font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--nt-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--nt-font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--nt-accent); outline-offset: 2px; }
::selection { background: var(--nt-accent); color: var(--nt-accent-ink); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--nt-surface); clip: auto !important; clip-path: none; display: block; height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000; }
.nt-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--nt-ink); color: var(--nt-bg); padding: 10px 16px; }
.nt-skip:focus { left: 8px; }
.nt-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.nt-narrow { max-width: 780px; }
.nt-icon { width: 20px; height: 20px; flex: none; }

.nt-label {
	display: inline-flex; align-items: center; gap: 6px; margin: 0;
	font: 600 .72rem/1.3 var(--nt-font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--nt-muted);
}
.nt-label .nt-icon { width: 15px; height: 15px; }
.nt-cat { color: var(--nt-accent); text-decoration: none; }
.nt-cat:hover { color: var(--nt-ink); }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .82rem; color: var(--nt-muted); }
.nt-meta__sep { opacity: .6; }
.nt-meta__author { color: var(--nt-ink); font-weight: 600; }

.nt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
	border: 1px solid var(--nt-accent); border-radius: var(--nt-radius); background: var(--nt-accent); color: var(--nt-accent-ink);
	font: 600 .95rem/1 var(--nt-font-sans); text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s;
}
.nt-btn:hover { color: var(--nt-accent-ink); filter: brightness(1.08); }
.nt-btn:active { transform: translateY(1px); }
.nt-btn--ghost { background: transparent; color: var(--nt-ink); border-color: var(--nt-ink); }
.nt-btn--ghost:hover { background: var(--nt-ink); color: var(--nt-bg); filter: none; }
.nt-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.nt-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 8px;
	border: 0; border-radius: var(--nt-radius); background: transparent; color: var(--nt-ink); cursor: pointer; text-decoration: none;
}
.nt-iconbtn:hover { background: var(--nt-soft); color: var(--nt-ink); }
.nt-chip {
	display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: 1px solid var(--nt-line); border-radius: 999px;
	font-size: .88rem; text-decoration: none; background: var(--nt-surface); transition: border-color .15s, color .15s;
}
.nt-chip:hover { border-color: var(--nt-accent); color: var(--nt-accent); }
.nt-chip sup { font-size: .68rem; color: var(--nt-muted); top: -.5em; }
.nt-kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border: 1px solid var(--nt-line); border-radius: 4px; font: 500 .7rem/1.4 var(--nt-font-sans); color: var(--nt-muted); }
.nt-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--nt-ink); }
.nt-more .nt-icon { width: 17px; height: 17px; transition: transform .15s; }
.nt-more:hover .nt-icon { transform: translateX(3px); }
.nt-rule { display: flex; width: 100%; padding-top: 12px; border-top: 2px solid var(--nt-ink); color: var(--nt-ink); }

/* ---------- Header ---------- */
.nt-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.nt-progress span { display: block; height: 100%; background: var(--nt-accent); transform-origin: 0 50%; transform: scaleX(0); }
.nt-topline { border-bottom: 1px solid var(--nt-line); font-size: .8rem; color: var(--nt-muted); }
.nt-topline__row { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.nt-topline__date::first-letter { text-transform: uppercase; }
.nt-topline__tag { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--nt-font-serif); font-style: italic; }
.nt-langs { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; font: 600 .75rem/1 var(--nt-font-sans); letter-spacing: .06em; }
.nt-langs a { display: inline-block; padding: 5px 7px; border-radius: var(--nt-radius); text-decoration: none; color: var(--nt-muted); }
.nt-langs a:hover { color: var(--nt-ink); }
.nt-langs .is-current { background: var(--nt-ink); color: var(--nt-bg); }

.nt-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--nt-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--nt-line); }
.admin-bar .nt-header { top: 32px; }
.nt-header__row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nt-header__burger { display: none; margin-left: -8px; }
.nt-logo { flex: none; }
.nt-logo img { max-height: 44px; width: auto; }
.nt-logo__text { font: 700 1.85rem/1 var(--nt-font-head); letter-spacing: -.03em; text-decoration: none; color: var(--nt-ink); }
.nt-logo__text:hover { color: var(--nt-ink); }
.nt-logo__dot { color: var(--nt-accent); }
.nt-nav { flex: 1; display: flex; justify-content: center; }
.nt-menu { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.nt-menu > li { position: relative; }
.nt-menu a { display: block; padding: 8px 12px; font-weight: 500; font-size: .95rem; text-decoration: none; border-radius: var(--nt-radius); }
.nt-menu > li > a { position: relative; }
.nt-menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--nt-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s; }
.nt-menu > li > a:hover::after, .nt-menu > .current-menu-item > a::after, .nt-menu > .current-menu-parent > a::after, .nt-menu > .current-post-ancestor > a::after, .nt-menu > .current-cat > a::after { transform: scaleX(1); }
.nt-menu a:hover { color: var(--nt-ink); }
.nt-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 5; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: var(--nt-surface); border: 1px solid var(--nt-line); border-radius: var(--nt-radius); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nt-menu li:hover > .sub-menu, .nt-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nt-header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nt-nav + .nt-header__tools { margin-left: 0; }
.nt-scheme span { display: inline-flex; }
.nt-scheme .nt-scheme__sun, [data-scheme="dark"] .nt-scheme .nt-scheme__moon { display: none; }
[data-scheme="dark"] .nt-scheme .nt-scheme__sun { display: inline-flex; }

/* Drawer (mobile menu) */
.nt-drawer, .nt-search { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 12, .5); }
.nt-drawer[hidden], .nt-search[hidden] { display: none; }
.nt-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(360px, 88vw); display: flex; flex-direction: column; background: var(--nt-bg); overflow-y: auto; animation: nt-slide .22s ease-out; }
@keyframes nt-slide { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes nt-drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.nt-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--nt-line); }
.nt-drawer__menu { margin: 0; padding: 8px 0; list-style: none; }
.nt-drawer__menu a { display: block; padding: 13px 20px; font: 600 1.25rem/1.25 var(--nt-font-head); text-decoration: none; border-bottom: 1px solid var(--nt-line); }
.nt-drawer__menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.nt-drawer__menu .sub-menu a { padding-left: 36px; font: 500 1rem/1.3 var(--nt-font-sans); }
.nt-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--nt-line); }
.nt-drawer__foot .nt-langs { margin: 0; }

/* Search overlay */
.nt-search { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.nt-search__panel { position: relative; width: min(760px, calc(100vw - 32px)); margin: 10vh auto 0; max-height: 80vh; overflow-y: auto; padding: 8px 8px 20px; background: var(--nt-bg); border-radius: calc(var(--nt-radius) + 6px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); animation: nt-drop .18s ease-out; }
.nt-search__form { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--nt-line); }
.nt-search__form > .nt-icon { color: var(--nt-muted); width: 24px; height: 24px; }
.nt-search__form input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; font: 600 1.5rem/1.2 var(--nt-font-head); outline: none; }
.nt-search__form input::-webkit-search-cancel-button { display: none; }
.nt-search__results { padding: 0 8px; }
.nt-search__results:empty { display: none; }
.nt-search__item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--nt-line); text-decoration: none; border-radius: var(--nt-radius); }
.nt-search__item:hover, .nt-search__item.is-active { background: var(--nt-soft); color: var(--nt-ink); }
.nt-search__item img, .nt-search__item .nt-thumb-ph { width: 56px; height: 56px; object-fit: cover; border-radius: var(--nt-radius); font-size: 1.4rem; }
.nt-search__item b { display: block; font: 600 1.05rem/1.3 var(--nt-font-head); }
.nt-search__item small { color: var(--nt-muted); font-size: .8rem; }
.nt-search__all { display: block; padding: 14px 8px 4px; font-weight: 600; font-size: .92rem; color: var(--nt-accent); text-decoration: none; }
.nt-search__none { padding: 18px 8px; color: var(--nt-muted); margin: 0; }
.nt-search__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 16px 4px; }
.nt-search__tags .nt-label { width: 100%; }

/* ---------- Cards ---------- */
.nt-card { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nt-card__media { display: block; position: relative; overflow: hidden; border-radius: var(--nt-radius); background: var(--nt-soft); aspect-ratio: 3 / 2; }
.nt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.nt-card:hover .nt-card__media img { transform: scale(1.035); }
.nt-thumb-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--nt-soft), var(--nt-line)); color: var(--nt-muted); font: 700 3.4rem/1 var(--nt-font-head); }
.nt-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.nt-card__title { margin: 0; font-size: 1.32rem; line-height: 1.22; }
.nt-card__title a { text-decoration: none; background: linear-gradient(var(--nt-accent), var(--nt-accent)) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.nt-card__title a:hover { color: var(--nt-ink); background-size: 100% 1px; }
.nt-card__excerpt { margin: 0; color: var(--nt-muted); font-size: .96rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card.sticky .nt-card__title::before { content: "★ "; color: var(--nt-accent); }

.nt-card--wide .nt-card__media { aspect-ratio: 16 / 10; }
.nt-card--wide .nt-card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.nt-card--wide .nt-card__excerpt { font-size: 1.04rem; -webkit-line-clamp: 4; }

.nt-card--row { display: grid; grid-template-columns: minmax(150px, 280px) 1fr; gap: 24px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--nt-line); }
.nt-card--row .nt-card__media { aspect-ratio: 4 / 3; }
.nt-card--row .nt-card__title { font-size: 1.4rem; }
.nt-catsec .nt-card--row { grid-template-columns: 150px 1fr; gap: 18px; padding-bottom: 20px; }
.nt-catsec .nt-card--row .nt-card__title { font-size: 1.15rem; }
.nt-catsec .nt-card--row .nt-card__excerpt { -webkit-line-clamp: 2; font-size: .9rem; }

.nt-card--number, .nt-card--mini { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--nt-line); }
.nt-card--mini { grid-template-columns: 1fr; }
.nt-card--number:last-child { border-bottom: 0; }
.nt-card__num { font: 700 2.1rem/1 var(--nt-font-head); color: var(--nt-accent); min-width: 2.2ch; font-variant-numeric: lining-nums tabular-nums; }
.nt-card--number .nt-card__title, .nt-card--mini .nt-card__title { font-size: 1.12rem; line-height: 1.3; }

/* ---------- Home ---------- */
.nt-hero { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 48px; }
.nt-hero--solo { grid-template-columns: 1fr; }
.nt-hero__main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.nt-hero__media { display: block; overflow: hidden; border-radius: var(--nt-radius); aspect-ratio: 16 / 10; background: var(--nt-soft); }
.nt-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.nt-hero__main:hover .nt-hero__media img { transform: scale(1.025); }
.nt-hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nt-hero__title { margin: 0; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; }
.nt-hero__title a { text-decoration: none; }
.nt-hero__title a:hover { color: var(--nt-ink); text-decoration: underline; text-decoration-color: var(--nt-accent); text-decoration-thickness: 2px; }
.nt-hero__excerpt { margin: 0; max-width: 62ch; font: 400 1.18rem/1.55 var(--nt-font-serif); color: var(--nt-muted); }
.nt-hero__picks { display: flex; flex-direction: column; }
.nt-byline { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.nt-byline__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nt-byline__name { display: block; font-weight: 600; text-decoration: none; font-size: .95rem; }
.nt-byline__comments { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; border: 1px solid var(--nt-line); border-radius: 999px; font-size: .85rem; text-decoration: none; }
.nt-byline__comments .nt-icon { width: 16px; height: 16px; }

.nt-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--nt-line); border-bottom: 1px solid var(--nt-line); }
.nt-wrap.nt-topics { border: 0; position: relative; }
.nt-wrap.nt-topics::before, .nt-wrap.nt-topics::after { content: ""; position: absolute; left: 24px; right: 24px; height: 1px; background: var(--nt-line); }
.nt-wrap.nt-topics::before { top: 0; }
.nt-wrap.nt-topics::after { bottom: 0; }
.nt-topics > .nt-label { margin-right: 8px; color: var(--nt-ink); }

.nt-section { padding-top: 56px; padding-bottom: 8px; }
.nt-section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 32px; padding-top: 14px; border-top: 2px solid var(--nt-ink); }
.nt-section__title { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.02em; }
.nt-section__desc { flex: 1 1 320px; margin: 0; color: var(--nt-muted); font-size: .95rem; }
.nt-section__head .nt-more { margin-left: auto; }
.nt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.nt-list { display: flex; flex-direction: column; gap: 28px; }
.nt-catsec__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
.nt-catsec__list { display: flex; flex-direction: column; gap: 20px; }
.nt-catsec__list .nt-card:last-child { border-bottom: 0; }
.nt-loadmore { display: flex; justify-content: center; padding: 48px 0 8px; }
.nt-loadmore .nt-btn { min-width: 220px; }
.nt-pages { display: flex; justify-content: center; padding: 48px 0 8px; }
.nt-pages .page-numbers, .nt-pages > a, .nt-pages > span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; margin: 0 2px; padding: 0 10px; border: 1px solid var(--nt-line); border-radius: var(--nt-radius); text-decoration: none; font-weight: 600; }
.nt-pages .current { background: var(--nt-ink); border-color: var(--nt-ink); color: var(--nt-bg); }
.nt-pages .dots { border: 0; }
.nt-empty { padding: 32px 0; color: var(--nt-muted); font-size: 1.1rem; }

/* ---------- Newsletter ---------- */
.nt-nl--band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; margin: 72px 0 16px; padding: 56px; background: var(--nt-ink); color: var(--nt-bg); border-radius: calc(var(--nt-radius) + 4px); position: relative; overflow: hidden; }
.nt-nl--band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--nt-bg) 18%, transparent); box-shadow: 0 0 0 40px color-mix(in srgb, var(--nt-bg) 4%, transparent); pointer-events: none; }
.nt-nl__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; background: var(--nt-accent); color: var(--nt-accent-ink); }
.nt-nl__title { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.nt-nl--band p { margin: 0; color: color-mix(in srgb, var(--nt-bg) 74%, var(--nt-ink)); max-width: 46ch; }
.nt-nl__form { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.nt-nl__form input { flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 0 18px; border: 1px solid color-mix(in srgb, var(--nt-bg) 30%, transparent); border-radius: var(--nt-radius); background: transparent; color: inherit; outline: none; }
.nt-nl__form input::placeholder { color: inherit; opacity: .6; }
.nt-nl__form input:focus { border-color: var(--nt-accent); }
.nt-nl__form .nt-btn { min-height: 50px; }
.nt-nl__msg { flex-basis: 100%; margin: 4px 0 0; font-size: .92rem; }
.nt-nl--mini .nt-nl__text p { font-size: .9rem; color: var(--nt-muted); margin: 10px 0 14px; }
.nt-nl--mini .nt-nl__form input { min-height: 44px; border-color: var(--nt-line); background: var(--nt-surface); }
.nt-nl--mini .nt-nl__form .nt-btn { min-height: 44px; width: 100%; }

/* ---------- Single post ---------- */
.nt-post__head { max-width: 900px; padding-top: 56px; padding-bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nt-post__title { margin: 0; font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.03em; }
.nt-post__dek { margin: 0; max-width: 62ch; font: italic 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.5 var(--nt-font-serif); color: var(--nt-muted); }
.nt-post__head .nt-byline { width: 100%; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--nt-line); }
.nt-post__head .nt-byline__photo { width: 44px; height: 44px; }
.nt-page .nt-post__head { padding-bottom: 28px; }
.nt-post__cover { margin-top: 0; margin-bottom: 48px; }
.nt-post__cover img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--nt-radius); }
.nt-post__cover figcaption { margin-top: 10px; font-size: .84rem; color: var(--nt-muted); }

.nt-post__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); column-gap: 48px; }
.nt-post__content { grid-column: 2; min-width: 0; }
.nt-post__aside { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; max-width: 250px; justify-self: start; }
.admin-bar .nt-post__aside { top: 136px; }
.nt-post__aside .nt-share { flex-direction: row; flex-wrap: wrap; }
.nt-post__aside .nt-share .nt-label { width: 100%; }
.nt-toc details > summary { display: flex; cursor: pointer; list-style: none; padding-bottom: 10px; border-bottom: 2px solid var(--nt-ink); color: var(--nt-ink); }
.nt-toc details > summary::-webkit-details-marker { display: none; }
.nt-toc ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.nt-toc li { counter-increment: toc; }
.nt-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; font-size: .9rem; line-height: 1.35; color: var(--nt-muted); text-decoration: none; border-bottom: 1px solid var(--nt-line); }
.nt-toc a::before { content: counter(toc, decimal-leading-zero); font-size: .72rem; font-weight: 600; padding-top: 2px; }
.nt-toc .nt-toc__l3 a { padding-left: 26px; font-size: .84rem; }
.nt-toc .nt-toc__l3 { counter-increment: none; }
.nt-toc .nt-toc__l3 a::before { content: "–"; }
.nt-toc a:hover, .nt-toc a.is-active { color: var(--nt-ink); }
.nt-toc a.is-active::before { color: var(--nt-accent); }
.nt-share { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nt-share .nt-label { margin-right: 8px; }
.nt-share .nt-iconbtn { border: 1px solid var(--nt-line); border-radius: 50%; width: 40px; padding: 0; }
.nt-share .nt-iconbtn:hover { border-color: var(--nt-accent); color: var(--nt-accent); background: transparent; }
.nt-share .nt-icon { width: 17px; height: 17px; }

.nt-post__foot { max-width: 796px; display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
.nt-post__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-post__foot > .nt-share { padding: 18px 0; border-top: 1px solid var(--nt-line); border-bottom: 1px solid var(--nt-line); }
.nt-author { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 28px; background: var(--nt-surface); border: 1px solid var(--nt-line); border-radius: calc(var(--nt-radius) + 4px); }
.nt-author__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.nt-author__name { margin: 4px 0 8px; font-size: 1.45rem; }
.nt-author__name a { text-decoration: none; }
.nt-author__bio { color: var(--nt-muted); margin: 0 0 12px; font-size: .97rem; }
.nt-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nt-postnav a { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--nt-line); border-radius: var(--nt-radius); text-decoration: none; transition: border-color .15s; }
.nt-postnav a:hover { border-color: var(--nt-ink); color: var(--nt-ink); }
.nt-postnav b { font: 600 1.08rem/1.3 var(--nt-font-head); }
.nt-postnav__next { grid-column: 2; text-align: right; align-items: flex-end; }
.nt-postnav .nt-icon { width: 15px; height: 15px; }

/* ---------- Prose (post content) ---------- */
.nt-prose { font: 400 1.18rem/1.72 var(--nt-font-read); }
.nt-prose > * { margin-top: 0; margin-bottom: 1.35em; }
.nt-prose > :last-child { margin-bottom: 0; }
.nt-prose h2 { margin: 2.1em 0 .65em; font-size: 1.85rem; line-height: 1.2; }
.nt-prose h3 { margin: 1.8em 0 .55em; font-size: 1.4rem; line-height: 1.25; }
.nt-prose h4 { margin: 1.6em 0 .5em; font-size: 1.15rem; font-family: var(--nt-font-sans); }
.nt-prose h2:first-child, .nt-prose h3:first-child { margin-top: 0; }
.nt-prose a { color: var(--nt-ink); text-decoration-color: var(--nt-accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.nt-prose a:hover { color: var(--nt-accent); }
.nt-prose strong { font-weight: 700; }
.nt-prose ul, .nt-prose ol { padding-left: 1.3em; }
.nt-prose li { margin-bottom: .45em; }
.nt-prose li::marker { color: var(--nt-accent); }
.nt-prose ol li::marker { font-family: var(--nt-font-sans); font-weight: 600; font-size: .9em; }
.nt-prose blockquote, .nt-prose .wp-block-quote { margin-left: 0; margin-right: 0; padding: .1em 0 .1em 1.2em; border-left: 3px solid var(--nt-accent); font: italic 400 1.32rem/1.5 var(--nt-font-head); }
.nt-prose blockquote p { margin-bottom: .6em; }
.nt-prose blockquote cite, .nt-prose .wp-block-pullquote cite { display: block; font: 600 .78rem/1.4 var(--nt-font-sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--nt-muted); }
.nt-prose .wp-block-quote.is-style-nt-big, .nt-prose .wp-block-pullquote { margin: 2em 0; padding: 1.2em 0; border: 0; border-top: 2px solid var(--nt-ink); border-bottom: 1px solid var(--nt-line); text-align: left; font: 600 clamp(1.5rem, 2.8vw, 2.1rem)/1.28 var(--nt-font-head); font-style: normal; letter-spacing: -.015em; }
.nt-prose .wp-block-quote.is-style-nt-big::before, .nt-prose .wp-block-pullquote blockquote::before { content: "“"; display: block; height: .55em; font-size: 2.8em; line-height: 1; color: var(--nt-accent); }
.nt-prose .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; font: inherit; }
.nt-prose .wp-block-pullquote p { font-size: inherit; line-height: inherit; }
.nt-prose figure { margin-left: 0; margin-right: 0; }
.nt-prose figure img { border-radius: var(--nt-radius); }
.nt-prose figcaption, .nt-prose .wp-element-caption { margin-top: 10px; font: 400 .85rem/1.5 var(--nt-font-sans); color: var(--nt-muted); text-align: left; }
.nt-prose .is-style-nt-frame img { padding: 10px; background: var(--nt-surface); border: 1px solid var(--nt-line); }
.nt-prose .alignwide { width: min(1080px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
@media (min-width: 1200px) {
	/* With the table of contents in the left margin, wide blocks grow to the right only. */
	.has-toc .nt-prose .alignwide { width: calc(100% + 48px + (min(100vw, 1240px) - 844px) / 2); margin-left: 0; transform: none; }
}
.nt-prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.nt-prose .alignfull img { border-radius: 0; width: 100%; }
.nt-prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.nt-prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.nt-prose .aligncenter { margin-left: auto; margin-right: auto; }
.nt-prose hr, .nt-prose .wp-block-separator { height: 0; margin: 2.6em auto; border: 0; border-top: 1px solid var(--nt-line); }
.nt-prose .wp-block-separator.is-style-nt-stars, .nt-prose .wp-block-separator.is-style-dots { border: 0; text-align: center; height: auto; }
.nt-prose .wp-block-separator.is-style-nt-stars::before { content: "* * *"; letter-spacing: 1em; color: var(--nt-accent); font: 700 1.2rem/1 var(--nt-font-head); padding-left: 1em; }
.nt-prose .is-style-nt-lead { font-size: 1.36rem; line-height: 1.55; color: var(--nt-ink); }
.nt-prose .is-style-nt-note { padding: 18px 22px; background: var(--nt-surface); border: 1px solid var(--nt-line); border-left: 3px solid var(--nt-accent); border-radius: var(--nt-radius); font: 400 1rem/1.6 var(--nt-font-sans); }
.nt-prose .is-style-nt-checks { list-style: none; padding-left: 0; }
.nt-prose .is-style-nt-checks li { position: relative; padding-left: 1.8em; }
.nt-prose .is-style-nt-checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--nt-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 70% no-repeat; }
.nt-prose code, .nt-prose kbd { padding: .12em .35em; border-radius: 4px; background: var(--nt-soft); font: .86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nt-prose pre { overflow-x: auto; padding: 18px 20px; border-radius: var(--nt-radius); background: var(--nt-ink); color: var(--nt-bg); font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nt-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.nt-prose table { width: 100%; border-collapse: collapse; font: .95rem/1.5 var(--nt-font-sans); }
.nt-prose th, .nt-prose td { padding: 10px 12px; border-bottom: 1px solid var(--nt-line); text-align: left; }
.nt-prose th { font-weight: 600; border-bottom: 2px solid var(--nt-ink); }
.nt-prose .wp-block-table { overflow-x: auto; }
.nt-prose .wp-block-image, .nt-prose .wp-block-gallery { margin-top: 2em; margin-bottom: 2em; }
.nt-prose .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--nt-radius); }
.nt-prose .wp-block-embed iframe { width: 100%; }
.nt-prose .wp-block-button__link { border-radius: var(--nt-radius); background: var(--nt-accent); color: var(--nt-accent-ink); font: 600 1rem/1 var(--nt-font-sans); padding: 14px 22px; text-decoration: none; }
.nt-prose .wp-block-footnotes { font: .9rem/1.6 var(--nt-font-sans); color: var(--nt-muted); padding-top: 1em; border-top: 1px solid var(--nt-line); }
.nt-has-dropcap .nt-post__content > p:first-of-type::first-letter { float: left; margin: .06em .12em 0 -.02em; font: 700 4.4em/.8 var(--nt-font-head); color: var(--nt-accent); }
.nt-prose .has-drop-cap:not(:focus)::first-letter { font-family: var(--nt-font-head); color: var(--nt-accent); }

/* ---------- Comments ---------- */
.nt-comments { padding-top: 56px; }
.nt-comments__list, .nt-comments__list .children { margin: 24px 0 0; padding: 0; list-style: none; }
.nt-comments__list .children { margin-left: 40px; }
.nt-comment__body { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--nt-line); }
.nt-comment__avatar { width: 44px; height: 44px; border-radius: 50%; }
.nt-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.nt-comment__author a { text-decoration: none; }
.nt-comment__date { font-size: .8rem; color: var(--nt-muted); text-decoration: none; }
.nt-comment__text { margin-top: 6px; }
.nt-comment__text p { margin-bottom: .6em; }
.nt-comment__reply a { font-size: .82rem; font-weight: 600; color: var(--nt-accent); text-decoration: none; }
.nt-comment.bypostauthor > .nt-comment__body .nt-comment__author::after { content: "✎"; margin-left: 6px; color: var(--nt-accent); }
.comment-respond { margin-top: 40px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .nt-searchform input {
	width: 100%; padding: 12px 14px; border: 1px solid var(--nt-line); border-radius: var(--nt-radius); background: var(--nt-surface); outline: none;
}
.comment-form input:focus, .comment-form textarea:focus, .nt-searchform input:focus { border-color: var(--nt-accent); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { font-size: .88rem; color: var(--nt-muted); }
#cancel-comment-reply-link { margin-left: 10px; font: 500 .85rem var(--nt-font-sans); color: var(--nt-accent); }

/* ---------- Archives ---------- */
.nt-archive-head { padding-top: 56px; padding-bottom: 36px; display: flex; gap: 28px; align-items: center; }
.nt-archive-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.nt-archive-head__title { margin: 0; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.035em; }
.nt-archive-head__desc { max-width: 62ch; color: var(--nt-muted); font: 400 1.12rem/1.55 var(--nt-font-serif); }
.nt-archive-head__desc p { margin: 0; }
.nt-archive-head__count { margin: 0; font-size: .85rem; color: var(--nt-muted); }
.nt-archive-head__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; }
.nt-archive-head .nt-searchform { margin-top: 8px; width: min(560px, 100%); }
.nt-archive > .nt-section { padding-top: 0; }
.nt-archive { border-top: 2px solid var(--nt-ink); padding-top: 40px; }
.nt-wrap.nt-archive { border: 0; position: relative; }
.nt-wrap.nt-archive::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; background: var(--nt-ink); }
.nt-archive--side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.nt-sidebar { display: flex; flex-direction: column; gap: 32px; }
.nt-widget ul { margin: 12px 0 0; padding: 0; list-style: none; }
.nt-widget li { padding: 8px 0; border-bottom: 1px solid var(--nt-line); }
.nt-widget li a { text-decoration: none; }
.nt-widget__title { margin-bottom: 4px; }
.nt-searchform { display: flex; gap: 8px; }
.nt-searchform input { flex: 1; min-width: 0; min-height: 46px; }
.nt-404 { padding-top: 72px; padding-bottom: 24px; max-width: 760px; }
.nt-404 > p { color: var(--nt-muted); font-size: 1.1rem; margin: 18px 0 24px; }
.nt-404__code { margin: 0 !important; font: 700 clamp(6rem, 20vw, 12rem)/.85 var(--nt-font-head) !important; color: var(--nt-accent) !important; letter-spacing: -.06em; }

/* ---------- Footer ---------- */
.nt-footer { margin-top: 88px; padding: 56px 0 28px; border-top: 2px solid var(--nt-ink); font-size: .94rem; }
.nt-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.nt-footer__brand p { margin: 14px 0 18px; color: var(--nt-muted); max-width: 36ch; }
.nt-footer__col .nt-label { color: var(--nt-ink); }
.nt-footer__list { margin: 14px 0 0; padding: 0; list-style: none; }
.nt-footer__list li { margin-bottom: 9px; }
.nt-footer__list a { text-decoration: none; color: var(--nt-muted); }
.nt-footer__list a:hover { color: var(--nt-ink); }
.nt-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--nt-line); color: var(--nt-muted); font-size: .85rem; }
.nt-footer__bottom .nt-langs { margin: 0 0 0 auto; }
.nt-totop { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.nt-totop .nt-icon { width: 15px; height: 15px; }
.nt-social { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nt-social .nt-iconbtn { border: 1px solid var(--nt-line); border-radius: 50%; width: 40px; padding: 0; }
.nt-social .nt-icon { width: 17px; height: 17px; }

/* ---------- WordPress core ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--nt-muted); }
.sticky, .bypostauthor { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.nt-post__layout { grid-template-columns: minmax(0, 1fr); max-width: 796px; }
	.nt-post__content, .nt-post__aside { grid-column: 1; }
	.nt-post__aside { position: static; grid-row: auto; max-width: none; margin-bottom: 32px; justify-self: stretch; }
	.nt-post__aside .nt-share { display: none; }
	.nt-post__layout:not(.has-toc) .nt-post__aside { display: none; }
	.nt-toc { padding: 16px 20px; background: var(--nt-surface); border: 1px solid var(--nt-line); border-radius: var(--nt-radius); }
	.nt-toc details > summary { border-bottom: 0; padding-bottom: 0; }
	.nt-toc details[open] > summary { padding-bottom: 10px; border-bottom: 1px solid var(--nt-line); }
	.nt-toc li:last-child a { border-bottom: 0; }
}
@media (max-width: 1023px) {
	.nt-nav, .nt-topline__tag { display: none; }
	.nt-header__burger { display: inline-flex; }
	.nt-header__row { gap: 8px; min-height: 64px; }
	.nt-logo { flex: 1; text-align: center; }
	.nt-header__tools { margin-left: 0; }
	.nt-kbd { display: none; }
	.nt-hero { grid-template-columns: 1fr; gap: 32px; }
	.nt-hero__picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
	.nt-hero__picks .nt-rule { grid-column: 1 / -1; }
	.nt-hero__picks .nt-card--number:last-child { border-bottom: 1px solid var(--nt-line); }
	.nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
	.nt-catsec__grid { grid-template-columns: 1fr; gap: 28px; }
	.nt-nl--band { grid-template-columns: 1fr; padding: 40px; }
	.nt-footer__grid { grid-template-columns: 1fr 1fr; }
	.nt-archive--side { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .nt-header { top: 46px; }
}
@media (max-width: 640px) {
	.nt-wrap { padding: 0 16px; }
	.nt-wrap.nt-topics::before, .nt-wrap.nt-topics::after, .nt-wrap.nt-archive::before { left: 16px; right: 16px; }
	.nt-topline__date { display: none; }
	.nt-topline__row { min-height: 32px; }
	.nt-logo__text { font-size: 1.6rem; }
	.nt-hero { padding-top: 20px; padding-bottom: 32px; }
	.nt-hero__media { margin: 0 -16px; border-radius: 0; aspect-ratio: 4 / 3; }
	.nt-hero__picks { grid-template-columns: 1fr; }
	.nt-hero__excerpt { font-size: 1.05rem; }
	.nt-topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.nt-topics::-webkit-scrollbar { display: none; }
	.nt-topics .nt-chip { flex: none; }
	.nt-section { padding-top: 40px; }
	.nt-section__head { margin-bottom: 24px; }
	.nt-grid { grid-template-columns: 1fr; gap: 36px; }
	.nt-card--row, .nt-catsec .nt-card--row { grid-template-columns: 112px 1fr; gap: 14px; padding-bottom: 20px; }
	.nt-card--row .nt-card__media { aspect-ratio: 1; }
	.nt-card--row .nt-card__title, .nt-catsec .nt-card--row .nt-card__title { font-size: 1.08rem; }
	.nt-card--row .nt-card__excerpt { display: none; }
	.nt-card--row .nt-meta__author { display: none; }
	.nt-card--row .nt-meta__author + .nt-meta__sep { display: none; }
	.nt-nl--band { margin-top: 48px; padding: 32px 22px; }
	.nt-post__head { padding-top: 32px; padding-bottom: 24px; }
	.nt-post__cover { padding: 0; margin-bottom: 32px; }
	.nt-post__cover img { border-radius: 0; max-height: none; }
	.nt-post__cover figcaption { padding: 0 16px; }
	.nt-prose { font-size: 1.1rem; line-height: 1.68; }
	.nt-prose h2 { font-size: 1.5rem; }
	.nt-prose h3 { font-size: 1.22rem; }
	.nt-prose .alignwide { width: calc(100vw - 32px); }
	.nt-prose .alignleft, .nt-prose .alignright { float: none; max-width: 100%; margin: 1em 0; }
	.nt-author { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
	.nt-author__photo { width: 72px; height: 72px; }
	.nt-postnav { grid-template-columns: 1fr; }
	.nt-postnav__next { grid-column: 1; }
	.nt-archive-head { padding-top: 36px; padding-bottom: 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
	.nt-archive-head__photo { width: 80px; height: 80px; }
	.nt-footer { margin-top: 64px; }
	.nt-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.nt-footer__bottom .nt-langs { margin: 0; }
	.nt-comments__list .children { margin-left: 20px; }
	.nt-search__panel { margin-top: 12px; max-height: calc(100vh - 24px); }
	.nt-search__form input { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.nt-topline, .nt-header, .nt-progress, .nt-post__aside, .nt-share, .nt-nl, .nt-related, .nt-comments, .nt-footer, .nt-postnav { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Toast */
.nt-toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--nt-ink); color: var(--nt-bg); font-size: .9rem; font-weight: 500; animation: nt-drop .2s ease-out; }
