/* Lightweight responsive styles for vimlatipsning.se */
:root {
  color-scheme: dark;
  --background: #171819;
  --text: #f7f7f7;
  --muted: #c9c9c9;
  --accent: #55b85c;
  --accent-hover: #46a94e;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 2px,
      transparent 2px,
      transparent 9px
    ),
    radial-gradient(ellipse at center, #28292a 0%, #1c1d1e 58%, #151617 100%);
}

.page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 7vh, 5rem) 1.25rem;
}

.hero {
  width: 100%;
  text-align: center;
}

.content {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #70d17a;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

h1,
h2 {
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h1 {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.intro {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--accent-hover);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.friend {
  margin: clamp(2.5rem, 6vh, 4rem) auto 0;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

.friend p,
.contact {
  max-width: 680px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact {
  margin-top: 2rem;
  margin-bottom: 0;
}

.contact a {
  color: #70d17a;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.contact a:hover {
  color: #a0e6a6;
}

@media (max-width: 520px) {
  .page {
    padding: 2.5rem 1.15rem;
  }

  .button {
    width: 100%;
    max-width: 360px;
  }

  .friend {
    margin-top: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
