/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

:root {
  --c-background: #ffffff;
  --c-text: #141414;
  --c-green: #00ca4e;
  --c-darkgreen: #009D77;

  --fs-xs: 0.75rem;
  --fs-s: 1rem;
  --fs-m: 1.5rem;

  --font-pop: 'Poppins', sans-serif;
  --font-krona: 'Krona One', sans-serif;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 1rem;
  --space-s: 1.5rem;
  --space-2xl: 6rem;
}

/* ── Base ──────────────────────────────────────────────── */
body {
  font-family: var(--font-pop);
  color: var(--c-text);
  background: var(--c-background);
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  display: flex;
  flex-flow: column nowrap;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-height: 100vh;
}

/* ── Header ────────────────────────────────────────────── */
.header {
  width: 100%;
  padding: var(--space-2xs) var(--space-s);
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  z-index: 100;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: var(--space-2xs);
}

.title {
  font-size: var(--fs-m);
  cursor: default;
}

.subtitle {
    text-align: center;
    padding: var(--fs-s);
}

.page-label {
  font-size: var(--fs-xs);
  opacity: 0.6;
}

.nav__link {
  font-size: var(--fs-s);
  position: relative;
  opacity: 0.55;
  cursor: default;
}

.nav__sep {
  opacity: 0.35;
  user-select: none;
}

/* ── Main content ──────────────────────────────────────── */
.home-about-cta {
  padding: var(--space-2xl) var(--space-s);
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  justify-content: center;
}

.cta__img {
  max-width:70vw;
  width: 100%;
  transform: rotate(0deg);
  transition: transform 1s ease;
}

.cta__img:hover,
.cta__img.is-active {
  transform: rotate(2deg);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-s);
  padding: var(--space-xs) 0;
}

.footer__text {
  font-size: var(--fs-s);
  padding-left: var(--space-s);
  padding-bottom: var(--space-xs);
}

.footer__list {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-s);
  padding-right: var(--space-s);
}

.footer__list .footer__text,
.footer__text:last-child { padding-left: 0; }

/* ── Links (footer) ────────────────────────────────────── */
.link {
  color: var(--c-darkgreen);
  text-decoration: none;
  position: relative;
}

.link::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  background-color: var(--c-darkgreen);
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.link:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

/* ── Custom cursor ─────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--c-green);
  border-radius: 50%;
  opacity: 0.3;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
  user-select: none;
  pointer-events: none;
  z-index: 10000;
}

.hover-cursor {
  background-color: transparent;
  backdrop-filter: blur(5px);
  border: solid 1px var(--c-text);
  opacity: 1;
}

/* Touch devices: no custom cursor */
@media (hover: none), (max-width: 700px) {
  .cursor { display: none; }
}

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header { padding: var(--space-3xs) var(--space-xs); }
  .page-label { display: none; }
  .title { font-size: var(--fs-s); }
  .nav__link { font-size: 0.875rem; }

  .home-about-cta { padding: var(--space-s) var(--space-xs) var(--space-xs); }

  .footer {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }
  .footer__text { padding: 0 var(--space-xs) var(--space-2xs); }
  .footer__list { justify-content: center; padding-right: 0; }
}