/* ============================================================
   Font Pairer — Purple Haze palette
   ============================================================ */

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

:root {
    --bg:          #f8f4ff;
    --headline:    #1a1a2e;
    --sub:         #4a4a6a;
    --accent:      #a78bfa;
    --secondary:   #fbbf24;
    --highlight:   #f472b6;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--headline);
    line-height: 1.6;
}

/* ================ NAVBAR ================ */
.navbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 1.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 10;
}

.nav-logo {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 900;
    font-style: italic;
    color: var(--headline);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 10px; height: 10px;
    background: var(--highlight);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--headline);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-link:hover { opacity: 1; }

/* ================ HERO ================ */
.hero {
    min-height: 45vh;
    padding: 0 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.deco-letter {
    position: absolute;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    opacity: 0.08;
}

.deco-1 {
    top: 10%; right: 5%;
    font-size: 20rem;
    color: var(--accent);
}

.deco-2 {
    bottom: 15%; left: 8%;
    font-size: 15rem;
    color: var(--highlight);
}

.deco-3 {
    top: 60%; right: 25%;
    font-size: 12rem;
    color: var(--secondary);
}

.deco-4 {
    bottom: 40%; right: 12%;
    font-size: 18rem;
    color: var(--accent);
}

.hero-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--highlight);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--headline);
    margin-bottom: 1.5rem;
}

.hero-content h1 em {
    font-style: italic;
}

.hero-accent {
    color: var(--highlight);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--sub);
    line-height: 1.75;
}

/* ================ CONTROLS ================ */
.controls {
    padding: 4rem 3rem;
    background: var(--headline);
    position: relative;
}

.controls::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--bg) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.08;
    pointer-events: none;
}

.controls-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.control-group {
    text-align: center;
}

.control-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.vibe-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.vibe-btn {
    background: var(--bg);
    color: var(--headline);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vibe-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.vibe-btn.active {
    background: var(--highlight);
    color: var(--bg);
}

/* ================ PREVIEW ================ */
.preview {
    padding: 8rem 3rem;
    background: var(--bg);
}

.preview-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.preview-header h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--headline);
}

.preview-header h2 em {
    font-style: italic;
    color: var(--secondary);
}

.copy-css-btn {
    background: var(--headline);
    color: var(--bg);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-css-btn:hover {
    background: var(--sub);
}

.preview-content {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    border: 3px solid var(--headline);
    box-shadow: 8px 8px 0 var(--secondary);
}

.preview-sample {
    margin-bottom: 2rem;
}

.preview-heading {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.preview-body {
    font-size: 1.25rem;
    line-height: 1.7;
}

.font-info {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(3,49,46,0.1);
}

.font-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.font-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sub);
}

.font-info-value {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    font-style: italic;
    color: var(--headline);
}

/* ================ FOOTER ================ */
.footer {
    padding: 3rem;
    text-align: center;
    background: var(--headline);
    color: var(--bg);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.9;
}

.footer a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* ================ RESPONSIVE ================ */
@media (max-width: 768px) {
    .navbar { padding: 1.25rem 1.5rem; }
    .hero { padding: 0 1.5rem; height: auto; min-height: 100vh; padding-top: 6rem; padding-bottom: 4rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { display: none; }
    .controls { padding: 3rem 1.5rem; }
    .preview { padding: 5rem 1.5rem; }
    .preview-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .font-info { flex-direction: column; gap: 1.5rem; }
}
