/* Home page scoped styles */
#home-main {
  --home-gutter: var(--space-md);
  --home-section-pad: var(--space-2xl);
  --home-card-gap: var(--space-md);
  --home-grid-gap: var(--space-md);
}

.home-section {
  padding-block: var(--home-section-pad);
}

.home-section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.home-section__signal {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

.home-section__signal-line {
  flex: 1 1 auto;
  height: 2px;
  background-color: var(--color-stone-30);
  position: relative;
}

.home-section__signal--on-dark .home-section__signal-line {
  background-color: var(--color-cream-15);
}

.home-section__marker {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-leading);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-stone);
  background-color: var(--color-cream);
  padding-inline: var(--space-2xs);
  border-radius: var(--radius-sm);
}

.home-section__signal--on-dark .home-section__marker {
  color: var(--color-signal);
  background-color: var(--color-ink);
}

.home-section__heading {
  margin-block-end: var(--space-md);
}

.home-section__heading--on-dark {
  color: var(--color-cream);
}

.home-section__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-leading);
  max-width: 68ch;
}

.home-section__lead--on-dark {
  color: var(--color-cream);
}

.home-emphasis {
  text-decoration: underline;
  text-decoration-color: var(--color-ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Hero */
.home-hero {
  position: relative;
  background-color: var(--color-ink);
  color: var(--color-cream);
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 18, 21, 0.2), rgba(11, 18, 21, 0.2));
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-mobile);
  padding-block: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}

.home-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
}

.home-hero__heading {
  color: var(--color-cream);
  margin-block-end: 0;
  max-width: 50ch;
}

.home-hero__accent {
  color: var(--color-ember);
}

.home-hero__subheading {
  color: var(--color-cream);
  max-width: 50ch;
  margin-block-end: 0;
}

.home-hero__underline {
  text-decoration: underline;
  text-decoration-color: var(--color-signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.home-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.home-hero__cta {
  flex: 0 1 auto;
  min-width: 0;
}

.home-hero__microline {
  color: var(--color-cream);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  margin-block-end: 0;
}

.home-hero__marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-signal);
  flex-shrink: 0;
}

/* Offline Poker */
.home-offline-poker {
  background-color: var(--color-cream);
}

.home-offline-poker__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
}

.home-offline-poker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-grid-gap);
}

.home-feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  min-width: 0;
}

.home-feature-card--light {
  background-color: var(--color-surface-light);
  border: 1px solid var(--color-stone-30);
  color: var(--color-ink);
}

.home-feature-card--dark {
  background-color: var(--color-surface-dark);
  border: 1px solid var(--color-cream-15);
  color: var(--color-cream);
}

.home-feature-card__heading {
  margin-block-end: 0;
}

.home-feature-card__text {
  max-width: 40ch;
  margin-block-end: 0;
}

.home-offline-poker__cta {
  display: flex;
  justify-content: flex-start;
}

/* Poker Room */
.home-poker-room {
  background-color: var(--color-eucalyptus);
}

.home-poker-room__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
}

.home-poker-room__figure {
  margin-block-end: 0;
}

.home-poker-room__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-cream-15);
}

.home-poker-room__caption {
  color: var(--color-cream-15);
  margin-block-start: var(--space-2xs);
}

/* Poker Tables */
.home-poker-tables {
  background-color: var(--color-cream);
}

.home-poker-tables__layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-xl);
  align-items: center;
}

.home-poker-tables__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.home-poker-tables__lead {
  max-width: 50ch;
}

.home-poker-tables__figure {
  margin-block-end: 0;
  min-width: 0;
}

.home-poker-tables__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-stone-30);
}

.home-poker-tables__caption {
  margin-block-start: var(--space-2xs);
}

/* Card Lounge, Poker Nights, Private Poker, Menu, Dining & Poker */
.home-card-lounge,
.home-poker-nights,
.home-private-poker,
.home-menu,
.home-dining-poker {
  background-color: var(--color-surface-light);
  border-block: 1px solid var(--color-stone-30);
}

.home-card-lounge__text,
.home-poker-nights__text,
.home-private-poker__text,
.home-menu__text,
.home-dining-poker__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
}

