/* ==========================================================================
   Sanctuary Arts ATL
   Single stylesheet for the whole site.
   Brand: magenta #EA0676 / yellow #F7E955 / blue #3053AF, PT Sans.
   ========================================================================== */
:root {
    --magenta: #EA0676;
    --magenta-dark: #C00560;
    --yellow: #F7E955;
    --blue: #3053AF;
    --ink: #17141A;
    --body: #45414B;
    --muted: #6E6975;
    --rule: #E6E1E8;
    --tint: #FDF4F8;
    --paper: #FFFFFF;
    --ground: #FAF8FA;
    --wrap: 1080px;
    --gap: clamp(1.25rem, 4vw, 2.5rem);
    --sect: clamp(3.5rem, 9vw, 6rem);
    --radius: 10px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .btn:hover,
    .btn:focus-visible {
        transform: none !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem);
    letter-spacing: -.015em;
}

h3 {
    font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.4375rem);
}

p {
    margin: 0 0 1.15em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--magenta);
    text-underline-offset: .18em;
    text-decoration-thickness: .08em;
}

a:hover {
    color: var(--magenta-dark);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gap);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radius) 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* --- Header / navigation ------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    flex-shrink: 0;
    text-decoration: none;
}

.brand img {
    height: 40px;
    width: auto;
}

.brand-name {
    color: var(--ink);
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.brand:hover .brand-name {
    color: var(--magenta);
}

@media (max-width: 400px) {
    .brand-name {
        font-size: .9375rem;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-size: .9375rem;
    padding: .5rem .8rem;
    cursor: pointer;
    align-items: center;
    gap: .5rem;
}

.nav-toggle:hover {
    border-color: var(--magenta);
    color: var(--magenta);
}

.nav-toggle svg {
    display: block;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(.5rem, 1.6vw, 1.5rem);
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: .4rem 0;
    color: var(--ink);
    text-decoration: none;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .01em;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    color: var(--magenta);
    border-bottom-color: var(--magenta);
}

.site-nav a[aria-current="page"] {
    color: var(--magenta);
    border-bottom-color: var(--magenta);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-header .wrap {
        flex-wrap: wrap;
    }

    .site-nav {
        flex-basis: 100%;
        display: none;
        border-top: 1px solid var(--rule);
        padding-block: .5rem 1rem;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav a {
        padding: .7rem 0;
        border-bottom: 1px solid var(--rule);
    }

    .site-nav li:last-child a {
        border-bottom: 0;
    }

    .site-nav a:hover,
    .site-nav a[aria-current="page"] {
        border-bottom-color: var(--rule);
    }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    background: var(--magenta);
    color: #fff;
    padding-block: clamp(2.25rem, 5.5vw, 4rem);
    text-align: center;
}

/* The lockup swaps orientation at 700px (see the <picture> in index.html):
   horizontal above, so the hero stays short on desktop; vertical below, where
   there is height to spare and a wide lockup would render the wordmark tiny.
   aspect-ratio is set per breakpoint so neither swap causes layout shift. */
.hero-lockup {
    margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
}

.hero-lockup img {
    margin-inline: auto;
    width: clamp(400px, 72vw, 800px);
    aspect-ratio: 1887 / 520;
    height: auto;
}

@media (max-width: 699px) {
    .hero-lockup img {
        width: min(58vw, 250px);
        aspect-ratio: 819 / 1088;
    }
}

.hero h1 {
    color: #fff;
    margin-bottom: .35em;
}

.hero .tagline {
    font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem);
    color: var(--yellow);
    font-weight: 700;
    margin: 0;
}

/* Compact hero for interior pages */
.hero--page {
    padding-block: clamp(2.5rem, 6vw, 3.75rem);
}

.hero--page h1 {
    margin-bottom: 0;
}

.hero--page .tagline {
    margin-top: .5rem;
}

/* --- Sections ------------------------------------------------------------ */
main {
    flex: 1 0 auto;
}

.section {
    padding-block: var(--sect);
}

.section--tint {
    background: var(--tint);
}

.section--ground {
    background: var(--ground);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head.is-centered {
    margin-inline: auto;
    text-align: center;
}

.section-head p {
    color: var(--muted);
    font-size: 1.0625em;
    margin-bottom: 0;
}

.eyebrow {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: .75rem;
}

.prose {
    max-width: 44rem;
}

.prose.is-centered {
    margin-inline: auto;
}

.lead {
    font-size: clamp(1.1875rem, 1.05rem + .7vw, 1.5rem);
    color: var(--ink);
    line-height: 1.5;
}

/* --- Mission / vision ---------------------------------------------------- */
.duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: clamp(1.5rem, 4vw, 2.75rem);
}

/* Two peer items, so the pair reads magenta + blue. */
.duo > div {
    border-left: 4px solid var(--magenta);
    padding-left: clamp(1.25rem, 3vw, 1.75rem);
}

.duo > div:nth-child(2) {
    border-left-color: var(--blue);
}

.duo h2 {
    font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
}

.duo p {
    margin-bottom: 0;
}

/* --- Card grid ----------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

/* One base rule. Each colour variant overrides a single custom property,
   so a new accent colour is one line — no repeated box styles.
   Usage: <article class="card card--blue"> */
.card {
    --accent: var(--magenta);
    position: relative;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    border-top: 9px solid var(--accent);
    padding: clamp(1.5rem, 3.5vw, 2rem);
}

/* Corner mark. The logo is used as a mask rather than three tinted PNGs, so
   the colour follows --accent automatically and a new card variant needs no
   new image. Purely decorative: if a browser lacks mask support it simply
   does not paint, and nothing meaningful is lost. */
.card::after {
    content: "";
    position: absolute;
    top: clamp(1.1rem, 3vw, 1.6rem);
    right: clamp(1.1rem, 3vw, 1.6rem);
    width: clamp(2.75rem, 6.5vw, 3.5rem);
    aspect-ratio: 1;
    background-color: var(--accent);
    -webkit-mask: url("/media/logo_mark.png") center / contain no-repeat;
    mask: url("/media/logo_mark.png") center / contain no-repeat;
    pointer-events: none;
}

@supports not (mask: url("/media/logo_mark.png")) {
    .card::after {
        display: none;
    }
}

.card--magenta {
    --accent: var(--magenta);
}

.card--ink {
    --accent: var(--ink);
}

.card--blue {
    --accent: var(--blue);
}

/* Keep the heading clear of the corner mark. */
.card h3 {
    margin-bottom: 1rem;
    padding-right: clamp(3rem, 8vw, 4rem);
}

.card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .45rem;
    font-size: .9375em;
}

.card ul li::before {
    content: "\25CF";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: .7em;
    line-height: 2.2;
}

.card ul li:last-child {
    margin-bottom: 0;
}

/* --- Pricing ------------------------------------------------------------- */
.tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.tier {
    --accent: var(--magenta);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 5px solid var(--accent);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3.5vw, 2rem);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.tier--blue {
    --accent: var(--blue);
}

.tier--ink {
    --accent: var(--ink);
}

.tier--feature {
    border-color: var(--accent);
    border-width: 2px;
    border-top-width: 5px;
}

.tier h3 {
    margin-bottom: .5rem;
}

.tier .price {
    display: block;
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: .35rem;
}

.tier .price small {
    display: block;
    font-size: .5em;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: .02em;
}

.tier .note {
    font-size: .9375em;
    color: var(--muted);
    margin-bottom: 0;
}

/* Rental rate lists */
.rates {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    text-align: left;
}

.rates li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--rule);
    font-size: .9375em;
}

