@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Unbounded:wght@200;400;500;900&display=swap");

:root {
    --primary: #000000 !important;
    --accent: #39ff14 !important;
    --accent-blue: #1b4dff;
    --accent-orange: #ff6a00;
    --accent-purple: #7c3cff;
    --background: #ffffff !important;
    --muted: #f4f4f1 !important;
    --ink-soft: rgba(0, 0, 0, .68) !important;
    --border: rgba(0, 0, 0, .14) !important;
    --shadow: 0 24px 80px rgba(0, 0, 0, .12) !important;
    --grid-max: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #000 #fafafa;
    scrollbar-width: auto;
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
    border-left: 1px solid #000;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border: 2px solid #fafafa;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px),
        #fff !important;
    background-size: calc((min(100vw, var(--grid-max)) - 48px) / 12) 100%;
    color: #000 !important;
    font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 17px;
    letter-spacing: -.01em;
}

a,
button {
    transition: color .24s ease, background .24s ease, border-color .24s ease, transform .24s ease, opacity .24s ease;
}

.nav-inner,
.section-inner,
.hero-inner,
.footer-inner,
.container {
    width: min(100% - 48px, var(--grid-max)) !important;
}

.site-nav {
    background: rgba(255, 255, 255, .9) !important;
    border-bottom: 1px solid #000 !important;
    backdrop-filter: blur(20px);
}

.brand,
.logo,
.topbar-logo-link {
    position: relative;
}

.brand::after,
.nav-inner > a:first-child::after {
    content: none !important;
}

.logo {
    max-height: 48px !important;
    filter: grayscale(1) contrast(1.2);
}

.topbar-logo-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.topbar-safa-logo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #0a0a0a;
    overflow: hidden;
}

.topbar-safa-logo-meta,
.topbar-safa-logo-tagline {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.topbar-safa-logo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-safa-logo-wordmark {
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(35px, 18vw, 35px);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: .85;
    text-transform: uppercase;
    padding-bottom: 3px;
}

.topbar-safa-logo-tagline {
    border-top: 1px solid currentColor;
    padding-top: 14px;
}

.nav-links {
    gap: 28px !important;
    font-size: .86rem;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent-blue) !important;
}

.button,
.button-primary,
.button-accent,
.login-button,
.auth-submit {
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    background: #000 !important;
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.button:hover,
.login-button:hover,
.auth-submit:hover {
    background: var(--accent) !important;
    color: #000 !important;
    transform: translateY(-2px);
}

.button-outline {
    background: transparent !important;
    color: #000 !important;
}

.button-outline:hover {
    background: #000 !important;
    color: #fff !important;
}

.hero,
.page-header {
    background: #000 !important;
    color: #fff !important;
}

.hero {
    min-height: 760px !important;
}

.hero-inner,
.detail-layout,
.programme-shell,
.layout,
.contact-grid,
.footer-grid,
.partners-grid {
    display: grid;
    gap: 32px !important;
}

.hero h1,
.page-header h1,
.hero .section-title,
h1,
.date-title {
    font-weight: 800 !important;
    letter-spacing: -.085em !important;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(5rem, 13vw, 7rem) !important;
    line-height: .78 !important;
}

.page-header h1,
.hero h1,
.section-title,
.date-title {
    text-wrap: balance;
}

.hero-copy,
.section-subtitle,
.page-header p,
.content-card p,
.card p,
.programme-item p,
.directory-card p {
    color: var(--ink-soft) !important;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7 !important;
}

.hero .hero-copy,
.page-header p {
    color: rgba(255, 255, 255, .72) !important;
}

.section {
    padding: 112px 0 !important;
}

.section-primary {
    background: #000 !important;
    color: #fff !important;
}

.section-primary .section-subtitle,
.section-primary p {
    color: rgba(255, 255, 255, .72) !important;
}

.faq-safa-section {
    background: #fff !important;
    color: #000;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.faq-safa-inner {
    width: min(100% - 48px, var(--grid-max));
    margin-inline: auto;
    padding: 112px 0;
}

.faq-safa-title {
    margin: 0 0 56px;
    color: #000;
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    letter-spacing: -.085em;
    line-height: .86;
    text-align: left;
    text-transform: uppercase;
}

.faq-safa-accordion {
    display: grid;
    gap: 0;
    border-top: 1px solid #000;
}

.faq-safa-item {
    border-bottom: 1px solid #000;
    background: #fff;
}

.faq-safa-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    list-style: none;
    color: #000;
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
    padding: 28px 0;
    text-align: left;
    text-transform: uppercase;
}

.faq-safa-summary::-webkit-details-marker {
    display: none;
}

.faq-safa-summary span:first-child {
    flex: 1;
}

.faq-safa-icon {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #000;
}

.faq-safa-icon::before,
.faq-safa-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #000;
    transform: translate(-50%, -50%);
}

.faq-safa-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-safa-item[open] .faq-safa-icon::after {
    display: none;
}

.faq-safa-content {
    max-width: 920px;
    padding: 0 0 28px;
}

.faq-safa-content p {
    margin: 0;
    color: rgba(0, 0, 0, .68) !important;
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 500;
    line-height: 1.7 !important;
    text-align: left;
}

