@font-face {
  font-family: "Lovelyn";
  src:
    url("./fonts/lovelyn/Lovelyn.otf") format("opentype"),
    url("./fonts/lovelyn/Lovelyn.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --text: #f1eef6;
  --muted: #a8a3af;
  --accent: #8a52f4;
  --line: rgba(241, 238, 246, 0.14);
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(138, 82, 244, 0.1),
      transparent 32rem
    ),
    var(--bg);
  background-attachment: fixed;  
  color: var(--text);
  font-family:
    "Lovelyn",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after, body::before {
  content: "";
  position: fixed;
  width: clamp(180px, 35vw, 600px);
  aspect-ratio: 1189 / 2048;
  background: url("./assets/ivy.png") no-repeat center / contain;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 0;
  left: -6%;
}

body::after {
  bottom: 0;
  right: -6%;
  transform: rotate(180deg);
}

.page {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(100%, 720px);
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo {
  width: min(72vw, 320px);
  height: auto;
  display: block;
  margin: 0 auto clamp(20px, 4vh, 38px);
  filter: drop-shadow(0 16px 50px rgba(0, 0, 0, 0.35));
}
.copy {
  width: 100%;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: normal;
}
.eyebrow {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.tagline {
  color: #7670b5;
  margin: clamp(30px, 6vh, 45px) 0;
  font-size: clamp(1.3rem, 4.3vw, 2.25rem);
  line-height: 1.25;
  font-weight: 450;
  letter-spacing: -0.025em;
}
/* .tagline::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 24px auto 0;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(138, 82, 244, 0.65);
} */
.links {
  width: min(100%, 520px);
  padding: 0 8px;
  margin: 20px auto;
  border-top: 1px solid var(--line);
}
.link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: clamp(0.92rem, 2.5vw, 1rem);
  transition:
    color 0.2s ease,
    padding 0.2s ease,
    border-color 0.2s ease;
}
.link span:last-child {
  color: var(--accent);
  font-size: 1.1em;
}
.link:hover,
.link:focus-visible {
  color: #fff;
  padding-left: 8px;
  padding-right: 8px;
  border-color: rgba(138, 82, 244, 0.5);
  outline: none;
}
footer {
  padding-top: 38px;
  text-align: center;
  color: #68636f;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 520px) {

  .logo {
    width: min(88vw, 350px);
  }
  .tagline {
    margin: 30px 0 34px;
  }
  .link {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

#elf-widget {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(540px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 16px;

  background: #17151c;
  color: #eee;
  border: 1px solid #8a52f4;
  border-radius: 8px;

  font: 12px/1.5 Arial, sans-serif;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 7px 12px;
  border: 1px solid #8a52f4;
  border-radius: 4px;
  background: transparent;
  color: #eee;
  font: inherit;
  cursor: pointer;
}

.cookie-actions #cookie-accept {
  background: #8a52f4;
  color: #fff;
}

@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}


/* Floating flash background */

.floating-flashes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.flash {
  position: absolute;
  width: clamp(90px, 12vw, 190px);
  height: auto;
  object-fit: contain;
  opacity: 0.42;
  will-change: transform;
}

/* Individual positions and movement */

.flash-1 {
  top: 12%;
  left: 8%;
  animation: float-a 31s ease-in-out infinite;
}

.flash-2 {
  top: 52%;
  left: 3%;
  animation: float-b 37s ease-in-out infinite;
}

.flash-3 {
  top: 78%;
  left: 23%;
  animation: float-c 43s ease-in-out infinite;
}

.flash-4 {
  top: 8%;
  right: 14%;
  animation: float-b 41s ease-in-out infinite reverse;
}

.flash-5 {
  top: 42%;
  right: 4%;
  animation: float-c 35s ease-in-out infinite reverse;
}

.flash-6 {
  top: 76%;
  right: 22%;
  animation: float-a 47s ease-in-out infinite reverse;
}

.flash-7 {
  top: 26%;
  left: 26%;
  animation: float-c 53s ease-in-out infinite reverse;
}

.flash-8 {
  top: 44%;
  right: 28%;
  animation: float-b 49s ease-in-out infinite;
}
/* Closed, organic movement paths */

@keyframes float-a {
  0%, 100% {
    transform: translate(0, 0) rotate(-5deg);
  }
  25% {
    transform: translate(22px, -35px) rotate(2deg);
  }
  50% {
    transform: translate(45px, -8px) rotate(7deg);
  }
  75% {
    transform: translate(10px, 28px) rotate(0deg);
  }
}

@keyframes float-b {
  0%, 100% {
    transform: translate(0, 0) rotate(4deg);
  }
  25% {
    transform: translate(-28px, 20px) rotate(-3deg);
  }
  50% {
    transform: translate(-12px, -38px) rotate(-7deg);
  }
  75% {
    transform: translate(25px, -15px) rotate(1deg);
  }
}

@keyframes float-c {
  0%, 100% {
    transform: translate(0, 0) rotate(-2deg);
  }
  25% {
    transform: translate(16px, 32px) rotate(5deg);
  }
  50% {
    transform: translate(-24px, 18px) rotate(-4deg);
  }
  75% {
    transform: translate(-35px, -22px) rotate(3deg);
  }
}

/* Mobile */

@media (max-width: 620px) {
  .flash {
    width: clamp(65px, 22vw, 110px);
    opacity: 0.14;
  }

  .flash-3,
  .flash-6 {
    display: none;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .flash {
    animation: none;
  }
}


/* Instagram feed */

.instagram-section {
  width: min(100% - 32px, 720px);
  margin: 64px auto 0;
}

.instagram-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.instagram-eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.instagram-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: normal;
}

.instagram-follow {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.instagram-follow:hover {
  color: var(--accent);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.instagram-post {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  background: #17151c;
  border: 1px solid var(--line);
  text-decoration: none;
}

.instagram-post img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.instagram-post:hover img {
  transform: scale(1.07);
  opacity: 0.75;
}

.instagram-post:hover {
  border-color: var(--accent);
}

.instagram-type {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 6px;
  background: rgba(9, 9, 11, 0.75);
  border-radius: 4px;
  color: #fff;
  font: 10px Arial, sans-serif;
  letter-spacing: 0.02em;
}

.instagram-bottom-link {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.instagram-bottom-link:hover {
  background: rgba(138, 82, 244, 0.16);
}

.instagram-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0;
}

@media (max-width: 520px) {
  .instagram-section {
    margin-top: 48px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .instagram-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-post img {
    transition: none;
  }

  .instagram-post:hover img {
    transform: none;
  }
}