/* Styles below apply only to regular WordPress content (pages such as the privacy policy, posts, archives).
   The project pages ship with their own compiled CSS in /static. Colors and fonts follow those pages. */

@font-face {
	font-family: "Addington CF";
	src: url(/assets/fonts/AddingtonCF-Thin.woff2) format("woff2");
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: "Josefin Sans";
	src: url(/assets/fonts/JosefinSans-Light.woff2) format("woff2");
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: "Josefin Sans";
	src: url(/assets/fonts/JosefinSans-Regular.woff2) format("woff2");
	font-weight: 400; /* no bold file: the browser emboldens it for <strong> */
	font-display: swap;
}

:root {
	--elyse-dark: #042c2e;
	--elyse-dark-2: #0b3a3c;
	--elyse-rose: #d6aa9c;
	--elyse-rose-dark: #a8786a;
	--elyse-ink: #1f2a29;
	--elyse-muted: #5d6967;
	--elyse-line: #e8e1d8;
	--elyse-bg: #f6f2ec;
	--elyse-zalo: #0068ff;
	--elyse-gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--elyse-bg);
	color: var(--elyse-ink);
	font: 400 16px/1.75 "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: var(--elyse-rose-dark); text-underline-offset: 3px; }
a:hover { color: var(--elyse-dark); }
img { max-width: 100%; height: auto; }
.icon { width: 1em; height: 1em; flex: none; }

h1, h2, h3, h4 {
	font-family: "Addington CF", Georgia, serif;
	font-weight: 300;
	line-height: 1.2;
	color: var(--elyse-dark);
	overflow-wrap: break-word;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--elyse-dark);
	color: #fff;
	box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1240px;
	min-height: 76px;
	margin: 0 auto;
	padding: 0 var(--elyse-gutter);
}
.site-logo { display: block; flex: none; }
.site-logo img { display: block; width: auto; height: 44px; }

.site-nav { margin-left: auto; }
.site-nav ul,
.site-menu__panel ul { margin: 0; padding: 0; list-style: none; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
	color: rgb(255 255 255 / 0.86);
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--elyse-rose); }

.site-hotline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding: 9px 18px;
	border: 1px solid var(--elyse-rose);
	border-radius: 999px;
	color: var(--elyse-rose);
	font-size: 15px;
	letter-spacing: .04em;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.site-hotline:hover { background: var(--elyse-rose); color: var(--elyse-dark); }

.site-menu { display: none; position: relative; }
.site-menu summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	color: #fff;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary .icon { width: 22px; height: 22px; }
.site-menu__panel {
	position: absolute;
	top: calc(100% + 14px);
	right: calc(-1 * var(--elyse-gutter));
	width: min(320px, 100vw);
	padding: 12px var(--elyse-gutter) 20px;
	background: var(--elyse-dark);
	box-shadow: 0 18px 30px rgb(0 0 0 / 0.25);
}
.site-menu__panel a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.08);
	color: #fff;
	font-family: "Addington CF", Georgia, serif;
	font-size: 22px;
	text-decoration: none;
}
.site-menu__panel a:hover { color: var(--elyse-rose); }

/* ---------- Page title band ---------- */

.page-hero {
	background:
		radial-gradient(120% 140% at 85% 0%, rgb(214 170 156 / 0.16), transparent 55%),
		linear-gradient(180deg, var(--elyse-dark) 0%, var(--elyse-dark-2) 100%);
	color: #fff;
}
.page-hero__inner {
	max-width: 920px;
	margin: 0 auto;
	padding: clamp(40px, 7vw, 88px) var(--elyse-gutter) clamp(84px, 11vw, 132px);
}
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: rgb(255 255 255 / 0.6);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.breadcrumb a { color: var(--elyse-rose); text-decoration: none; }
.breadcrumb .icon { width: 16px; height: 16px; }
.page-hero__title {
	margin: 18px 0 0;
	color: #fff;
	font-size: clamp(34px, 6vw, 60px);
}
.page-hero__meta { margin-top: 12px; color: rgb(255 255 255 / 0.65); font-size: 14px; }

/* ---------- Content ---------- */

.entry {
	position: relative;
	max-width: 920px;
	margin: clamp(-96px, -8vw, -56px) auto 0;
	padding: 0 var(--elyse-gutter);
}
.entry__thumb img { display: block; width: 100%; border-radius: 4px; }
.entry__thumb { margin-bottom: 24px; }
.entry__content {
	background: #fff;
	border: 1px solid var(--elyse-line);
	border-radius: 6px;
	box-shadow: 0 24px 60px rgb(4 44 46 / 0.08);
	padding: clamp(24px, 6vw, 64px) clamp(20px, 6vw, 72px);
	font-size: clamp(15.5px, 1.1vw + 11px, 17px);
	color: #2b3533;
	overflow-wrap: break-word;
}
.entry__content > :first-child { margin-top: 0; }
.entry__content > :last-child { margin-bottom: 0; }
.entry__content p { margin: 0 0 1.15em; }
.entry__content h1,
.entry__content h2 {
	margin: 1.6em 0 .6em;
	font-size: clamp(26px, 3.4vw, 34px);
}
.entry__content > h1:first-child,
.entry__content > h2:first-child {
	padding-bottom: .6em;
	border-bottom: 1px solid var(--elyse-line);
}
.entry__content h3 { margin: 1.5em 0 .5em; font-size: clamp(21px, 2.6vw, 26px); }
.entry__content h4 { margin: 1.4em 0 .4em; font-size: 20px; }
.entry__content strong { color: var(--elyse-dark); font-weight: 700; }
.entry__content ul,
.entry__content ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.entry__content li { margin-bottom: .45em; }
.entry__content li::marker { color: var(--elyse-rose-dark); }
.entry__content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--elyse-rose);
	color: var(--elyse-muted);
}
.entry__content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	margin: 0 0 1.4em;
	font-size: .95em;
}
.entry__content th,
.entry__content td { padding: 10px 14px; border: 1px solid var(--elyse-line); text-align: left; vertical-align: top; }
.entry__content th { background: var(--elyse-bg); }
.entry__content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--elyse-line); }
.entry__content a { overflow-wrap: anywhere; }

