/* New York Creative Society: site styles */

@font-face { font-family: 'Libre Caslon Display'; src: url(fonts/libre-caslon-display-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(fonts/libre-caslon-text-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(fonts/libre-caslon-text-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(fonts/schibsted-grotesk-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --white: #ffffff;
  --black: #000000;
  --stone: #6b6b6b;
  --hush: #9a9a9a;
  --mist: #ececec;
  --teal: #0f6e6e;

  --serif: 'Libre Caslon Text', 'Libre Caslon Display', Georgia, serif;
  --display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Placeholder slots: replaced with real text later */
.slot { color: var(--hush); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.wordmark {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 16px; font-weight: 500; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--black); }
.nav .btn { padding: 11px 20px; }

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  background: var(--black); color: var(--white);
  border: 1px solid var(--black);
  padding: 14px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn.on-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.btn.on-dark:hover { background: var(--black); color: var(--white); }

.menu-toggle {
  display: none;
  font: 500 16px var(--sans);
  background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--black);
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-frame {
  position: relative; overflow: hidden;
  height: min(86vh, 900px); height: min(86svh, 900px); min-height: 520px;
  background: #2a2420;
}
.hero-frame picture { display: block; width: 100%; height: 100%; }
.hero-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(1.06);
  animation: settle 2.4s cubic-bezier(.2,.6,.2,1) forwards;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.8) 100%),
    linear-gradient(90deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 50%);
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding-bottom: clamp(36px, 7vh, 80px);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(64px, 11.5vw, 184px);
  line-height: .9;
  letter-spacing: -0.025em;
}
.hero h1 span { display: block; opacity: 0; transform: translateY(24px); animation: rise 1.1s cubic-bezier(.2,.6,.2,1) forwards; }
.hero h1 span:nth-child(1) { animation-delay: .35s; }
.hero h1 span:nth-child(2) { animation-delay: .6s; padding-left: .52em; }

.caption {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
  font-size: 14px; color: var(--stone);
}

@keyframes settle { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Statement ---------- */
.statement {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding-top: clamp(96px, 14vw, 200px);
  padding-bottom: clamp(96px, 14vw, 200px);
}
.statement h2 {
  grid-column: 1 / span 7;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.02; letter-spacing: -0.02em;
}
.statement .body {
  grid-column: 9 / span 4;
  align-self: end;
  font-family: var(--serif);
  font-size: 20px; line-height: 1.6;
}
.statement .body p + p { margin-top: 1em; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--black);
}
.section-head h2 { font-size: 30px; font-weight: 500; letter-spacing: -0.01em; }
.text-link {
  font-size: 16px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--teal); }

/* ---------- Events ---------- */
.events { padding-bottom: clamp(96px, 12vw, 180px); }
.event {
  display: grid;
  grid-template-columns: 180px 1fr 160px;
  column-gap: 24px; align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--mist);
  text-decoration: none;
}
.event:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.event .day {
  font-family: var(--display); font-size: 72px; line-height: .85; letter-spacing: -0.02em;
}
.event .when { margin-top: 12px; font-size: 15px; color: var(--stone); }
.event h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.01em;
}
.event .where { margin-top: 10px; font-size: 16px; color: var(--stone); }
.event .go { justify-self: end; font-size: 16px; font-weight: 500; padding-top: 6px; }

