/* ==========================================================================
   Lifest.info: hub for the Lifest festival and Lifest Gives
   Palette and type match lifest.com (Archivo + Figtree).
   ========================================================================== */

:root {
  --red: #b2282e;
  --red-600: #9a2027;
  --red-100: #f6dcdd;
  --red-50: #fcf0f0;
  --ink: #1a1315;
  --ink-800: #241b1e;
  --ink-700: #3a2e32;
  --ink-500: #6a5c60;
  --ink-300: #a89a9d;
  --cream: #fbf6ef;
  --sand: #f3eadd;
  --white: #fff;
  --sun: #ffc845;
  --sun-600: #f0b11a;
  --line: rgba(26, 19, 21, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --topbar-h: 60px;
  --gutter: clamp(20px, 5vw, 88px);
  --container: 1200px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

h2,
h3,
.panel__tagline {
  text-wrap: balance;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  display: none;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 10;
  height: var(--topbar-h);
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* Baseline-aligned so the pick, wordmark and ".info" all sit on one line */
.topbar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topbar__pick {
  width: 22px;
  height: 25px;
  margin-right: 7px;
  color: var(--red);
}

.topbar__wordmark {
  width: auto;
  height: 24px;
  aspect-ratio: 622 / 200;
  color: var(--white);
}

.topbar__tld {
  color: var(--ink-300);
  font-weight: 600;
}

.topbar__note {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-300);
}

/* --------------------------------------------------------------------------
   Split hero
   -------------------------------------------------------------------------- */

.split {
  position: relative;
  display: flex;
  min-height: clamp(640px, calc(100svh - var(--topbar-h)), 1000px);
}

.panel {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  transition: flex-grow 0.7s var(--ease);
}

.panel__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel__logo {
  display: flex;
  align-items: flex-end;
  height: clamp(84px, 9vw, 132px);
}

.panel__tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(1.6rem, 1rem + 1.9vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.panel__tagline em {
  font-style: normal;
}

.panel__lede {
  max-width: 34em;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--sun {
  background: var(--sun);
  color: var(--ink);
}

.btn--sun:hover {
  background: var(--sun-600);
  box-shadow: 0 10px 28px rgba(255, 200, 69, 0.3);
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--red-600);
  box-shadow: 0 10px 30px rgba(178, 40, 46, 0.35);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn--ghost-dark {
  border-color: rgba(26, 19, 21, 0.25);
  color: var(--ink);
}

.btn--ghost-dark:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* Festival panel ----------------------------------------------------------- */

.panel--fest {
  color: var(--white);
  background: var(--ink);
}

.panel--fest .panel__bg {
  background:
    radial-gradient(ellipse 90% 60% at 10% 105%, rgba(178, 40, 46, 0.6), transparent 70%),
    linear-gradient(165deg, rgba(26, 19, 21, 0.55) 0%, rgba(26, 19, 21, 0.8) 55%, rgba(26, 19, 21, 0.94) 100%),
    url("assets/img/festival-crowd.webp") center / cover no-repeat;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}

.panel--fest:hover .panel__bg {
  transform: scale(1.07);
}

.eyebrow--fest {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sun);
  backdrop-filter: blur(6px);
}

.fest-wordmark {
  width: auto;
  height: 82%;
  aspect-ratio: 622 / 200;
  color: var(--white);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35));
}

.panel--fest .panel__tagline em {
  color: var(--sun);
}

.panel--fest .panel__lede {
  color: rgba(255, 255, 255, 0.82);
}

.fest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 600;
}

.fest-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fest-meta .icon {
  color: var(--sun);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 420px;
  border-block: 1px solid var(--line-dark);
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 14px 0;
}

.stats div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line-dark);
}

.stats dd {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem);
  line-height: 1;
}

.stats dt {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-300);
}

/* Lifest Gives panel ------------------------------------------------------- */

.panel--gives {
  color: var(--ink);
  background: var(--cream);
}

