:root {
  --color-primary: #147d63;
  --color-primary-dark-1: #116e65;
  --color-primary-dark-2: #0e5f58;
  --color-primary-dark-3: #0b504a;
  --color-primary-light-1: #178f83;
  --color-primary-light-2: #1aa194;
  --color-primary-light-3: #1db3a5;
}

:root[data-theme-dark] {
  --color-text-link: #086b61;
  --color-text-link-hover:#b0f4e9;
}

.hape-home {
  --hape-accent: #086b61;
  --hape-muted: #526d68;
  --hape-line: #bdd8d2;

  width: min(42rem, calc(100% - 3rem));
  margin: clamp(3rem, 12vh, 9rem) auto;
  text-align: center;
  padding-block: 2rem;
  border-top: 2px solid var(--hape-accent);
}

:root[data-theme-dark] .hape-home {
  --hape-accent: #70ded0;
  --hape-muted: #a5bbb7;
  --hape-line: #31504b;
}

.hape-kicker {
  margin: 0 0 1.5rem;
  color: var(--hape-accent);
  font-family: var(--fonts-monospace);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.hape-home h1 {
  margin: 0;
  font-size: clamp(2.4rem,8vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.hape-description {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  margin-inline: auto;
  color: var(--hape-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hape-links {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hape-links a {
  padding: 0.7rem 1rem;
  border: 1px solid var(--hape-line);
  border-radius: 0.35rem;
  color: var(--hape-accent);
  font-family: var(--font-monospace);
  text-decoration: none;
}

.hape-links a:hover {
  border-color: var(--hape-accent);
  Background: color-mix(in srgb, var(--hape-accent) 8%, transparent);
}

.hape-links a:focus-visible {
  outline: 2px solid var(--hape-accent);
  outline-offset: 4px;
}

.hape-footnote {
  margin-top: 3rem;
  color: var(--hape-muted);
  font-family: var(--fonts-monosapce);
  font-size: 0.8rem;
}

.page-content.home:has(.hape-home) {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;

  min-height: calc(100dvh - 8rem);
  box-sizing: border-box;
  padding: 2rem 1.5rem;
}

.page-content.home .hape-home {
  width: min(42rem, 100%);
  margin: 0;
}

.hape-home {
  outline: none !important;
  border: 1px solid var(--hape-accent);
  border-radius: 0.6rem;
  passing: clamp(1.5rem, 5vw, 3rem);
  box-sizing: border-box;
  background: color-mix(in srgb, var(--hape-accent) 4%, transparent);
}
