/*
Theme Name: Hotdeal Korea
Description: A Korean directory of current overseas shopping offers.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: hotdeal-korea
*/

:root {
	--page: #f7f8f3;
	--paper: #fff;
	--ink: #18251e;
	--muted: #4b6054;
	--line: #dce2d7;
	--green: #234b38;
	--green-dark: #15392a;
	--mint: #d9eac0;
	--lime: #e0edac;
	--wrap: 1120px;
}

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

body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font: 16px/1.65 Inter, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

a:focus-visible {
	outline: 2px solid #24794d;
	outline-offset: 5px;
}

p, h1, h2, h3 {
	margin: 0;
}

h1, h2, h3 {
	line-height: 1.25;
	letter-spacing: -.045em;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.site-wrap {
	width: min(calc(100% - 64px), var(--wrap));
	margin-inline: auto;
}

.site-header {
	border-bottom: 1px solid var(--line);
}

.header-row,
.footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.header-row {
	min-height: 77px;
}

.wordmark {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	font-size: 1.13rem;
	font-weight: 750;
	letter-spacing: -.055em;
	text-decoration: none;
	white-space: nowrap;
}

.wordmark-icon,
.empty-icon {
	position: relative;
	display: block;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--green);
}

.wordmark-icon::before,
.empty-icon::before {
	position: absolute;
	inset: 7px 8px;
	border: 1.4px solid var(--lime);
	border-top-width: 2px;
	border-radius: 2px;
	content: "";
}

.wordmark-icon::after,
.empty-icon::after {
	position: absolute;
	top: 8px;
	left: 12px;
	width: 4px;
	height: 5px;
	border: solid var(--lime);
	border-width: 0 1px 1px;
	border-radius: 0 0 3px 3px;
	content: "";
}

.header-row nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 26px;
}

.header-row nav a,
.footer-row a {
	color: var(--muted);
	font-size: .91rem;
	font-weight: 650;
	text-decoration: none;
}

.header-row nav a:hover,
.footer-row a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hero {
	border-bottom: 1px solid #cddbb9;
	background: #e9f0db;
	overflow: hidden;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	align-items: center;
	min-height: 460px;
	position: relative;
}

.hero-copy {
	position: relative;
	z-index: 1;
	padding-block: 70px;
}

.hero h1 {
	font-size: clamp(2.8rem, 6vw, 5rem);
	font-weight: 800;
	line-height: 1.03;
}

.hero-copy p {
	max-width: 31rem;
	margin-top: 25px;
	color: var(--muted);
	word-break: keep-all;
}

.hero-action {
	display: inline-flex;
	align-items: center;
	gap: 25px;
	margin-top: 30px;
	padding: 11px 17px;
	border-radius: 8px;
	background: var(--green);
	color: var(--paper);
	font-size: .93rem;
	font-weight: 700;
	text-decoration: none;
}

.hero-action:hover {
	background: var(--green-dark);
}

.hero-art {
	display: grid;
	position: relative;
	place-items: center;
	height: 320px;
}

.hero-ring {
	position: absolute;
	width: min(100%, 325px);
	aspect-ratio: 1;
	border: 1px solid #b8cbaa;
	border-radius: 50%;
	background: radial-gradient(ellipse at 45% 50%, #dfedc3 0, #e9f0db 62%);
}

.hero-ring::before {
	position: absolute;
	inset: 20px;
	border: 1px dashed #b4c7a4;
	border-radius: 50%;
	content: "";
}

.hero-ticket {
	position: relative;
	display: grid;
	place-items: center;
	width: 54%;
	max-width: 228px;
	min-width: 122px;
	aspect-ratio: 1.4;
	background: var(--green);
	border-radius: 16px;
	box-shadow: 0 14px 0 #c3d5ae, 0 22px 30px rgb(26 69 46 / 14%);
	color: var(--lime);
	transform: rotate(-13deg);
}

.hero-ticket::before,
.hero-ticket::after {
	position: absolute;
	top: 50%;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: #e1edcb;
	transform: translateY(-50%);
	content: "";
}

.hero-ticket::before {
	left: -.68rem;
}

.hero-ticket::after {
	right: -.68rem;
}

.hero-ticket span {
	font-size: clamp(2.8rem, 7vw, 6rem);
	font-weight: 750;
	line-height: 1;
}

.contents {
	padding-top: 48px;
}

#deals,
#price-notes {
	scroll-margin-top: 25px;
}

