/*
 * NIGHT STUDIO front page. Loaded on the front page only, and every rule is scoped to
 * body.tbns-home so SWELL and plugin styles elsewhere are left alone.
 */

body.tbns-home {
	--tbns-bg: #11100e;
	--tbns-ink: #efe9df;
	--tbns-ink2: #d3cbbf;
	--tbns-mute: #bbb2a5;
	--tbns-line: #2d2924;
	--tbns-line2: #46403a;
	--tbns-amber: #dca560;
	--tbns-amber-hi: #f0c486;
	--tbns-hh: 70px;
	--tbns-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
	--tbns-latin: "Helvetica Neue", "Hiragino Sans", Arial, sans-serif;
	--tbns-min: "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", "Noto Serif JP", serif;
	margin: 0;
	background: var(--tbns-bg);
	color: var(--tbns-ink);
	font-family: var(--tbns-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	-webkit-text-size-adjust: 100%;
}

.tbns-home *,
.tbns-home *::before,
.tbns-home *::after { box-sizing: border-box; }
.tbns-home [hidden] { display: none !important; }
.tbns-home a { color: inherit; }
.tbns-home img { display: block; max-width: 100%; height: auto; }
.tbns-home :focus-visible { outline: 2px solid var(--tbns-amber-hi); outline-offset: 3px; }
.tbns-home .skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 12px 16px; background: var(--tbns-ink); color: var(--tbns-bg); text-decoration: none; }
.tbns-home .skip:focus { left: 12px; }
.tbns-home #explore,
.tbns-home #about { scroll-margin-top: 12px; }

/* quiet upper metadata */
.tbns-home .meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--tbns-hh); padding: 0 28px; border-bottom: 1px solid var(--tbns-line); font-size: 13px; line-height: 1.5; }
.tbns-home .meta p { margin: 0; }
.tbns-home .meta .m1 a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.tbns-home #site-nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.tbns-home #site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.tbns-home .meta .m1 a:hover,
.tbns-home #site-nav a:hover { color: var(--tbns-amber-hi); }

