/**
 * Base Styles
 *
 * Reset and baseline typography styles
 * @package baansuan-duangporn
 * @version 0.8.0
 */

/* Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	line-height: var(--line-height-normal);
	color: var(--color-text-primary);
	background-color: var(--color-background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	line-height: var(--line-height-tight);
	margin-top: var(--space-l);
	margin-bottom: var(--space-m);
	font-weight: normal;
}

h1 {
	font-size: var(--font-size-h1);
}

h2 {
	font-size: var(--font-size-h2);
}

h3 {
	font-size: var(--font-size-h3);
}

p {
	margin-bottom: var(--space-m);
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-secondary);
}

/* Visible keyboard focus for interactive elements not already covered by
   their own :focus styles (nav links, footer links and .btn variants keep
   their existing focus treatment via more specific selectors). */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

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

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--space-l);
}

th, td {
	padding: var(--space-m);
	text-align: left;
	border-bottom: 1px solid #ddd;
}

th {
	background-color: var(--color-primary);
	color: white;
}

/* Forms */
input,
textarea,
select,
button {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: var(--space-m);
	margin-bottom: var(--space-m);
	border: 1px solid #ccc;
	border-radius: var(--radius-small);
	background-color: white;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* WordPress classes */
.wp-post-image {
	border-radius: var(--radius-medium);
}

.wp-caption {
	margin-bottom: var(--space-m);
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
	margin-right: var(--space-m);
}

.alignright {
	float: right;
	margin-left: var(--space-m);
}

.clear {
	clear: both;
}
