/* 7 Hill Arts — launch page
   Palette pulled from logo package README + mark-primary-light.svg */

:root {
  /* Seven points, west to east */
  --sound: #1f5a72;
  --sky: #5aa6cc;
  --blush: #e58ba8;
  --beacon: #c9922f;
  --sienna: #8a4e2e;
  --umber: #5a3020;
  --ebony: #241a16;

  /* Anchors + ground */
  --basalt: #14161a;
  --paper: #efede6;
  --ink: #16181a; /* wordmark ink from lockup SVG */
  --water-deep: #191e20; /* first water band */
  --water-mid: #3e7fa0; /* second water band */

  /* Derived usage tokens (from logo stops only) */
  --bg: var(--paper);
  --bg-soft: #9f9c96; /* polished soft grey, clearly readable on the left */
  --bg-mid: #d9d6d0;
  --bg-white: #ffffff;
  --text: var(--ebony);
  --text-muted: var(--umber);
  --accent: var(--beacon);
  --accent-deep: var(--sound);
  --border: rgba(36, 26, 22, 0.14);
  --focus: var(--sound);

  /* Archivo = identity/display (matches the mark). Source Sans 3 = quieter body. */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space: 1.5rem;
  --max-width: 42rem;
  --header-h: 5.5rem;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  background: linear-gradient(
    to right,
    var(--bg-soft) 0%,
    var(--bg-mid) 38%,
    var(--bg-white) 78%
  );
  background-attachment: fixed;
  min-height: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: transparent;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* Focus — visible on every interactive control */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Sticky header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(
    to right,
    rgba(159, 156, 150, 0.96) 0%,
    rgba(217, 214, 208, 0.96) 38%,
    rgba(255, 255, 255, 0.96) 78%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 3.5rem;
  width: auto;
  max-width: min(58vw, 22rem);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.nav a {
  font-family: var(--font-display);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--accent-deep);
}

/* Main */
main {
  flex: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero — full-bleed image, designed lockup with tagline as brand headline */
.hero {
  margin-bottom: 3.5rem;
}

.hero-image-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}

.hero-image {
  display: block;
  width: 100%;
  height: clamp(14rem, 52vw, 28rem);
  object-fit: cover;
  object-position: center 42%;
}

.hero-brand {
  max-width: min(56rem, 100%);
  margin: 0 auto;
  padding: 2.75rem clamp(1rem, 4vw, 2.5rem) 0.5rem;
}

.hero-lockup {
  display: block;
  width: min(100%, 48rem);
  height: auto;
}

/* Sections */
.section {
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto 3.25rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.15rem;
}

.about-copy p,
.focus-item p,
.section-lead,
.donate-note,
.check-block {
  font-size: 1.02rem;
  color: var(--text);
  margin: 0 0 1.05rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.focus-grid {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 0;
}

.program-theme {
  margin-bottom: 2rem;
}

.program-theme:last-of-type {
  margin-bottom: 1.75rem;
}

.program-theme-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  margin: 0 0 0.65rem;
}

.focus-item strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.pillars {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  line-height: 1.6;
}

.events-section {
  max-width: min(56rem, 100%);
}

.series-header {
  margin: 0 0 1.15rem;
}

.series-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.series-deck {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.event-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.event-grid--series {
  grid-template-columns: 1fr 1fr 1fr;
}

.event-part {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.25rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.event-card:hover,
.event-card:focus-visible {
  border-color: var(--sound);
}

.event-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: var(--bg-mid);
}

.event-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1.05rem;
}

.event-date {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sienna);
  margin: 0 0 0.35rem;
}

.event-card h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.event-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.event-cta {
  margin: auto 0 0;
  padding-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.event-card:hover .event-cta,
.event-card:focus-visible .event-cta {
  color: var(--sienna);
}

.event-photo-sebastian {
  object-position: 50% 48%;
}

.event-photo-wasabi {
  object-position: 50% 72%;
}

.event-photo-marina {
  object-position: 48% 22%;
}

.event-slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.event-slideshow-controls[hidden] {
  display: none;
}

.event-slideshow-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  cursor: pointer;
}

.event-slideshow-nav:hover,
.event-slideshow-nav:focus-visible {
  border-color: var(--sound);
  color: var(--sound);
}

.event-slideshow-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.event-slideshow-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid var(--sienna);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.event-slideshow-dots button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.event-slideshow-dots button[aria-current="true"] {
  background: var(--sienna);
}

.event-slideshow.is-ready .event-slideshow-list {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 22rem;
  margin: 0 auto;
  touch-action: pan-y;
}

.event-slideshow.is-ready .event-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.event-slideshow.is-ready .event-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.event-slideshow.is-static .event-slide {
  transition: none;
}

.founder-layout {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
}

.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

.founder-copy .outbound {
  margin-top: 1.35rem;
}

.outbound {
  margin: 1.35rem 0 0;
}

.outbound a {
  font-family: var(--font-display);
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.outbound a:hover {
  color: var(--sienna);
  border-bottom-color: var(--sienna);
}

/* Support / connect */
.connect-section .section-lead {
  margin-bottom: 1.5rem;
}

.cta-row {
  margin: 0 0 0.85rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  background: var(--ebony);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ebony);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
  background: var(--sound);
  border-color: var(--sound);
  color: var(--paper);
}

.donate-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.check-block {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 34rem;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 2.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  max-width: calc(var(--max-width) + 4rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.footer-logo {
  display: block;
  width: 5.5rem;
  height: auto;
  margin: 0 auto 1.25rem;
}

.credit,
.copyright {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.credit {
  margin-bottom: 0.45rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.supporters-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  margin: 1.35rem 0 0.35rem;
}

.supporters {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.supporters a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.9rem;
  text-decoration: none;
}

.supporters img {
  display: block;
  width: auto;
  height: 2.15rem;
}

.supporter-4culture {
  width: 5.15rem;
  height: 5.15rem;
  padding: 0.55rem;
  background: var(--ebony);
}

.supporter-4culture img {
  width: 100%;
  height: auto;
}

.credit a,
.copyright a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.credit a:hover {
  color: var(--accent-deep);
}

/* One restrained scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Narrow phones — 360px target */
@media (max-width: 420px) {
  html {
    font-size: 16px;
  }

  .header {
    align-items: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    gap: 0.65rem;
  }

  .logo-img {
    height: 2.75rem;
    max-width: 52vw;
  }

  .nav {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    justify-items: end;
    max-width: none;
  }

  .nav a {
    font-size: 0.65rem;
  }

  .hero-image {
    height: 13.5rem;
  }

  .hero-brand {
    padding-top: 2rem;
    padding-bottom: 0.25rem;
  }

  .hero-lockup {
    width: 100%;
  }

  .founder-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .founder-photo {
    width: min(12rem, 55%);
  }

  .pillars {
    letter-spacing: 0.08em;
    font-size: 0.68rem;
  }

  .event-grid,
  .event-grid--series {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) and (min-width: 421px) {
  .founder-layout {
    grid-template-columns: 8.5rem 1fr;
    gap: 1.35rem;
  }

  .event-grid,
  .event-grid--series {
    grid-template-columns: 1fr;
  }
}
