/*
 * Landing (GET /). Hand-written on purpose, an exception to "Tailwind only": base.html.twig loads
 * Tailwind from a CDN at runtime, and this page must look right without JavaScript and without
 * any third-party host. See docs/superpowers/specs/2026-10-07-landing-redesign-design.md
 */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal-cHejlgP.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal-1Ubqs2a.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --basalto: #101214;
  --hueso: #ece7dc;
  --niebla: #9b9a92;
  --laton: #b8935a;
  --gutter: clamp(24px, 6vw, 96px);

  /* Noon: what a visitor sees if the script never runs. */
  --sundial-angle: 0deg;
  --sundial-x: 50vw;
  --sundial-opacity: 1;
}

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

html,
body {
  margin: 0;
  background: var(--basalto);
  color: var(--hueso);
}

body {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.sundial {
  position: absolute;
  top: -15vh;
  left: 0;
  width: 1px;
  height: 130vh;
  background: var(--laton);
  opacity: var(--sundial-opacity);
  transform: translateX(var(--sundial-x)) rotate(var(--sundial-angle));
  pointer-events: none;
}

.sundial.is-live {
  transition:
    transform 60s linear,
    opacity 60s linear;
}

@media (prefers-reduced-motion: reduce) {
  .sundial.is-live {
    transition: none;
  }
}

.main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  align-items: flex-end;
  padding: 0 var(--gutter) 14vh;
}

.wordmark {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: min(clamp(72px, 18vw, 240px), calc((100vw - 2 * var(--gutter)) / 2.8));
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--hueso);
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--niebla);
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--niebla);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--hueso);
}

a:focus-visible {
  outline: 2px solid var(--hueso);
  outline-offset: 2px;
}

.dev-login {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  padding: 8px 12px;
  border: 1px solid var(--niebla);
  border-radius: 6px;
  font-size: 14px;
  color: var(--niebla);
  text-decoration: none;
}

.dev-login:hover {
  color: var(--hueso);
  border-color: var(--hueso);
}
