/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text:  #1a1a1a;
  --muted: #555555;
  --bg:    #FFE600;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Times New Roman', Times, serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.125rem;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ── */
header {
  border-bottom: 2px solid #1a1a1a;
}

nav {
  max-width: 500px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-style: italic;
  font-size: 1rem;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.5;
}

/* ── Main: centreret visitkort ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.kort {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* ── Profilbillede ── */
.profil-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.profil {
  width: min(500px, 92vw);
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── Navn ── */
h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* ── Om-tekst ── */
.om {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── Kontakt ── */
.kontakt-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-style: normal;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.email-link {
  display: inline-block;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 1.125rem;
  font-style: italic;
  transition: opacity 0.2s;
}

.email-link:hover {
  opacity: 0.5;
}

/* ── Lille hoved ── */
.flyvende-hoved {
  position: fixed;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: top 0.6s cubic-bezier(.22,1,.36,1), left 0.6s cubic-bezier(.22,1,.36,1);
  user-select: none;
}

.flyvende-hoved img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

