/* The Soulstice Collective — site styles */
/* Fonts are self-hosted (no Google Fonts request, nothing to declare in the privacy policy). SIL Open Font License. */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-wght-italic.woff2') format('woff2'); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  --purple: #24123F;
  --purple-2: #351A55;
  --cream: #F7F0B5;
  --lavender: #DCD0EA;
  --muted: #A99BBE;
  --orange: #E2511A;
  --green: #174F51;
  --line: rgba(220, 208, 234, 0.16);
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --text: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--purple);
  color: var(--lavender);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Page frame */
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; position: relative; }
.page--fit { height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.grow { flex: 1; }

/* Header + nav */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 24px 40px; position: relative; z-index: 2;
}
.site-header .logo { display: block; justify-self: start; }
.site-header .logo img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.nav a, .footer a {
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; text-underline-offset: 6px; color: var(--lavender);
}
.nav a { font-size: 13px; }
.nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; }
.nav a:hover, .footer a:hover { color: var(--cream); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px;
  padding: 32px 24px; position: relative; z-index: 2;
}
.footer a { font-size: 12px; }
.footer a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Type */
.display {
  margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 108%;
  text-transform: uppercase; line-height: 0.95; color: var(--cream); text-wrap: balance;
}
.orange { color: var(--orange); }
.eyebrow {
  margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lavender);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border: 1px solid var(--cream); border-radius: 0;
  background: transparent; color: var(--cream);
  font: 500 13px/1 var(--text); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.22, 1, 0.36, 1), color 150ms;
}
.btn:hover { background: var(--cream); color: var(--purple); }
.btn--solid { background: var(--cream); color: var(--purple); font-weight: 600; letter-spacing: 0.12em; padding: 14px 24px; }
.btn--solid:hover { background: #FFF8BE; }

/* Sign-up */
.signup { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.signup__row { display: flex; }
.signup input {
  width: 240px; max-width: 60vw; padding: 11px 14px; border: 1px solid var(--lavender); border-right: 0;
  border-radius: 0; background: rgba(36, 18, 63, 0.6); color: var(--cream);
  font: 400 15px var(--text);
}
.signup input::placeholder { color: var(--muted); }
.signup .btn { padding: 11px 18px; font-size: 12px; }
.signup__msg { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--cream); }
.small-link {
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lavender); text-underline-offset: 4px;
}
.small-link:hover { color: var(--cream); }

/* Full-bleed video pages (Home, Events) */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrim { position: absolute; inset: 0; background: rgba(36, 18, 63, 0.45); }
.center-stack {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 32px; padding: 24px 24px 48px; text-align: center;
}
.home .center-stack { padding-top: 120px; }
.home h1 { font-size: 20px; line-height: 1; }
.home .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.home .buttons .btn { min-width: 140px; }
.events h1 { font-size: 48px; line-height: 1; }

/* Collage pages (About, Risers) */
.collage {
  position: relative; flex: 1; min-height: 0; width: 100%; max-width: 1440px; margin: 0 auto;
}
.collage__photo { position: absolute; overflow: hidden; margin: 0; }
.collage__photo img { width: 100%; height: 100%; object-fit: cover; }
.collage__photo::after { content: ''; position: absolute; inset: 0; background: rgba(36, 18, 63, 0.55); }
.collage__copy {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px; padding: 0 24px 24px; text-align: center;
}
.collage__copy h1 { font-size: 72px; max-width: 1000px; }
.collage__copy p { margin: 0; max-width: 600px; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.signoff { font-size: 13px !important; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); }

/* Risers: lavender theme */
.theme-lavender { background: var(--lavender); color: var(--purple); }
.theme-lavender .nav a, .theme-lavender .footer a { color: var(--purple); }
.theme-lavender .nav a:hover, .theme-lavender .footer a:hover { color: var(--green); }
.theme-lavender .nav a[aria-current="page"] { color: var(--purple); }
.theme-lavender a:focus-visible { outline-color: var(--purple); }
.theme-lavender .collage__photo::after { background: rgba(220, 208, 234, 0.55); }
.theme-lavender .collage__copy h1 { color: var(--green); }
.theme-lavender .btn--solid { background: var(--purple); color: var(--cream); }
.theme-lavender .btn--solid:hover { background: var(--green); color: var(--cream); }

