:root {
  color-scheme: dark;
}

body {
  background: var(--site-background);
  color: var(--site-text);
}

.home-main p,
.home-main h1,
.home-main h2,
.home-main h3 {
  margin: 0;
}

.home-main {
  overflow-wrap: break-word;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(3.5rem, 6.5vw, 6rem);
}

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 85% 38%,
    rgba(145, 98, 48, 0.17),
    rgba(94, 64, 34, 0.06) 38%,
    transparent 66%
  );
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--site-background), transparent 72%),
    linear-gradient(0deg, var(--site-background), transparent 30%);
}

.hero-circle {
  position: absolute;
  top: -5rem;
  left: calc(50% + 1.5rem);
  width: clamp(38rem, 63vw, 60rem);
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #211a12, #100f0c 52%, var(--site-background))
      padding-box,
    conic-gradient(
        from 180deg,
        rgba(198, 165, 117, 0.02),
        rgba(198, 165, 117, 0.5) 115deg,
        rgba(198, 165, 117, 0.08) 200deg,
        transparent 290deg
      )
      border-box;
  box-shadow: -2rem -1rem 6rem rgba(160, 105, 48, 0.07);
}

.hero-inner {
  position: relative;
}

.hero-copy {
  max-width: 46rem;
}

.home-main .eyebrow {
  color: var(--site-accent);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.625rem;
  font-size: clamp(3.25rem, 8vw, 6.25rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.hero h1 span {
  color: var(--site-accent);
}

.hero .hero-description {
  max-width: 27rem;
  margin-top: 1.75rem;
  color: var(--site-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-action {
  margin-top: 1.75rem;
}

.hero-action-links {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.hero-app-action .home-link {
  min-height: 52px;
}

.hero-action .availability {
  margin-top: 0.875rem;
  color: var(--site-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.app-facts {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.375rem;
  margin: 4.5rem 0 0;
  padding: 1.375rem 0;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 0.75rem;
  line-height: 1.5;
  list-style: none;
}

.app-overview {
  background: var(--site-surface);
}

.home-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 3.125rem;
  padding-block: 3.5625rem;
}

.home-section h2,
.community-heading h2,
.stay-connected h2 {
  margin-top: 1.1875rem;
  font-size: clamp(1.875rem, 3.25vw, 2.4375rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.home-section .app-invitation {
  margin-top: 1rem;
  color: var(--site-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.app-download {
  container: app-download / inline-size;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.875rem 1rem;
  margin-top: 1.5rem;
}

.app-store-option {
  display: grid;
  justify-items: center;
  gap: 0.875rem;
}

.app-download-qr {
  width: 9rem;
  height: auto;
  border-radius: 3px;
}

.app-scan-label {
  flex-basis: 100%;
  color: var(--site-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.store-badge,
.store-badge img {
  display: block;
}

.store-badge {
  border-radius: 5px;
}

.store-badge img {
  width: auto;
  height: 3rem;
}

@container app-download (max-width: 20.25rem) {
  .store-badge img {
    width: 10rem;
    height: auto;
  }
}

.site-footer .store-credits {
  margin-top: 0.75rem;
  color: var(--site-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.9375rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--site-line);
}

.feature:first-child {
  padding-top: 0;
}

.feature:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.feature-index {
  color: var(--site-accent);
  font-size: 0.6875rem;
  line-height: 1.5rem;
}

.feature h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.feature p {
  margin-top: 0.5rem;
  color: var(--site-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.community-section {
  padding-block: 4.5rem 4.75rem;
}

.community-paths {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 3.125rem;
  align-items: start;
  margin-top: 2.5rem;
}

.public-event {
  padding: 2rem;
  border-top: 1px solid var(--site-accent);
  background: linear-gradient(135deg, #1c1913, var(--site-surface));
}

.event-announcement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  margin-block: 1.75rem;
}

.event-date {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--site-line);
}

.event-day {
  color: var(--site-text);
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.event-month,
.event-weekday {
  color: var(--site-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.event-details h3,
.members-path h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.event-details h3 {
  margin-top: 0.5rem;
}

.event-details .event-location {
  margin-top: 0.625rem;
  color: var(--site-accent);
  font-size: 0.875rem;
  line-height: 1.5;
}

.community-description {
  color: var(--site-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.members-path {
  padding-top: 2rem;
  border-top: 1px solid var(--site-line);
}

.members-path h3 {
  margin-block: 1.75rem 1rem;
}

.members-path .community-description + .community-description {
  margin-top: 1rem;
}

.members-path .members-availability {
  margin-top: 2rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.members-availability .home-link {
  margin-left: 0.25rem;
  font-size: inherit;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
  min-height: 44px;
  padding-block: 0.625rem;
  color: var(--site-text);
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 180ms ease;
}

.home-link:hover {
  color: var(--site-accent);
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--site-text);
  color: var(--site-background);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.home-button:hover {
  background: var(--site-accent);
}

.home-button:active {
  background: var(--site-muted);
}

.event-link {
  margin-top: 1.5rem;
}

.stay-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3.125rem;
  padding-block: 3.5625rem;
}

.stay-connected .stay-connected-description {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--site-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.stay-connected > .home-link {
  flex-shrink: 0;
  min-height: 52px;
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .home-section {
    grid-template-columns: minmax(21rem, 0.85fr) minmax(0, 1.25fr);
  }

  .app-download-qr,
  .app-scan-label {
    display: block;
  }
}

@media (max-width: 900px) {
  .community-paths {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .members-path {
    padding-top: 1.75rem;
  }

  .members-path .community-description {
    max-width: 36rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.25rem;
  }

  .hero-atmosphere {
    background: radial-gradient(
      ellipse at 110% 18%,
      rgba(145, 98, 48, 0.15),
      transparent 65%
    );
  }

  .hero-circle {
    left: 44%;
    width: 32rem;
    opacity: 0.65;
  }

  .hero h1 {
    margin-top: 1.375rem;
    font-size: clamp(2.5625rem, 11.7vw, 3.875rem);
  }

  .hero .hero-description {
    margin-top: 1.5rem;
  }

  .app-facts {
    margin-top: 3rem;
    gap: 0.5625rem 0.9375rem;
    font-size: 0.6875rem;
  }

  .home-section {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 2.5rem;
  }

  .feature-list {
    padding-top: 1.5rem;
    border-top: 1px solid var(--site-line);
  }

  .home-section h2,
  .community-heading h2,
  .stay-connected h2 {
    margin-top: 0.875rem;
    font-size: 1.875rem;
  }

  .community-section {
    padding-block: 3rem;
  }

  .community-paths {
    margin-top: 1.75rem;
  }

  .public-event {
    padding: 1.5rem;
  }

  .event-announcement {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-block: 1.5rem;
  }

  .event-date {
    flex-direction: row;
    align-items: end;
    gap: 1rem;
    padding-right: 0;
    border-right: 0;
  }

  .event-day {
    font-size: 4rem;
  }

  .event-month {
    max-width: 6rem;
  }

  .hero-action-links {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-action .availability {
    margin-top: 0.5rem;
  }

  .event-link {
    width: 100%;
  }

  .stay-connected {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
    padding-block: 2.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-enter 560ms ease-out both;
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-button,
  .home-link {
    transition: none;
  }
}

@media (forced-colors: active) {
  .hero-atmosphere {
    display: none;
  }

  .home-button {
    border-color: ButtonText;
  }

  .public-event {
    background: Canvas;
    border-color: CanvasText;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .home-main {
    --site-text: #000;
    --site-muted: #333;
    --site-accent: #554322;
    --site-surface: #fff;
  }

  .hero {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-copy {
    animation: none;
  }

  .hero-action,
  .hero-atmosphere {
    display: none;
  }

  .public-event {
    background: white;
  }

  .home-section,
  .public-event,
  .members-path,
  .stay-connected {
    break-inside: avoid;
  }
}
