/*
Theme Name:  Vukieuloan
Theme URI:   https://vukieuloan.com
Author:      Developer
Author URI:  https://vukieuloan.com
Description: Standalone theme for vukieuloan.com — Bio linktree & Book sales page for Vũ Kiều Loan. Self-contained, no external plugin dependencies.
Version:     1.0.6
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
Text Domain: vukieuloan
*/

/* Shared design system from the canonical static site */
:root {
  --color-primary: #8d1b0a;
  --color-primary-dark: #6b1308;
  --color-accent: #ffbd59;
  --color-accent-dark: #e5a840;
  --color-bg: #faf7f5;
  --color-bg-alt: #f2ede8;
  --color-fg: #1a1a1a;
  --color-fg-muted: #5a4a44;
  --color-muted: #e8e0dc;
  --color-border: #e2d8d5;
  --color-white: #ffffff;
  --font-heading: 'Philosopher', Georgia, serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(141, 27, 10, 0.08);
  --shadow-md: 0 4px 16px rgba(141, 27, 10, 0.12);
  --shadow-lg: 0 8px 32px rgba(141, 27, 10, 0.16);
  --transition: 200ms ease;
  --max-width: 1100px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-fg);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }

p { margin-bottom: var(--space-4); color: var(--color-fg-muted); }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-fg-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: var(--space-1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-6);
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-cta::after {
  display: none;
}

.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.site-footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2);
}

.site-footer-copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

.clv-order-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.clv-order-alert-success {
  background: rgba(52, 168, 83, 0.12);
  border: 1px solid rgba(52, 168, 83, 0.24);
  color: #1f6a37;
}

.clv-order-alert-error {
  background: rgba(217, 48, 37, 0.10);
  border: 1px solid rgba(217, 48, 37, 0.18);
  color: #9a1f18;
}

@media (max-width: 768px) {
  .nav-links {
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-header {
    position: relative;
  }
}
