/* Clean layouts: retain eKasi's identity, give the content room to breathe. */
@font-face {
  font-family: "Archivo Black"; src: url("assets/fonts/archivo-black.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Manrope"; src: url("assets/fonts/manrope-variable.ttf") format("truetype");
  font-style: normal; font-weight: 400 800; font-display: swap;
}
@font-face {
  font-family: "DM Mono"; src: url("assets/fonts/dm-mono.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "DM Mono"; src: url("assets/fonts/dm-mono-medium.ttf") format("truetype");
  font-style: normal; font-weight: 500; font-display: swap;
}
:root {
  --gutter: max(clamp(24px, 5vw, 72px), calc((100vw - 1240px) / 2));
  --header-height: 84px;
  --section-space: clamp(64px, 7vw, 104px);
  --grid-gap: 24px;
  --card-space: clamp(24px, 2.4vw, 34px);
  --card-radius: 12px;
  --card-shadow: 0 8px 32px rgba(9, 9, 9, .045);
  --card-hover-shadow: 0 14px 38px rgba(9, 9, 9, .075);
}

/* Structure is expressed through space and alignment, rather than rules. */
.announcement-bar { display: none; }
.site-header, .home-header {
  min-height: var(--header-height); margin-bottom: 0; padding: 18px var(--gutter);
  border: 0; backdrop-filter: none;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(9, 9, 9, .09); }
.site-nav > a:not(.nav-cta)::after { display: none; }
.site-nav > a:not(.nav-cta):hover { color: #ff978a; }
.nav-cta, .button { border: 0; border-radius: 6px; }
.nav-cta { padding: 13px 20px; }
.button { gap: 24px; padding: 14px 22px; }
.text-link, .hero-slide-link, .back-to-top, .copy-enquiry { border: 0; }
.text-link:hover, .hero-slide-link:hover, .back-to-top:hover {
  text-decoration: underline; text-underline-offset: 5px;
}
.home-manifesto, .practice-steps, .featured-papers, .page-hero, .page-hero-aside,
.history-pullquote, .development-map, .development-step, .timeline, .timeline-item,
.about-interventions, .critical-lenses-grid, .critical-lens, .reading-room,
.paper-list, .paper, .profile-card, .profile-record, .mentor-profile-note,
.proponents-note, .genealogy-timeline, .work-showcase, .archive-record,
.support-option, .giving-form, .giving-note, .form-heading, .contact-form,
.contact-email, .support-closing, .faq-list, .faq-item, .modal-copy,
.modal-copy p, .site-footer { border: 0; }
.history-story { column-rule: none; }
.eyebrow::before, .section-kicker::before, .hero-slide-copy > .eyebrow::before,
.genealogy-timeline article::before { display: none; }

.page-hero { padding-block: clamp(64px, 7vw, 96px); align-items: center; }
.page-hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1.08; }
.page-hero-copy > p:last-child { max-width: 580px; }
.page-hero-aside { padding: 0; }
.page-hero-aside p {
  font: 500 18px/1.75 var(--sans); text-transform: none; letter-spacing: -.015em;
  max-width: 360px;
}
.display-heading, .home-page h2, .giving-copy h2, .lineage h2 {
  font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.12; letter-spacing: -.04em;
}
.section-label, .section-kicker, .eyebrow { letter-spacing: .07em; }
.home-section-heading, .profile-header, .history-title-row, .reading-room-header,
.library-header, .gallery-intro, .work-showcase-header, .support-intro,
.supporters-heading, .faq-header, .critical-lenses-heading { margin-bottom: 40px; }

/* The photography and autoplay stay prominent; controls remain unobtrusive. */
.hero-slide { min-height: clamp(620px, calc(100svh - 84px), 760px); }
.hero-slider .hero-slide-title { font-size: clamp(3rem, 5.4vw, 5.4rem); line-height: 1.06; }
.hero-slide-description { font-size: 17px; }
.hero-slider-bar { border: 0; }
.hero-arrow { border: 0; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.hero-dot { width: 36px; min-width: 36px; border: 0; }
.hero-dot span, .hero-slider-count { display: none; }
.hero-dot::after {
  left: 50%; right: auto; bottom: 19px; width: 6px; height: 6px;
  transform: translateX(-50%); border-radius: 8px; background: rgba(255, 255, 255, .45);
}
.hero-dot[aria-current="true"]::after { width: 20px; background: #ff715c; }
.hero-dot:hover { background: transparent; }
.home-themes { padding-block: 26px; background: var(--paper); color: var(--ink); gap: 24px; }
.home-themes b { display: none; }
.home-manifesto-grid { gap: 64px; }
.home-manifesto-grid .large-copy { font-size: 21px; }
.home-kasi h2 { max-width: 13ch; }
.home-kasi-copy p { font-size: 16px; }
.home-community img { border-radius: var(--card-radius); }
.home-community figcaption { padding-top: 14px; color: #555b52; }
.home-join h2 { max-width: 75%; font-size: clamp(2.4rem, 4.8vw, 4.5rem); }
.home-join > div { max-width: 560px; }
.join-question { font-size: clamp(220px, 25vw, 370px); opacity: .45; }

/* A shared, restrained card system for real collections of content. */
.practice-steps, .featured-papers, .development-map, .critical-lenses-grid,
.timeline, .paper-list, .faq-list { gap: var(--grid-gap); }
.practice-steps article, .practice-steps article + article,
.featured-papers > a, .featured-papers > a + a,
.development-step, .critical-lens, .timeline-item,
.profile-card, .mentor-profile, .resource-card, .support-option,
.intervention-card, .archive-record, .faq-item {
  border: 0; border-radius: var(--card-radius); background: #fff; color: var(--ink);
  box-shadow: var(--card-shadow);
}
.practice-steps article, .practice-steps article + article,
.featured-papers > a, .featured-papers > a + a {
  padding: var(--card-space);
}
.practice-steps { margin-bottom: 28px; }
.practice-steps h3 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); }
.practice-steps p { margin: 0; max-width: none; }
.featured-papers > a { min-height: 240px; gap: 20px; transition: transform .2s, box-shadow .2s; }
.featured-papers > a:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--card-hover-shadow); }
.featured-papers span { color: #176a3c; }
.featured-papers h3 {
  font-size: clamp(1.15rem, 1.65vw, 1.5rem); line-height: 1.4;
  margin: 0; letter-spacing: -.025em; text-transform: none;
}
.featured-papers p { margin: auto 0 0; color: #555b52; }
.profile-card:nth-child(n), .mentor-profile:nth-child(n), .resource-card:nth-child(n),
.support-option:nth-child(n), .critical-lens:nth-child(n) { background: #fff; color: var(--ink); }
.profile-card, .mentor-profile, .resource-card, .support-option, .development-step,
.critical-lens, .intervention-card { transition: box-shadow .2s, transform .2s; }
.profile-card:hover, .profile-card:nth-child(n):hover, .mentor-profile:hover,
.resource-card:hover, .resource-card:nth-child(n):hover, .support-option:hover,
.support-option:focus-within, .development-step:hover, .critical-lens:hover {
  background: #fff; color: var(--ink); transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}
.resource-card h3, .support-option h3, .intervention-card h3, .critical-lens h3,
.development-step h3, .timeline-detail h3, .archive-record h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.4;
  letter-spacing: -.025em; text-transform: none;
}
.resource-card p, .resource-card-substack p, .resource-card:hover p,
.critical-lens p, .critical-lens:hover p { color: #42473f; }
.resource-card > span, .support-option > span, .development-step > span {
  margin-bottom: 24px; color: #a5231a;
}
.resource-card a, .resource-card-substack a, .resource-card-paper a {
  text-decoration: none; color: #a5231a; font: 700 12px/1.6 var(--sans);
  text-transform: none; letter-spacing: 0;
}
.resource-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.resource-card { min-height: 290px; }
.support-option { min-height: 250px; }
.intervention-card { min-height: 230px; }
.intervention-card .intervention-footer { color: #555b52; padding-top: 24px; }

/* Our Work: unframed reading, then distinct cards and a quiet chronology. */
.history-title-row { grid-template-columns: 1.1fr .9fr; }
.history-title-row p { max-width: 460px; }
.history-narrative { grid-template-columns: .7fr 1.3fr; gap: 64px; margin-bottom: 72px; }
.history-pullquote { padding: 0; }
.history-pullquote p { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.35; letter-spacing: -.025em; }
.history-story { max-width: 740px; }
.history-story p { font-size: 16px; line-height: 1.85; }
.history-story .story-lead { font-size: 18px; }
.development-map { gap: var(--grid-gap); }
.development-step { min-height: 250px; }
.development-step > span { margin-bottom: 28px; }
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-item { grid-template-columns: 1fr; padding: 28px; gap: 15px; }
.timeline-date { color: #a5231a; }
.timeline-detail { display: block; }
.timeline-detail h3 { margin: 0 0 12px; }
.timeline-detail p { max-width: none; }
.interventions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.interventions-heading { grid-column: 1 / -1; margin-bottom: 12px; }
.critical-lenses { background: var(--paper); color: var(--ink); }
.critical-lenses .section-label { color: #a5231a; }
.critical-lenses-heading > p { color: #42473f; }
.critical-lenses-grid { gap: var(--grid-gap); }
.critical-lens { min-height: 220px; }
.critical-lens h3 { margin: 0 0 16px; max-width: none; }
.critical-lens p { max-width: none; }

/* People are the focus, rather than alternating red and green panels. */
.profile-card { padding: 20px; min-height: 0; }
.profile-photo-placeholder { border-radius: 8px; background: var(--paper); }
.profile-card h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.2; }
.profile-card .profile-role { color: #555b52; }
.profile-card:hover .profile-photo-placeholder img { transform: none; }
.mentor-profile { padding: var(--card-space); min-height: 0; }
.mentor-profile .profile-photo-placeholder { max-width: 240px; margin-bottom: 28px; }
.mentor-profile h3 { font-size: clamp(1.5rem, 2.25vw, 2.15rem); line-height: 1.25; }
.mentor-profile .mentor-dates, .mentor-profile:nth-child(even) .mentor-dates { color: #a5231a; }
.mentor-profile-note { padding-top: 16px; color: #555b52; }
.mentor-profile-note span { color: #176a3c; }
.proponents-note { max-width: 820px; padding: 0; color: #555b52; }
.lineage { background: var(--ink); color: var(--paper); }
.genealogy-timeline { padding-left: 0; display: grid; gap: 32px; }
.genealogy-timeline article { padding: 0; }
.genealogy-timeline article > span { color: #78d5a0; }

/* Reading-room cards replace the ruled index, with tags as plain metadata. */
.paper-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.paper-list .paper {
  grid-template-columns: 1fr; gap: 12px; align-content: start; padding: 28px;
  background: rgba(255, 255, 255, .065); border-radius: var(--card-radius); min-height: 190px;
}
.paper-list .paper:hover, .paper-list .paper:focus-visible { padding: 28px; background: rgba(255, 255, 255, .11); }
.paper-list .paper h3 { grid-column: 1; grid-row: 1; font-size: 20px !important; line-height: 1.45 !important; }
.paper-list .paper p { grid-column: 1; grid-row: 2; color: #c6cdc0; }
.paper-list .paper .paper-tag {
  grid-column: 1; grid-row: 3; justify-self: start; max-width: none;
  padding: 0; border: 0; background: transparent; color: #78d5a0;
}
.paper-search input { border: 0; border-radius: 8px; background: rgba(255,255,255,.08); }
.filter-tab { border: 0; padding: 10px 15px; background: rgba(255,255,255,.08); border-radius: 6px; }
.filter-tab:hover, .filter-tab.is-active { background: var(--paper); color: var(--ink); }
.paper-modal-panel { border-radius: 12px; }
.modal-copy p { display: block; padding: 18px 0; }
.modal-copy strong { display: block; margin-bottom: 8px; color: #a5231a; }
.modal-close { border: 0; background: rgba(9,9,9,.06); }

/* Posters stay complete; the photographic archive stays free of frames. */
.gallery-hero { background: var(--paper); color: var(--ink); }
.gallery-hero .page-hero-copy h1 em { color: var(--warm); }
.archive-record { box-shadow: var(--card-shadow); min-height: 0; }
.archive-record-photo { background: #fff; }
.archive-record-copy { padding: 26px; }
.record-meta { color: #a5231a; }
.archive-record > img { background: #fff; }
.gallery-item { border-radius: 0; box-shadow: none; }
.gallery-item:hover { box-shadow: none; }
.gallery-lightbox-close, .gallery-lightbox-nav { border: 0; background: rgba(255,255,255,.12); }

/* Quiet form surfaces; field affordances and keyboard focus remain clear. */
.supporter-card { border-radius: 8px; box-shadow: none; }
.supporter-card-warehouse { background: var(--ink); }
.giving-section { background: var(--paper); }
.giving-form, .contact-form { background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.form-heading { padding-bottom: 0; color: #a5231a; }
.giving-form .form-heading, .contact-form .form-heading { display: none; }
.form-field { font: 700 12px/1.5 var(--sans); text-transform: none; letter-spacing: 0; }
.form-field input, .form-field select, .form-field textarea {
  border: 0; border-radius: 6px; background: var(--paper); font-weight: 400;
}
.form-field :is(input, select, textarea):focus { box-shadow: 0 0 0 2px var(--acid); outline: none; }
.amount-options span { border: 0; border-radius: 6px; background: var(--paper); }
.amount-options input:checked + span { background: var(--ink); color: var(--paper); }
.amount-options input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 3px; }
.form-check input { accent-color: var(--acid); }
.giving-note, .contact-email { padding-top: 0; }
.contact-email a { text-decoration: none; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 0 26px; }
.faq-item summary {
  padding: 23px 0; font: 700 clamp(1rem, 1.4vw, 1.2rem)/1.5 var(--sans);
  letter-spacing: -.015em; text-transform: none;
}
.faq-item > p { padding: 0 32px 24px 0; }
.site-footer { padding-block: 56px 28px; }
.back-to-top { padding: 0; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; box-shadow: none; }
.site-header :focus-visible, .home-reading :focus-visible, .library :focus-visible,
.lineage :focus-visible, .site-footer :focus-visible { outline-color: #78d5a0; }

@media (max-width: 1100px) {
  :root { --header-height: 80px; }
  .site-header { padding-block: 16px; }
  .menu-toggle { border: 0; background: rgba(255,255,255,.1); border-radius: 6px; }
  .menu-toggle span:not(.sr-only) { background: var(--paper); }
  .site-nav, .home-header .site-nav { top: var(--header-height); color: var(--ink); background: var(--paper); border: 0; padding-inline: var(--gutter); }
  .site-nav.is-open { max-height: calc(100svh - var(--header-height)); }
  .site-nav a { border: 0; padding: 14px 0; }
  .site-nav .nav-cta { border-radius: 6px; padding-inline: 18px; margin-bottom: 18px; }
  .site-nav > a[aria-current="page"] { color: #a5231a; }
  .site-nav > a:not(.nav-cta):hover { color: #a5231a; }
  .history-narrative { gap: 40px; }
  .hero-slider .hero-slide-title { font-size: clamp(2.8rem, 6.6vw, 4.6rem); }
}
@media (max-width: 900px) {
  .history-narrative { grid-template-columns: 1fr; }
  .history-pullquote { position: static; max-width: 620px; }
  .history-pullquote p { max-width: none; }
  .page-hero, .history-title-row { grid-template-columns: 1fr; }
  .page-hero-aside p { max-width: 620px; }
  .home-manifesto-grid { gap: 40px; }
}
@media (max-width: 760px) {
  .featured-papers, .practice-steps { grid-template-columns: 1fr; }
  .featured-papers > a { min-height: 210px; }
  .home-themes { display: grid; grid-template-columns: 1fr 1fr; font-size: 9px; }
  .home-manifesto-grid, .home-community { grid-template-columns: 1fr; }
  .home-join h2 { max-width: 100%; }
  .join-question { display: none; }
  .timeline, .paper-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --section-space: 60px; --grid-gap: 20px; --card-space: 24px; }
  .brand { font-size: 14px; }
  .page-hero-copy h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .display-heading, .home-page h2, .giving-copy h2, .lineage h2 { font-size: clamp(1.9rem, 7.5vw, 2.6rem); }
  .hero-slide { min-height: 700px; }
  .hero-slider .hero-slide-title { font-size: clamp(1.85rem, 8vw, 3.3rem); min-height: 3.18em; }
  .hero-slide-description { font-size: 15px; }
  .hero-slider-bar { gap: 8px; }
  .hero-dot::after { bottom: 19px; }
  .hero-slide-actions { gap: 10px 18px; }
  .home-section-heading, .profile-header, .history-title-row, .reading-room-header,
  .library-header, .gallery-intro, .work-showcase-header, .support-intro,
  .supporters-heading, .faq-header, .critical-lenses-heading { margin-bottom: 32px; }
  .interventions { grid-template-columns: 1fr; }
  .profile-card { padding: 18px; }
  .mentor-profile h3 { font-size: 1.55rem; }
  .resource-card, .support-option, .development-step, .critical-lens { min-height: 0; }
  .resource-card { gap: 8px; }
  .paper-list .paper, .paper-list .paper:hover, .paper-list .paper:focus-visible { padding: 24px; }
  .paper-list .paper h3 { font-size: 18px !important; }
  .faq-item { padding-inline: 20px; }
}
