/* ==========================================================================
   INDO-CANADA ARTS COUNCIL — Design System
   Tokens: Ink (primary dark) / Paper (restrained light) / Cobalt (institutional accent)
   Display: Fraunces · Body: General Sans · Utility: IBM Plex Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=IBM+Plex+Mono:wght@400;500&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');

:root{
  /* --- color: institutional (default) system --- */
  --ink: #0B0D12;
  --ink-soft: #15181F;
  --ink-line: rgba(255,255,255,0.14);
  --paper: #F7F6F3;
  --paper-dim: #ECE9E3;
  --paper-line: rgba(11,13,18,0.13);
  --white: #FFFFFF;
  --text-on-ink: #F3F2EF;
  --text-on-ink-muted: #9CA3B5;
  --text-on-paper: #0B0D12;
  --text-on-paper-muted: #5B5F6B;
  --cobalt: #2A3EFF;
  --cobalt-deep: #1C2AC0;
  --cobalt-tint: #E5E7FF;

  /* --- accent used only within the Ricky Kej / Artist Tours experience --- */
  --spotlight: #FF6A3D;
  --spotlight-deep: #D9491F;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }

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

:focus-visible{
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}
section.on-ink :focus-visible, .on-ink :focus-visible{
  outline-color: var(--white);
}

.visually-hidden{
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.visually-hidden:focus{
  position: fixed; left: 16px; top: 16px;
  width: auto; height: auto;
  background: var(--cobalt); color: var(--white);
  padding: 12px 18px; z-index: 1000;
  font-family: var(--font-mono); font-size: 13px;
}

/* --- eyebrow / label / mono utility --- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.on-ink .eyebrow{ color: #8CA0FF; }
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* --- display type scale --- */
h1, .h1{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 6.5vw, 6.2rem);
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.lede{
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-on-paper-muted);
  max-width: 46ch;
}
.on-ink .lede{ color: var(--text-on-ink-muted); }
.body-copy{ max-width: 62ch; color: var(--text-on-paper-muted); }
.on-ink .body-copy{ color: var(--text-on-ink-muted); }

/* --- sections --- */
section{ position: relative; }
.on-ink{ background: var(--ink); color: var(--text-on-ink); }
.on-paper{ background: var(--paper); color: var(--text-on-paper); }
.on-paper-dim{ background: var(--paper-dim); color: var(--text-on-paper); }
.section-pad{ padding: clamp(64px, 10vw, 140px) 0; }
.rule{ border: none; border-top: 1px solid var(--paper-line); margin: 0; }
.on-ink .rule{ border-top-color: var(--ink-line); }

/* --- buttons --- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn svg{ width: 14px; height: 14px; transition: transform 0.25s ease; }
.btn:hover svg{ transform: translateX(4px); }
.btn-primary{ background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.btn-primary:hover{ background: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.btn-ghost-ink{ color: var(--text-on-ink); }
.btn-ghost-ink:hover{ background: var(--white); color: var(--ink); }
.btn-ghost-paper{ color: var(--text-on-paper); }
.btn-ghost-paper:hover{ background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-spotlight{ background: var(--spotlight); border-color: var(--spotlight); color: var(--ink); font-weight: 600; }
.btn-spotlight:hover{ background: var(--spotlight-deep); border-color: var(--spotlight-deep); color: var(--white); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(11,13,18,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ink-line);
  padding: 14px 0;
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; }
.brand{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.brand strong{ font-weight: 500; font-size: 14px; }
.brand span{ color: var(--text-on-ink-muted); font-size: 11px; }

.nav-main{ display: none; }
.nav-main ul{ display: flex; gap: 34px; align-items: center; }
.nav-main a{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-ink-muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-main a:hover, .nav-main a.is-active{ color: var(--white); }
.nav-main a.is-active::after{
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--cobalt);
}
.nav-cta{ display: none; }

.nav-toggle{
  background: none; border: 1px solid var(--ink-line);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{ display: none; }
.nav-toggle .bars{ display: flex; flex-direction: column; gap: 5px; width: 18px; }
.nav-toggle .bars i{ display:block; height: 1px; background: var(--white); }

.mobile-nav{
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.6,0,.2,1);
  padding: 100px var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-nav.is-open{ transform: translateY(0); }
.mobile-nav ul{ display: flex; flex-direction: column; gap: 6px; }
.mobile-nav ul a{
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 500;
  color: var(--white);
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-line);
}
.mobile-nav .nav-cta{ display: inline-flex; margin-top: 30px; }

@media (min-width: 960px){
  .nav-main{ display: block; }
  .nav-cta{ display: inline-flex; }
  .nav-toggle{ display: none; }
  .mobile-nav{ display: none; }
}

/* ==========================================================================
   HOMEPAGE HERO
   ========================================================================== */
