/* Home page (templates/home.tmpl). Uses Forgejo's theme variables only, so it follows whichever theme is active. */

.page-content.angelika-home {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 210px); /* navbar, footer and .full.height padding-bottom: 80px */
  padding: clamp(32px, 6vw, 96px) clamp(16px, 4vw, 32px);
}

.ah-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ah-title {
  margin: 0;
  font-size: clamp(48px, 7.4vw, 96px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
  color: var(--color-text);
}

.ah-lede {
  max-width: 38ch;
  margin: 32px 0 40px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--color-text);
}

/* .angelika-home prefix: Forgejo styles ".home a" with the primary colour. */
.angelika-home .ah-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.16s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.angelika-home .ah-action:hover,
.angelika-home .ah-action:focus-visible {
  background: var(--color-primary-hover);
  color: var(--color-primary-contrast);
  text-decoration: none;
}
.angelika-home .ah-action:active { transform: translateY(1px); }
.angelika-home .ah-action:focus-visible {
  outline: 3px solid var(--color-primary-alpha-60);
  outline-offset: 3px;
}

.ah-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--color-box-header);
  color: var(--color-primary);
}
.ah-mark svg { width: 70%; height: auto; overflow: visible; }
.ah-eyes { transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ah-blink { transform-box: fill-box; transform-origin: center; }

/* This page only: the bars sit on their own tone, no rule lines. */
#navbar { border-bottom-color: transparent; }
.page-footer { border-top-color: transparent; }

@media (prefers-reduced-motion: no-preference) {
  .ah-copy > *,
  .ah-mark {
    animation: ah-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .ah-copy > :nth-child(2) { animation-delay: 70ms; }
  .ah-copy > :nth-child(3) { animation-delay: 140ms; }
  .ah-mark { animation-delay: 60ms; }
  .ah-blink { animation: ah-blink 7s 2s infinite; }
}
@keyframes ah-rise {
  from { opacity: 0; transform: translateY(20px); }
}
@keyframes ah-blink {
  0%, 95%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.15); }
}

@media (max-width: 767.98px) {
  .page-content.angelika-home { align-items: flex-start; min-height: 0; }
  .ah-hero { grid-template-columns: 1fr; gap: 32px; }
  .ah-mark { order: -1; width: min(44vw, 200px); }
  .ah-lede { margin: 24px 0 32px; }
}
