/* Employee X — calm editorial news layout.
   Palette from the logo (B1 V3): linen ground, eucalyptus ink, sage inlay, warm sand rules. */
:root {
	--bg: #f7f4ef;
	--surface: #fbf9f5;
	--ink: #26302e;
	--muted: #5b6763;
	--brand: #2f5b54;
	--brand-ink: #24473f;
	--sage: #9db8a8;
	--sand: #e6dccb;
	--line: #e3dccf;
	--chip: #ebe5da;
	--focus: #2f5b54;
	--display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--text: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--measure: 68ch;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1a2422;
		--surface: #1f2b29;
		--ink: #ede9e2;
		--muted: #a7b3ae;
		--brand: #bfd6c8;
		--brand-ink: #d3e4da;
		--sage: #4e7a71;
		--sand: #34423f;
		--line: #2f3c39;
		--chip: #283533;
		--focus: #bfd6c8;
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.6 var(--text);
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--brand); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-left: max(20px, env(safe-area-inset-left, 0px));
	padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; }

/* Mark */
.mark { width: 34px; height: 34px; flex: none; }
.mark .mk-x { fill: var(--brand); }
.mark .mk-t { fill: var(--sage); }
.mark-md { width: 44px; height: 44px; }
.mark-xl { width: 96px; height: 96px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark { font: 500 26px/1 var(--display); letter-spacing: -0.01em; }
.wordmark b { font-weight: 500; color: var(--brand); }
.dateline { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.nav { overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 4px; padding-block: 2px 10px; white-space: nowrap; }
.nav a { display: block; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--chip); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--chip); }
@media (prefers-color-scheme: dark) { .nav a[aria-current="page"] { color: var(--brand); } }

main { padding-block: 36px 64px; display: grid; gap: 48px; }

/* Meta and chips */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.meta .src { font-weight: 600; color: var(--brand-ink); text-decoration: none; letter-spacing: 0.01em; }
@media (prefers-color-scheme: dark) { .meta .src { color: var(--brand); } }
.meta .src:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); text-decoration: none; }
.chips a:hover { color: var(--ink); }
.read { font-size: 14px; font-weight: 500; color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .read { color: var(--brand); } }
.read:hover { text-decoration: underline; }

/* Top stories */
.top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.lead { display: grid; gap: 16px; padding-right: 40px; border-right: 1px solid var(--line); }
.lead-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 500; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lead-sum { font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 56ch; }
.lead-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.lead::before {
	content: "";
	display: block;
	width: 56px;
	height: 6px;
	background: linear-gradient(var(--sage), var(--sage)) left / 100% 100% no-repeat;
	border-radius: 3px;
	margin-bottom: 4px;
}
.second { display: grid; gap: 0; }
.story-top { padding-block: 18px; border-top: 1px solid var(--line); }
.story-top:first-child { border-top: 0; padding-top: 0; }
.story-top h3 { font-size: 20px; }
.story-top .sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Story */
.story { display: grid; gap: 8px; min-width: 0; }
.story h3 { font-size: 21px; line-height: 1.25; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story .sum { color: var(--muted); max-width: var(--measure); }

/* Columns */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.sec-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sec-head a { font-size: 14px; color: var(--muted); text-decoration: none; }
.sec-head a:hover { color: var(--brand); }
.sec-more { margin-top: 48px; }
.list { display: grid; }
.list .story { padding-block: 22px; border-bottom: 1px solid var(--line); }
.list .story:last-child { border-bottom: 0; }
.briefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.brief { display: grid; gap: 4px; padding-block: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.brief h3 { font-size: 16px; line-height: 1.35; font-weight: 500; }
.brief h3 a { text-decoration: none; }
.brief h3 a:hover { text-decoration: underline; }

/* Side panels */
.col-side { display: grid; gap: 36px; position: sticky; top: 24px; }
.panel { display: grid; gap: 14px; }
.panel-link { font-size: 14px; font-weight: 500; color: var(--brand-ink); text-decoration: none; }
@media (prefers-color-scheme: dark) { .panel-link { color: var(--brand); } }
.panel-link:hover { text-decoration: underline; }
.topics { display: grid; }
.topics a { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.topics .count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.panel-about { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; color: var(--muted); font-size: 15px; }

/* Events */
.event { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; }
.ev-date { display: grid; justify-items: center; padding: 8px 0 7px; border-radius: 8px; background: var(--chip); line-height: 1; }
.ev-day { font: 500 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.ev-mon { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ev-body { display: grid; gap: 4px; min-width: 0; }
.ev-body h3 { font-size: 18px; }
.ev-body h3 a { text-decoration: none; }
.ev-body h3 a:hover { text-decoration: underline; }
.ev-meta, .ev-org { font-size: 14px; color: var(--muted); }
.ev-desc { max-width: var(--measure); margin-top: 4px; }
.event-sm .ev-body h3 { font-size: 16px; }
.event-sm { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ev-month { display: grid; gap: 20px; }
.month-h { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ev-list { display: grid; gap: 28px; }

/* Page heads */
.page-head { display: grid; gap: 12px; max-width: 760px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--brand); } }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }
.list-page { max-width: 820px; }
.pager { display: flex; justify-content: space-between; align-items: center; max-width: 820px; font-size: 14px; color: var(--muted); }
.pager a { font-weight: 500; color: var(--brand-ink); text-decoration: none; }
@media (prefers-color-scheme: dark) { .pager a { color: var(--brand); } }

/* Sources */
.sources { display: grid; }
.source { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); }
.source-main { display: grid; gap: 4px; min-width: 0; }
.source h2 { font-size: 19px; }
.source h2 a { text-decoration: none; }
.source-main p { color: var(--muted); font-size: 15px; }
.source-meta { display: flex; gap: 24px; margin: 0; font-size: 14px; }
.source-meta dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.source-meta dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.state.err { color: #9a4a3c; }
@media (prefers-color-scheme: dark) { .state.err { color: #e3a596; } }
.also { display: grid; gap: 10px; max-width: 760px; }
.also h2 { font-size: 22px; }
.also > p { color: var(--muted); }
.also-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.also-list a { font-weight: 500; }

/* Prose */
.prose { display: grid; gap: 16px; max-width: var(--measure); font-size: 17px; }
.prose h2 { font-size: 22px; margin-top: 12px; }

/* Empty states */
.intro-empty { display: grid; justify-items: start; gap: 16px; max-width: 560px; padding-block: 40px; }
.intro-empty h1 { font-size: clamp(30px, 4vw, 42px); }
.intro-empty p { color: var(--muted); font-size: 18px; }
.empty { color: var(--muted); padding-block: 20px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 40px 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot-brand { display: grid; gap: 14px; color: var(--muted); max-width: 36ch; }
.foot-brand .wordmark { font-size: 22px; }
.foot-h { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--text); }
.foot-list { display: grid; gap: 6px; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-note p:first-child { max-width: 70ch; }

/* Responsive */
@media (max-width: 1000px) {
	.cols { grid-template-columns: minmax(0, 1fr); }
	.col-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.panel-about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	.top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.lead { padding-right: 0; border-right: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
	.source { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	main { padding-block: 24px 48px; gap: 36px; }
	.head-row { padding-block: 16px 10px; }
	.wordmark { font-size: 22px; }
	.mark { width: 30px; height: 30px; }
	.dateline { font-size: 12px; }
	.lead-sum { font-size: 17px; }
	.story h3 { font-size: 19px; }
	.briefs { grid-template-columns: minmax(0, 1fr); }
	.col-side { grid-template-columns: minmax(0, 1fr); }
	.source-meta { gap: 16px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
