/* Garfield Hub homepage styles only.
   This file is linked from templates/home.tmpl, so it is not loaded on
   repository or other Gitea pages. All selectors stay under
   .garfield-hub-home to avoid leaking styles if the file is ever reused. */

.page-content.home.garfield-hub-home {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100%;
  background: transparent;
}

.garfield-hub-home .garfield-hub-hero {
  --garfield-home-bg: url("../img/jon-home.webp");
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
  padding: 2.5rem 1.25rem 3rem;
  background-color: #7eaed8;
  background-image: var(--garfield-home-bg), url("../img/jon-home.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  /* Keep the sofa, window, and napping cat in frame on narrow screens. */
  background-position: 70% 50%, 70% 50%;
}

.garfield-hub-home .garfield-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 30, 50, 0.12) 0%,
    rgba(20, 30, 50, 0.08) 40%,
    rgba(40, 20, 30, 0.22) 100%
  );
}

.garfield-hub-home .garfield-hub-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(34rem, 100%);
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  color: #2a1c12;
  background: rgba(255, 250, 244, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.25rem;
  box-shadow:
    0 18px 40px rgba(40, 20, 30, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.garfield-hub-home .garfield-hub-logo {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(40, 20, 30, 0.22);
  background: #57b7ed;
}

.garfield-hub-home .garfield-hub-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #1f140c;
}

.garfield-hub-home .garfield-hub-tagline {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #c45a12;
}

.garfield-hub-home .garfield-hub-sub {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #5b4638;
}

.garfield-hub-home .garfield-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.garfield-hub-home a.garfield-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid #c45a12;
  background: #fff7ef;
  color: #9a3d08 !important;
  font-weight: 650;
  text-decoration: none !important;
  box-shadow: 0 2px 0 rgba(154, 61, 8, 0.12);
}

.garfield-hub-home a.garfield-hub-btn:hover,
.garfield-hub-home a.garfield-hub-btn:focus {
  background: #fff;
  color: #7a2e04 !important;
}

.garfield-hub-home a.garfield-hub-btn-primary {
  background: #e36b00;
  border-color: #c45a12;
  color: #fffdf8 !important;
}

.garfield-hub-home a.garfield-hub-btn-primary:hover,
.garfield-hub-home a.garfield-hub-btn-primary:focus {
  background: #c45a12;
  color: #fffdf8 !important;
}

.garfield-hub-home .garfield-hub-credit {
  margin: 1.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #6d5a4d;
}

@media (max-width: 640px) {
  .garfield-hub-home .garfield-hub-hero {
    min-height: calc(100vh - 6.5rem);
    padding: 1.5rem 0.9rem 2rem;
    background-position: 80% 55%, 80% 55%;
  }

  .garfield-hub-home .garfield-hub-card {
    padding: 1.5rem 1.1rem 1.2rem;
  }

  .garfield-hub-home a.garfield-hub-btn {
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .garfield-hub-home * {
    transition: none !important;
  }
}
