@charset "UTF-8";
/* =====================================================================
   Blakletterpress — Trang giới thiệu
   CSS responsive, mobile-first (không sửa HTML).
   Bố cục tối giản (thẻ viền mảnh trong khay, chữ lớn nét mảnh, nhãn mono),
   giữ nhận diện Blakletterpress: logo BLP, chữ blackletter, màu giấy – mực – đỏ son.
   Mốc màn hình: < 600px điện thoại · ≥ 600px tablet · ≥ 960px desktop
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
	--bg: #f5efe4;
	--surface: #fffdf9;
	--tray: #ebe2d2;
	--field: #faf6ee;
	--text: #2b1d16;
	--muted: #7a6a5e;
	--faint: rgba(43, 29, 22, 0.5);
	--hairline: rgba(43, 29, 22, 0.08);
	--line: #e3d8c5;
	--accent: #a8322d;
	--accent-soft: #f6e4df;
	--ring: 0 0 0 1px var(--hairline);
	--blackletter: "UnifrakturCook", serif;
	--sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--gutter: 16px;
}

/* ===== Nền tảng ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration-color: rgba(43, 29, 22, 0.3);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: currentColor;
}

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

h1,
h2,
h3 {
	margin: 0;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

p {
	margin: 0 0 1em;
}

.main-nav ul,
.value-list,
.team-list,
.recent,
.footer-cols {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Nhãn nhỏ kiểu mono, dùng lại cho nhiều chỗ */
main > section > h2::before,
.sidebar h2,
.footer-cols h3,
figcaption {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ===== Header ===== */
.site-header {
	background: rgba(255, 253, 249, 0.88);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--hairline);
	padding: 14px var(--gutter) 0;
	text-align: center;
}

.site-name {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--blackletter);
	font-size: 26px;
	line-height: 1;
	text-decoration: none;
}

/* Logo BLP gốc của Blakletterpress đặt trước tên */
.site-name::before {
	content: "";
	width: 76px;
	height: 34px;
	background: url("images/logo.png") no-repeat center / contain;
}

.tagline {
	margin: 2px 0 8px;
	font-size: 13px;
	color: var(--muted);
}

.main-nav ul {
	display: flex;
	justify-content: center;
	gap: 4px;
	overflow-x: auto;
	padding-bottom: 10px;
}

.main-nav a {
	display: block;
	padding: 6px 12px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 8px;
}

.main-nav a:hover {
	background: var(--bg);
}

/* ===== Bố cục chính ===== */
.layout {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px var(--gutter) 72px;
	display: grid;
	gap: 48px;
}

main {
	counter-reset: muc;
}

main > article,
main > section {
	margin-bottom: 72px;
	scroll-margin-top: 96px;
}

main > section:last-child {
	margin-bottom: 0;
}

main > section {
	counter-increment: muc;
}

main > section > h2 {
	font-size: clamp(30px, 6vw, 44px);
	margin-bottom: 28px;
}

/* Nhãn đánh số phía trên mỗi tiêu đề mục: ■ 01, ■ 02… */
main > section > h2::before {
	content: "■  0" counter(muc);
	display: block;
	margin-bottom: 14px;
	color: var(--accent);
	letter-spacing: 0.12em;
}

/* ===== Giới thiệu ===== */
#gioi-thieu h1 {
	font-size: clamp(40px, 9vw, 72px);
	margin-bottom: 28px;
}

#gioi-thieu figure {
	margin: 0 0 32px;
	padding: 8px;
	background: var(--surface);
	border-radius: 24px;
	box-shadow: var(--ring);
}

#gioi-thieu figure img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 18px;
}

figcaption {
	padding: 12px 8px 6px;
	color: var(--faint);
}

#gioi-thieu p {
	max-width: 62ch;
	font-size: 18px;
	color: #4a3b31;
}

#gioi-thieu strong {
	font-weight: 500;
	color: var(--text);
}

/* ===== Khay xám chứa các thẻ trắng (Giá trị, Đội ngũ) ===== */
.value-list,
.team-list {
	display: grid;
	gap: 8px;
	padding: 8px;
	background: var(--tray);
	border-radius: 24px;
}

