@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0e0e11;
  --line: #26262d;
  --paper: #f3f1ea;
  --text-muted: #c9c6bd;
  --text-subtle: #a6a39a;
  --accent: #ffc93c;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1200px;
  --gutter: 24px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--paper);
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.accent {
  color: var(--accent);
}

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  color: var(--ink);
  background: #ffd666;
}

/* Side på én skjerm */
.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Toppen */
.site-header .container {
  padding-block: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand img {
  flex: none;
  width: 30px;
  height: 30px;
}

/* Hero */
.hero {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-block: 32px 56px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero .lead {
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-muted);
}
.hero .lead a {
  font-weight: 500;
  text-underline-offset: 4px;
}
.actions {
  padding-top: 8px;
}

/* Bunntekst */
.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer .container {
  padding-block: 24px;
  font-size: 14px;
  color: var(--text-subtle);
}

/* Glasskuber i bakgrunnen */
.glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1400px;
}
.slot {
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  animation: float 11s ease-in-out infinite;
}
.s1 {
  --s: 250px;
  --core: 86px;
  right: 9%;
  top: 110px;
}
.s2 {
  --s: 96px;
  right: 31%;
  top: 470px;
  animation-delay: -4s;
}
.s3 {
  --s: 48px;
  right: 6%;
  top: 500px;
  animation-delay: -7s;
}
.s4 {
  --s: 36px;
  right: 40%;
  top: 44px;
  animation-delay: -2s;
}
.cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(38deg);
  animation: spin 26s linear infinite;
}
.s2 .cube {
  animation-duration: 19s;
  animation-direction: reverse;
}
.s3 .cube {
  animation-duration: 15s;
}
.s4 .cube {
  animation-duration: 12s;
  animation-direction: reverse;
}
.s1 .core {
  --s: var(--core);
  inset: auto;
  left: calc(50% - var(--s) / 2);
  top: calc(50% - var(--s) / 2);
  width: var(--s);
  height: var(--s);
  animation-duration: 13s;
  animation-direction: reverse;
}
.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 241, 234, 0.28);
  background: linear-gradient(135deg, rgba(243, 241, 234, 0.16), rgba(243, 241, 234, 0.02) 60%);
  box-shadow: inset 0 0 24px rgba(243, 241, 234, 0.06);
}
.face::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.4) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: glint 8s ease-in-out infinite;
}
.f1 {
  transform: translateZ(calc(var(--s) / 2));
}
.f2 {
  transform: rotateY(180deg) translateZ(calc(var(--s) / 2));
}
.f3 {
  transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
}
.f4 {
  transform: rotateY(-90deg) translateZ(calc(var(--s) / 2));
}
.f5 {
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}
.f6 {
  transform: rotateX(-90deg) translateZ(calc(var(--s) / 2));
}
.f2::after {
  animation-delay: -1.3s;
}
.f3::after {
  animation-delay: -2.6s;
}
.f4::after {
  animation-delay: -3.9s;
}
.f5::after {
  animation-delay: -5.2s;
}
.f6::after {
  animation-delay: -6.5s;
}
.core .face {
  border: 0;
  box-shadow: none;
}
.core .f1 {
  background: #ffc93c;
}
.core .f2 {
  background: #d9a520;
}
.core .f3 {
  background: #ffd666;
}
.core .f4 {
  background: #c8961a;
}
.core .f5 {
  background: #ffe08a;
}
.core .f6 {
  background: #b88914;
}
@keyframes spin {
  from {
    transform: rotateX(-24deg) rotateY(38deg);
  }
  to {
    transform: rotateX(-24deg) rotateY(398deg);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(10px);
  }
}
@keyframes glint {
  0% {
    transform: translateX(-70%);
  }
  45%,
  100% {
    transform: translateX(70%);
  }
}
@media (max-width: 760px) {
  .hero {
    padding-top: 150px;
  }
  .s2,
  .s3,
  .s4 {
    display: none;
  }
  .s1 {
    --s: 120px;
    --core: 42px;
    right: 28px;
    top: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slot,
  .cube,
  .face::after {
    animation: none;
  }
}

/* 404 */
.notfound .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-block: 88px;
}
.notfound h1 {
  font-weight: 800;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.notfound p:not(.eyebrow) {
  font-size: 19px;
  color: var(--text-muted);
}
