:root {
  color-scheme: dark;
  --ink: #f5fbfb;
  --muted: rgba(227, 244, 244, 0.68);
  --aqua: #44f7ff;
  --aqua-soft: rgba(68, 247, 255, 0.34);
  --black: #030506;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Optima, Candara, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

.canvas {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.35rem, 4vw, 3.2rem);
}

.ambient,
.shade,
.fern {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.ambient {
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.9) contrast(1.08) brightness(0.58);
  transform: scale(1.02);
}

.shade {
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 50% 6%, rgba(58, 247, 255, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.44) 42%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.58));
}

.shade::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px);
  background-size: 100% 3px;
  mix-blend-mode: soft-light;
  opacity: 0.16;
}

.brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  max-width: min(100%, 82rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 9vw, 8.5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 1rem rgba(83, 246, 255, 0.42),
    0 0 4.2rem rgba(83, 246, 255, 0.2),
    0 1.1rem 3.8rem rgba(0, 0, 0, 0.8);
}

.title-line {
  display: block;
}

.title-main {
  color: var(--ink);
}

.title-sub {
  color: #f5e5e2;
  font-size: 0.59em;
  text-shadow:
    0 0 0.75rem rgba(255, 91, 91, 0.28),
    0 0 3rem rgba(68, 247, 255, 0.14),
    0 1rem 3.6rem rgba(0, 0, 0, 0.85);
}

.work {
  align-self: end;
  justify-self: center;
  margin: 0;
  max-width: 70rem;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.65vw, 1.28rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 1.4rem rgba(68, 247, 255, 0.18);
}

.work::before,
.work::after {
  display: inline-block;
  width: clamp(2rem, 8vw, 8rem);
  height: 1px;
  margin: 0 clamp(0.75rem, 2vw, 1.6rem) 0.35em;
  content: "";
  background: linear-gradient(90deg, transparent, var(--aqua-soft), transparent);
}

.fern {
  z-index: -2;
  width: clamp(12rem, 31vw, 34rem);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1rem rgba(68, 247, 255, 0.58))
    drop-shadow(0 0 5rem rgba(68, 247, 255, 0.2));
}

.fern-primary {
  right: clamp(-5rem, -4vw, -1.5rem);
  top: clamp(5.6rem, 16vw, 12rem);
  opacity: 0.62;
}

.fern-echo {
  left: clamp(-9rem, -12vw, -5rem);
  bottom: clamp(-12rem, -18vw, -7rem);
  opacity: 0.16;
  transform: rotate(-23deg) scale(1.18);
}

@media (max-width: 740px) {
  .canvas {
    padding: 1.15rem;
  }

  h1 {
    max-width: 22rem;
  }

  .work {
    max-width: 20rem;
  }

  .work::before,
  .work::after {
    display: block;
    margin: 0.65rem auto;
  }

  .fern-primary {
    right: -6.25rem;
    top: 7rem;
    width: 18rem;
    opacity: 0.42;
  }

  .fern-echo {
    left: -7.5rem;
    bottom: -7rem;
    width: 19rem;
  }
}