.safa-newsletter-strip {
    width: 100%;
    min-height: 98px;
    display: grid !important;
    grid-template-columns: minmax(180px, 260px) minmax(280px, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
    margin: 0 !important;
    padding: 0 clamp(16px, 3vw, 44px);
    background: #e21b10 !important;
    color: #fff !important;
    border-top: 1px solid #000;
    border-bottom: 1px solid rgba(0, 0, 0, .18);
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

.safa-newsletter-title {
    margin: 0;
    color: #fff !important;
    font-size: clamp(1.45rem, 2.2vw, 1.72rem);
    font-weight: 800 !important;
    letter-spacing: -.055em;
    line-height: .95;
    white-space: nowrap;
}

.safa-newsletter-copy {
    margin: 0;
    color: #fff !important;
    max-width: 640px;
    font-size: clamp(.82rem, 1vw, .95rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.25 !important;
}

.safa-newsletter-form {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0 0 7px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .74);
}

.safa-newsletter-form input {
    width: 100%;
    min-height: 32px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font: inherit;
    font-size: .96rem;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    outline: none;
    box-shadow: none !important;
}

.safa-newsletter-form input::placeholder {
    color: #fff !important;
    opacity: 1;
}

.safa-newsletter-form button {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
    font: inherit;
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1;
    padding: 0;
    box-shadow: none !important;
}

.safa-newsletter-form button:hover {
    transform: translateX(4px);
}

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

.section-kicker {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 56px !important;
}

.section-title {
    grid-column: span 7;
    margin: 0 !important;
    font-size: clamp(3rem, 8vw, 8rem) !important;
    line-height: .86 !important;
}

.section-subtitle {
    grid-column: 9 / -1;
    align-self: end;
}

.cards-grid,
.images-grid,
.directory-grid,
.partners-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.program-card,
.artist-card,
.image-card,
.directory-card,
.partner-group,
.content-card,
.info-card,
.card,
.filters {
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
}

.program-card,
.artist-card {
    grid-column: span 4;
}

.image-card-wrapper,
.image-card {
    grid-column: span 4;
}

.directory-card,
.partner-group {
    grid-column: span 6;
}

.program-card:hover,
.artist-card:hover,
.image-card:hover,
.directory-card:hover,
.card:hover {
    transform: translateY(-6px);
    box-shadow: 10px 10px 0 #000 !important;
}

.art-card-media,
.image-art,
.programme-thumbnail,
.card-media,
.main-photo,
.photo-fallback {
    border-radius: 0 !important;
    filter: saturate(.9) contrast(1.05);
}

.art-card-media::before,
.image-art,
.programme-thumbnail,
.card-media-fallback,
.photo-fallback {
    background:
        radial-gradient(circle at 18% 22%, var(--accent) 0 12%, transparent 13%),
        radial-gradient(circle at 82% 18%, var(--accent-blue) 0 15%, transparent 16%),
        radial-gradient(circle at 70% 78%, var(--accent-purple) 0 18%, transparent 19%),
        linear-gradient(135deg, #000 0 42%, #fff 42% 58%, var(--accent-orange) 58% 100%) !important;
}

.day,
.badge,
.chip,
.directory-type,
.label,
.partner-label {
    border-radius: 0 !important;
    font-weight: 800 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
}

.badge,
.chip {
    border: 1px solid #000 !important;
}

.chip:nth-child(4n + 1),
.badge {
    background: var(--accent) !important;
    color: #000 !important;
}

.chip:nth-child(4n + 2) {
    background: var(--accent-blue) !important;
    color: #fff !important;
}

.chip:nth-child(4n + 3) {
    background: var(--accent-orange) !important;
    color: #000 !important;
}

.chip:nth-child(4n) {
    background: var(--accent-purple) !important;
    color: #fff !important;
}

.programme-item {
    border-bottom: 1px solid #000 !important;
}

.programme-row {
    border-bottom: 0;
}

.add-programme-button,
.remove {
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 5px 5px 0 #000 !important;
}

.add-programme-button:hover,
.remove:hover {
    background: var(--accent-blue) !important;
    color: #fff !important;
}

.map-view,
.google-map,
.empty,
.empty-state {
    border-radius: 0 !important;
    border-color: #000 !important;
}

.footer {
    background: #000 !important;
    color: #fff !important;
}

@media (max-width: 980px) {
    body {
        background-size: 24px 100%;
    }

    .nav-inner,
    .section-inner,
    .hero-inner,
    .footer-inner,
    .container {
        width: min(100% - 32px, var(--grid-max)) !important;
    }

    .safa-newsletter-strip {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 24px;
    }

    .section-kicker,
    .cards-grid,
    .images-grid,
    .directory-grid,
    .partners-grid {
        grid-template-columns: 1fr !important;
    }

    .section-title,
    .section-subtitle,
    .program-card,
    .artist-card,
    .image-card-wrapper,
    .image-card,
    .directory-card,
    .partner-group {
        grid-column: auto !important;
    }

    .hero {
        min-height: 620px !important;
    }

    .hero h1 {
        font-size: clamp(4.2rem, 22vw, 8rem) !important;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        min-height: 72px !important;
    }

    .hero,
    .page-header {
        margin-top: 72px !important;
    }

    .section {
        padding: 80px 0 !important;
    }
}
