@font-face {
	font-family: 'Montserrat';
	src: url('fonts/MontserratVariableFontwght.woff2') format('woff2');
	font-style: normal;
}

@font-face {
	font-family: 'NostalgicMongtori';
	src: url('fonts/GriunMongtoriRg.woff2') format('woff2');
	font-weight: normal;
	font-display: swap;
	unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

:root {
	--light-purple: #ead8ff;
	--dark-purple: #ba7fff;
	--yellow: #fff58a;
	--text: #323232;
	--field-border: #d1d1d1;
	--field-focus: #b07cff;
	--content-width: 65rem;
	--content-width-wide: 85rem;
	--section-spacing: 4rem;
	--section-band: linear-gradient(0deg, #ffffff00 0%, #fff 10%, #fff 50%, #fff 90%, #ffffff00 100%);
	--pricing-header: #fbf8d8;
	--pricing-border: #e8e4de;
	--pricing-strike: #e0704e;
	--header-height: 0px;
}

html {
	scroll-padding-top: var(--header-height);
}

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

body {
	background-image: url("background.webp");
	background-repeat: no-repeat;
	background-size: cover;
	font-family: "NostalgicMongtori", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
	min-height: 100vh;
	margin: 0;
	color: var(--text);
}

header[role="banner"] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-bottom: 1rem;
	position: sticky;
	top: 0;
	z-index: 10;
	transition: background-color 0.2s ease;

	&.-scrolled {
		background-color: white;
	}

	>.title {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		text-align: center;
		padding: 1rem 1.5rem;
	}

	>.title>h1>a {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	>.title>h1>a>img {
		width: 100px;
		padding: 0 0.5rem 0 0.5rem;

		@media (max-width: 1024px) {
			width: 70px;
		}
	}

	>.title>h1 {
		margin: 0;
		font-weight: bold;
		font-size: 4rem;

		@media (max-width: 1024px) {
			font-size: 2.5rem;
		}
	}

	>.title>h1>a {
		text-decoration: none;
		color: var(--text);
	}

	>.title>h1>a>span {
		display: inline;

		@media (max-width: 640px) {
			display: none;
		}
	}

	>.title>.collapsed-nav {
		display: none;
		width: 100%;

		@media (max-width: 640px) {
			display: block;
		}
	}

	>.title>.collapsed-nav>summary {
		position: absolute;
		top: 1rem;
		right: 1rem;
	}

	>.title>.collapsed-nav>.site-nav>ul {
		display: block;
		line-height: 1.5;
	}

	>.site-nav {
		width: 100%;

		@media (max-width: 640px) {
			display: none;
		}
	}
}

.collapsed-nav {
	text-align: center;

	>summary {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0.25rem 0.5rem;
		cursor: pointer;
		font-size: 1.5rem;

		&::-webkit-details-marker {
			display: none;
		}
	}
}

.site-nav>ul {
	display: flex;
	justify-content: center;
	gap: 1rem;
	padding: 0 1rem;
	list-style: none;

	>li>a {
		font-size: 1.2rem;
		text-decoration: none;
		color: var(--text);

		&:hover {
			text-decoration: underline;
		}
	}
}

.blog-list,
.blog-post {
	width: min(52rem, calc(100% - 2rem));
	margin: 0 auto;
	padding: 3rem 0;
}

.blog-list {
	>h2 {
		margin: 0.25rem 0 1.5rem;
		font-size: 2rem;
	}
}

.blog-list-owner,
.blog-card p,
.blog-post-meta {
	margin: 0;
	color: #777;
	font-size: 0.9rem;
}

.blog-cards {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.blog-card {
	background: white;
	border: 1px solid #e8e8e8;
	border-radius: 0.5rem;
	overflow: hidden;

	>a {
		display: flex;
		align-items: center;
		gap: 1.25rem;
		padding: 1rem;
		color: inherit;
		text-decoration: none;

		&:hover h2 {
			text-decoration: underline;
		}
	}

	img {
		display: block;
		width: 10rem;
		aspect-ratio: 1;
		object-fit: cover;
		border-radius: 0.25rem;
	}

	.blog-card-content {
		min-width: 0;
	}

	h2 {
		margin: 0.35rem 0;
		font-size: 1.25rem;
	}
}

.blog-post {
	max-width: 48rem;
	background: white;
	padding: clamp(1.5rem, 5vw, 4rem);
	border: 1px solid #e8e8e8;
	border-radius: 0.5rem;

	>img {
		width: 100%;
		border-radius: 0.5rem;
	}

	>h1 {
		margin: 0.5rem 0 2rem;
		font-size: clamp(1.8rem, 5vw, 2.5rem);
	}

	.blog-post-meta {
		display: flex;
		gap: 0.75rem;
		margin-top: 1.25rem;
	}

	tina-markdown {
		display: block;
		line-height: 1.6;
	}
}

@media (max-width: 480px) {
	.blog-card>a {
		align-items: flex-start;
		gap: 0.75rem;
	}

	.blog-card img {
		width: 6rem;
	}
}

footer[role="contentinfo"] {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--text);
	padding: 1rem 0;

	>p {
		margin: 0;

		color: #ffffff;
		font-weight: bold;
		font-size: 1.5rem;
	}
}

.social-medias {
	display: flex;
	gap: 2.5rem;
	padding: 0;
	list-style: none;

	>li>a {
		display: flex;
		justify-content: center;
		align-items: center;
		transition: transform 0.2s ease;

		&:hover {
			transform: scale(1.05);
		}

		&:active {
			transform: scale(0.95);
		}
	}
}

.icon {
	width: 30px;
	height: 30px;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	background-color: white;

	&.-tiktok {
		mask-image: url("icons/tiktok.svg");
	}

	&.-youtube {
		mask-image: url("icons/youtube.svg");
	}

	&.-instagram {
		mask-image: url("icons/instagram.svg");
	}
}

.yellow-highlight {
	color: var(--yellow);
}

.purple-highlight {
	color: var(--dark-purple);
}

#showcase {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 4rem 1rem 0 1rem;
	min-height: 60vh;
	background: linear-gradient(0deg, var(--light-purple) 0%, #ffffff00 100%);

	@media (max-width: 1024px) {
		align-items: center;
		min-height: 0;
		padding: 2rem 1rem 0 1rem;
	}
}

#showcase>.photo-frame {
	position: relative;
	max-width: 40rem;
	width: 100%;
}

#showcase>.photo-frame>img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.5rem;
}