/* ---------- Support band ---------- */
.support { background: var(--black); color: var(--white); }
.support .wrap {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding-top: clamp(88px, 11vw, 160px); padding-bottom: clamp(88px, 11vw, 160px);
}
.support h2 {
  grid-column: 1 / span 6;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -0.02em;
}
.support .side { grid-column: 8 / span 5; align-self: end; }
.support .side p { font-family: var(--serif); font-size: 19px; line-height: 1.6; margin-bottom: 36px; }
.support .slot { color: #8c8c8c; }

.signup { margin-top: 56px; padding-top: 28px; border-top: 1px solid #3a3a3a; }
.signup label { display: block; font-size: 15px; color: #bdbdbd; margin-bottom: 12px; }
.signup .row { display: flex; }
.signup input {
  flex: 1; min-width: 0;
  font: 17px var(--sans); color: var(--white);
  background: transparent; border: 1px solid #5a5a5a; border-right: 0;
  padding: 14px 16px;
}
.signup input::placeholder { color: #8c8c8c; }
.signup input:focus { outline: none; border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { padding-top: 72px; padding-bottom: 40px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px;
}
.footer-mark {
  grid-column: 1 / span 6;
  font-family: var(--display); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.015em;
}
.footer-col { grid-column: span 2; font-size: 16px; line-height: 1.8; }
.footer-col h3 { font-size: 15px; font-weight: 500; color: var(--stone); margin-bottom: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal {
  margin-top: 88px; padding-top: 20px; border-top: 1px solid var(--black);
  display: flex; justify-content: space-between; font-size: 14px; color: var(--stone);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--black);
    padding: 8px var(--gutter) 28px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 22px; padding: 12px 0; }
  .nav .btn { margin-top: 16px; font-size: 17px; padding: 14px 24px; }
  .wordmark { font-size: 20px; }
  .site-header .wrap { height: 60px; }
  .nav { top: 60px; }
  .menu-toggle { padding: 12px 0 12px 16px; }
  .hero-frame { height: calc(100vh - 60px - 64px); height: calc(100svh - 60px - 64px); min-height: 460px; max-height: 760px; }
  .hero-frame img { object-position: 50% 35%; }
  .hero h1 { font-size: clamp(56px, 17vw, 96px); }
  .hero h1 span:nth-child(2) { padding-left: 0; }
  .statement { padding-top: 80px; padding-bottom: 88px; }
  .statement .body { font-size: 19px; }
  .section-head h2 { font-size: 26px; }
  .signup .row { flex-direction: column; }
  .signup input { border-right: 1px solid #5a5a5a; }
  .signup .btn { margin-top: 10px; width: 100%; }
  .support .side .btn { padding: 15px 30px; }
  .site-footer { padding-top: 56px; }
  .legal { margin-top: 56px; }

  .statement h2, .statement .body,
  .support h2, .support .side { grid-column: 1 / -1; }
  .statement .body { margin-top: 36px; }
  .support .side { margin-top: 40px; }

  .event { grid-template-columns: 1fr; row-gap: 14px; padding: 28px 0 30px; }
  .event .date { display: flex; align-items: baseline; gap: 14px; }
  .event .day { font-size: 44px; }
  .event .when { margin-top: 0; }
  .event .go { justify-self: start; padding-top: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

  .footer-mark { grid-column: 1 / -1; }
  .footer-col { grid-column: span 6; }
  .legal { flex-direction: column; gap: 6px; }
  .caption { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame img, .hero h1 span { animation: none; transform: none; opacity: 1; }
}

/* ================= Inner pages ================= */
.page-head {
  padding-top: clamp(72px, 10vw, 150px);
  padding-bottom: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
}
.page-head h1 {
  grid-column: 1 / span 7;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 9vw, 140px); line-height: .92; letter-spacing: -0.025em;
}
.page-head .lede {
  grid-column: 9 / span 4; align-self: end;
  font-family: var(--serif); font-size: 20px; line-height: 1.6;
}

/* In-page index of sections */
.subnav {
  position: sticky; top: 76px; z-index: 10;
  background: var(--white);
  border-top: 1px solid var(--black); border-bottom: 1px solid var(--mist);
}
.subnav .wrap { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 16px 0; font-size: 15px; font-weight: 500; text-decoration: none;
  color: var(--stone); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subnav a:hover, .subnav a.on { color: var(--black); border-bottom-color: var(--black); }

.block {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding-top: clamp(72px, 9vw, 140px);
  scroll-margin-top: 140px;
}
.block > h2 {
  grid-column: 1 / span 3;
  font-size: 22px; font-weight: 500; letter-spacing: -0.005em;
  padding-top: 6px;
}
.block > .content { grid-column: 4 / span 9; }
.block.last { padding-bottom: clamp(96px, 12vw, 180px); }

.prose { max-width: 38em; font-family: var(--serif); font-size: 21px; line-height: 1.6; }
.prose p + p { margin-top: 1em; }

/* Leadership: portraits with expandable bios */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.person .portrait {
  aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden;
  display: flex; align-items: flex-end; padding: 14px;
  font-size: 13px; color: var(--hush);
}
.person .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.person h3 {
  margin-top: 18px;
  font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -0.01em;
}
.person .title { margin-top: 6px; font-size: 16px; color: var(--stone); }
.person details { margin-top: 14px; border-top: 1px solid var(--mist); }
.person summary {
  list-style: none; cursor: pointer;
  padding: 12px 0; font-size: 15px; font-weight: 500;
  display: flex; justify-content: space-between;
}
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.person details[open] summary::after { content: "\2212"; }
.person details p { font-family: var(--serif); font-size: 17px; line-height: 1.6; padding-bottom: 8px; }

/* Board: text-only roster, the way institutions list trustees */
.roster-group + .roster-group { margin-top: 64px; }
.roster-group h3 {
  font-size: 15px; font-weight: 500; color: var(--stone);
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--black);
}
.officers { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
.officer { padding: 18px 0; border-bottom: 1px solid var(--mist); }
.officer .name { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.officer .role { margin-top: 4px; font-size: 15px; color: var(--stone); }
.names {
  columns: 3; column-gap: 24px;
  font-family: var(--serif); font-size: 19px; line-height: 2.1;
  padding: 10px 0 0; list-style: none; margin: 0;
}
.names li { break-inside: avoid; }
.footnote { margin-top: 28px; font-size: 14px; color: var(--stone); }

.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.doc-list li { border-bottom: 1px solid var(--mist); }
.doc-list a {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; text-decoration: none; font-size: 18px;
}
.doc-list a span:last-child { color: var(--stone); font-size: 15px; white-space: nowrap; }
.doc-list a:hover span:first-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

@media (max-width: 900px) {
  .page-head h1, .page-head .lede { grid-column: 1 / -1; }
  .page-head .lede { margin-top: 28px; font-size: 19px; }
  .subnav { top: 60px; }
  .subnav .wrap { gap: 24px; }
  .block { scroll-margin-top: 120px; }
  .block > h2, .block > .content { grid-column: 1 / -1; }
  .block > h2 { font-size: 24px; padding-bottom: 28px; }
  .prose { font-size: 19px; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .person h3 { font-size: 22px; }
  .officers { grid-template-columns: 1fr; }
  .names { columns: 1; font-size: 19px; line-height: 2; }
}
@media (max-width: 520px) {
  .person h3 { font-size: 20px; margin-top: 14px; }
  .person .title { font-size: 14px; }
  .person summary { font-size: 14px; }
  .person details p { font-size: 16px; }
}

/* ---------- Programs (homepage) ---------- */
.programs { padding-bottom: clamp(96px, 12vw, 180px); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
.program { padding-top: 36px; padding-right: 24px; }
.program + .program { padding-left: 24px; border-left: 1px solid var(--mist); }
.program h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.015em;
}
.program p { margin-top: 18px; font-family: var(--serif); font-size: 18px; line-height: 1.6; max-width: 26em; }
@media (max-width: 900px) {
  .program-grid { grid-template-columns: 1fr; }
  .program, .program + .program { padding: 28px 0 30px; border-left: 0; border-bottom: 1px solid var(--mist); }
  .program h3 { font-size: 32px; }
}

/* ---------- Board and council portraits ---------- */
.members {
  list-style: none; margin: 0; padding: 20px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px;
}
.members.officers-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
.officers-grid .member .name { font-size: 26px; }
.member .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.member .frame img { width: 100%; height: 100%; object-fit: cover; }
.member .name {
  display: block; margin-top: 14px;
  font-family: var(--display); font-size: 21px; line-height: 1.2; letter-spacing: -0.005em;
}
.member .role { display: block; margin-top: 4px; font-size: 15px; color: var(--stone); }
.exofficio { padding-top: 16px; font-family: var(--serif); font-size: 19px; }
.person .portrait { padding: 0; }
@media (max-width: 900px) {
  .members { gap: 28px 16px; }
}
@media (max-width: 600px) {
  .members, .members.officers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .member .name, .officers-grid .member .name { font-size: 18px; margin-top: 10px; }
  .member .role { font-size: 14px; }
}

.member details { margin-top: 12px; border-top: 1px solid var(--mist); }
.member summary {
  list-style: none; cursor: pointer; padding: 10px 0;
  font-size: 14px; font-weight: 500; display: flex; justify-content: space-between;
}
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: "+"; font-weight: 400; font-size: 18px; line-height: 1; }
.member details[open] summary::after { content: "\2212"; }
.member details p { font-family: var(--serif); font-size: 16px; line-height: 1.6; padding-bottom: 6px; }
@media (max-width: 600px) { .member details p { font-size: 15px; } .member summary { font-size: 13px; } }
