:root {
	--hfpm: #faf6ee;
	--hmrv: #f1ebe2;
	--eyp3: #181b21;
	--e58: #676869;
	--oue2: #949392;
	--q501t: #d6d3cd;
	--gg2tb: #505254;
	--ess: #003366;
	--ig9oj: #ffffff;
	--dl880: #dcdfde;
	--oeq3o: #00264c;
	--f2nl: #faf6ee;
	--ihl: "Source Serif 4", Georgia, "Times New Roman", serif;
	--qvfvr: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
	--vvi: 1140px;
	--azr9: 0;
	--kcno: 40rem;
	--b8sz: solid;
	--ms59: 1px;
}

/* Base: reset, type, links, media, buttons */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--hfpm);
	color: var(--eyp3);
	font-family: var(--qvfvr);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:lang(th) body,
body:lang(th) {
	font-family: "Noto Sans Thai", var(--qvfvr);
	line-height: 1.85;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ihl);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.01em;
	color: var(--eyp3);
	margin: 1.6em 0 0.55em;
	text-wrap: balance;
}

:lang(th) h1, :lang(th) h2, :lang(th) h3, :lang(th) h4, :lang(th) h5, :lang(th) h6 {
	font-family: var(--ihl), "Noto Serif Thai", serif;
	line-height: 1.4;
	letter-spacing: 0;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; letter-spacing: 0.02em; }

p, ul, ol, blockquote, figure {
	margin: 0 0 1.15em;
}

ul, ol {
	padding-left: 1.3em;
}

li + li {
	margin-top: 0.3em;
}

a {
	color: var(--ess);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color .2s ease, text-decoration-color .2s ease, background-color .2s ease, border-color .2s ease;
}

a:hover {
	color: var(--oeq3o);
	text-decoration-color: currentColor;
}

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

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

figure {
	margin-left: 0;
	margin-right: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--q501t);
	margin: 2.5rem 0;
}

strong, b {
	font-weight: 700;
}

del {
	color: var(--oue2);
}

ins {
	text-decoration: none;
}

::selection {
	background: var(--ess);
	color: var(--ig9oj);
}

iframe {
	border: 0;
	max-width: 100%;
}

.el-zolo {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.el-nuensa:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 100;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.7rem 1.1rem;
	background: var(--eyp3);
	color: var(--hfpm);
	text-decoration: none;
}

/* buttons */

.el-iafe {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.78em 1.6em;
	border: 1px solid var(--ess);
	border-radius: var(--azr9);
	background: var(--ess);
	color: var(--ig9oj);
	font-family: var(--qvfvr);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a.el-iafe:hover {
	background: var(--oeq3o);
	border-color: var(--oeq3o);
	color: var(--ig9oj);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px -10px var(--oeq3o);
}

.el-iafe.el-pevenu {
	background: transparent;
	color: var(--ess);
}

a.el-iafe.el-pevenu:hover {
	background: var(--ess);
	color: var(--ig9oj);
}

span.el-iafe {
	cursor: default;
}

.el-kadave {
	margin: 1.6rem 0 0.6rem;
}

.el-feenlo {
	display: inline-block;
	font-family: var(--qvfvr);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ess);
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.el-feenlo::after {
	content: " \2192";
}

.el-feenlo:hover {
	color: var(--eyp3);
}

/* contact forms */

.el-zove {
	display: grid;
	gap: 0.2rem;
	max-width: 36rem;
}

.el-zonuto {
	display: grid;
	gap: 0.4rem;
	margin: 0 0 0.9rem;
}

.el-zonuto label {
	font-family: var(--qvfvr);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.el-zonuto input,
.el-zonuto textarea {
	width: 100%;
	padding: 0.75em 0.9em;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: var(--azr9);
	background: color-mix(in srgb, var(--hfpm) 85%, transparent);
	color: inherit;
	font: inherit;
}

.el-zonuto textarea {
	resize: vertical;
	min-height: 8rem;
}

.el-zonuto input:focus,
.el-zonuto textarea:focus {
	outline: 2px solid var(--ess);
	outline-offset: 1px;
}

button.el-iafe {
	cursor: pointer;
}

button.el-iafe:hover {
	background: var(--oeq3o);
	border-color: var(--oeq3o);
}

.el-daorsa {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.el-orvepe {
	display: none;
	margin: 0.6rem 0 0;
	font-weight: 700;
}

.el-orvepe:target {
	display: block;
}
