/* Skjoeth.com – forside */

@font-face {
  font-family: 'FuturaBook';
  src: url('futura-book.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #0e0f13;
  --fg: #f3f1ec;
  --muted: rgba(243, 241, 236, .62);
  --line: rgba(255, 255, 255, .12);
  --card: rgba(255, 255, 255, .04);
  --accent: #e8b26a;
  --orb-1: #3b4cca;
  --orb-2: #c2577a;
  --orb-3: #e8b26a;
  --btn-bg: #f3f1ec;
  --btn-fg: #111216;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f1ea;
    --fg: #17181c;
    --muted: rgba(23, 24, 28, .6);
    --line: rgba(0, 0, 0, .1);
    --card: rgba(255, 255, 255, .55);
    --accent: #b5722a;
    --orb-1: #9fb0ff;
    --orb-2: #f3a6bd;
    --orb-3: #f6cf94;
    --btn-bg: #17181c;
    --btn-fg: #f4f1ea;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'FuturaBook', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  text-align: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Baggrund: bløde, langsomt drivende farvefelter + let korn */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.orb {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  will-change: transform;
}
.orb-1 { background: var(--orb-1); top: -20vmax; left: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.orb-2 { background: var(--orb-2); bottom: -25vmax; right: -15vmax; animation: drift2 32s ease-in-out infinite alternate; }
.orb-3 { background: var(--orb-3); top: 35%; left: 45%; width: 30vmax; height: 30vmax; opacity: .25; animation: drift3 22s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(12vmax, 8vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vmax, -12vmax) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-18vmax, -6vmax) scale(.9); } }

/* Indhold */
.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  animation: rise .9s .1s cubic-bezier(.2, .7, .2, 1) both;
}
.tld { color: var(--accent); }

.rule {
  display: block;
  width: 3rem;
  height: 1px;
  margin: 2rem auto 2.5rem;
  background: var(--accent);
  animation: rise .9s .2s cubic-bezier(.2, .7, .2, 1) both;
}

.btn {
  font: inherit;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: rise .9s .3s cubic-bezier(.2, .7, .2, 1) both;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .5); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Kontakt: knap der forvandles til et felt med e-mailadressen */
.contact {
  display: grid;
  place-items: center;
  min-height: 3.4rem;
}
.contact > * { grid-area: 1 / 1; }

.contact.is-open .btn {
  opacity: 0;
  transform: scale(.85);
  pointer-events: none;
  animation: none;
}

.field {
  display: flex;
  align-items: center;
  gap: .25rem;
  width: min(22rem, calc(100vw - 2rem));
  padding: .3rem .3rem .3rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  animation: expand .45s cubic-bezier(.2, .7, .2, 1) both;
}
.field[hidden] { display: none; }

.field input {
  flex: 1;
  min-width: 0;
  padding: .55rem 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  letter-spacing: .02em;
  outline: none;
}
.field input::selection { background: var(--accent); color: var(--btn-fg); }

.copy {
  flex: none;
  padding: .6rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.copy:hover { transform: translateY(-1px); }
.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.copy.is-done { background: var(--accent); color: #111216; }

@keyframes expand {
  from { opacity: 0; clip-path: inset(0 40% round 999px); }
  to   { opacity: 1; clip-path: inset(0 0 round 999px); }
}

.btn { transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  max-width: 44rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
.foot a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.foot a:hover { color: var(--fg); border-color: var(--accent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