/* Reading pages (Article, Privacy) */
.reading {
  width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 24px 120px;
  display: flex; flex-direction: column; gap: 40px;
}
.reading h1 { font-size: 48px; line-height: 0.98; }
.byline { margin: 0; font-size: 14px; color: var(--muted); }
.byline span + span { margin-left: 32px; }
.prose { display: flex; flex-direction: column; gap: 24px; font-size: 18px; line-height: 1.75; }
.prose p { margin: 0; }
.cover { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; }

.legal { max-width: 720px; }
.legal h2 {
  margin: 0 0 12px; font-family: var(--display); font-size: 20px; line-height: 1.1;
  font-weight: 800; font-stretch: 108%; text-transform: uppercase; color: var(--cream);
}
.legal h3 { margin: 16px 0 4px; font-size: 16px; font-weight: 600; color: var(--cream); }
.legal p, .legal li { margin: 0; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--cream); text-underline-offset: 3px; }
.legal section { display: flex; flex-direction: column; }

/* Archive */
.archive {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 40px 120px;
  display: flex; flex-direction: column; gap: 32px;
}
.archive__intro { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--orange); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  padding: 10px 18px; border: 1px solid var(--lavender); border-radius: 0; background: transparent;
  color: var(--lavender); font: 500 12px var(--text); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--lavender); color: var(--purple); }
.archive__body { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.archive__list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.year h2 {
  margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 900; font-stretch: 108%; color: var(--orange);
}
.row {
  display: grid; grid-template-columns: 80px 96px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px; align-items: baseline; width: 100%; padding: 12px 8px; margin: 0;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  color: inherit; font: inherit; text-align: left;
  transition: background-color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
button.row { cursor: pointer; }
.row.is-active { background: var(--purple-2); }
.row__cat { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.row__type { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.row__title {
  display: flex; align-items: baseline; gap: 10px; font-family: var(--display);
  font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--cream);
}
.row__dot { flex: none; width: 7px; height: 7px; }
button.row .row__dot { background: var(--orange); }
.row__detail { font-size: 14px; line-height: 1.5; }
.row__inline { display: none; }
.preview { flex: 1 1 320px; max-width: 380px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.preview__media { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.preview__caption { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Tablet */
@media (max-width: 1024px) {
  .collage__copy h1 { font-size: 56px; }
}

/* Mobile */
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding: 20px 16px; }
  .site-header .logo { justify-self: center; }
  .site-header .logo img { height: 48px; }
  .nav { gap: 12px 20px; }
  .nav a { font-size: 12px; }
  .footer { gap: 14px 22px; padding: 28px 16px; }

  .home h1 { font-size: 15px; }
  .home .center-stack { padding-top: 64px; gap: 28px; }
  .home .buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 340px; }
  .home .buttons .btn { min-width: 0; padding: 14px 8px; }
  .events h1 { font-size: 40px; }

  /* Collage: text first, then the photos as a tight grid */
  .page--fit { height: auto; min-height: 100svh; overflow: visible; }
  .collage { display: flex; flex-direction: column; }
  .collage__copy { position: relative; inset: auto; order: -1; padding: 32px 20px 40px; }
  .collage__copy h1 { font-size: 44px; }
  .collage__copy p { font-size: 16px; }
  .collage__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 6px; }
  .collage__photo { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; aspect-ratio: 4 / 5; }
  .collage__photo:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }

  .reading { padding: 32px 20px 80px; gap: 32px; }
  .reading h1 { font-size: 34px; }
  .prose { font-size: 17px; }

  .archive { padding: 24px 16px 80px; gap: 24px; }
  .preview { display: none; }
  .year h2 { font-size: 32px; }
  .row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 4px; }
  .row__cat { order: 2; text-align: right; }
  .row__type { order: 1; }
  .row__title { order: 3; grid-column: 1 / -1; font-size: 18px; }
  .row__detail { order: 4; grid-column: 1 / -1; }
  .row.is-open .row__inline { display: block; order: 5; grid-column: 1 / -1; margin-top: 10px; }
  .row__inline img, .row__inline video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .page.has-poster { background-size: cover; background-position: center; }
}
