/* elderfo Labs site, "Night shift" (dark) only.
   Colour tokens are the Night shift (.dark) values from
   design-system/elderfo-labs/globals.css, copied here as plain CSS.
   If the kit changes, update the tokens below to match. */

/* Self-hosted fonts: latin subset, licences in fonts/LICENSES.txt */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --background: #110a35;
  --foreground: #f3f0ff;
  --card: #1c1250;
  --muted-foreground: #aca3dc;
  --border: #3a2c80;
  --ring: #5ef2f8;
  --void: #07041c;
  --ink-faint: #8c82c4;
  --teal: #3df5c4;
  --on-teal: #07041c;
  --cyan: #5ef2f8;
  --violet: #b273ff;

  --panel-shadow: 0 8px 24px rgba(3, 0, 20, 0.6);
  --glow-teal: 0 0 0 1px rgba(61, 245, 196, 0.5), 0 0 20px rgba(61, 245, 196, 0.35);

  --font-sans: "Rubik", system-ui, sans-serif;
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-md: 12px;
  --radius-xl: 20px;
}

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

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(70rem 40rem at 15% -10%, rgba(178, 115, 255, 0.14), transparent 70%),
    radial-gradient(60rem 36rem at 95% 110%, rgba(61, 245, 196, 0.08), transparent 70%),
    var(--background);
  background-attachment: fixed;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* The kit's "overline" utility: uppercase mono label */
.overline {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
}

.hero {
  width: 100%;
  max-width: 68rem;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  justify-items: center;
  text-align: center;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }
}

/* The one glowing thing on the page. The glow sits on a pseudo-element so
   only its opacity animates. */
.logo {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  margin: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--panel-shadow);
}

@media (min-width: 56rem) {
  .logo {
    width: clamp(22rem, 30vw, 31rem);
  }
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--glow-teal);
  opacity: 0.55;
  animation: breathe 6s ease-in-out infinite;
}

.logo picture {
  display: contents;
}

.logo img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

.copy {
  display: grid;
  gap: 1.25rem;
  justify-items: inherit;
  max-width: 34rem;
}

.copy h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
}

.tagline {
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  color: var(--muted-foreground);
  text-wrap: balance;
}

.contact {
  display: grid;
  gap: 0.5rem;
  justify-items: inherit;
  margin-top: 0.75rem;
}

.contact .overline {
  color: var(--teal);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius-md);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.contact-link:hover {
  background: var(--teal);
  color: var(--on-teal);
}

footer {
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0;
}

.notfound .code {
  color: var(--cyan);
}

.notfound h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

@media (prefers-reduced-motion: reduce) {
  .logo::before {
    animation: none;
    opacity: 0.55;
  }
  .contact-link {
    transition: none;
  }
}
