/*
Theme Name: Puthiya Kural Coming Soon
Theme URI: https://puthiyakural.ca
Author: Puthiya Kural Publications Canada
Description: A lightweight, mobile-responsive "Coming Soon" theme for Puthiya Kural Publications Canada. Includes a launch countdown, email notify sign-up (subscribers listed under Tools > PK Subscribers), and Customizer settings for logo, text, launch date, contact and social links.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: puthiya-kural
*/

:root {
	--pk-bg: #faf6ef;
	--pk-ink: #1d1a17;
	--pk-muted: #6b6259;
	--pk-accent: #9e1b1e;
	--pk-accent-dark: #7a1416;
	--pk-gold: #c9962b;
	--pk-card: #ffffff;
	--pk-line: #e8dfd2;
	--pk-radius: 14px;
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	font-family: "Inter", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--pk-ink);
	background: var(--pk-bg);
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

/* Decorative background */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(900px 500px at 110% -10%, rgba(158, 27, 30, .10), transparent 60%),
		radial-gradient(700px 450px at -10% 110%, rgba(201, 150, 43, .14), transparent 60%);
	pointer-events: none;
}

a { color: var(--pk-accent); }
a:hover { color: var(--pk-accent-dark); }

.pk-wrap {
	flex: 1;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 20px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Logo */
.pk-logo {
	margin-bottom: 28px;
	animation: pk-fade .8s ease both;
}
.pk-logo img {
	display: block;
	width: auto;
	max-width: min(320px, 78vw);
	max-height: 170px;
	height: auto;
	margin: 0 auto;
}

/* Text */
.pk-eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--pk-accent);
	border: 1px solid rgba(158, 27, 30, .25);
	background: rgba(158, 27, 30, .05);
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: 18px;
	animation: pk-fade .8s .1s ease both;
}

.pk-title {
	font-family: "Playfair Display", "Noto Serif Tamil", Georgia, serif;
	font-weight: 700;
	font-size: clamp(2.1rem, 7vw, 3.6rem);
	line-height: 1.12;
	margin: 0 0 10px;
	animation: pk-fade .8s .2s ease both;
}

.pk-tamil {
	font-family: "Noto Serif Tamil", serif;
	font-size: clamp(1.1rem, 3.6vw, 1.4rem);
	color: var(--pk-gold);
	margin: 0 0 16px;
	animation: pk-fade .8s .25s ease both;
}

.pk-desc {
	font-size: clamp(1rem, 2.6vw, 1.1rem);
	color: var(--pk-muted);
	max-width: 560px;
	margin: 0 auto 32px;
	animation: pk-fade .8s .3s ease both;
}

/* Countdown */
.pk-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	max-width: 480px;
	margin: 0 auto 34px;
	animation: pk-fade .8s .4s ease both;
}
.pk-countdown[hidden] { display: none; }
.pk-unit {
	background: var(--pk-card);
	border: 1px solid var(--pk-line);
	border-radius: var(--pk-radius);
	padding: 16px 6px 12px;
	box-shadow: 0 6px 20px rgba(29, 26, 23, .05);
}
.pk-num {
	display: block;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.6rem, 6vw, 2.3rem);
	font-weight: 700;
	line-height: 1;
	color: var(--pk-accent);
	font-variant-numeric: tabular-nums;
}
.pk-label {
	display: block;
	margin-top: 8px;
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pk-muted);
}

/* Form */
.pk-form {
	display: flex;
	gap: 10px;
	width: 100%;
	max-width: 480px;
	margin: 0 auto 10px;
	animation: pk-fade .8s .5s ease both;
}
.pk-form input[type="email"] {
	flex: 1;
	min-width: 0;
	font: inherit;
	font-size: 1rem;
	padding: 14px 16px;
	border: 1px solid var(--pk-line);
	border-radius: 10px;
	background: var(--pk-card);
	color: var(--pk-ink);
}
.pk-form input[type="email"]:focus {
	outline: none;
	border-color: var(--pk-accent);
	box-shadow: 0 0 0 3px rgba(158, 27, 30, .15);
}
.pk-form button {
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	padding: 14px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--pk-accent);
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, transform .1s ease;
}
.pk-form button:hover { background: var(--pk-accent-dark); }
.pk-form button:active { transform: translateY(1px); }

.pk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pk-note {
	font-size: .85rem;
	color: var(--pk-muted);
	margin: 0 0 30px;
}
.pk-msg {
	max-width: 480px;
	margin: 0 auto 16px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: .95rem;
}
.pk-msg.ok { background: #eaf6ec; color: #1f6b2e; border: 1px solid #bfe3c6; }
.pk-msg.err { background: #fbecec; color: #8a1d1d; border: 1px solid #f0c6c6; }

/* Contact & social */
.pk-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	font-size: .95rem;
	color: var(--pk-muted);
	margin-bottom: 18px;
}
.pk-contact a { color: var(--pk-ink); text-decoration: none; }
.pk-contact a:hover { color: var(--pk-accent); }

.pk-social {
	display: flex;
	justify-content: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.pk-social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--pk-card);
	border: 1px solid var(--pk-line);
	color: var(--pk-ink);
	transition: all .2s ease;
}
.pk-social a:hover {
	background: var(--pk-accent);
	border-color: var(--pk-accent);
	color: #fff;
	transform: translateY(-2px);
}
.pk-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Footer */
.pk-footer {
	text-align: center;
	font-size: .82rem;
	color: var(--pk-muted);
	padding: 18px 20px 24px;
	border-top: 1px solid var(--pk-line);
}

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

@keyframes pk-fade {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* Tablet */
@media (max-width: 768px) {
	.pk-wrap { padding-top: 40px; }
}

/* Mobile */
@media (max-width: 480px) {
	.pk-wrap { padding: 32px 16px 24px; }
	.pk-logo { margin-bottom: 22px; }
	.pk-countdown { gap: 8px; }
	.pk-unit { padding: 12px 4px 10px; border-radius: 10px; }
	.pk-label { font-size: .6rem; letter-spacing: .08em; }
	.pk-form { flex-direction: column; }
	.pk-form button { width: 100%; }
	.pk-contact { flex-direction: column; gap: 6px; }
}
