:root {
    --color-bg: #fff6e9;
    --color-primary: #ff8aa3;
    --color-accent: #ffc94d;
    --color-mint: #7fd8bc;
    --color-text: #5a4a3f;
    --color-thai: #4a9d7f;
    --max-width: 720px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Mali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 16px 0;
    background: #fff;
    border-bottom: none;
    box-shadow: 0 2px 0 var(--color-accent);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: block;
    text-decoration: none;
    line-height: 1.3;
}
.logo-thai {
    display: block;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
}
.logo-sub {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-thai);
    letter-spacing: 0.02em;
}
.site-header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 6px;
}
.site-header nav a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 16px;
    font-weight: 600;
}

/* Hero */
.hero {
    text-align: center;
    padding: 44px 0 24px;
    position: relative;
}
.hero-photo-wrap {
    position: relative;
    display: inline-block;
}
.hero-photo-wrap::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 4px dashed var(--color-mint);
    animation: spin 40s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 6px 18px rgba(255,138,163,0.35);
    position: relative;
}
.hero-sticker {
    position: absolute;
    font-size: 1.8rem;
}
.hero-sticker.star1 { top: -6px; right: -2px; }
.hero-sticker.star2 { bottom: 4px; left: -14px; }
.hero h1 {
    margin: 24px 0 8px;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-primary);
}
.hero-sub {
    color: var(--color-thai);
    font-weight: 600;
    font-size: 1.1rem;
}

/* About */
.about {
    padding: 24px 0;
}
.about h2 {
    color: var(--color-primary);
    font-size: 1.4rem;
}

/* Gallery */
.gallery { padding: 10px 0 24px; }
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    aspect-ratio: 1 / 1;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(90,74,63,0.12);
}

/* Social buttons */
.social {
    padding: 20px 0;
    text-align: center;
}
.social h2 { color: var(--color-primary); font-size: 1.4rem; }
.button-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    box-sizing: border-box;
    border: 3px solid #fff;
    box-shadow: 0 4px 0 rgba(90,74,63,0.15);
    transition: transform 0.15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    display: block;
}
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.btn-secondary {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.95rem;
}
.btn-facebook { background: #1877f2; }
.btn-instagram { background: #c1327a; }
.btn-tiktok { background: #010101; }
.btn-youtube { background: #ff0000; }
.btn-kofi { background: #ff5e5b; margin-top: 12px; width: 100%; }

.support-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #fff1cf;
    color: #e0982a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(90,74,63,0.12);
}
.support-icon svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    display: block;
}
.support-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: #a8998a;
}
.legal-note {
    background: #fff1cf;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #8a5a1c;
}

/* Support */
.support {
    padding: 30px 0 50px;
    text-align: center;
}
.support h2 { color: var(--color-primary); font-size: 1.4rem; }
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
.support-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    border: 3px solid #ffe6ec;
}
.support-card h3 {
    margin-top: 0;
    color: var(--color-thai);
}
.qr-code {
    width: 160px;
    height: 160px;
    max-width: 100%;
    object-fit: contain;
    margin: 10px auto;
    display: block;
}
.qr-placeholder {
    width: 160px;
    height: 160px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 10px auto;
    border: 2px dashed #d8cdbe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #a89a86;
    font-size: 0.85rem;
    box-sizing: border-box;
}

/* Legal pages */
.legal-page { padding: 30px 0 60px; }
.legal-page h1 { color: var(--color-primary); }
.legal-page h2 { font-size: 1.1rem; margin-top: 28px; }
.legal-thai {
    color: var(--color-thai);
    font-size: 0.92rem;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e6d9c8;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 3px solid var(--color-accent);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-nav a {
    color: var(--color-text);
    text-decoration: none;
    margin: 0 8px;
}

@media (min-width: 500px) {
    .support-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