#showcase>.photo-frame>#intro {
	margin: 0;
	font-weight: bold;
	font-size: 3rem;

	@media (max-width: 1024px) {
		font-size: 2.75rem;
		text-align: center;
		padding: 6rem 0 0;
	}

	@media (max-width: 640px) {
		font-size: 1.75rem;
		text-align: center;
		padding: 4rem 0 0;
	}
}

#showcase>.photo-frame>#intro>.anyong {
	position: absolute;
	top: -40px;
	left: -100px;
	transform: rotate(-20deg);
	font-weight: normal;

	@media (max-width: 1024px) {
		top: -40px;
		left: unset;
		right: 0;
		transform: rotate(0deg);
	}
}

#showcase>.photo-frame>#intro>.im-ria {
	position: absolute;
	top: 250px;
	right: 0;
	transform: rotate(5deg);
	text-shadow: 0px 0px 1px #000000;

	@media (max-width: 1024px) {
		top: 50px;
		transform: rotate(0deg);
	}

	@media (max-width: 640px) {
		top: 20px;
	}
}

#showcase>.photo-frame>#intro>.from-korea {
	position: absolute;
	right: -150px;
	bottom: 100px;
	transform: rotate(-10deg);
	text-shadow: 0px 0px 1px #000000;

	@media (max-width: 1024px) {
		top: 110px;
		right: 0;
		bottom: unset;
		transform: rotate(0deg);
	}

	@media (max-width: 640px) {
		top: 60px;
	}
}

#contact {
	margin: var(--section-spacing) 0;
	background: var(--section-band);
	padding: 3.5rem 2.5rem;
}

.contact-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	padding: 0;

	@media (max-width: 1024px) {
		grid-template-columns: 1fr;
	}

	>h2,
	>.divider,
	>.field.-wide,
	>.group.-wide,
	>.choice.-wide,
	>.submit {
		grid-column: 1 / -1;
	}

	>h2 {
		margin-top: 0;
		padding-bottom: 1rem;
		text-align: center;
	}

	>.field {
		display: flex;
		flex-direction: column;
		gap: 0.35rem;
		font-weight: 600;
	}

	>.field>.input {
		padding: 0.6rem 0.75rem;
		border: 1px solid var(--field-border);
		border-radius: 6px;
		font: inherit;

		&:focus {
			outline: 2px solid var(--field-focus);
			outline-offset: 1px;
			border-color: var(--field-focus);
		}
	}

	>.field>.input.-textarea {
		resize: vertical;
		min-height: 9rem;
	}

	>.group {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem 1rem;
		border: 1px solid var(--field-border);
		border-radius: 8px;
		padding: 0.75rem 1rem;
	}

	>.group>.legend {
		grid-column: 1 / -1;
		padding: 0 0.35rem;
		font-weight: 700;
	}

	>.divider {
		border: none;
		border-top: 1px solid var(--field-border);
		margin: 0.5rem 0;
	}

	>.submit {
		margin-top: 1rem;
		justify-self: center;
		padding: 0.7rem 2.5rem;
		border: none;
		border-radius: 999px;
		background-color: var(--light-purple);
		color: var(--text);
		font: inherit;
		font-weight: 700;
		cursor: pointer;

		&:hover {
			filter: brightness(0.95);
		}

		&:active {
			transform: scale(0.98);
		}
	}
}

.choice {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
}

.container-box {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;

	&.-wide {
		max-width: var(--content-width-wide);
	}
}

#youtube {
	margin: var(--section-spacing) 0;
	background: var(--section-band);
	padding: 3.5rem 2.5rem;

	>.container-box {
		display: flex;
		flex-direction: column;
		gap: 3.5rem;
	}

	>.container-box>h2 {
		margin-top: 0;
		padding-bottom: 1rem;
		text-align: center;
	}
}

