:root {
    color-scheme: light;
    --ink: #2b2430;
    --muted: #6f6572;
    --rose: #b63367;
    --rose-dark: #8f2450;
    --cream: #fff9f5;
    --line: #eadfe4;
    font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}

a { color: inherit; }

.site-header {
    min-height: 116px;
    padding: 12px clamp(20px, 6vw, 88px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; width: clamp(190px, 18vw, 250px); height: 88px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }
.site-header nav a { text-decoration: none; font-size: .95rem; }
.site-header nav button { border: 0; font: inherit; font-size: .95rem; cursor: pointer; }
.site-header nav .logout-form { margin: 0; }
.site-header nav .nav-user { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 650; }
.site-header nav .nav-user img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.site-header nav .social-link { display: inline-flex; align-items: center; gap: 7px; }
.site-header nav .social-link i { color: var(--rose); font-size: 1.18rem; }
.site-header nav a:hover { color: var(--rose); }
.site-header .nav-login { padding: 8px 0; color: var(--ink); background: transparent; }
.site-header .nav-login:hover { color: var(--rose); }
.site-header .nav-cta { color: #fff; background: var(--rose); padding: 10px 17px; border-radius: 999px; font-weight: 700; }
.site-header .nav-cta:hover, .button:hover { color: #fff; background: var(--rose-dark); }

.showcase {
    padding: 56px clamp(22px, 7vw, 104px) 64px;
    display: grid;
    grid-template-columns: minmax(280px, .86fr) minmax(380px, 1.14fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    background: linear-gradient(115deg, #fff0f3 0%, #fff8f2 64%, #f9e8ed 100%);
}

.community-feature { max-width: 520px; }
.eyebrow { margin: 0 0 10px; color: var(--rose); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.community-feature h1 { max-width: 520px; margin-bottom: 16px; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; }
.intro { max-width: 500px; margin-bottom: 24px; color: var(--muted); font-size: 1.08rem; }
.button { display: inline-block; padding: 12px 20px; color: #fff; background: var(--rose); border: 0; border-radius: 999px; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }

.featured-event { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 45px #4c26300f; }
.event-photo { position: relative; display: grid; place-items: center; overflow: hidden; color: #8b707b; background: repeating-linear-gradient(135deg, #f2e6e9, #f2e6e9 12px, #f8eff0 12px, #f8eff0 24px); font-size: .9rem; }
.event-photo-featured { min-height: 275px; }
.event-badge { position: absolute; top: 18px; left: 18px; padding: 7px 12px; color: #fff; background: var(--rose); border-radius: 999px; font-size: .76rem; font-weight: 700; }
.featured-event-copy { padding: 22px 26px 24px; }
.featured-event-copy h2 { margin-bottom: 8px; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.15; }
.featured-event-copy > p:last-child { margin-bottom: 0; color: var(--muted); }

.content-section { padding: 64px clamp(22px, 7vw, 104px); }
.section-heading h2, .join-section h2 { margin-bottom: 26px; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.1; }
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.event-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.event-photo-small { min-height: 150px; }
.event-card-copy { padding: 18px; }
.event-card-copy .eyebrow { margin-bottom: 7px; font-size: .68rem; }
.event-card-copy h3 { margin-bottom: 5px; font-size: 1.1rem; line-height: 1.25; }
.event-card-copy > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.empty-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.empty-card p { margin: 0; }
.join-section { padding: 48px clamp(22px, 7vw, 104px); display: flex; justify-content: space-between; align-items: center; gap: 32px; background: #f7e7ed; }
.join-section h2 { margin-bottom: 0; }
.join-section > p { max-width: 330px; margin: 0; color: var(--muted); }
.site-footer { padding: 24px; text-align: center; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }

.auth-modal { width: min(100% - 32px, 460px); max-width: 460px; max-height: min(90vh, 760px); padding: 0; overflow: visible; color: var(--ink); background: transparent; border: 0; }
.auth-modal::backdrop { background: #241922a8; backdrop-filter: blur(3px); }
.auth-modal-card { position: relative; max-height: min(90vh, 760px); overflow-y: auto; padding: clamp(26px, 6vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 80px #1d10194d; }
.auth-modal-card > .eyebrow { margin-bottom: 8px; }
.auth-modal-card h2 { margin: 0 38px 8px 0; font-size: 2rem; line-height: 1.1; letter-spacing: -.035em; }
.auth-description { margin-bottom: 22px; color: var(--muted); }
.auth-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); background: #f8f2f4; border: 0; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.auth-close:hover { color: var(--ink); background: #f1e4e9; }
.google-auth, .auth-submit { width: 100%; min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 10px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.google-auth { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.google-auth i { font-size: 1.1rem; }
.google-auth:hover { background: #fcf8f9; border-color: #d8c6ce; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: .83rem; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; color: var(--ink); font-size: .9rem; font-weight: 650; }
.auth-field[hidden] { display: none; }
.auth-field input { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #d9cdd2; border-radius: 9px; font: inherit; font-weight: 400; }
.auth-field input:focus { outline: 3px solid #b6336726; border-color: var(--rose); }
.auth-submit { margin-top: 4px; color: #fff; background: var(--rose); border: 0; }
.auth-submit:hover { background: var(--rose-dark); }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-switch button { padding: 4px; color: var(--rose-dark); background: transparent; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.auth-switch button:hover { text-decoration: underline; }
.auth-feedback { margin: 0; padding: 10px 12px; color: var(--rose-dark); background: #fff0f4; border-radius: 8px; font-size: .9rem; }
.auth-feedback[hidden] { display: none; }

@media (max-width: 900px) {
    .showcase { grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); }
    .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .site-header nav { width: 100%; flex-wrap: wrap; }
    .showcase { grid-template-columns: 1fr; padding-top: 38px; }
    .event-photo-featured { min-height: 220px; }
    .content-section { padding-top: 48px; padding-bottom: 48px; }
    .event-grid { gap: 14px; }
    .event-photo-small { min-height: 120px; }
    .event-card-copy { padding: 14px; }
    .join-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
    .event-grid { grid-template-columns: 1fr; }
}