/* ---------- Lists (blog, archives, search) ---------- */

.site-main > h1,
.post-list,
.pagination,
.site-main > p {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 var(--elyse-gutter);
}
.site-main > h1 { margin-top: 48px; font-size: clamp(30px, 5vw, 44px); }
.post-list { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); margin-top: 40px; }
.post-card { background: #fff; border: 1px solid var(--elyse-line); border-radius: 6px; overflow: hidden; }
.post-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 20px 24px 28px; }
.post-card__title { margin: 0 0 8px; font-size: 24px; }
.post-card__title a { color: var(--elyse-dark); text-decoration: none; }
.post-meta { color: var(--elyse-muted); font-size: 14px; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--elyse-line); border-radius: 4px; text-decoration: none; }
.pagination .current { background: var(--elyse-dark); border-color: var(--elyse-dark); color: #fff; }

/* ---------- Comments ---------- */

.comments-area,
.comment-respond { max-width: 920px; margin: 48px auto 0; padding: 0 var(--elyse-gutter); }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--elyse-line);
	border-radius: 4px;
	background: #fff;
	font: inherit;
}
.comment-form .form-submit input {
	padding: 12px 28px;
	border: 0;
	background: var(--elyse-dark);
	color: #fff;
	font: inherit;
	text-transform: uppercase;
	letter-spacing: .06em;
	cursor: pointer;
}

/* ---------- Footer ---------- */

.site-main { padding-bottom: clamp(56px, 8vw, 96px); }

.site-footer { background: var(--elyse-dark); color: rgb(255 255 255 / 0.78); font-size: 15px; }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 40px;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(48px, 7vw, 80px) var(--elyse-gutter);
}
.site-footer__brand img { display: block; width: 180px; height: auto; }
.site-footer__brand p { margin: 18px 0 0; max-width: 300px; }
.site-footer__title { margin: 0 0 20px; color: #fff; font-size: 26px; }
.site-footer__contact { margin: 0; padding: 0; list-style: none; }
.site-footer__contact li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.site-footer__contact .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--elyse-rose); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--elyse-rose); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgb(214 170 156 / 0.35);
	border-radius: 50%;
	color: var(--elyse-rose);
	font: 700 12px/1 Arial, Helvetica, sans-serif;
}
.site-footer__social .icon { width: 18px; height: 18px; }
.site-footer__social a.is-zalo { background: var(--elyse-zalo); border-color: var(--elyse-zalo); color: #fff; }
.site-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 20px var(--elyse-gutter) 24px;
	border-top: 1px solid rgb(255 255 255 / 0.08);
	color: rgb(255 255 255 / 0.6);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Floating quick-contact buttons, like the project pages */
.site-cta {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 40;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.site-cta__btn {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: var(--elyse-dark);
	box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
	font: 700 13px/1 Arial, Helvetica, sans-serif;
	text-decoration: none;
	transition: transform .2s;
}
.site-cta__btn:hover { transform: scale(1.06); color: var(--elyse-dark); }
.site-cta__btn .icon { width: 22px; height: 22px; }
.site-cta__btn.is-zalo { background: var(--elyse-zalo); color: #fff; animation: elyse-pulse 2.2s infinite; }
@keyframes elyse-pulse {
	0% { box-shadow: 0 0 0 0 rgb(0 104 255 / 0.5); }
	70% { box-shadow: 0 0 0 12px rgb(0 104 255 / 0); }
	100% { box-shadow: 0 0 0 0 rgb(0 104 255 / 0); }
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}
.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 100;
	padding: 10px 16px;
	background: #fff;
	color: var(--elyse-dark);
}

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
	.site-nav { display: none; }
	.site-menu { display: block; }
	.site-hotline { margin-left: auto; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
	.site-header__inner { min-height: 64px; gap: 14px; }
	.site-logo img { height: 34px; }
	.site-hotline { padding: 10px; border-radius: 50%; }
	.site-hotline span { display: none; }
	.site-hotline .icon { width: 18px; height: 18px; }
	.site-menu summary span { display: none; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
	.site-footer__bar { padding-right: 76px; padding-bottom: 32px; justify-content: flex-start; } /* clear of the floating buttons */
	.site-cta__btn { width: 48px; height: 48px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}
