/* =====================================================
   What Work Involves (wwi-career) — main.css
   Editorial career-guide look: paper background, ink text,
   oxblood + gold accents, serif headings, dense readable
   typography, strong tables and series navigation.
   ===================================================== */

:root {
	--bg: #faf8f4;
	--surface: #ffffff;
	--ink: #22201c;
	--ink-soft: #6b655b;
	--accent: #8a2e3b;
	--accent-dark: #6f2430;
	--gold: #b98a2f;
	--line: #e5e0d6;
	--header-bg: #faf8f4;
	--header-ink: #22201c;
	--focus: #8a2e3b;
	--radius: 6px;
	--shadow: 0 1px 3px rgba(34, 32, 28, 0.08);
	--wrap: 1220px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.75 Georgia, "Times New Roman", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", serif;
	-webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
	line-height: 1.28;
	font-family: Georgia, "Times New Roman", "PingFang SC", serif;
	font-weight: 700;
	color: var(--ink);
}

/* ---------------- header ---------------- */

.site-header {
	background: var(--header-bg);
	border-bottom: 3px double var(--ink);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 14px;
	padding-bottom: 14px;
	flex-wrap: wrap;
}

.site-branding { display: flex; align-items: center; gap: 14px; }
.branding-text { display: flex; flex-direction: column; }

.site-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.site-title:hover { color: var(--accent-dark); text-decoration: none; }

.site-description {
	margin: 0;
	font-size: 0.85rem;
	color: var(--ink-soft);
	font-style: italic;
}

.site-header .custom-logo { max-height: 60px; width: auto; }

.nav-toggle {
	display: none;
	background: var(--ink);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 0.95rem;
	cursor: pointer;
	min-height: 44px;
}

/* editorial top strip */
.topbar-strip {
	background: var(--ink);
	color: #efe9df;
}

.topbar-strip .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 9px;
	padding-bottom: 9px;
}

.topbar-note { font-size: 0.85rem; font-style: italic; color: #cfc7ba; }

.topbar-link {
	color: #fff;
	font-weight: 700;
	font-size: 0.88rem;
	border-bottom: 2px solid var(--gold);
	padding: 2px 2px;
}
.topbar-link:hover { color: var(--gold); text-decoration: none; }

/* ---------------- nav ---------------- */

.primary-nav { margin-left: auto; }

.primary-menu {
	display: flex;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.primary-menu li { position: relative; }

.primary-menu a {
	display: block;
	padding: 10px 15px;
	color: var(--ink);
	font-weight: 700;
	font-size: 0.95rem;
	border-bottom: 3px solid transparent;
	min-height: 44px;
}
.primary-menu a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); text-decoration: none; }

.primary-menu .sub-menu,
.primary-menu ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	box-shadow: 0 8px 18px rgba(34, 32, 28, 0.14);
	list-style: none;
	margin: 0;
	padding: 6px;
	min-width: 220px;
	z-index: 20;
	display: none;
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul { display: block; }

/* ---------------- breadcrumb ---------------- */

.breadcrumb-wrap { padding-top: 12px; }

.breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 0.82rem;
	color: var(--ink-soft);
}

.breadcrumb li + li::before { content: "·"; margin-right: 6px; color: var(--gold); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb [aria-current="page"] { color: var(--accent-dark); font-weight: 700; }

/* ---------------- layout ---------------- */

.site-main { padding: 20px 0 44px; }

.layout.with-sidebar {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 38px;
}

.layout .content-col { min-width: 0; }

.widget-area .widget,
.site-footer .widget {
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: var(--radius);
	padding: 16px 18px;
	margin-bottom: 18px;
	box-shadow: var(--shadow);
}

.widget-title {
	margin: 0 0 12px;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--accent-dark);
}

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

/* ---------------- archive header ---------------- */

.archive-header {
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 4px solid var(--accent);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px 28px;
	margin: 6px auto 26px;
	max-width: var(--wrap);
}

.page-title { margin: 0 0 6px; font-size: 2rem; }

.archive-desc { color: var(--ink-soft); font-size: 1rem; }
.archive-desc p { margin: 4px 0 0; }

/* ---------------- editorial archive rows ---------------- */

.card-grid {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.card {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	background: transparent;
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
	border-radius: 0;
	box-shadow: none;
}

.card:hover { background: transparent; }

.card-thumb { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.card-body { padding: 0; }

.card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.8rem;
	color: var(--ink-soft);
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.card-cat {
	color: var(--accent-dark);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-size: 0.74rem;
}

.card-title { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.4; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-dark); }

.card-excerpt { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }

/* ---------------- single / page ---------------- */

.entry {
	max-width: 800px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 34px 38px;
}

.layout.with-sidebar .entry { margin: 0; max-width: none; }

.entry-header { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }

.entry-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.82rem;
	color: var(--ink-soft);
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.entry-cat {
	color: var(--accent-dark);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-size: 0.75rem;
}

.entry-title { margin: 0; font-size: 2.2rem; letter-spacing: -0.01em; }

.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { width: 100%; height: auto; border-radius: var(--radius); }

.entry-content { font-size: 1.06rem; line-height: 1.85; }
.entry-content > * { max-width: 68ch; }
.entry-content > img,
.entry-content > figure,
.entry-content > table,
.entry-content > .alignwide,
.entry-content > .alignfull { max-width: 100%; }

.entry-content h2 { font-size: 1.5rem; margin: 2em 0 0.7em; }
.entry-content h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	background: var(--gold);
	margin-top: 8px;
}
.entry-content h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; color: var(--accent-dark); }