.value-list {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	counter-reset: gt;
}

.team-list {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.value-card,
.member {
	background: var(--surface);
	border-radius: 18px;
	box-shadow: var(--ring);
}

.value-card {
	padding: 24px;
	counter-increment: gt;
}

/* Số thứ tự trong vòng tròn nhỏ */
.value-card h3::before {
	content: counter(gt);
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-bottom: 20px;
	font: 500 12px/1 var(--mono);
	letter-spacing: 0;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 50%;
}

.value-card h3 {
	font-size: 22px;
	margin-bottom: 10px;
}

.value-card p {
	margin: 0;
	font-size: 15px;
	color: var(--muted);
}

/* ===== Đội ngũ ===== */
.member {
	display: grid;
	grid-template-columns: 56px 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	padding: 16px;
}

.member img {
	grid-row: span 2;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--hairline);
}

.member h3 {
	align-self: end;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.member p {
	align-self: start;
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
}

/* ===== Form liên hệ ===== */
.contact-form {
	max-width: 640px;
	padding: 24px 24px 8px;
	background: var(--surface);
	border-radius: 24px;
	box-shadow: var(--ring);
}

.contact-form label {
	font-size: 14px;
	font-weight: 500;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	margin-top: 6px;
	padding: 11px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--text);
	background: var(--field);
	border: 1px solid var(--line);
	border-radius: 10px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form textarea {
	resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	background: var(--surface);
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(168, 50, 45, 0.12);
}

.contact-form button {
	width: 100%;
	height: 46px;
	padding: 0 22px;
	font: 500 15px var(--sans);
	color: #fffdf9;
	background: var(--text);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.contact-form button::after {
	content: "  →";
}

.contact-form button:hover {
	background: var(--accent);
}

/* ===== Sidebar ===== */
.sidebar {
	align-self: start;
	padding: 20px;
	background: var(--surface);
	border-radius: 20px;
	box-shadow: var(--ring);
}

.sidebar h2 {
	margin-bottom: 8px;
	color: var(--faint);
}

.recent {
	margin-bottom: 16px;
}

.recent li + li {
	border-top: 1px solid var(--hairline);
}

.recent a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	font-size: 15px;
	text-decoration: none;
}

.recent a::after {
	content: "→";
	color: var(--faint);
	transition: transform 0.15s, color 0.15s;
}

.recent a:hover::after {
	color: var(--accent);
	transform: translateX(3px);
}

.sidebar > p {
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--hairline);
	font-size: 14px;
	color: var(--muted);
}

.sidebar > p a {
	color: var(--text);
	font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
	background: var(--surface);
	box-shadow: 0 -1px 0 var(--hairline);
	padding: 48px var(--gutter) 24px;
}

.footer-cols {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	gap: 28px;
}

.footer-cols h3 {
	margin-bottom: 8px;
	color: var(--faint);
}

.footer-cols p {
	margin: 0;
	font-size: 14px;
}

.copyright {
	max-width: 1180px;
	margin: 40px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}

/* ===== Tablet: ≥ 600px ===== */
@media (min-width: 600px) {
	:root {
		--gutter: 24px;
	}

	.footer-cols {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-form {
		padding: 32px 32px 12px;
	}

	.contact-form button {
		width: auto;
	}
}

/* ===== Desktop: ≥ 960px ===== */
@media (min-width: 960px) {
	/* Header một hàng, dính trên cùng khi cuộn */
	.site-header {
		position: sticky;
		top: 0;
		z-index: 10;
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		column-gap: 16px;
		padding: 12px max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
		text-align: left;
	}

	.tagline {
		margin: 0;
		padding-left: 16px;
		border-left: 1px solid var(--line);
	}

	.main-nav ul {
		padding-bottom: 0;
	}

	.layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 56px;
		padding-top: 64px;
	}

	.sidebar {
		position: sticky;
		top: 88px;
	}

	.footer-cols {
		grid-template-columns: repeat(4, 1fr);
	}
}
