/* Milieu Editions — shared styles */

:root {
  --black: #0a0a0a;
  --white: #fdfdfb;
  --green: #3a4a3e;
  /* Fallback for no-JS / first paint — script.js overwrites this to fit the viewport width exactly */
  --hero-size: clamp(2.6rem, 16vw, 13rem);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Lenis smooth scroll ---------- */

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* ---------- Header / corner utility nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

.logo img {
  display: block;
  height: 34px;
  width: auto;
}

.nav-utility {
  display: flex;
  gap: 16px;
  font-family: "Helvetica Neue Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-utility a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-utility a:hover,
.nav-utility a:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.corner-social {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 16px;
}

/* ---------- Landing page ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.headline {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.7;
  letter-spacing: -0.14em;
}

.headline .line {
  display: block;
  font-size: var(--hero-size);
  white-space: nowrap;
}

/* ---------- Contact page ---------- */

.contact-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-heading {
  margin: 0;
}

.email-link {
  font-size: clamp(1.4rem, 5.2vw, 3.4rem);
  font-weight: 700;
  word-break: break-word;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.email-link:hover,
.email-link:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

/* ---------- About page ---------- */

.about-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.about-block {
  max-width: 62vw;
}

.about-headline {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 2.8vw, 2.4rem);
}

.about-founding {
  margin: 1.6em 0 0;
  font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--black);
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
}

/* ---------- Ambient line-glitch canvas ---------- */

#glitch-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 40;
  pointer-events: none;
}

@media (max-width: 480px) {
  .site-header {
    padding: 16px 18px;
  }
  .logo img {
    height: 26px;
  }
  .corner-social {
    bottom: 16px;
    right: 18px;
    gap: 12px;
  }
}
