/* The Sedgewick Ave Project — site styles
   Layout: full-width colour bands, each with a 1280px inner column.
   Brand: forest green, light gray, black, white. Red is reserved for Donate. */
:root {
  --green: #00661D;
  --green-deep: #004F16;
  --green-soft: #B9D4C1;
  --green-mist: #E3F0E6;
  --green-on-dark: #8FBF9F;
  --gray: #EEEFED;
  --gray-line: #E2E4E1;
  --gray-mid: #C9CCC7;
  --gray-ph: #DADCD8;
  --ink: #111111;
  --ink-2: #3C403C;
  --ink-3: #555955;
  --white: #FFFFFF;
  --red: #C8102E;
  --red-hover: #A50D26;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; color: var(--white); }

/* Bands and inner column */
.band { width: 100%; }
.band--white { background: var(--white); color: var(--ink); }
.band--gray { background: var(--gray); color: var(--ink); }
.band--green { background: var(--green); color: var(--white); }
.band--black { background: var(--ink); color: var(--white); }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 9vw, 104px); display: flex; flex-direction: column; gap: 48px; }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.band--green .eyebrow { color: var(--green-soft); }
.band--black .eyebrow { color: var(--green-on-dark); }
.h1 { font-weight: 900; font-size: clamp(42px, 6vw, 84px); line-height: 0.96; letter-spacing: -0.03em; }
.h2 { font-weight: 900; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.02em; }
.h3 { font-weight: 800; font-size: 26px; line-height: 1.15; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 60ch; }
.band--green .lede, .band--green .muted { color: var(--green-mist); }
.band--black .lede, .band--black .muted { color: var(--gray-line); }
.muted { color: var(--ink-2); }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 66ch; font-size: 18px; }
.prose h2 { font-size: 28px; font-weight: 800; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: background-color .15s ease, color .15s ease; }
.btn--donate { background: var(--red); color: var(--white); }
.btn--donate:hover { background: var(--red-hover); color: var(--white); }
.btn--light { background: var(--white); color: var(--green); }
.btn--light:hover { background: var(--green-mist); color: var(--green-deep); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-deep); color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; color: var(--green); min-height: 44px; display: inline-flex; align-items: center; }
.band--green .link-arrow, .band--black .link-arrow { color: var(--white); }

/* Header */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
.site-header .wrap { padding-block: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.logo { display: block; line-height: 0; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--white); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--green-soft); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--white); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; box-shadow: 0 0 0 1.5px var(--white); }
.nav .btn--donate:hover { color: var(--white); }
@media (max-width: 720px) {
  .site-header { position: static; }
  .logo img { height: 52px; }
  .nav { gap: 0 16px; width: 100%; }
}

/* Page hero for inner pages */
.page-hero .wrap { padding-block: clamp(56px, 8vw, 88px); display: flex; flex-direction: column; gap: 20px; }

