@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/jost-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/jost-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FDFCF9;
  --ink: #443548;
  --mauve-deep: #7C5C72;
  --mauve-pale: #D9CBD2;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#foliage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  pointer-events: none;
}

#logo {
  width: clamp(250px, 44vw, 510px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.baseline {
  margin: clamp(1.9rem, 4vh, 2.9rem) 0 0;
  font-weight: 300;
  font-size: clamp(0.68rem, 1.35vw, 0.86rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--mauve-deep);
}

.rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: clamp(1.9rem, 4vh, 2.6rem) 0;
  background: var(--mauve-pale);
  transform-origin: center;
}

.contact {
  pointer-events: auto;
  font-weight: 400;
  font-size: clamp(0.88rem, 1.6vw, 1.02rem);
  letter-spacing: 0.055em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35em 0.2em;
  background-image: linear-gradient(var(--mauve-deep), var(--mauve-deep));
  background-repeat: no-repeat;
  background-position: 50% 88%;
  background-size: 0% 1px;
  transition: color 0.35s ease, background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.contact:hover,
.contact:focus-visible { color: var(--mauve-deep); background-size: 100% 1px; }
.contact:focus-visible { outline: 1px solid var(--mauve-deep); outline-offset: 6px; border-radius: 2px; }

/* Entrée */
#logo, .baseline, .rule, .contact {
  opacity: 0;
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
#logo    { animation-delay: 0.10s; }
.baseline{ animation-delay: 0.42s; }
.rule    { animation-delay: 0.60s; animation-name: draw; }
.contact { animation-delay: 0.74s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #logo, .baseline, .rule, .contact { animation: none; opacity: 1; transform: none; }
  .contact { transition: color 0.2s ease; }
  #foliage { display: none; }
}