/* studio: entrance panel + reading surface (about 5:8) */
.tbns-home .studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.tbns-home .entry { border-right: 1px solid var(--tbns-line); }
.tbns-home .entry-inner { display: flex; flex-direction: column; gap: 36px; padding: 48px 36px 32px 28px; }
.tbns-home .wordmark { margin: 0; color: var(--tbns-ink); font-family: var(--tbns-latin); font-size: clamp(44px, 5.6vw, 88px); font-weight: 300; line-height: .95; letter-spacing: -.045em; }
.tbns-home .lede { margin: 20px 0 0; max-width: 23em; font-family: var(--tbns-min); font-size: 17px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.tbns-home .actions { display: flex; margin-top: 28px; }
.tbns-home .read { display: inline-flex; align-items: center; gap: .8em; min-height: 48px; padding: 0 24px; border-radius: 99px; background: var(--tbns-ink); color: var(--tbns-bg); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-decoration: none; transition: background-color .2s; }
.tbns-home .read:hover { background: var(--tbns-amber-hi); }
.tbns-home .read:focus-visible { outline-offset: 4px; }
.tbns-home .arr-d { display: none; }

/* entrance line as approved in C: dotted reference, one string with a same-path glow, two nuts */
.tbns-home .stage { --gx: 50%; position: relative; height: 128px; margin: 0 -36px 0 -28px; touch-action: pan-y; }
.tbns-home .stage::before { content: ""; position: absolute; inset: -30% 0; pointer-events: none; opacity: .5; transition: opacity .5s; background: radial-gradient(34% 48% at var(--gx) 52%, rgba(220, 165, 96, .16), rgba(220, 165, 96, 0) 72%); }
.tbns-home .stage.is-lit::before { opacity: 1; }
.tbns-home .stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tbns-home .stage .guide { stroke: var(--tbns-line2); stroke-width: 1; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.tbns-home .stage .string { fill: none; stroke: var(--tbns-amber); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.tbns-home .stage .string-glow { fill: none; stroke: var(--tbns-amber); stroke-width: 8; opacity: .22; vector-effect: non-scaling-stroke; }
.tbns-home .nut { position: absolute; top: 50%; width: 1px; height: 22px; margin-top: -11px; background: var(--tbns-mute); }
.tbns-home .nut--l { left: 28px; }
.tbns-home .nut--r { right: 36px; }
.tbns-home .to-about { display: inline-flex; align-items: center; min-height: 44px; color: var(--tbns-ink2); font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }

@media (min-width: 861px) and (min-height: 760px) {
	.tbns-home .entry-inner { position: sticky; top: 0; min-height: calc(100vh - var(--tbns-hh)); justify-content: space-between; }
}

/* reading surface */
.tbns-home .reading { padding: 28px 40px 0; }
.tbns-home .reading-head { padding-bottom: 20px; border-bottom: 1px solid var(--tbns-line); }
.tbns-home .reading-head h2 { margin: 0; color: var(--tbns-ink); font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.tbns-home .filterbox { margin-top: 14px; }
.tbns-home .filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tbns-home .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--tbns-line2); border-radius: 99px; color: var(--tbns-ink2); font-size: 14px; text-decoration: none; }
.tbns-home .chip:hover { border-color: var(--tbns-amber); color: var(--tbns-ink); }
.tbns-home .chip[aria-current] { border-color: var(--tbns-amber); color: var(--tbns-amber-hi); }
.tbns-home .chip[aria-current]::before { content: ""; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: currentColor; }
.tbns-home .status { margin: 10px 0 0; color: var(--tbns-mute); font-size: 13px; }

/* article rows: meta | title + excerpt | cover */
.tbns-home .r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 208px; grid-template-areas: "meta title fig" "meta ex fig"; grid-template-rows: auto 1fr; column-gap: 32px; align-items: start; padding: 36px 0 40px; border-bottom: 1px solid var(--tbns-line); }
.tbns-home .r.r--text { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "meta title" "meta ex"; }
.tbns-home .r.r--feature { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "meta title" "meta ex" "meta fig"; grid-template-rows: auto auto 1fr; }
.tbns-home .r-meta { grid-area: meta; display: flex; flex-direction: column; gap: 2px; margin: 0; padding-top: 6px; color: var(--tbns-mute); font-size: 13px; line-height: 1.6; }
.tbns-home .r-no { margin-bottom: 6px; color: var(--tbns-ink2); font-variant-numeric: tabular-nums; }
.tbns-home .r-cat { color: var(--tbns-amber); }
.tbns-home .r-meta time { font-variant-numeric: tabular-nums; }
.tbns-home .r-title { grid-area: title; margin: 0; font-family: var(--tbns-min); font-size: 21px; font-weight: 600; line-height: 1.55; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: pretty; }
.tbns-home .r-title a { display: block; min-height: 44px; padding: 4px 0; color: var(--tbns-ink); text-decoration: none; }
.tbns-home .r-title a:hover { color: var(--tbns-amber-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.tbns-home .r-ex { grid-area: ex; margin: 12px 0 0; max-width: 38em; color: var(--tbns-ink2); font-size: 15px; line-height: 2; line-break: strict; overflow-wrap: anywhere; text-wrap: pretty; }
.tbns-home .r-fig { grid-area: fig; align-self: start; margin: 7px 0 0; }
.tbns-home .r-fig img { width: 100%; height: auto; border-radius: 2px; }
.tbns-home .r.r--feature .r-title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.4; }
.tbns-home .r.r--feature .r-ex { font-size: 16px; }
.tbns-home .r.r--feature .r-fig { margin-top: 28px; }

.tbns-home .tbns-empty { margin: 0; padding: 48px 0; color: var(--tbns-ink2); font-family: var(--tbns-min); font-size: 17px; }
.tbns-home .tbns-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--tbns-line); font-size: 14px; }
.tbns-home .tbns-pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--tbns-ink); text-decoration: underline; text-underline-offset: 5px; }
.tbns-home .tbns-pager a:hover { color: var(--tbns-amber-hi); }
.tbns-home .tbns-pager__now { color: var(--tbns-mute); font-variant-numeric: tabular-nums; }

.tbns-home .about { padding: 56px 0 40px; }
.tbns-home .about h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.tbns-home .about p { max-width: 34em; margin: 0; color: var(--tbns-ink2); font-family: var(--tbns-min); font-size: 16px; line-height: 2; }

.tbns-home .tbns-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 28px 28px; border-top: 1px solid var(--tbns-line); color: var(--tbns-mute); font-size: 12.5px; }
.tbns-home .tbns-foot p { margin: 0; }
.tbns-home .tbns-foot-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.tbns-home .tbns-foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }

@media (max-width: 1100px) {
	.tbns-home .reading { padding: 24px 28px 0; }
	.tbns-home .r { grid-template-columns: 84px minmax(0, 1fr) 168px; column-gap: 24px; }
	.tbns-home .r.r--text,
	.tbns-home .r.r--feature { grid-template-columns: 84px minmax(0, 1fr); }
}

