/*
Theme Name: Yam D
Theme URI: https://example.com/yamd
Author: Yam D
Description: A one-page landing theme in deep midnight and lavender, based on the Yam D wordmark studies. Every headline and paragraph is editable in Appearance → Customize, the front page's own content (block editor) appears in an open text section, and a built-in contact box emails submissions to you.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yamd
Tags: one-page, landing-page, dark, custom-colors, custom-logo, editor-style
*/

:root {
	--yd-bg: #07000d;
	--yd-bg-2: #140929;
	--yd-surface: #1a1030;
	--yd-line: rgba(194, 184, 244, 0.16);
	--yd-text: #ece8fb;
	--yd-muted: #a79fc9;
	--yd-lavender: #c2b8f4;
	--yd-accent: #b171e8;
	--yd-accent-ink: #0b0414;
	--yd-radius: 14px;
	--yd-max: 1120px;
	--yd-font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--yd-font-display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--yd-bg);
	color: var(--yd-text);
	font-family: var(--yd-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--yd-lavender); }
a:hover { color: #fff; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.yd-wrap { width: min(var(--yd-max), 100% - 40px); margin-inline: auto; }

/* ---------- Wordmark styles (from the four Canva studies) ---------- */
.yd-wordmark { text-decoration: none; color: var(--yd-lavender); line-height: 1; display: inline-block; }
.yd-wm-serif    { font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -0.02em; }
.yd-wm-geo      { font-family: "Montserrat", sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.yd-wm-wide     { font-family: "Michroma", sans-serif; font-weight: 400; letter-spacing: 0.04em; }
.yd-wm-italic   { font-family: "Poppins", sans-serif; font-weight: 700; font-style: italic; letter-spacing: -0.02em; }

/* ---------- Header ---------- */
.yd-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(7, 0, 13, 0.82);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--yd-line);
}
.yd-header .yd-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.yd-header .yd-wordmark { font-size: 26px; }
.yd-header .custom-logo { max-height: 44px; width: auto; display: block; }
.yd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.yd-nav a { color: var(--yd-muted); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.yd-nav a:hover { color: var(--yd-lavender); }

/* ---------- Buttons ---------- */
.yd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
	font: 600 15px/1 var(--yd-font-body); letter-spacing: 0.02em;
	text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.yd-btn-primary { background: var(--yd-accent); color: var(--yd-accent-ink); }
.yd-btn-primary:hover { background: var(--yd-lavender); color: var(--yd-accent-ink); transform: translateY(-1px); }
.yd-btn-ghost { border-color: var(--yd-line); color: var(--yd-lavender); }
.yd-btn-ghost:hover { border-color: var(--yd-lavender); color: #fff; }

/* ---------- Hero ---------- */
.yd-hero {
	position: relative; overflow: hidden;
	padding: clamp(80px, 14vw, 160px) 0 clamp(70px, 10vw, 120px);
	background:
		radial-gradient(60% 70% at 85% 10%, rgba(177, 113, 232, 0.22), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgba(194, 184, 244, 0.10), transparent 70%),
		linear-gradient(180deg, var(--yd-bg-2), var(--yd-bg));
	background-size: cover; background-position: center;
}
.yd-hero.has-image::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(7,0,13,.55), rgba(7,0,13,.9));
}
.yd-hero .yd-wrap { position: relative; }
.yd-eyebrow {
	display: inline-block; margin: 0 0 22px; padding: 6px 14px;
	border: 1px solid var(--yd-line); border-radius: 999px;
	color: var(--yd-lavender); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.yd-hero-mark { font-size: clamp(64px, 13vw, 168px); margin: 0 0 18px; display: block; }
.yd-hero h1 {
	margin: 0 0 20px; max-width: 18ch;
	font-family: var(--yd-font-display); font-weight: 500;
	font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.015em; color: #fff;
}
.yd-hero .yd-lede { max-width: 56ch; color: var(--yd-muted); font-size: clamp(17px, 1.6vw, 20px); margin: 0 0 34px; }
.yd-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.yd-section { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--yd-line); }
.yd-section-head { max-width: 680px; margin-bottom: 44px; }
.yd-kicker { color: var(--yd-accent); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px; }
.yd-section h2 {
	font-family: var(--yd-font-display); font-weight: 500; color: #fff;
	font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; margin: 0 0 16px;
}
.yd-section-head p { color: var(--yd-muted); margin: 0; }

