:root {
  --cunny-accent: #e35d47;
  --cunny-accent-strong: #ef735f;
  --cunny-focus: #ffd166;
  --cunny-ink: #202229;
  --cunny-display-font: "Trebuchet MS", "Avenir Next", sans-serif;
}

html[data-theme="forgejo-dark"] {
  --color-body: var(--cunny-ink);
  --color-footer: #17181d;
  --color-header-wrapper: #1c1e24;
  --color-primary: var(--cunny-accent);
  --color-primary-contrast: #fff;
  --color-primary-dark-1: var(--cunny-accent-strong);
  --color-primary-dark-2: #f18a79;
  --color-primary-light-1: #cf4e3a;
  --color-primary-light-2: #b94332;
  --color-primary-alpha-10: #e35d4719;
  --color-primary-alpha-20: #e35d4733;
  --color-primary-alpha-30: #e35d474d;
  --color-primary-alpha-40: #e35d4766;
  --color-primary-alpha-50: #e35d4780;
  --color-primary-alpha-60: #e35d4799;
  --color-primary-alpha-70: #e35d47b3;
  --color-primary-alpha-80: #e35d47cc;
  --color-primary-alpha-90: #e35d47e6;
  --color-primary-hover: var(--cunny-accent-strong);
  --color-primary-active: #cf4e3a;
}

#navbar-logo img {
  content: url("/assets/img/logo.png");
  object-fit: contain;
}

:focus-visible {
  outline: 3px solid var(--cunny-focus) !important;
  outline-offset: 3px !important;
}

body:has(> .full.height > .cunny-home) > .full.height {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
}

.cunny-home {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0 !important;
}

.cunny-home-hero {
  align-items: center;
  background:
    radial-gradient(ellipse 62% 42% at center, rgb(12 14 19 / 64%) 0%, rgb(16 18 24 / 50%) 46%, rgb(20 22 28 / 25%) 100%),
    url("/assets/img/cunny-hero.jpg") center 40% / cover no-repeat;
  color: #fff;
  display: flex;
  flex: 1;
  isolation: isolate;
  justify-content: center;
  margin: 0 !important;
  min-height: 0;
  padding: clamp(3rem, 8vh, 6rem) max(1.25rem, env(safe-area-inset-left)) max(3rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-right));
  position: relative;
  text-align: center;
  width: 100%;
}

.cunny-home-content {
  margin-inline: auto;
  max-width: 760px;
}

.cunny-home h1 {
  color: #fff;
  font-family: var(--cunny-display-font);
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-shadow: 0 3px 1px rgb(0 0 0 / 88%), 0 3px 20px rgb(0 0 0 / 80%);
}

.cunny-home h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 750;
  margin: 1.25rem 0 0;
  text-shadow: 0 2px 12px rgb(0 0 0 / 88%);
}

.cunny-home-description {
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.6;
  margin: 0.9rem auto 0;
  max-width: 620px;
  text-shadow: 0 2px 10px rgb(0 0 0 / 90%);
}

.cunny-home-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.cunny-home-actions .ui.button {
  backdrop-filter: blur(8px);
  background: rgb(32 34 41 / 78%);
  border: 1px solid rgb(255 255 255 / 34%);
  box-shadow: 0 5px 18px rgb(0 0 0 / 28%);
  color: #fff;
  min-width: 10rem;
}

.cunny-home-actions .ui.button:hover,
.cunny-home-actions .ui.button:focus-visible {
  background: rgb(45 48 57 / 92%);
  border-color: rgb(255 255 255 / 58%);
  color: #fff;
  transform: translateY(-1px);
}

.cunny-home-actions .ui.primary.button {
  background: var(--cunny-accent);
  border-color: var(--cunny-accent);
}

.cunny-home-actions .ui.primary.button:hover,
.cunny-home-actions .ui.primary.button:focus-visible {
  background: var(--cunny-accent-strong);
  border-color: var(--cunny-accent-strong);
}

@media (max-width: 42.5rem) {
  .cunny-home-hero {
    padding-top: 2.75rem;
  }

  .cunny-home-actions {
    align-items: stretch;
    flex-direction: column;
    margin-inline: auto;
    max-width: 18rem;
  }

  .cunny-home-actions .ui.button {
    margin: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cunny-home-actions .ui.button {
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }
}