/* Home hero */
.hero .wrap { padding-block: clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-media { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-media .tall { grid-row: span 2; min-height: 400px; }
.stat-card { background: var(--white); color: var(--ink); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 194px; }
.stat-card b { font-size: 48px; font-weight: 900; line-height: 1; color: var(--green); }
.stat-card span { font-weight: 600; font-size: 15px; line-height: 1.35; }

/* Placeholders for photos and media */
.ph { background: var(--gray-ph); border-radius: 16px; display: flex; align-items: flex-end; padding: 18px; min-height: 194px; overflow: hidden; position: relative; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph span { font-family: var(--mono); font-size: 12px; color: var(--ink-2); position: relative; }
.band--green .ph { background: var(--green-deep); }
.band--green .ph span { color: var(--green-soft); }
.ph--wide { aspect-ratio: 16 / 9; min-height: 0; max-width: 100%; align-items: center; justify-content: center; }

/* Partner logos */
.partners .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.partners .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); }
.logo-row { flex: 1 1 600px; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.logo-slot { flex: 1 1 140px; height: 64px; border: 1.5px dashed var(--gray-mid); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-slot span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.logo-slot img { height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.logo-slot--filled { border: 0; height: 72px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--white); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.band--white .card { background: var(--gray); }
.card .tag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.card .outcome { margin-top: auto; font-size: 15px; font-weight: 600; line-height: 1.45; border-top: 1px solid var(--gray-line); padding-top: 16px; }
.band--white .card .outcome { border-top-color: var(--gray-mid); }

/* Split two-column */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Three Cs */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pillar { border-top: 4px solid var(--green); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { font-size: 30px; font-weight: 800; }

/* Founder strip */
.founder { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; background: var(--white); border-radius: 20px; padding: 30px; }
.founder .avatar { width: 120px; height: 120px; border-radius: 999px; flex: 0 0 auto; min-height: 0; align-items: center; justify-content: center; }
.founder > div:last-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* Showcase grid */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 16px; }
.work { display: flex; flex-direction: column; gap: 10px; }
.work .meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.work-feature { display: flex; flex-wrap: wrap; gap: 16px; }
.work-feature > .work:first-child { flex: 2 1 520px; min-width: 0; }
.work-feature > .work-stack { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Donate panel */
.donate-panel { background: var(--gray); border-radius: 24px; padding: clamp(28px, 5vw, 60px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.donate-panel > div:first-child { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.donate-panel > div:last-child { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dgr-note { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.badge-slot { border: 1.5px dashed var(--gray-mid); border-radius: 12px; padding: 12px 16px; background: var(--white); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* Info list (contact, details) */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info > div { background: var(--gray); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.info dt, .info .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.info .v { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.team > div { border-top: 1px solid var(--gray-mid); padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.team b { font-size: 19px; }
.team span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* Sign-off wordmark band */
.signoff .wrap { padding-block: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.signoff img { width: min(760px, 100%); height: auto; }
.signoff p { font-family: var(--mono); font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--green-soft); }

/* Footer */
.site-footer .wrap { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 44px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-cols > * { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--gray-line); }
.footer-cols > :first-child { flex-basis: 280px; }
.footer-cols strong { font-weight: 900; font-size: 19px; color: var(--white); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--green-soft); }
.acknowledgement { font-size: 15px; line-height: 1.6; color: var(--gray-line); max-width: 820px; padding-top: 24px; border-top: 1px solid #333633; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: #B5B8B4; }
.site-footer .legal a { color: #B5B8B4; }

/* Studio feature photo */
.studio-shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.studio-shot img { width: 100%; height: auto; border-radius: 20px; }
.studio-shot figcaption { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); }

/* Homepage closing banner */
.banner { line-height: 0; }
.banner img { width: 100%; height: auto; max-height: 820px; object-fit: cover; }

/* Embedded players (SoundCloud, YouTube) */
.embed { padding: 0; align-items: center; justify-content: center; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Track card: shows everywhere; swapped for the SoundCloud player on the live site */
.track { padding: 0; background: var(--green-deep); }
.track-card { position: absolute; inset: 0; display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); padding: clamp(20px, 4vw, 44px); color: var(--white); text-decoration: none; background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); overflow: hidden; }
.track-card:hover { color: var(--white); }
.ph.track .track-play { flex: 0 0 auto; width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); border-radius: 999px; background: var(--white); color: var(--green); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: transform .15s ease; }
.ph.track .track-play svg { margin-left: 4px; }
.ph.track .track-card:hover .track-play { transform: scale(1.06); }
.ph.track .track-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; z-index: 1; }
.ph.track .track-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-soft); }
.ph.track .track-title { font-family: var(--display); color: var(--white); font-weight: 900; font-size: clamp(28px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.ph.track .track-artist { font-family: var(--display); font-size: clamp(16px, 1.6vw, 20px); color: var(--green-mist); }
.ph.track .track-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; opacity: .22;
  background: repeating-linear-gradient(90deg, var(--white) 0 3px, transparent 3px 8px);
  -webkit-mask: linear-gradient(to top, #000 0%, transparent 100%), radial-gradient(ellipse at 50% 100%, #000 30%, transparent 70%);
  mask: linear-gradient(to top, #000 0%, transparent 100%); }
.track iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Track card with cover art */
.ph.track .track-card img { position: static; inset: auto; }
.ph.track .track-card .track-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ph.track .track-card .track-art { position: relative; z-index: 1; height: 100%; width: auto; aspect-ratio: 1 / 1; max-width: 50%; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.ph.track .track-card { padding: clamp(14px, 3vw, 32px); background: var(--ink); }
.ph.track .track-card > .track-play { order: 2; }
.ph.track .track-card > .track-text { order: 3; }
@media (max-width: 560px) { .ph.track .track-text { display: none; } }

/* Compact track card for the smaller showcase slots */
.ph.track--compact .track-card { gap: 16px; }
.ph.track--compact .track-play { width: 64px; height: 64px; }
.ph.track--compact .track-title { font-size: clamp(24px, 2.6vw, 34px); }
.ph.track--compact .track-card .track-art ~ .track-text { display: none; }

/* Showcase page */
.work-grid--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ph.soon { background: var(--green-deep); align-items: center; justify-content: center; padding: 0; }
.ph.soon img { filter: brightness(.5); }
.ph.soon .soon-label { position: relative; z-index: 1; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.01em; text-transform: uppercase; color: var(--white); border: 3px solid var(--white); padding: 10px 22px; border-radius: 8px; }

/* Workshops on the Programs page */
.workshop { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); align-items: flex-start; background: var(--white); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.workshop-flyer { flex: 0 1 260px; min-width: 0; display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.workshop-flyer img { width: 100%; height: auto; transition: transform .2s ease; }
.workshop-flyer:hover img { transform: scale(1.02); }
.workshop-flyer--empty { aspect-ratio: 9 / 16; max-width: 100%; background: var(--gray-ph); display: flex; align-items: center; justify-content: center; box-shadow: none; }
.workshop-flyer--empty span { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.workshop-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.workshop-body .tag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.workshop-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.hero-note { margin-top: -12px; font-size: 14px; color: var(--green-soft); }

/* ACNC Registered Charity Tick */
.tick { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.tick img { width: 88px; height: auto; flex: 0 0 auto; background: var(--white); border-radius: 999px; }
.tick:hover u { color: var(--green); }
.ph--wide > img[aria-hidden="true"] { filter: none; }
.ph--wide:has(> img + img) { padding: 12px; justify-content: center; }

/* Residents */
.perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.perks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.perks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 3px; background: var(--green); }
.perks b { color: var(--ink); }
.rc-wrap { display: flex; justify-content: center; align-items: center; padding: 24px 0; }
.resident-card { width: min(440px, 100%); aspect-ratio: 1.586 / 1; border-radius: 20px; padding: clamp(18px, 3vw, 28px); box-sizing: border-box; color: var(--white);
  background: radial-gradient(120% 140% at 100% 0%, #0b8a2c 0%, var(--green) 40%, var(--green-deep) 100%);
  box-shadow: 0 24px 48px rgba(0,40,12,.35), inset 0 0 0 1px rgba(255,255,255,.12); transform: rotate(-4deg);
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.resident-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255,255,255,.06); }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-top img { height: 52px; width: auto; }
.rc-tag { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .24em; border: 1.5px solid rgba(255,255,255,.7); border-radius: 6px; padding: 5px 9px; }
.rc-name { font-weight: 900; font-size: clamp(20px, 3vw, 28px); letter-spacing: .02em; }
.rc-row { display: flex; gap: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-soft); }
.rc-row b { display: block; font-size: 16px; color: var(--white); letter-spacing: .06em; margin-top: 2px; }
.rc-foot { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--green-soft); }
@media (prefers-reduced-motion: no-preference) { .resident-card { transition: transform .3s ease; } .rc-wrap:hover .resident-card { transform: rotate(-1deg) translateY(-4px); } }

/* Resident card: Bronx → Campbelltown photo layer under the green */
.resident-card { isolation: isolate; }
.resident-card::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("images/resident-card-bg.jpg") center / cover no-repeat;
  opacity: .32; mix-blend-mode: luminosity; filter: contrast(1.15); }
.resident-card::after { z-index: -1; }
.resident-card > * { position: relative; z-index: 1; }

/* Code of conduct grid */
.coc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.coc article { background: var(--gray); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--green); }
.coc h2 { font-size: 21px; font-weight: 800; }
.coc p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
