/* Premium wedding — shared styles. Tokens and visuals will be refined per Pinterest refs. */

:root {
    --color-bg: #fafaf8;
    --color-text: #1a1a1a;
    --color-text-muted: #5c5c5c;
    --color-border: #e8e6e1;
    --color-accent: #2c2c2c;
    --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --max-content: 72rem;
    --header-height: auto;
    /* Premium wedding palette (home + subpages) */
    --page-cream: #f9f7f2;
    --page-ink: #2e2620;
    --page-ink-muted: #5c4f45;
    --page-sage: #4a5d3f;
    --page-gold: #a67c2a;
    --page-gold-soft: #c9a227;
    --page-maroon: #5a1a2e;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html {
        overflow-x: hidden;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
}

a:hover {
    opacity: 0.85;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Site chrome ——— */

.site-header {
    border-bottom: 1px solid var(--color-border);
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
    background: var(--color-bg);
}

.site-header__inner {
    max-width: var(--max-content);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    width: 100%;
    min-width: 0;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.site-main {
    flex: 1;
    width: 100%;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: var(--color-bg);
}

.site-footer__inner {
    max-width: var(--max-content);
    margin: 0 auto;
}

/* ——— Placeholder sections (replace layout/styles per screenshot) ——— */

.section {
    padding: 3rem 1.25rem;
}

@media (max-width: 480px) {
    .section {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: calc(0.875rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.875rem + env(safe-area-inset-right, 0px));
    }
}

.section__inner {
    max-width: var(--max-content);
    margin: 0 auto;
}

.section--hero {
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.section__lead {
    color: var(--color-text-muted);
    max-width: 36rem;
    margin: 0 auto;
}

.section__subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section__placeholder {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
