@font-face {
  font-family: "Kanyon";
  src: url("../fonts/KanyonStd-Light.woff2") format("woff2"),
       url("../fonts/KanyonStd-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kanyon";
  src: url("../fonts/KanyonStd-Regular.woff2") format("woff2"),
       url("../fonts/KanyonStd-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* One dark theme for the whole page. Accent is the logo's taupe. */
:root {
  color-scheme: dark;
  --ink: #171411;
  --text: #efebe4;
  --text-soft: #d3ccbf;
  --accent: #a29883;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Kanyon", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(2rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
  overflow: hidden;
  /* Photo is pre-blurred at build time (bg-blur.webp), so no runtime filter cost. */
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgb(23 20 17 / 0.12), rgb(23 20 17 / 0.68) 100%),
    linear-gradient(rgb(23 20 17 / 0.22), rgb(23 20 17 / 0.22)),
    url("../img/bg-blur.webp") center / cover no-repeat,
    var(--ink);
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3.2vh, 1.9rem);
  text-align: center;
}

.logo {
  margin: 0;
  line-height: 0;
}

.logo img {
  display: block;
  width: auto;
  height: clamp(130px, 36vh, 320px);
  max-width: 62vw;
  object-fit: contain;
}

.rule {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--accent);
}

.title {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.9rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: no-preference) {
  .logo,
  .rule,
  .title,
  .lead {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 1.1s var(--ease) forwards;
  }

  .rule {
    transform: scaleX(0);
    animation-name: draw;
    animation-delay: 0.25s;
  }

  .title { animation-delay: 0.4s; }
  .lead { animation-delay: 0.55s; }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Short landscape phones: keep everything above the fold. */
@media (max-height: 480px) {
  .content { gap: 0.75rem; }
  .logo img { height: clamp(90px, 34vh, 140px); }
  .title { font-size: 1.4rem; }
}