.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: 56px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}
.hero-heading{
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.96;
  font-size: clamp(2.8rem, 9.5vw, 7.4rem);
  color: var(--white);
}
.hero-heading em{ font-style: italic; color: #8CA0FF; }
.hero-sub{
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--text-on-ink-muted);
}
.hero-meta{
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  padding-top: 26px; margin-top: 26px;
  border-top: 1px solid var(--ink-line);
}
.hero-meta div{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-on-ink-muted); text-transform: uppercase;}
.hero-meta strong{ display:block; color: var(--white); font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; margin-top: 4px;}

.hero-media{
  position: absolute; inset: 0;
  z-index: -1;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,13,18,0.55) 0%, rgba(11,13,18,0.65) 45%, rgba(11,13,18,0.96) 100%);
}
.ph{
  width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px),
    #1B1E27;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.hero-media .ph{ height: 100%; }
.ph small{ display:block; margin-top: 6px; opacity: 0.7; font-size: 10px; }

@media (min-width: 860px){
  .hero-grid{ grid-template-columns: 3fr 2fr; }
}

/* ==========================================================================
   INTRO / STATEMENT SECTION
   ========================================================================== */
.statement{
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.statement .eyebrow{ margin-bottom: 24px; }
.statement-text{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.28;
  letter-spacing: -0.005em;
}
.statement-text strong{ font-weight: 600; }
@media (min-width: 900px){
  .statement{ grid-template-columns: 280px 1fr; }
}

/* ==========================================================================
   SIGNATURE — INITIATIVES INDEX (accordion / directory board)
   ========================================================================== */
.index-list{ border-top: 1px solid var(--paper-line); }
.index-item{
  border-bottom: 1px solid var(--paper-line);
}
.index-row{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  cursor: pointer;
  transition: padding 0.3s ease;
}
.index-row .num{ font-family: var(--font-mono); font-size: 13px; color: var(--text-on-paper-muted); }
.index-row .name{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.4vw, 3.1rem);
  transition: color 0.3s ease, transform 0.3s ease;
}
.index-row .tag{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-paper-muted); }
.index-item:hover .name, .index-item.is-open .name{ color: var(--cobalt); }
.index-item:hover .index-row, .index-item.is-open .index-row{ padding-left: 12px; }

.index-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(.6,0,.2,1);
}
.index-item.is-open .index-panel{ max-height: 460px; }
.index-panel-inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 4px 0 36px;
}
.index-panel .ph{ aspect-ratio: 16/10; border-radius: var(--radius); }
.index-panel p{ color: var(--text-on-paper-muted); max-width: 58ch; }
.index-panel .btn{ margin-top: 18px; }
@media (min-width: 760px){
  .index-panel-inner{ grid-template-columns: 300px 1fr; align-items: center; }
}

/* ==========================================================================
   FEATURED TOUR BAND (Artist Tours preview)
   ========================================================================== */
.tour-band{
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1fr;
}
.tour-band .ph{ aspect-ratio: 4/5; }
.tour-cities{ display:flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 30px; }
.tour-cities span{ font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; color: var(--text-on-ink-muted); }
.tour-cities span::after{ content: "—"; margin-left: 22px; color: var(--ink-line); }
.tour-cities span:last-child::after{ content: none; }
@media (min-width: 860px){
  .tour-band{ grid-template-columns: 1fr 1.2fr; }
}

