:root {
    --color-bg: #fffaf3;
    --color-primary: #c8385a;
    --color-accent: #f2a541;
    --color-text: #2e2620;
    --color-thai: #2e7d5b;
    --max-width: 720px;
}

* { box-sizing: border-box; }

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

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

/* Header */
.site-header {
    padding: 16px 0;
    background: #fff;
    border-bottom: 3px solid var(--color-accent);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
    text-decoration: none;
}
.site-header nav a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 16px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 0 20px;
}
.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.hero h1 {
    margin: 20px 0 6px;
    font-size: 1.6rem;
    color: var(--color-primary);
}
.hero-sub {
    color: var(--color-thai);
    font-weight: 600;
    font-size: 1.05rem;
}

/* About */
.about {
    padding: 20px 0;
}
.about h2 {
    color: var(--color-primary);
}

/* Gallery */
.gallery { padding: 10px 0 20px; }
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
}

/* Social buttons */
.social {
    padding: 20px 0;
    text-align: center;
}
.social h2 { color: var(--color-primary); }
.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: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    box-sizing: border-box;
}
.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-kofi { background: #ff5e5b; margin-top: 12px; width: 100%; }

.support-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #fdf1e0;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.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: #8a7f72;
}
.legal-note {
    background: #fdf1e0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #8a5a1c;
}

/* Support */
.support {
    padding: 30px 0 50px;
    text-align: center;
}
.support h2 { color: var(--color-primary); }
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
.support-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.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; }

/* 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);
    }
}
