/* Explain: Base reset and typography defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: inherit;
}

p {
    margin: 0;
    line-height: 1.85;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section {
    padding-block: 3.5rem;
}

@media (min-width: 1024px) {
    .section {
        padding-block: 5.5rem;
    }
}

.section--dark {
    background: radial-gradient(120% 90% at 80% 0%, #2c221b 0%, #17110e 55%, #0e0a08 100%);
    color: #f4e9d8;
}

.section--dark .lead,
.section--dark p {
    color: #d9c9b4;
}

.section--surface {
    background: var(--surface-color);
    border-block: 1px solid var(--border-color);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--accent-color);
}

.section--dark .eyebrow {
    color: var(--accent-color);
}

.h-title {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    margin-top: 0.6rem;
}

.lead {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.prose-thai p + p {
    margin-top: 1rem;
}

.prose-thai {
    color: var(--text-color);
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

#virtual-gallery {
    scroll-margin-top: 92px;
}