/* ==========================================================================
   COUNCIL / TEAM GRID
   ========================================================================== */
.people-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 40px 30px;
}
.person .ph{ aspect-ratio: 4/5; margin-bottom: 18px; }
.person h3{ font-size: 1.25rem; }
.person .role{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); margin: 6px 0 12px; }
.person p{ color: var(--text-on-paper-muted); font-size: 0.94rem; }

/* ==========================================================================
   LOGO GRID (partners/sponsors)
   ========================================================================== */
.logo-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.logo-cell{
  background: var(--paper);
  aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-on-paper-muted);
  text-align: center;
  padding: 14px;
}
@media (min-width: 640px){ .logo-grid{ grid-template-columns: repeat(3, 1fr);} }
@media (min-width: 960px){ .logo-grid{ grid-template-columns: repeat(4, 1fr);} }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--ink); color: var(--text-on-ink); padding: 80px 0 30px; }
.footer-top{
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-brand .h3{ color: var(--white); margin-bottom: 14px; }
.footer-brand p{ color: var(--text-on-ink-muted); max-width: 40ch; }
.footer-cols{ display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.footer-col h4{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-ink-muted); margin-bottom: 16px; }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ color: var(--text-on-ink); font-size: 14.5px; transition: color 0.2s ease; }
.footer-col a:hover{ color: #8CA0FF; }
.footer-bottom{
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-on-ink-muted);
  letter-spacing: 0.03em;
}
.footer-bottom a{ color: var(--text-on-ink-muted); }
.footer-bottom a:hover{ color: var(--white); }
@media (min-width: 760px){
  .footer-top{ grid-template-columns: 1.3fr 2fr; }
  .footer-cols{ grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   PAGE HEADER (interior pages)
   ========================================================================== */
.page-hero{ padding: 168px 0 80px; }
.page-hero .eyebrow{ margin-bottom: 22px; }
.breadcrumb{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-on-ink-muted); margin-bottom: 20px;}
.on-paper .breadcrumb{ color: var(--text-on-paper-muted); }
.breadcrumb a:hover{ color: var(--cobalt); }

/* --- two column editorial --- */
.split{ display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 860px){ .split{ grid-template-columns: 0.9fr 1.4fr; } }
.split-label{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-paper-muted); }
.on-ink .split-label{ color: var(--text-on-ink-muted); }
.split-body > * + *{ margin-top: 20px; }
.split-body h3{ margin-top: 40px; margin-bottom: 6px; }

/* --- placeholder notice banner (dev/editorial use, remove-friendly) --- */
.editnote{
  border: 1px dashed #B7A6FF;
  background: #F1EEFF;
  color: #4B3FA0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  padding: 14px 18px;
  margin: 18px 0;
}

/* --- simple external-link initiative card (used inside /initiatives/*) --- */
.ext-card{
  border: 1px solid var(--paper-line);
  padding: 34px;
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px){ .ext-card{ grid-template-columns: 260px 1fr; align-items: center; } }
.ext-card .ph{ aspect-ratio: 4/3; }

/* --- contact --- */
.contact-grid{ display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 900px){ .contact-grid{ grid-template-columns: 1fr 1fr; } }
.contact-list dt{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-on-paper-muted); margin-top: 26px; }
.contact-list dd{ margin: 6px 0 0; font-family: var(--font-display); font-size: 1.3rem; }
.form-field{ margin-bottom: 22px; }
.form-field label{ display:block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-on-paper-muted); margin-bottom: 8px; }
.form-field input, .form-field textarea{
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--paper-line);
  background: transparent;
  padding: 12px 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-on-paper);
}
.form-field input:focus, .form-field textarea:focus{ outline: none; border-bottom-color: var(--cobalt); }
.form-field textarea{ resize: vertical; min-height: 120px; }

/* --- reveal-on-scroll --- */
[data-reveal]{ opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible{ opacity: 1; transform: none; }

/* --- fine print / initiative grid on /initiatives index --- */
.init-grid{ display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px){ .init-grid{ grid-template-columns: repeat(2,1fr); } }