.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin: 0.45em 0; }
.entry-content li::marker { color: var(--accent-dark); }

/* comparison tables: dense, scrollable on mobile */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
	display: block;
	overflow-x: auto;
}

.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
.entry-content tbody tr:nth-child(even) { background: #f7f4ee; }
.entry-content td:first-child { font-weight: 700; }

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--gold);
	font-style: italic;
	color: var(--ink-soft);
}

.entry-footer { margin-top: 26px; }

.tags a {
	display: inline-block;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 4px 12px;
	font-size: 0.8rem;
	margin: 0 6px 6px 0;
	color: var(--ink-soft);
}

/* series navigation block */
.series-nav {
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin-top: 22px;
}

.series-nav h2 { margin: 0 0 10px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dark); }

.series-nav ul { list-style: none; margin: 0; padding: 0; }
.series-nav li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.series-nav li:last-child { border-bottom: 0; }

/* ---------------- post nav / pagination ---------------- */

.post-nav { max-width: 800px; margin: 24px auto 0; }
.layout.with-sidebar .post-nav { margin: 24px 0 0; max-width: none; }

.post-nav .nav-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.post-nav .nav-previous,
.post-nav .nav-next { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.post-nav .nav-next { text-align: right; }
.post-nav .nav-label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.post-nav .nav-title { font-weight: 700; }

.pagination,
.navigation.pagination {
	max-width: var(--wrap);
	margin: 26px auto 0;
	padding: 0 20px;
}

.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }

.pagination .page-numbers,
.navigation.pagination .page-numbers {
	display: inline-block;
	padding: 8px 15px;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 4px;
	color: var(--ink);
	text-decoration: none;
	min-height: 40px;
}
.pagination .page-numbers.current,
.navigation.pagination .page-numbers.current { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; font-weight: 700; }

/* ---------------- search / no-results / 404 ---------------- */

.search-form { display: flex; gap: 8px; max-width: 480px; }

.search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 1rem;
	min-height: 44px;
	background: #fff;
}

.search-submit {
	padding: 10px 18px;
	background: var(--accent-dark);
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
	min-height: 44px;
}
.search-submit:hover { background: var(--accent); }

.no-results, .error-404 {
	max-width: 800px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 36px;
}
.no-results h2, .error-404 h2 { margin-top: 1.4em; }

/* ---------------- comments ---------------- */

.comments-area { max-width: 800px; margin: 30px auto 0; }
.layout.with-sidebar .comments-area { margin: 30px 0 0; max-width: none; }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; margin-bottom: 12px; }
.comment-list .children { list-style: none; padding-left: 22px; }

.comment-form textarea, .comment-form input:not([type="submit"]) { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }

.comment-form .submit {
	background: var(--accent-dark);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 12px 22px;
	font-weight: 700;
	cursor: pointer;
	min-height: 44px;
}

/* ---------------- footer ---------------- */

.site-footer {
	background: var(--ink);
	color: #cfc7ba;
	margin-top: 44px;
	padding: 30px 0;
	border-top: 4px solid var(--gold);
}

.footer-widgets { display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; }
.footer-widgets .widget { flex: 1 1 240px; background: rgba(255, 255, 255, 0.05); border-top-color: var(--gold); color: #e5dfd4; }
.footer-widgets .widget a { color: #e8c46a; }
.footer-widgets .widget-title { color: #e8c46a; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; }

.footer-menu { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; margin: 0; padding: 0; }
.footer-menu a { display: block; padding: 6px 10px; color: #cfc7ba; font-size: 0.88rem; border-radius: 4px; }
.footer-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.copyright { margin: 0; font-size: 0.85rem; }
.copyright a { color: #fff; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
	.layout.with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
	.nav-toggle { display: inline-block; }

	.primary-nav { display: none; width: 100%; margin: 0; }

	body.nav-open .primary-nav { display: block; }

	.primary-menu { flex-direction: column; gap: 0; }

	.primary-menu a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }

	.primary-menu .sub-menu,
	.primary-menu ul {
		position: static;
		display: block;
		box-shadow: none;
		margin-left: 14px;
	}

	.entry, .no-results, .error-404 { padding: 24px 20px; }
	.entry-title { font-size: 1.65rem; }

	.card { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
	.card-thumb img { max-height: 220px; object-fit: cover; }
}