.section-heading {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 9px 18px;
	margin-bottom: 19px;
}

.section-heading h2 {
	font-size: clamp(1.45rem, 3vw, 2rem);
}

.update-time,
.deal-time {
	color: var(--muted);
	font-size: .85rem;
}

.empty-state {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
}

.empty-icon {
	width: 42px;
	height: 42px;
	background: #ecf3e2;
}

.empty-icon::before {
	inset: 11px 12px;
	border-color: var(--green);
}

.empty-icon::after {
	top: 13px;
	left: 18px;
	width: 6px;
	border-color: var(--green);
}

.empty-state h3 {
	margin-top: 1px;
	font-size: 1.07rem;
}

.empty-state p {
	margin-top: 5px;
	color: var(--muted);
	font-size: .92rem;
	word-break: keep-all;
}

.disclosure {
	margin-bottom: 18px;
	padding: 11px 14px;
	border-left: 3px solid #426f50;
	background: #edf3e6;
	color: var(--green-dark);
	font-size: .91rem;
	word-break: keep-all;
}

.deal-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.deal-grid > li {
	min-width: 0;
}

.deal-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	overflow-wrap: anywhere;
}

.deal-merchant {
	color: var(--green);
	font-size: .84rem;
	font-weight: 700;
}

.deal-card h3 {
	margin: 2px 0 8px;
	font-size: 1.17rem;
}

.deal-price {
	font-size: 1.11rem;
	font-weight: 750;
}

.deal-price span,
.deal-price-note,
.deal-shipping {
	color: var(--muted);
	font-size: .85rem;
	font-weight: 400;
}

.deal-time {
	margin-bottom: 9px;
}

.deal-action {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding: 8px 11px;
	border: 1px solid #c6d7c5;
	border-radius: 7px;
	color: var(--green-dark);
	font-size: .91rem;
	font-weight: 700;
	text-decoration: none;
}

.deal-action:hover {
	background: #ecf3e6;
}

.price-notes {
	margin: 37px 0 55px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.price-notes h2 {
	font-size: 1.07rem;
}

.price-notes p {
	max-width: 690px;
	margin-top: 7px;
	color: var(--muted);
	font-size: .89rem;
	word-break: keep-all;
}

.site-footer {
	border-top: 1px solid var(--line);
}

.footer-row {
	min-height: 71px;
}

.footer-row .footer-brand {
	color: var(--ink);
	letter-spacing: -.035em;
}

.entries {
	min-height: 60vh;
	padding-block: 45px 65px;
}

.entry + .entry {
	margin-top: 24px;
}

.entry-content,
.entry h2 + p {
	margin-top: 14px;
}

.entry-content p + p {
	margin-top: 11px;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.screen-reader-text:focus {
	z-index: 99999;
	top: 11px;
	left: 11px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 13px;
	clip-path: none;
	border-radius: 5px;
	background: var(--paper);
}

@media (max-width: 850px) {
	.hero-inner {
		grid-template-columns: 1.25fr .75fr;
		min-height: 390px;
	}

	.deal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.site-wrap {
		width: calc(100% - 36px);
	}

	.header-row {
		min-height: 60px;
	}

	.header-row nav {
		gap: 6px 13px;
	}

	.header-row nav a {
		font-size: .82rem;
	}

	.hero-inner {
		display: block;
		min-height: 0;
	}

	.hero-copy {
		padding-block: 54px;
	}

	.hero-art {
		display: none;
	}

	.contents {
		padding-top: 30px;
	}

	.empty-state {
		padding: 18px;
	}

	.deal-grid {
		grid-template-columns: 1fr;
	}
}