.rates li:last-child {
    border-bottom: 0;
}

.rates .amount {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* --- Support / funding breakdown ---------------------------------------- */
.program {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper);
    padding: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.program:last-child {
    margin-bottom: 0;
}

.program h3 {
    margin-bottom: .25rem;
}

.program .goal {
    display: inline-block;
    background: var(--yellow);
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.program ul {
    margin: 0;
    padding-left: 1.25rem;
}

.program li {
    margin-bottom: .5rem;
}

.program li:last-child {
    margin-bottom: 0;
}

/* --- Featured event ------------------------------------------------------ */
/* The event section runs wider than the site default so the poster reads
   large; the text column still gets enough width to keep the date on one line. */
.section--wide .wrap {
    max-width: 1200px;
}

.event {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
    align-items: center;
}

.event-poster img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--rule);
}

.event-body h2 {
    margin-bottom: 1.25rem;
}

.event-meta {
    margin: 0 0 1.75rem;
}

.event-meta > div {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: .35rem 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--rule);
}

.event-meta > div:first-child {
    border-top: 1px solid var(--rule);
}

.event-meta dt {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--magenta);
    padding-top: .2em;
}

.event-meta dd {
    margin: 0;
    color: var(--ink);
}

.event-meta .note {
    display: block;
    color: var(--muted);
    font-size: .9375em;
}

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

    .event-poster {
        max-width: 38rem;
        margin-inline: auto;
    }
}

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

/* --- People -------------------------------------------------------------- */
.person {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.person:last-child {
    margin-bottom: 0;
}

.person img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.person h2 {
    margin-bottom: .15em;
}

.person .role {
    color: var(--magenta);
    font-weight: 700;
    font-size: .9375em;
    margin-bottom: 1rem;
}

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

    .person img {
        max-width: 240px;
    }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-block;
    background: var(--magenta);
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    padding: .8rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid var(--magenta);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.btn:hover {
    background: var(--magenta-dark);
    border-color: var(--magenta-dark);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--magenta);
}

.btn--ghost:hover {
    background: var(--magenta);
    color: #fff;
}

/* Sits on the magenta CTA band: black on yellow, growing slightly on hover. */
.btn--on-magenta {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
}

.btn--on-magenta:hover,
.btn--on-magenta:focus-visible {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
    transform: scale(1.04);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-row.is-centered {
    justify-content: center;
}

/* --- Call to action band ------------------------------------------------- */
.cta {
    background: var(--magenta);
    color: #fff;
    text-align: center;
    padding-block: clamp(3rem, 7vw, 4.5rem);
}

.cta h2 {
    color: #fff;
}

.cta p {
    color: rgba(255,255,255,.92);
    max-width: 38rem;
    margin-inline: auto;
}

/* Inline links only — must not override .btn colours inside the band. */
.cta a:not(.btn) {
    color: var(--yellow);
}

.cta .btn-row {
    margin-top: 1.75rem;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    flex-shrink: 0;
    background: var(--ink);
    color: rgba(255,255,255,.72);
    padding-block: clamp(2.5rem, 6vw, 3.5rem);
    font-size: .9375rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer img {
    height: 72px;
    width: auto;
    flex-shrink: 0;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
}

.site-footer a:hover {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.site-footer .contact {
    margin: 0;
}

.site-footer .contact span {
    color: rgba(255,255,255,.4);
    padding-inline: .5rem;
}

.site-footer .copyright {
    margin: 0;
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    flex-basis: 100%;
}

/* --- Error page ---------------------------------------------------------- */
.error-page {
    text-align: center;
    padding-block: clamp(4rem, 12vw, 8rem);
}

.error-page .code {
    display: block;
    font-size: clamp(4rem, 3rem + 8vw, 7rem);
    font-weight: 700;
    color: var(--magenta);
    line-height: 1;
}