/* one column: compact entrance, then the reading list */
@media (max-width: 860px) {
	.tbns-home .meta { min-height: 0; padding: 4px 18px; gap: 12px; }
	.tbns-home .meta .m1 { display: none; }
	.tbns-home .studio { display: block; }
	.tbns-home .entry { border-right: 0; border-bottom: 1px solid var(--tbns-line); }
	.tbns-home .entry-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "word word" "lede lede" "stage stage" "cta cta"; gap: 0 12px; padding: 14px 18px 14px; }
	.tbns-home .e-top,
	.tbns-home .e-mid,
	.tbns-home .e-foot { display: contents; }
	.tbns-home .wordmark { grid-area: word; font-size: 44px; }
	.tbns-home .lede { grid-area: lede; max-width: none; margin-top: 8px; font-size: 14px; line-height: 1.75; }
	.tbns-home .stage { grid-area: stage; height: 44px; margin: 8px -18px 0; }
	.tbns-home .nut--l { left: 18px; }
	.tbns-home .nut--r { right: 18px; }
	.tbns-home .actions { grid-area: cta; align-self: center; margin-top: 8px; }
	.tbns-home .read { min-height: 44px; padding: 0 20px; font-size: 14px; }
	.tbns-home .arr-d { display: inline; }
	.tbns-home .arr-r { display: none; }
	.tbns-home .to-about { display: none; }

	.tbns-home .reading { padding: 14px 18px 0; }
	.tbns-home .reading-head { padding-bottom: 14px; }
	.tbns-home .filterbox { margin-top: 10px; }
	.tbns-home .filters { gap: 6px; }
	.tbns-home .chip { padding: 0 13px; }
	.tbns-home .status { margin-top: 6px; }

	.tbns-home .r { grid-template-columns: minmax(0, 1fr) 34%; grid-template-areas: "meta meta" "title fig" "ex ex"; grid-template-rows: auto; column-gap: 14px; padding: 22px 0 24px; }
	.tbns-home .r.r--text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "title" "ex"; }
	.tbns-home .r.r--feature { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "title" "ex" "fig"; grid-template-rows: auto; }
	.tbns-home .r-meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 8px; padding: 0; }
	.tbns-home .r-no { margin: 0; }
	.tbns-home .r-title { font-size: 17px; line-height: 1.6; }
	.tbns-home .r-ex { max-width: none; margin-top: 10px; font-size: 14px; line-height: 1.9; }
	.tbns-home .r-fig { margin-top: 4px; }
	.tbns-home .r.r--feature .r-title { font-size: 20px; line-height: 1.45; }
	.tbns-home .r.r--feature .r-ex { font-size: 14.5px; }
	.tbns-home .r.r--feature .r-fig { margin-top: 16px; }

	.tbns-home .about { padding: 44px 0 32px; }
	.tbns-home .tbns-foot { padding: 16px 18px 24px; }
}

@media (max-width: 360px) {
	.tbns-home .r:not(.r--text):not(.r--feature) { grid-template-columns: minmax(0, 1fr) 32%; }
	.tbns-home .r-title { font-size: 16.5px; }
}

/* Jarvis entrance at the top of the reading surface (first, unfiltered list page only) */
.tbns-home .jv { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; margin: 0 0 28px; padding: 24px 28px; border: 1px solid var(--tbns-line2); border-radius: 4px; }
.tbns-home .jv-kick { margin: 0 0 6px; color: var(--tbns-amber); font-family: var(--tbns-latin); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .24em; }
.tbns-home .jv h2 { margin: 0; color: var(--tbns-ink); font-family: var(--tbns-min); font-size: 22px; font-weight: 600; line-height: 1.5; }
.tbns-home .jv-text { margin: 8px 0 0; max-width: 34em; color: var(--tbns-ink2); font-size: 14.5px; line-height: 1.9; line-break: strict; overflow-wrap: anywhere; }
.tbns-home .jv-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; }
.tbns-home .jv-go { display: inline-flex; align-items: center; gap: .7em; min-height: 48px; padding: 0 24px; border-radius: 99px; background: var(--tbns-amber); color: var(--tbns-bg); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-decoration: none; transition: background-color .2s; }
.tbns-home .jv-go:hover { background: var(--tbns-amber-hi); }
.tbns-home .jv-go:focus-visible { outline-offset: 4px; }
.tbns-home .jv-sub { display: inline-flex; align-items: center; min-height: 44px; color: var(--tbns-ink2); font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.tbns-home .jv-sub:hover { color: var(--tbns-amber-hi); }

@media (max-width: 1100px) {
	.tbns-home .jv { grid-template-columns: minmax(0, 1fr); }
	.tbns-home .jv-links { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 14px; }
}

@media (max-width: 860px) {
	.tbns-home .jv { margin-bottom: 18px; padding: 16px 18px 12px; }
	.tbns-home .jv h2 { font-size: 19px; }
	.tbns-home .jv-text { margin-top: 6px; font-size: 14px; line-height: 1.8; }
	.tbns-home .jv-links { margin-top: 10px; }
	.tbns-home .jv-go { min-height: 44px; padding: 0 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.tbns-home *,
	.tbns-home *::before,
	.tbns-home *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
