/* =========================================================
   Plaka Art Night — styles
   Palette: parchment / ink / stone / Pompeii red
   Type: Cormorant Garamond (display) + Inter (body)
   ========================================================= */

:root {
    --parchment: #F2ECDF;
    --parchment-deep: #E8E0CF;
    --ink: #1A1814;
    --stone: #7A7166;
    --stone-soft: #B5AC9F;
    --red: #8C2F2F;
    --red-deep: #6F2424;

    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --max-prose: 640px;
    --max-page: 1200px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 12rem;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--parchment);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--red);
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: var(--ink);
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: -0.02em;
    line-height: 1;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

p {
    margin: 0 0 1.25em;
}

.eyebrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 1.5rem;
}

.pull-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--ink);
    border-left: 2px solid var(--red);
    padding-left: 1.25rem;
    margin: 2rem 0;
}

.attribution {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.85rem;
    color: var(--stone);
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
}

.fine-print {
    font-size: 0.85rem;
    color: var(--stone);
}

/* ---------- Buttons & links ---------- */
.btn-primary,
.btn-secondary {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1.1rem 2.2rem;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--ink);
    color: var(--parchment);
}

.btn-primary:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--parchment);
}

.btn-secondary:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--parchment);
}

.link-quiet {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--ink);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.link-quiet:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ---------- RSVP corner (desktop) ---------- */
.rsvp-corner {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 50;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 0.6rem 1rem;
    background: rgba(242, 236, 223, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--ink);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
    pointer-events: none;
}

.rsvp-corner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.rsvp-corner:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--parchment);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    place-items: center;
    padding: var(--space-lg) var(--space-md);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 65% at center, rgba(20, 18, 14, 0.72) 0%, rgba(20, 18, 14, 0.55) 55%, rgba(20, 18, 14, 0.35) 100%),
        url('assets/hero-gallery.jpg') center / cover no-repeat;
    display: grid;
    place-items: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--parchment);
    max-width: 760px;
}

.hero-content .eyebrow {
    color: var(--parchment);
    opacity: 0.9;
}

.hero-content h1 {
    color: var(--parchment);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lede {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.5;
    color: var(--parchment);
    opacity: 1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero-meta {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--parchment);
    opacity: 0.88;
    margin-bottom: 2.5rem;
}

.hero .btn-primary {
    background: var(--parchment);
    color: var(--ink);
    border-color: var(--parchment);
}

.hero .btn-primary:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--parchment);
}

/* ---------- Placeholder image blocks ---------- */
.placeholder-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--parchment);
    opacity: 0.55;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.7rem;
    border-radius: 2px;
}

/* ---------- Section wrappers ---------- */
.invitation,
.evening {
    padding: var(--space-xl) var(--space-md);
}

.prose {
    max-width: var(--max-prose);
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.75;
}

.prose .eyebrow {
    text-align: left;
}

/* ---------- Flower divider ---------- */
.flower-divider {
    display: block;
    width: 16px;
    height: 16px;
    margin: var(--space-md) auto;
    background: var(--red);
    -webkit-mask: radial-gradient(circle at center, transparent 30%, black 30%, black 35%, transparent 35%),
                  radial-gradient(circle at center, black 18%, transparent 18%);
    -webkit-mask-composite: source-over;
    mask: radial-gradient(circle at center, transparent 30%, black 30%, black 35%, transparent 35%),
          radial-gradient(circle at center, black 18%, transparent 18%);
    opacity: 0.85;
    position: relative;
}

.flower-divider::before {
    content: "❋";
    color: var(--red);
    font-size: 1rem;
    line-height: 16px;
    display: block;
    text-align: center;
    background: var(--parchment);
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* ---------- Section header (Meet the artists) ---------- */
.artists-section {
    padding-top: var(--space-lg);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-md);
}

.section-header .eyebrow {
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
}

