:root {
  color-scheme: light;
  --bg: #fdfbf8;
  --text: #2b2b2b;
  --muted: #7a736b;
  --orange: #f07a24;
  --orange-deep: #e3591a;
  --grey: #4a4a4a;
  --line: rgba(43, 43, 43, 0.1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Bløde farveglød i baggrunden – logoets orange og grå */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glow::before,
.glow::after {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: drift 22s ease-in-out infinite alternate, pulse 7s ease-in-out infinite;
}
.glow::before {
  top: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle, #ffb37a 0%, rgba(255, 179, 122, 0) 65%);
}
.glow::after {
  bottom: -35vmax;
  right: -25vmax;
  background: radial-gradient(circle, #c9c4bf 0%, rgba(201, 196, 191, 0) 65%);
  animation-delay: -11s;
}
/* Diskret prikmønster */
.dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(43, 43, 43, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 32px;
  text-align: center;
}
h1 { margin: 0; }
/* Kontakt er skjult og vises kun ved hover/fokus (tap på mobil) på logoet */
.brand {
  position: relative;
  border-radius: 16px;
  outline: none;
}
.brand:focus-visible {
  outline: 2px dashed var(--muted);
  outline-offset: 12px;
}
.logo {
  display: block;
  width: min(320px, 70vw);
  height: auto;
  /* Får JPG'ens hvide baggrund til at forsvinde mod den lyse baggrund */
  mix-blend-mode: multiply;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.brand:hover .logo,
.brand:focus-within .logo {
  transform: scale(1.03);
}

.divider {
  width: 56px;
  height: 3px;
  margin: 32px auto 28px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--grey));
  animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.contact {
  /* Absolut placeret, så logoet forbliver centreret når kontakt er skjult */
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}
.brand:hover .contact,
.brand:focus-within .contact {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}
.label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(227, 89, 26, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button svg { width: 20px; height: 20px; flex: none; }
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(227, 89, 26, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.button:focus-visible {
  outline: 3px solid var(--grey);
  outline-offset: 3px;
}

/* 404-siden */
.not-found .logo { width: min(160px, 40vw); }
.not-found h1 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.not-found p {
  margin: 12px 0 28px;
  color: var(--muted);
  animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.not-found .button {
  animation: rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

footer {
  padding: 20px 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vmax, 4vmax) scale(1.08); }
}
/* Svag puls i gløden */
@keyframes pulse {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