.youtube-header {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.latest-post {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.featured-link {
	display: flex;
	align-items: center;
	gap: 2rem;
	color: var(--text);
	text-decoration: none;

	transition: transform 0.2s ease;

	@media (max-width: 640px) {
		flex-direction: column;
		align-items: flex-start;
	}

	&:hover {
		transform: translateY(-3px);
	}

	>img {
		width: min(70rem, 100%);
		aspect-ratio: 16 / 9;
		object-fit: cover;
		border: 1px solid #b8b8b8;
		border-radius: 10px;
		filter: drop-shadow(-6px 4px 5px #00000015);
		transition: filter 0.2s ease;
	}

	&:hover>img {
		filter: drop-shadow(-6px 6px 8px #00000030);
	}
}

.featured-content {
	>h4 {
		margin: 0 0 0.5rem;
		font-size: 1.5rem;
	}
}

.recent-posts {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.recent-posts-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#youtube-list {
	display: flex;
	gap: 1rem;
	padding: 0;
	list-style: none;

	@media (max-width: 640px) {
		flex-direction: column;
	}
}

.video-card {
	flex: 0 0 calc((100% - 2rem) / 3);

	@media (max-width: 640px) {
		flex-basis: 100%;
	}

	>a {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		height: 100%;
		color: var(--text);
		text-decoration: none;

		transition: transform 0.2s ease;

		&:hover {
			transform: translateY(-3px);
		}
	}

	>a>img {
		width: 100%;
		aspect-ratio: 16 / 9;
		object-fit: cover;
		border: 1px solid #b8b8b8;
		border-radius: 10px;
		filter: drop-shadow(-6px 4px 5px #00000015);
		transition: filter 0.2s ease;
	}

	>a:hover>img {
		filter: drop-shadow(-6px 6px 8px #00000030);
	}

	>a>h4 {
		margin: 0;
		font-size: 1rem;
	}
}

#pricing {
	margin: var(--section-spacing) 0;
	padding: 3.5rem 2.5rem;
	background: var(--section-band);

	>.container-box>h2 {
		margin-top: 0;
		padding-bottom: 1rem;
		text-align: center;
	}
}

.pricing-table {
	width: 100%;
	max-width: 46rem;
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 1.25rem;
	background: white;
	box-shadow: 0 10px 24px #00000018;
	overflow: hidden;

	@media (max-width: 640px) {
		display: block;
		background: none;
		box-shadow: none;
		border-radius: 0;
		overflow: visible;
	}

	>thead {
		@media (max-width: 640px) {
			display: none;
		}
	}

	>thead th {
		padding: 1.1rem 1rem;
		background: var(--pricing-header);
		color: #3a3330;
		font-weight: 700;
		font-size: 1.15rem;
		text-align: center;
		border-bottom: 1px solid var(--pricing-border);
	}

	>thead th+th {
		border-left: 1px solid var(--pricing-border);
	}

	>thead th:last-child {
		text-align: right;
	}

	>tbody {
		@media (max-width: 640px) {
			display: block;
		}
	}

	>tbody td {
		padding: 1.1rem 1rem;
		background: white;
		color: var(--text);
		text-align: center;

		@media (max-width: 640px) {
			padding: 0;
			border: 0;
			text-align: right;
		}
	}

	>tbody td+td {
		border-left: 1px solid var(--pricing-border);
	}

	>tbody tr+tr>td {
		border-top: 1px solid var(--pricing-border);

		@media (max-width: 640px) {
			border-top: 0;
		}
	}

	>tbody td:last-child {
		text-align: right;
	}

	>tbody td:first-child {
		@media (max-width: 640px) {
			font-weight: 700;
			font-size: 1.05rem;
			text-align: left;
		}
	}

	>tbody td:nth-child(2) {
		@media (max-width: 640px) {
			color: #777;
			font-size: 0.9rem;
		}
	}

	>tbody td tina-markdown {
		display: block;
	}

	>tbody>tr {
		@media (max-width: 640px) {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 1rem;
			margin-bottom: 0.75rem;
			padding: 1rem 1.25rem;
			background: white;
			border: 1px solid var(--pricing-border);
			border-radius: 1rem;
			box-shadow: 0 4px 12px #0000000f;
		}
	}
}

#course-difference {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	margin: var(--section-spacing) 0;
	padding: 3.5rem 2.5rem;
	background: var(--section-band);

	>.container-box {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	>.container-box>#course-difference-content {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		max-width: 50rem;
	}
}

#courses {
	margin: var(--section-spacing) 0;
	background: var(--section-band);
	padding: 3.5rem 2.5rem;

	>.container-box>h2 {
		margin-top: 0;
		padding-bottom: 1rem;
		text-align: center;
	}
}

#courses-list {
	display: flex;
	justify-content: center;
	padding: 0;
	flex-wrap: wrap;
	gap: 4rem;
	list-style: none;
}