/* Poker Experience */
.home-poker-experience {
  background-color: var(--color-cream);
}

.home-poker-experience__header {
  max-width: 800px;
}

.home-poker-experience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-grid-gap);
}

.home-experience-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  min-width: 0;
}

.home-experience-card--light {
  background-color: var(--color-surface-light);
  border: 1px solid var(--color-stone-30);
  color: var(--color-ink);
}

.home-experience-card--dark {
  background-color: var(--color-surface-dark);
  border: 1px solid var(--color-cream-15);
  color: var(--color-cream);
}

.home-experience-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-leading);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-ember);
}

.home-experience-card--dark .home-experience-card__number {
  color: var(--color-signal);
}

.home-experience-card__heading {
  margin-block-end: 0;
}

.home-experience-card__text {
  max-width: 30ch;
  margin-block-end: 0;
}

.home-poker-experience__cta {
  display: flex;
  justify-content: flex-start;
}

/* Restaurant */
.home-restaurant {
  background-color: var(--color-cream);
}

.home-restaurant__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
}

.home-restaurant__figure {
  margin-block-end: 0;
}

.home-restaurant__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-stone-30);
}

.home-restaurant__caption {
  margin-block-start: var(--space-2xs);
}

/* Gallery */
.home-gallery {
  background-color: var(--color-ink);
}

.home-gallery__header {
  max-width: 800px;
}

.home-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.home-gallery__item {
  margin-block-end: 0;
  min-width: 0;
}

.home-gallery__link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-cream-15);
}

.home-gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.home-gallery__caption {
  color: var(--color-cream-15);
  margin-block-start: var(--space-2xs);
  max-width: 30ch;
}

/* Reservations */
.home-reservations {
  background-color: var(--color-eucalyptus);
}

.home-reservations__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
}

.home-reservations__cta {
  display: flex;
  justify-content: flex-start;
}

/* Contact */
.home-contact {
  background-color: var(--color-cream);
}

.home-contact__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
}

.home-contact__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.home-contact__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.home-contact__label {
  font-family: var(--font-heading);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-leading);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-stone);
}

/* Responsive */
@media (min-width: 768px) {
  .home-hero__content {
    padding-inline: var(--container-pad-tablet);
  }
}

@media (min-width: 1024px) {
  .home-hero__content {
    padding-inline: var(--container-pad-desktop);
  }
}

@media (max-width: 900px) {
  .home-offline-poker__grid,
  .home-poker-experience__grid {
    grid-template-columns: 1fr;
  }

  .home-poker-tables__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .home-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: auto;
    align-items: flex-end;
  }

  .home-hero__content {
    align-items: center;
    text-align: center;
    padding-block: var(--space-xl);
  }

  .home-hero__text {
    align-items: center;
    max-width: 100%;
  }

  .home-hero__heading,
  .home-hero__subheading {
    text-align: center;
    margin-inline: auto;
  }

  .home-hero__cta-group {
    justify-content: center;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__cta {
    width: 100%;
  }

  .home-hero__microline {
    justify-content: center;
  }

  .home-section__inner {
    gap: var(--space-md);
  }

  .home-section__heading,
  .home-section__lead {
    text-align: center;
    margin-inline: auto;
  }

  .home-offline-poker__header,
  .home-poker-room__text,
  .home-poker-tables__text,
  .home-card-lounge__text,
  .home-poker-experience__header,
  .home-poker-nights__text,
  .home-private-poker__text,
  .home-restaurant__text,
  .home-menu__text,
  .home-dining-poker__text,
  .home-gallery__header,
  .home-reservations__text,
  .home-contact__text {
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }

  .home-offline-poker__cta,
  .home-poker-experience__cta,
  .home-reservations__cta {
    justify-content: center;
  }

  .home-gallery__grid {
    grid-template-columns: 1fr;
  }

  .home-gallery__image {
    aspect-ratio: 4 / 5;
  }

  .home-contact__list {
    align-items: center;
  }

  .home-contact__item {
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero,
  .home-hero__overlay,
  .home-section__signal-line {
    transition: none;
    animation: none;
  }
}
