* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  /* slow fade between background colors (set in script.js) */
  transition: background-color 3s ease-in-out;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(18px, 4vw, 34px);
  position: relative;
  z-index: 1;
  transition: opacity 0.8s ease;
}

/* Idle screensaver: black curtain, then the pipes canvas */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

body.idle .curtain {
  opacity: 1;
}

body.idle .page {
  opacity: 0;
}

#pipes {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

#pipes.on {
  opacity: 1;
}

.logo {
  margin: 0;
  font-size: clamp(4.5rem, 20vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-bottom: 8vh;
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  font-weight: 700;
}

.contact {
  margin: 0;
}

.label {
  margin: 0 0 0.1em;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  font-weight: 700;
}

.email {
  margin: 0;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  font-weight: 700;
}

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

.email a:hover,
.email a:focus-visible {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .page,
  .curtain,
  #pipes {
    transition: none;
  }
}