.panel--gives .panel__bg {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, var(--red-50), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, var(--sand), transparent 70%),
    var(--cream);
}

.gives-heart {
  position: absolute;
  right: -12%;
  bottom: -14%;
  width: min(70%, 560px);
  height: auto;
  color: var(--red);
  opacity: 0.07;
  transform: rotate(-12deg);
  transition: transform 1.4s var(--ease), opacity 1.4s var(--ease);
}

.panel--gives:hover .gives-heart {
  opacity: 0.1;
  transform: rotate(-6deg) scale(1.05);
}

.eyebrow--gives {
  background: var(--red-50);
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red-100);
}

.gives-logo {
  width: auto;
  height: 100%;
}

.panel--gives .panel__tagline em {
  color: var(--red);
}

.panel--gives .panel__lede {
  color: var(--ink-700);
}

.focus {
  display: grid;
  gap: 14px;
}

.focus li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-500);
  font-size: 0.98rem;
  line-height: 1.4;
}

.focus strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.focus__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
  color: var(--red);
  box-shadow: 0 1px 2px rgba(26, 19, 21, 0.06), 0 4px 14px rgba(26, 19, 21, 0.06);
}

.focus__icon .icon {
  width: 22px;
  height: 22px;
}

/* Seam badge --------------------------------------------------------------- */

.seam {
  position: relative;
  z-index: 3;
  flex: 0 0 0;
}

.seam__badge {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1;
  box-shadow: 0 0 0 7px var(--cream), 0 14px 40px rgba(26, 19, 21, 0.35);
  transform: translate(-50%, -50%);
}

/* Grow the hovered panel on wide screens with a real pointer */
@media (min-width: 960px) and (hover: hover) {
  .panel:hover {
    flex-grow: 1.14;
  }
}

/* Stack panels on narrow screens */
@media (max-width: 959px) {
  .split {
    flex-direction: column;
    min-height: 0;
  }

  .panel {
    flex: none;
  }

  .panel__content {
    padding-block: 72px 64px;
  }

  .seam {
    flex-basis: 0;
    height: 0;
  }

  .seam__badge {
    top: 0;
    left: 50%;
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }

  .gives-heart {
    width: 80%;
  }
}

/* --------------------------------------------------------------------------
   Better together
   -------------------------------------------------------------------------- */

.together {
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.together__head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.kicker {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.together h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 105%;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.together__lede {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-700);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.1;
}

.card__list {
  display: grid;
  align-content: start;
  gap: 14px;
  flex: 1;
}

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
}

.card__list .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding-top: 18px;
  font-weight: 700;
  text-decoration: none;
}

.card__link .icon {
  transition: transform 0.2s var(--ease);
}

.card__link:hover .icon {
  transform: translateX(4px);
}

.card--fest {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(178, 40, 46, 0.35), transparent 70%),
    var(--ink);
  color: var(--white);
}

.card--fest .card__list li {
  color: rgba(255, 255, 255, 0.85);
}

.card--fest .card__list .icon,
.card--fest .card__link {
  color: var(--sun);
}

.card--gives {
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}

.card--gives .card__list li {
  color: var(--ink-700);
}

.card--gives .card__list .icon,
.card--gives .card__link {
  color: var(--red);
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-top: clamp(56px, 7vw, 80px);
  background: var(--ink);
  color: var(--ink-300);
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px 32px;
}

.footer__brand p {
  max-width: 26em;
  margin-top: 16px;
}

.footer__wordmark {
  width: 132px;
  height: auto;
  aspect-ratio: 622 / 200;
  color: var(--white);
}

.footer h3 {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, color 0.2s;
}

.social a:hover {
  background: var(--red);
}

.social .icon {
  width: 18px;
  height: 18px;
}

.footer__legal {
  margin-top: clamp(40px, 6vw, 64px);
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .topbar__note {
    display: none;
  }

  .stats div + div {
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
