/* Design passport: /workspace/gnarin/CLAUDE.md. New values enter the passport first. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: block;
}

:root {
  --paper: #E4E4E8;
  --ink: #15171B;
  --ink-soft: #3B3E45;
  --accent: #8E86A8;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --edge: 48px;
  color-scheme: light;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-soft) transparent;
  scrollbar-gutter: stable;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-soft); }

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }

#scene {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  opacity: 0;
  transition: opacity 2400ms var(--ease);
}
.is-live #scene { opacity: 1; }

.brand {
  position: fixed;
  top: calc(var(--edge) + env(safe-area-inset-top));
  left: calc(var(--edge) + env(safe-area-inset-left));
  margin: 0;
}
.logo {
  margin: 0;
  font-weight: 500;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: 0.02em;
}
.slogan {
  position: fixed;
  left: calc(var(--edge) + env(safe-area-inset-left));
  bottom: calc(var(--edge) + env(safe-area-inset-bottom));
  margin: 0;
  font-weight: 300;
  font-style: italic;
  font-size: 40px;
  line-height: 48px;
}

.logo, .slogan {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1600ms var(--ease), transform 1600ms var(--ease);
}
.slogan { transition-delay: 600ms; }
.fonts-ready .logo, .fonts-ready .slogan { opacity: 1; transform: none; }

.no-webgl body { background: var(--paper) url("/poster.jpg") center / cover no-repeat; }
.no-webgl #scene { display: none; }

@media (max-width: 640px) {
  :root { --edge: 24px; }
  .slogan { font-size: 28px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  #scene, .logo, .slogan { transition: none; }
  .logo, .slogan { transform: none; }
}