/* Free text / page content */
.yd-content { max-width: 760px; }
.yd-content > * + * { margin-top: 1.1em; }
.yd-content h2, .yd-content h3 { font-family: var(--yd-font-display); font-weight: 500; color: #fff; line-height: 1.2; }
.yd-content h3 { font-size: 26px; }
.yd-content blockquote { margin-left: 0; padding-left: 22px; border-left: 2px solid var(--yd-accent); color: var(--yd-lavender); font-family: var(--yd-font-display); font-size: 22px; }
.yd-content .alignwide { max-width: var(--yd-max); }

/* Feature cards */
.yd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.yd-card {
	background: linear-gradient(180deg, var(--yd-surface), rgba(26,16,48,.4));
	border: 1px solid var(--yd-line); border-radius: var(--yd-radius);
	padding: 30px 28px;
}
.yd-card-num { font-family: var(--yd-font-display); color: var(--yd-accent); font-size: 30px; line-height: 1; display: block; margin-bottom: 18px; }
.yd-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: #fff; }
.yd-card p { margin: 0; color: var(--yd-muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.yd-contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.yd-contact-meta { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.yd-contact-meta li { display: flex; flex-direction: column; }
.yd-contact-meta span { color: var(--yd-muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.yd-contact-meta a, .yd-contact-meta strong { color: var(--yd-lavender); font-weight: 500; text-decoration: none; font-size: 17px; }
.yd-form {
	background: var(--yd-surface); border: 1px solid var(--yd-line); border-radius: calc(var(--yd-radius) + 4px);
	padding: clamp(24px, 4vw, 40px);
	display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.yd-field { display: flex; flex-direction: column; gap: 8px; }
.yd-field.full { grid-column: 1 / -1; }
.yd-field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--yd-lavender); }
.yd-field input, .yd-field textarea {
	width: 100%; padding: 14px 16px; border-radius: 10px;
	background: var(--yd-bg); color: var(--yd-text);
	border: 1px solid var(--yd-line); font: 16px/1.4 var(--yd-font-body);
}
.yd-field textarea { min-height: 150px; resize: vertical; }
.yd-field input:focus, .yd-field textarea:focus { outline: none; border-color: var(--yd-accent); box-shadow: 0 0 0 3px rgba(177,113,232,.25); }
.yd-hp { position: absolute; left: -9999px; }
.yd-form .yd-btn { grid-column: 1 / -1; justify-self: start; }
.yd-notice { grid-column: 1 / -1; padding: 12px 16px; border-radius: 10px; font-size: 15px; margin: 0; }
.yd-notice.ok { background: rgba(177,113,232,.14); border: 1px solid rgba(177,113,232,.4); color: var(--yd-lavender); }
.yd-notice.err { background: rgba(255,110,130,.1); border: 1px solid rgba(255,110,130,.35); color: #ffb3c0; }

/* ---------- Footer ---------- */
.yd-footer { border-top: 1px solid var(--yd-line); padding: 36px 0; color: var(--yd-muted); font-size: 14px; }
.yd-footer .yd-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.yd-footer .yd-wordmark { font-size: 20px; }

/* ---------- Generic pages ---------- */
.yd-page { padding: clamp(56px, 8vw, 96px) 0; }
.yd-page h1 { font-family: var(--yd-font-display); font-weight: 500; color: #fff; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 28px; }
.yd-post + .yd-post { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--yd-line); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.yd-cards { grid-template-columns: 1fr; }
	.yd-contact-grid { grid-template-columns: 1fr; }
	.yd-nav { display: none; }
}
@media (max-width: 560px) {
	.yd-form { grid-template-columns: 1fr; }
	.yd-actions .yd-btn { flex: 1 1 100%; }
}