.artists-section .house {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

/* ---------- The houses ---------- */
.house {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: var(--max-page);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    align-items: center;
}

.house-reverse .house-image {
    order: 2;
}

.house-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, var(--parchment-deep) 0%, #DCD3C0 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.house-image--photo {
    aspect-ratio: 8 / 5;
    background: none;
}

.house-image--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.house-content h2 {
    margin-bottom: 0.5rem;
}

.house-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--stone);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* ---------- Private viewings ---------- */
.private {
    background: var(--ink);
    color: var(--parchment);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.private-inner {
    max-width: var(--max-prose);
    margin: 0 auto;
}

.private h2 {
    color: var(--parchment);
}

.private .eyebrow {
    color: var(--parchment);
    opacity: 0.6;
}

.private p {
    color: var(--parchment);
    opacity: 0.85;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.private .btn-secondary {
    border-color: var(--parchment);
    color: var(--parchment);
}

.private .btn-secondary:hover {
    background: var(--red);
    border-color: var(--red);
}

.private .fine-print {
    margin-top: 1.5rem;
    color: var(--parchment);
    opacity: 0.55;
}

/* ---------- Details & RSVP ---------- */
.details {
    padding: var(--space-xl) var(--space-md);
    max-width: var(--max-page);
    margin: 0 auto;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.details-list {
    margin: 0 0 2.5rem;
    padding: 0;
}

.details-list dt {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--stone);
    margin-top: 1.25rem;
}

.details-list dt:first-child {
    margin-top: 0;
}

.details-list dd {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin: 0.25rem 0 0;
    color: var(--ink);
    line-height: 1.4;
}

.details-list dd .fine-print {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.details-map {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(122, 113, 102, 0.18) 38px, rgba(122, 113, 102, 0.18) 39px),
        repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(122, 113, 102, 0.18) 38px, rgba(122, 113, 102, 0.18) 39px),
        var(--parchment-deep);
    display: grid;
    place-items: center;
}

.details-map::after {
    content: "";
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(140, 47, 47, 0.4);
}

/* ---------- Mailing list ---------- */
.mailing {
    background: var(--parchment-deep);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.mailing-inner {
    max-width: 540px;
    margin: 0 auto;
}

.mailing h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 2rem;
}

.mailing-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mailing-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    border: 1px solid var(--stone-soft);
    background: var(--parchment);
    color: var(--ink);
    transition: border-color 0.2s ease;
}

.mailing-form input:focus {
    outline: none;
    border-color: var(--red);
}

.mailing-form button {
    padding: 1rem 1.75rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--parchment);
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.mailing-form button:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: var(--parchment);
    padding: var(--space-lg) var(--space-md) var(--space-md);
}

.footer-inner {
    max-width: var(--max-page);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--parchment);
}

.footer-credit .fine-print {
    color: var(--parchment);
    opacity: 0.55;
    margin: 0;
    max-width: 380px;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    align-items: flex-end;
}

.footer-links a {
    color: var(--parchment);
    opacity: 0.8;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--parchment);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--red);
}

.footer-link-orlik {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.footer-mark {
    height: 64px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.footer-link-orlik:hover .footer-mark {
    opacity: 1;
}

.footer-link-orlik:hover {
    text-decoration: none;
}

.footer-link-orlik span {
    display: inline-block;
}

.footer-link-orlik:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--red);
}

/* ---------- Mobile sticky RSVP ---------- */
.rsvp-sticky {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 60;
    background: var(--ink);
    color: var(--parchment);
    text-align: center;
    padding: 1rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.rsvp-sticky.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ---------- Scroll-fade utility ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .house,
    .details-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .house-reverse .house-image {
        order: 0;
    }

    .invitation,
    .evening,
    .private,
    .details,
    .mailing,
    .house {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    .hero {
        min-height: 80vh;
    }

    .mailing-form {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rsvp-corner {
        display: none;
    }

    .rsvp-sticky {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
